LA66 AT Commands
LA66 AT Commands
com
All the AT commands have a standard format as “AT+XXX”, with XXX denoting the command.
There are four available command behaviors:
• AT+XXX? provides a short help of the given command, for example AT?
• AT+XXX is used to run a command, such as AT+JOIN
• AT+XXX=? is used to get the value of a given command, for example, AT+VER=?
• AT+XXX=<value> is used to provide a value to a command, for example, AT+NJM=1
• The output of the commands is provided on the UART. The output format is as below:
<value><CR><LF>
<CR><LF><Status>
Note: <CR> stands for “carriage return” and <LF> stands for “line feed”
The <value><CR><LF> output is returned whenever the “help AT+XXX?” or the “get
2. General Command
OK
OK
Test Command: Response:
ATZ LA66 Device
Image Version: v1.1
LoRaWan Stack: DR-LWS-007
Frequency Band: US915
DevEui= 70 B3 D5 7E D0 05 30 EE
JoinRequest NbTrials= 72
OK
OK
Test Command: Response:
AT+VER? AT+VER: Get current image version and Frequency Band
OK
OK
OK
Test Command: Response:
AT+APPEUI=? XX XX XX XX XX XX XX XX
OK
Test Command: Response:
AT+APPEUI=01 30 48 23 54 76 53
CD OK
OK
Test Command: Response:
AT+APPKEY=? XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
OK
Test Command: Response:
AT+APPKEY= XX XX XX XX XX
XX XX XX XX XX XX XX XX XX OK
XX XX
OK
Test Command: Response:
AT+APPSKEY=? XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
OK
Test Command: Response:(While Error in format, return
AT+APPSKEY= XX XX XX XX AT_PARAM_ERROR)
XX XX XX XX XX XX XX XX
XX XX XX XX OK
OK
Test Command: Response: (While Error in format, return
AT+DADDR=? AT_PARAM_ERROR)
XX XX XX XX
OK
Test Command: Response:
AT+DADDR=XX XX XX XX
OK
OK
Test Command: Response:
AT+DEUI=? XX XX XX XX XX XX XX XX
OK
Test Command: Response:(System will write new value to Device EUI,While
AT+DEUI= XX XX XX XX XX XX XX Error in format, return AT_PARAM_ERROR)
XX
OK
3.6 AT+NWKID: Network ID(You can enter this command change only after successful
network connection)
OK
Test Command: Response:
AT+NWKID=? XX XX XX XX
OK
Test Command: Response:
AT+NWKID=A8 40 41 FF
OK
OK
Test Command: Response:
AT+NWKSKEY=? XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX XX
OK
Test Command: Response:
AT+NWKSKEY= XX XX XX XX XX
XX XX XX XX XX XX XX XX XX XX OK
XX
OK
Test Command: Response:
AT+APPSKEY=? FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF FF
OK
Test Command: Response:
AT+APPSKEY= FF FF FF FF FF FF FF
FF FF FF FF FF FF FF FF FF
OK
OK
Test Command: Response(confirm status, max retries, uplink fcnt increase
AT+CFM=? status)
0,7,0
OK
Test Command: Response:
AT+CFM=1,7,1
OK
Test Command: While Error in format, return
AT+CFM=2 AT_PARAM_ERROR
OK
While Error in format, return
AT_BUSY_ERROR
OK
Test Command: Response:
AT+NJM? AT+NJM: Get or Set the Network Join Mode. (0: ABP, 1:
OTAA)
OK
Test Command: Response:
AT+NJM=0
OK
Test Command: While Error in format, return
AT+NJM=2 AT_PARAM_ERROR
OK
Test Command: Response:
AT+NJS? AT+NJS: Get the join status
OK
OK
Test Command: Response:
AT+RECV? AT+RECV: print last received data in raw format
OK
OK
Test Command: Response:
AT+RECVB? AT+RECVB: print last received data in binary format (with
hexadecimal values)
OK
OK
Test Command: Response:
AT+SEND=0,2,5,happy
OK
While Error in format, return
AT_BUSY_ERROR/AT_PARAM_ERROR/AT_NO_NETWORK_J
OI NED
OK
Test Command: Response:
AT+ADR? AT+ADR: Get or Set the Adaptive Data Rate setting. (0: off,
1: on)
OK
Test Command: Response:
AT+ADR=0
OK
While Error in format, return
AT_PARAM_ERROR
OK
OK
Test Command: Response:
AT+CLASS=A
OK
While Error in format, return
AT_PARAM_ERROR
OK
Test Command: Response:
AT+DCS=? 1
OK
Test Command: Response:
AT+DCS=1
OK
While Error in format, return
AT_PARAM_ERROR
OK
Test Command: Response:
AT+DR? Get or Set the Data Rate. (0-7 corresponding to DR_X)
OK
Test Command: Response:
AT+DR=2 Attention:Take effect after AT+ADR=0
OK
Test Command: Response:
AT+FCD? AT+FCD: Get or Set the Frame Counter Downlink
OK
Test Command: Response:(System will write new value to FCD)
AT+FCD=10
OK
While Error in format, return
AT_PARAM_ERROR
OK
Test Command: Response:
AT+FCU? AT+FCU: Get or Set the Frame Counter Uplink
OK
OK
Test Command: Response:
AT+JN1DL? AT+JN1DL: Get or Set the Join Accept Delay between the
end of the Tx and the Join Rx Window 1 in ms
OK
Test Command: Response:
AT+JN1DL=10000
OK
While Error in format, return
AT_PARAM_ERROR/AT_BUSY_ERROR
OK
Test Command: Response:
AT+JN2DL? AT+JN2DL: Get or Set the Join Accept Delay between the
end of the Tx and the Join Rx Window 2 in ms
OK
Test Command: Response:
AT+JN2DL=20000
OK
While Error in format, return
AT_PARAM_ERROR/AT_BUSY_ERROR
OK
Test Command: Response:(System will write new value to PNM)
AT+PNM=1
OK
While Error in format, return
AT_PARAM_ERROR/AT_BUSY_ERROR
OK
Test Command: Response:
AT+RX1DL? AT+RX1DL: Get or Set the delay between the end of the Tx
and the Rx Window 1 in ms
OK
Test Command: Response:
AT+RX1DL=1500
OK
While Error in format, return
AT_BUSY_ERROR/AT_PARAM_ERROR
OK
Test Command: Response:
AT+RX2DL? AT+RX2DL: Get or Set the delay between the end of the Tx
and the Rx Window 2 in ms
OK
Test Command: Response:
AT+RX2DR=6
OK
Response:
While Error in format, return
AT_PARAM_ERROR
OK
OK
Test Command: Response:
AT+RX2FQ=434665000
OK
While Error in format, return
AT_BUSY_ERROR / AT_BUSY_ERROR
OK
Test Command: Response:
AT+TXP? AT+TXP: Get or Set the Transmit Power (0-5, MAX:0, MIN:5,
according to LoRaWAN Spec)
OK
Test Command: Response:
AT+ TXP=1
OK
While Error in format, return
AT_PARAM_ERROR
OK
Test Command: Response:
AT+RSSI? AT+RSSI: Get the RSSI of the last received packet
OK
OK
OK
OK
Test Command: Response:
AT+PORT=? 21
OK
OK
OK
Test Command: Response:
AT+ CHS=868100000
OK
OK
OK
Test Command: Response:
AT+ CHE=1
OK
OK
OK
Test Command: Response:
AT+ SLEEP
OK
OK
Test Command: Response:
AT+DEVICETIMEREQ? Device time req
OK
Test Command: Response:
AT+DEVICETIMEREQ=1 Sync time ok
OK
OK
Test Command: Response:
AT+BAT? AT+BAT: Get the current battery voltage in Mv
OK
OK
5.23 AT+RJTDC: Get or set the ReJoin data transmission interval in min
OK
Test Command: Response:
AT+RJTDC? Get or set the ReJoin data transmission interval in min
OK
OK
Test Command: Response:
AT+RPL? Get or set response level
OK
OK
Test Command: Response:
AT+TIMESTAMP? Get or Set UNIX timestamp in second
OK
Test Command: Response:
AT+TIMESTAMP=1670806785
OK
OK
Test Command: Response:
AT+LEAPSEC=3
OK
OK
Test Command: Response:
AT+SYNCMOD=1
OK
OK
Test Command: Response:
AT+SYNCTDC=20
OK
OK
Test Command: Response:
AT+SYNCTDC=1,1440,2880
OK
OK
5.31 AT+SENDB: Send hexadecimal data along with the application port and confirm
status
AT+SENDB= Send hexadecimal data along with the application port and confirm status
Test Command: Response:
AT+SENDB=? AT_PARAM_ERROR
OK
Test Command: Response:
AT+SENDB=0,2,4,11223344 ***** UpLinkCounter= 1 *****
OK