LoRaWAN Smart Building MOTION - Guide utilisateur / User guide version V1.0.0
3.2.3 AT Command
A command starts with the 2 ASCII characters: «AT», followed by one or more characters and data (see the list below for the syntax of the AT
commands available on the modem).
Each command must end with a "CR" or "CR" "LF", both are acceptable. (CR indicates: Carriage Return, LF indicates: Line Feed).
Once the command has been received, the modem returns:
• Data" <cr> <lf>, for ATS type playback control <n>? AT/S or AT/V.
• O" <cr> <lf>, for all other commands when this has been accepted.
• "E" <cr> <lf>, if it refuses the command due to a syntax error, unknown command, unknown register, invalid parameter, ....
• "CM" <cr> <lf>, if it accepts the input in command mode
AT Command Table:
Command
+++
Input request in command mode
ATPIN <PIN>
Gives access to AT commands if register S304 is not
0
AT/V
Displays the firmware version of the application and
the firmware version of the RTU module
AT/N
Displays the network used
AT/ARF
Displays the device reference
ATS<n>?
Returns the contents of the <n> register
AT/S
Displays all registers
ATS<n>=<m>
Sets <m> to the registry <n>
ATR APP
Resets the default configurations of the application
part
AT&W
Saves the new configuration
ATO
Exits command mode
ATT63 PROVIDER
Provider password
Example of a sequence of commands and corresponding responses as we could see them on a terminal block:
Command
Syntax
ATS221=1
ATS214=0018B200
ATT63 PROVIDER
ATS214=0018B200
ATS215?
AT&W
ATO
Interpretation of the example above: the user wanted to modify the beginning of the APP_EUI after entering an unauthorized command (answer
E), the registers were unblocked to modify the register. The second part of the APP_EUI was verified and the parameters were saved before
exiting. When exiting command mode, the device will send a JOIN request.
Description
Description
Input request in command mode
Request to switch to OTAA activation mode
Change APP_EUI MSB
Unlock the operator register
Change APP_EUI MSB
Returns the value of the S215 register
Request to store the status of registers
Request to exit command mode
Reply example
«CM»<cr><lf>
APPx_Vxx.xx.xx:RTUx_Vyy.yy.yy
"LoRa" or "SIGFOX" or «WMBUS»
«ARF8240CAA\r\n»
S<n>=<y><cr><lf> avec <y> as a registry content
/
«O»<cr><lf> si ok, «E»<cr><lf> si erreur, «W»<cr><lf>
if consistency error
«O»<cr><lf>
«O»<cr><lf>, «E»<cr><lf> if consistency error
«O»<cr><lf>, «E»<cr><lf> if consistency error
«O»<cr><lf>
Response Syntax to Next Line
Response Syntax to Next Line
E
E -> This command is not valid (registry not unlocked)
O
O
S200=44512451
O
O
FR
EN
Page
65
of 86