DRAGINO - LT - AT Commands - v1.1
DRAGINO - LT - AT Commands - v1.1
com
目录
1 Introduction ........................................................................................................... 4
1.1 How to connect device and send AT command? ......................................... 4
2 General Command ................................................................................................. 6
2.1 AT: Attention ................................................................................................. 6
2.2 AT?: Short Help ............................................................................................. 6
2.3 ATZ: MCU Reset ............................................................................................ 6
2.4 AT+TDC: Application Data Transmission Interval.......................................... 7
2.5 AT+CFG: Print all configurations ................................................................... 7
3 Keys, IDs and EUIs management ............................................................................ 7
3.1 AT+APPEUI: Application EUI ......................................................................... 7
3.2 AT+APPKEY: Application Key ......................................................................... 8
3.3 AT+APPSKEY: Application Session Key .......................................................... 8
3.4 AT+DADDR: Device Address.......................................................................... 8
3.5 AT+DEUI: Device EUI ..................................................................................... 9
3.6 AT+NWKID: Network ID(You can enter this command change only after
successful network connection) ............................................................................ 9
3.7 AT+NWKSKEY: Network Session Key ........................................................... 10
4 Joining and sending date on LoRa® network ....................................................... 10
4.1 AT+CFM: Confirm Mode ............................................................................. 10
4.2 AT+CFS: Confirm Status .............................................................................. 11
4.3 AT+JOIN: Join LoRa® Network .................................................................... 11
4.4 AT+NJM: LoRa® Network Join Mode .......................................................... 11
4.5 AT+NJS: LoRa® Network Join Status ........................................................... 12
4.6 AT+RECV: Print Last Received Data in Raw Format .................................... 12
4.7 AT+RECVB: Print Last Received Data in Binary Format ............................... 12
4.8 AT+SEND: Send Text Data ........................................................................... 12
4.9 AT+SENB: Send Hexadecimal Data ............................................................. 13
5 LoRa® network management ............................................................................... 13
5.1 AT+ADR: Adaptive Rate .............................................................................. 13
5.2 AT+CLASS: LoRa® Class(Currently only support class A, class C) ................ 14
5.3 AT+DCS: Duty Cycle Setting ........................................................................ 14
5.4 AT+DR: Data Rate (Can Only be Modified after ADR=0) ............................. 15
5.5 AT+FCD: Frame Counter Downlink ............................................................. 15
5.6 AT+FCU: Frame Counter Uplink .................................................................. 15
5.7 AT+JN1DL: Join Accept Delay1 .................................................................... 16
5.8 AT+JN2DL: Join Accept Delay2 .................................................................... 16
5.9 AT+PNM: Public Network Mode ................................................................. 17
5.10 AT+RX1DL: Receive Delay1 ......................................................................... 17
5.11 AT+RX2DL: Receive Delay2 ......................................................................... 18
5.12 AT+RX2DR: Rx2 Window Data Rate ............................................................ 18
1 Introduction
This article describes the AT Commands Set used in Dragino LoRa® products, it cover below
products:
LT Serial IO Controller
Serial_Port_Tool
Software Setting:
An USB-TTL can be used with standard windows software such as Serial Port Utility. The chosen
software should be configured with the following parameters:
• Baud rate: 9600
• Data: 8 bit
• Parity: none
• Stop: 1 bit
• Flow type: none
Figure 1 show the standard configuration for Serial Port Utility to use USB-TTL.
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+TDC=?
• AT+XXX=<value> is used to provide a value to a command, for example
AT+SENDB=12:12a0ff
The output of the commands is provided on the UART. The output format is as below:
2 General Command
OK
OK
Test Command: Response:
ATZ DRAGINO XX Device
Image Version: XX
Frequency Band: XX
DevEui= XX XX XX XX XX XX XX XX
Enter Password to Active AT Commands
<followed by the Tx and Rx information>
OK
AT+TDC=? Response:
600000
OK
AT+TDC=60000 Response:
OK
OK
OK
Test Command: Response:
OK
Test Command: Response:
AT+APPEUI=01 30 48 23 54 76 53
CD OK
OK
Test Command: Response:
AT+APPKEY=? 34 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35
OK
Test Command: Response:
AT+APPKEY=34 35 55 55 22
23 55 53 43 24 23 42 34 35 OK
35 35
OK
Test Command: Response:
AT+APPSKEY=? ff 7d dc 73 33 d3 eb 9e 14 38 d5 a4 3e 62 5b e2
OK
Test Command: Response:(While Error in format, return
AT+APPSKEY=ff 7d dc 73 33 AT_PARAM_ERROR)
d3 eb 9e 14 38 d5 a4 3e 62
5b e2 OK
OK
Test Command: Response: (While Error in format, return
AT+DADDR=? AT_PARAM_ERROR)
A8 40 41 FF
OK
Test Command: Response:
AT+DADDR=A8 40 41 FF
OK
OK
Test Command: Response:
AT+DEUI=? 34 44 34 22 33 45 55 55
OK
Test Command: Response:(System will write new value to Device EUI,While
AT+DEUI=A8 40 41 FF FF 12 34 56 Error in format, return AT_PARAM_ERROR)
OK
3.6 AT+NWKID: Network ID(You can enter this command change only after
OK
Test Command: Response:
OK
Test Command: Response:
AT+NWKID=A8 40 41 FF
OK
OK
Test Command: Response:
AT+NWKSKEY=? 93 4f 19 25 52 ce 97 09 d7 fa 84 71 db 51 02 92
OK
Test Command: Response:
AT+NWKSKEY=A8 40 41 FF FF 12
34 56 00 01 02 04 05 06 06 07 OK
OK
Test Command: Response:
AT+CFM=? 0
OK
Test Command: Response:
AT+CFM=1
OK
Test Command: While Error in format, return
AT+CFM=2 AT_PARAM_ERROR
OK
Test Command: Response:
AT+CFS=? 0
OK
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=12:hello world
OK
While Error in format, return
AT_BUSY_ERROR/AT_BUSY_ERROR/AT_NO_NETWORK_JOI
NED
OK
Test Command: Response:
AT+SENDB=12:abcdef012345678
9 OK
Test Command: While Error in format, return
AT+SENDB=abcdef0123456789 AT_PARAM_ERROR
AT_BUSY_ERROR/AT_NO_NETWORK_JOINED
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
Test Command: Response:
AT+CLASS? AT+CLASS: Get or Set the Device Class
OK
Test Command: Response:
AT+CLASS=C
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
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
OK
While Error in format, return
AT_PARAM_ERROR
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
Test Command: Response:
AT+FCU=10
OK
Test Command: Response:
AT+ FCU=10.1 While Error in format, return
AT_PARAM_ERROR
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:
OK
Test Command: Response:
AT+JN2DL=20000
OK
While Error in format, return
AT_PARAM_ERROR/AT_BUSY_ERROR
OK
Test Command: Response:
AT+PNM? AT+PNM: Get or Set the public network mode. (0: off, 1:
on)
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:
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+RX2DL=2500
OK
While Error in format, return
AT_BUSY_ERROR/AT_PARAM_ERROR
OK
Test Command: Response:
AT+RX2DR=6
OK
Response:
While Error in format, return
AT_PARAM_ERROR
OK
Test Command: Response:
AT+RX2FQ? AT+RX2FQ: Get or Set the Rx2 window frequency
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
6 Information
OK
OK
Test Command: Response:
AT+SNR? AT+SNR: Get the SNR of the last received packet
OK
OK
Test Command: Response:
AT+VER? AT+VER: Get current image version and Frequency Band
OK
OK
OK
Test Command: Response:
AT+PORT=? 21
OK
OK
OK
Test Command: Response:
AT+ PWORD? AT+PWORD: Set password, max 9 digits
OK
OK
Test Command: Response:
AT+ CHS? AT+CHS: Get or Set Frequency (Unit: Hz) for Single Channel
Mode
OK
Test Command: Response:
AT+ CHS =868100000
OK
OK
Test Command: Response:
AT+ CHE? AT+CHE: Get or Set eight channels mode,Only for
US915,AU915,CN470
OK
Test Command: Response:
AT+ CHE =1
OK