<
From version < 63.41 >
edited by Xiaoling
on 2023/05/29 14:51
To version < 63.44 >
edited by Xiaoling
on 2023/05/29 15:22
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -10,6 +10,7 @@
10 10  Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands:
11 11  
12 12  * (% style="color:blue" %)**Common Commands:** (%%) They should be available for each sensor, such as: change uplink interval, reset device.
13 +
13 13  * (% style="color:blue" %)**Sensor Related Commands:** (%%) Only for special sensor, such as control relay, poll RS485 device.
14 14  
15 15  (((
... ... @@ -21,6 +21,7 @@
21 21  
22 22  
23 23  * **AT Command** : See Devices User Manual for how to connect to device via USB TTL adapter and use. The user manual can be found in each product page of [[Dragino Official Website>>url:http://www.dragino.com/]]
25 +
24 24  * **LoRaWAN Downlink Command**: The gateway transfer downlink command in HEX format. This page shows the Downlink Command In HEX format. Please note some LoRaWAN servers use base64 as downlink code so user need to convert HEX to Base64 and use. Below are references for how to use downlink command:
25 25  ** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]]
26 26  ** Use Base64 format to send a downlink: [[Chirpstack>>Notes for ChirpStack]], [[How to Convert>>http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H4.1ConvertHEXtoBase64]]?
... ... @@ -107,7 +107,7 @@
107 107  
108 108  (% style="color:blue" %)**AT Command: AT+TDC**
109 109  
110 -(% border="1" style="background-color:#f2f2f2; width:727.222px" %)
112 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:727.222px" %)
111 111  |(% style="background-color:#4f81bd; color:white; width:165px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:227px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:329px" %)**Response**
112 112  |(% style="width:165px" %)AT+TDC=?|(% style="width:227px" %)Show current transmit Interval|(% style="width:329px" %)30000(((
113 113  OK
... ... @@ -129,6 +129,7 @@
129 129  )))
130 130  
131 131  * **Example 1**: Downlink Payload:** 0100001E**  ~/~/ Set Transmit Interval (TDC) = 30 seconds
134 +
132 132  * **Example 2**: Downlink Payload:** 0100003C**  ~/~/ Set Transmit Interval (TDC) = 60 seconds
133 133  
134 134  (% style="display:none" %) (%%)
... ... @@ -141,7 +141,7 @@
141 141  
142 142  (% style="color:blue" %)**AT Command: ATZ  ~/~/ **(%%)Trig a reset of the MCU
143 143  
144 -(% border="1" style="background-color:#f2f2f2; width:546px" %)
147 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:546px" %)
145 145  |(% style="background-color:#4f81bd; color:white; width:157px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:92px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:294px" %)**Response**
146 146  |(% style="width:157px" %)ATZ|(% style="width:92px" %)Reset MCU|(% style="width:294px" %)(((
147 147  Device reset and show booting info
... ... @@ -176,7 +176,7 @@
176 176  
177 177  (% style="color:blue" %)**AT Command: AT+FDR  ~/~/  **(%%)Reset to factory default
178 178  
179 -(% border="1" style="background-color:#f2f2f2; width:789px" %)
182 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:789px" %)
180 180  |(% style="background-color:#4f81bd; color:white; width:154px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:175px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:456px" %)**Response**
181 181  |(% style="width:154px" %)AT+FDR|(% style="width:175px" %)Reset to factory default|(% style="width:456px" %)(((
182 182  Device reset to factory default parameters and show booting info
... ... @@ -211,7 +211,7 @@
211 211  
212 212  (% style="color:blue" %)**AT Command: AT+VER  ~/~/   **(%%)Image Version and Frequency Band
213 213  
214 -(% border="1" style="background-color:#f2f2f2; width:542px" %)
217 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:542px" %)
215 215  |(% style="background-color:#4f81bd; color:white; width:157px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:295px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:86px" %)**Response**
216 216  |(% style="width:157px" %)AT+VER=?|(% style="width:295px" %)Show Image version and Frequency Band|(% style="width:86px" %)(((
217 217  1.3 EU868
... ... @@ -273,7 +273,7 @@
273 273  
274 274  (% style="color:blue" %)**AT Command: AT+CFG  ~/~/ **(%%)Print all configurations
275 275  
276 -(% border="1" style="background-color:#f2f2f2; width:599.222px" %)
279 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:599.222px" %)
277 277  |(% style="background-color:#4f81bd; color:white; width:160px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:154px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:280px" %)**Response**
278 278  |(% style="width:160px" %)AT+CFG|(% style="width:154px" %)Show all configures|(% style="width:280px" %)(((
279 279  AT+DEUI = XX XX XX XX XX XX XX XX
... ... @@ -296,12 +296,12 @@
296 296  
297 297  (% style="color:blue" %)**AT Command: AT+APPEUI**
298 298  
299 -(% border="1" style="background-color:#f2f2f2; width:686.222px" %)
300 -|(% style="background-color:#4f81bd; color:white; width:305px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:186px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:191px" %)**Response**
301 -|(% style="width:305px" %)AT+APPEUI=?|(% style="width:186px" %)Get the Application EUI|(% style="width:191px" %)00 b3 d5 00 00 00 00 00(((
302 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:643px" %)
303 +|(% style="background-color:#4f81bd; color:white; width:272px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:182px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:184px" %)**Response**
304 +|(% style="width:272px" %)AT+APPEUI=?|(% style="width:182px" %)Get the Application EUI|(% style="width:184px" %)00 b3 d5 00 00 00 00 00(((
302 302  OK
303 303  )))
304 -|(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK
307 +|(% style="width:272px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:182px" %)Set the Application EUI|(% style="width:184px" %)OK
305 305  
306 306  (% style="display:none" %) (%%)
307 307  
... ... @@ -313,7 +313,7 @@
313 313  
314 314  (% style="color:blue" %)**AT Command: AT+APPKEY**
315 315  
316 -(% border="1" style="background-color:#f2f2f2; width:976.222px" %)
319 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:976.222px" %)
317 317  |(% style="background-color:#4f81bd; color:white; width:441px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:180px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:350px" %)**Response**
318 318  |(% style="width:441px" %)AT+APPKEY=?|(% style="width:180px" %)Get the Application Key|(% style="width:350px" %)00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35(((
319 319  OK
... ... @@ -330,7 +330,7 @@
330 330  
331 331  (% style="color:blue" %)**AT Command: AT+APPSKEY**
332 332  
333 -(% border="1" style="background-color:#f2f2f2; width:1040.22px" %)
336 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:1040.22px" %)
334 334  |(% style="background-color:#4f81bd; color:white; width:451px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:231px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:354px" %)**Response**
335 335  |(% style="width:451px" %)AT+APPSKEY=?|(% style="width:231px" %)Get the Application Session Key|(% style="width:354px" %)00 7d dc 73 33 d3 eb 9e 14 38 d5 a4 3e 62 5b e2(((
336 336  OK
... ... @@ -349,7 +349,7 @@
349 349  
350 350  (% style="color:blue" %)**AT Command: AT+DADDR**
351 351  
352 -(% border="1" style="background-color:#f2f2f2; width:795.222px" %)
355 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:795.222px" %)
353 353  |(% style="background-color:#4f81bd; color:white; width:192px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:241px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:359px" %)**Response**
354 354  |(% style="width:192px" %)AT+DADDR=?|(% style="width:241px" %)Get the Application Session Key.|(% style="width:359px" %)(While Error in format, return AT_PARAM_ERROR)(((
355 355  A8 40 41 FF
... ... @@ -368,7 +368,7 @@
368 368  
369 369  (% style="color:blue" %)**AT Command: AT+DEUI**
370 370  
371 -(% border="1" style="background-color:#f2f2f2; width:1035.22px" %)
374 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:1035.22px" %)
372 372  |(% style="background-color:#4f81bd; color:white; width:250px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:147px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:634px" %)**Response**
373 373  |(% style="width:250px" %)AT+DEUI=?|(% style="width:147px" %)Get the Device EUI.|(% style="width:634px" %)00 44 34 22 33 45 55 55(((
374 374  OK
... ... @@ -387,7 +387,7 @@
387 387  
388 388  (% style="color:blue" %)**AT Command: AT+NWKID**
389 389  
390 -(% border="1" style="background-color:#f2f2f2; width:448.222px" %)
393 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:448.222px" %)
391 391  |(% style="background-color:#4f81bd; color:white; width:191px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:153px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:101px" %)**Response**
392 392  |(% style="width:191px" %)AT+NWKID=?|(% style="width:153px" %)Get the Network ID.|(% style="width:101px" %)a8 40 41 ff(((
393 393  OK
... ... @@ -404,7 +404,7 @@
404 404  
405 405  (% style="color:blue" %)**AT Command: AT+NWKSKEY**
406 406  
407 -(% border="1" style="background-color:#f2f2f2; width:1017.22px" %)
410 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:1017.22px" %)
408 408  |(% style="background-color:#4f81bd; color:white; width:455px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:215px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:343px" %)**Response**
409 409  |(% style="width:455px" %)AT+NWKSKEY=?|(% style="width:215px" %)Get the Network Session Key.|(% style="width:343px" %)00 4f 19 25 52 ce 97 09 d7 fa 84 71 db 51 02 92(((
410 410  OK
... ... @@ -425,7 +425,7 @@
425 425  
426 426  (% style="color:blue" %)**AT Command: AT+CFM**
427 427  
428 -(% border="1" style="background-color:#f2f2f2; width:710.222px" %)
431 +(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:710.222px" %)
429 429  |(% style="background-color:#4f81bd; color:white; width:155px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:205px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:346px" %)**Response**
430 430  |(% style="width:155px" %)AT+CFM=?|(% style="width:205px" %)Get the confirmation mode|(% style="width:346px" %)0(((
431 431  OK
... ... @@ -440,6 +440,7 @@
440 440  If the downlink payload=0501, it means set end node to use confirm mode, while type code is 05.
441 441  
442 442  * **Example 1:** Downlink Payload: 0501  ~/~/ Set AT+CFM=1
446 +
443 443  * **Example 2:** Downlink Payload: 0500  ~/~/ Set AT+CFM=0
444 444  
445 445  (% style="display:none" %) (%%)
... ... @@ -486,6 +486,7 @@
486 486  If the downlink payload=05010101, it means set end node to use confirm mode, while type code is 05.
487 487  
488 488  * **Example 1:** Downlink Payload: 05010101  ~/~/ Set AT+CFM=1,1,1
493 +
489 489  * **Example 2:** Downlink Payload: 05000700  ~/~/ Set AT+CFM=0,7,0
490 490  
491 491  (% style="display:none" %) (%%)
... ... @@ -546,6 +546,7 @@
546 546  If the downlink payload=2000, it means set the Network Join Mode, while type code is 20.
547 547  
548 548  * **Example 1: **Downlink Payload: **2000                  ** ~/~/ Set AT+NJM=0
554 +
549 549  * **Example 2:** Downlink Payload: **2001**  ~/~/ Set AT+NJM=1
550 550  
551 551  (% style="display:none" %) (%%)
... ... @@ -657,6 +657,7 @@
657 657  If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22.
658 658  
659 659  * **Example 1**: Downlink Payload: **2201**  ~/~/ Set AT+ADR=1.
666 +
660 660  * **Example 2**: Downlink Payload: **2200FFFF**  ~/~/ Set AT+ADR=0.
661 661  
662 662  (% style="display:none" %) (%%)
... ... @@ -713,6 +713,7 @@
713 713  **Notice:**
714 714  
715 715  * User need to set Adaptive Data Rate(ADR)=0 first. otherwise device will respond to server's ADR command and change the DR according to server auto-adjustment.
723 +
716 716  * Data Rate specifies Spreading Factor. The mapping varies in different frequency bands. User can check this link for detail. [[rp2-1.0.3-lorawan-regional-parameters.pdf>>https://lora-alliance.org/resource_hub/rp2-1-0-3-lorawan-regional-parameters/]]
717 717  
718 718  (% style="color:blue" %)**AT Command: AT+DR**
... ... @@ -731,6 +731,7 @@
731 731  If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF.
732 732  
733 733  * **Example 1**: Downlink Payload: **220001FF**  ~/~/ Set AT+DR=1.
742 +
734 734  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+DR=0.
735 735  
736 736  (% style="display:none" %) (%%)
... ... @@ -938,6 +938,7 @@
938 938  If the downlink payload=22000100, it means setting the TXP to 0.
939 939  
940 940  * **Example 1**: Downlink Payload: **22000102**  ~/~/ Set AT+TXP=2.
950 +
941 941  * **Example 2**: Downlink Payload: **22000000**  ~/~/ Set AT+TXP=0.
942 942  
943 943  (% style="display:none" %) (%%)
... ... @@ -996,6 +996,7 @@
996 996  If the downlink payload=2301, it means set the application port to 1, while type code is 23.
997 997  
998 998  * **Example 1**: Downlink Payload: **2301**  ~/~/ set the application port to 1
1009 +
999 999  * **Example 2**: Downlink Payload:** 2305**  ~/~/ set the application port to 5
1000 1000  
1001 1001  (% style="display:none" %) (%%)
... ... @@ -1041,6 +1041,7 @@
1041 1041  If the downlink payload=2401, it means set channel mode to 1, while type code is 24.
1042 1042  
1043 1043  * **Example 1**: Downlink Payload: 2401  ~/~/ set channel mode to 1
1055 +
1044 1044  * **Example 2**: Downlink Payload: 2405  ~/~/ set channel mode to 5
1045 1045  
1046 1046  (% style="display:none" %) (%%)
... ... @@ -1112,6 +1112,7 @@
1112 1112  If the downlink payload=2501, it means set uplinkdwelltime to 1, while type code is 25.
1113 1113  
1114 1114  * **Example 1**: Downlink Payload: **2501**  ~/~/ set uplinkdwelltime to 1
1127 +
1115 1115  * **Example 2**: Downlink Payload: **2500**  ~/~/ set uplinkdwelltime to 0
1116 1116  
1117 1117  (% style="display:none" %) (%%)
... ... @@ -1125,15 +1125,21 @@
1125 1125  (% style="color:blue" %)**RPL value:**
1126 1126  
1127 1127  * **AT+RPL=0:** Device won't immediately reply any downlink commands from platform.
1141 +
1128 1128  * **AT+RPL=1:** Device will immediately reply message to Unconfirmed Data Down. Payload is 0x00.
1143 +
1129 1129  * **AT+RPL=2:** Device will immediately reply message to Confirmed Data Down. Payload is 0x00 and requied response header for this command.
1145 +
1130 1130  * **AT+RPL=3:** Device will immediately reply message to MAC Command. Payload is 0x00 and requied response header for this command.
1147 +
1131 1131  * **AT+RPL=4: **Device will immediately reply message to Confirmed Data Down & MAC Command. Payload is 0x00 and requied response header for these two commands.
1132 1132  
1133 1133  (% style="color:blue" %)**Case Analyes:**
1134 1134  
1135 1135  * For Class A devices, AT+RPL=0 is ok. that is defaut settings in software.
1153 +
1136 1136  * For Class C devices used in ChirpStack, need to set AT+RPL=4 because Chirpstack require immedietely reply message to MAC Command.
1155 +
1137 1137  * For Class C devices used in TTI, need to set AT+RPL=4 because TTI require immediately reply message to Confirmed Data Down & MAC Command.
1138 1138  
1139 1139  (% style="color:blue" %)**AT Command: AT+RPL**
... ... @@ -1152,6 +1152,7 @@
1152 1152  If the downlink payload=2101, it means set packet receiving response level to 1, while type code is 21.
1153 1153  
1154 1154  * **Example 1**: Downlink Payload: **2101**  ~/~/ set packet receiving response level to 1
1174 +
1155 1155  * **Example 2**: Downlink Payload: **2102**  ~/~/ set packet receiving response level to 2
1156 1156  
1157 1157  (% style="display:none" %) (%%)
... ... @@ -1183,6 +1183,7 @@
1183 1183  If the downlink payload=330100, it means set end node to use confirm mode, while type code is 33.
1184 1184  
1185 1185  * Example 1: Downlink Payload: 330100  ~/~/ Set AT+SETMAXNBTRANS=1,0
1206 +
1186 1186  * Example 2: Downlink Payload: 330201  ~/~/ Set AT+SETMAXNBTRANS=2,1
1187 1187  
1188 1188  (% style="display:none" %) (%%)
... ... @@ -1234,6 +1234,8 @@
1234 1234  If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32.
1235 1235  
1236 1236  * **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1258 +
1259 +*
1237 1237  ** 0x01 : Flag
1238 1238  ** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours)
1239 1239  ** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours)
... ... @@ -1281,6 +1281,7 @@
1281 1281  If the downlink payload=26000A, it means set end node to use confirm mode, while type code is 26.
1282 1282  
1283 1283  * **Example 1:** Downlink Payload: 26000A  ~/~/  Set AT+RJTDC=10
1307 +
1284 1284  * **Example 2: **Downlink Payload: 260002  ~/~/  Set AT+RJTDC=2
1285 1285  
1286 1286  (% style="display:none" %) (%%)
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0