<
From version < 57.1 >
edited by Edwin Chen
on 2022/10/21 10:47
To version < 60.4 >
edited by Xiaoling
on 2023/03/27 13:59
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Edwin
1 +XWiki.Xiaoling
Content
... ... @@ -14,11 +14,9 @@
14 14  
15 15  (((
16 16  **This page shows the common commands since Dragino LoRaWAN stack DR-LWS-005. Make sure the end node support stack higher than DR-LWS-005 before checking this page.**
17 -
18 -
19 -
20 20  )))
21 21  
19 +
22 22  = 2. How to use AT Commands or Downlink command =
23 23  
24 24  
... ... @@ -28,6 +28,8 @@
28 28  ** 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]]?
29 29  ** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server)
30 30  
29 +(% style="display:none" %) (%%)
30 +
31 31  = 3. Support End Node and firmware version =
32 32  
33 33  
... ... @@ -102,6 +102,8 @@
102 102  )))
103 103  )))
104 104  
105 +(% style="display:none" %) (%%)
106 +
105 105  = 4. System Management Commands =
106 106  
107 107  == 4.1 Change Uplink Interval ==
... ... @@ -139,6 +139,8 @@
139 139  * **Example 1**: Downlink Payload:** 0100001E**  ~/~/ Set Transmit Interval (TDC) = 30 seconds
140 140  * **Example 2**: Downlink Payload:** 0100003C**  ~/~/ Set Transmit Interval (TDC) = 60 seconds
141 141  
144 +(% style="display:none" %) (%%)
145 +
142 142  == 4.2 Reboot End Node ==
143 143  
144 144  
... ... @@ -171,12 +171,10 @@
171 171  )))
172 172  
173 173  (((
174 -If the downlink payload=**04FF**, the end node will reboot.
175 -
176 -
177 -
178 +If the downlink payload=**04FF**, the end node will reboot.
178 178  )))
179 179  
181 +
180 180  == 4.3 Reset to factory Default ==
181 181  
182 182  
... ... @@ -213,7 +213,6 @@
213 213  )))
214 214  
215 215  
216 -
217 217  == 4.4 Show Firmware Version ==
218 218  
219 219  
... ... @@ -244,7 +244,6 @@
244 244  (((
245 245  
246 246  
247 -
248 248  **xx: Software Type:**
249 249  )))
250 250  
... ... @@ -278,7 +278,6 @@
278 278  firmware version: v1.1.0 ~-~-> 110
279 279  
280 280  
281 -
282 282  == 4.5 Show System Configure ==
283 283  
284 284  
... ... @@ -322,6 +322,8 @@
322 322  )))
323 323  |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK
324 324  
324 +(% style="display:none" %) (%%)
325 +
325 325  == 5.2 Application Key ==
326 326  
327 327  
... ... @@ -338,6 +338,8 @@
338 338  )))
339 339  |(% style="width:441px" %)AT+APPKEY=00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35|(% style="width:180px" %)Set the Application Key|(% style="width:350px" %)OK
340 340  
342 +(% style="display:none" %) (%%)
343 +
341 341  == 5.3 Application Session Key ==
342 342  
343 343  
... ... @@ -356,6 +356,8 @@
356 356  OK
357 357  )))
358 358  
362 +(% style="display:none" %) (%%)
363 +
359 359  == 5.4 Device Address ==
360 360  
361 361  
... ... @@ -374,6 +374,8 @@
374 374  )))
375 375  |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK
376 376  
382 +(% style="display:none" %) (%%)
383 +
377 377  == 5.5 Device EUI ==
378 378  
379 379  
... ... @@ -392,6 +392,8 @@
392 392  OK
393 393  )))
394 394  
402 +(% style="display:none" %) (%%)
403 +
395 395  == 5.6 Network ID ==
396 396  
397 397  
... ... @@ -408,6 +408,8 @@
408 408  )))
409 409  |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK
410 410  
420 +(% style="display:none" %) (%%)
421 +
411 411  == 5.7 Network Session Key ==
412 412  
413 413  
... ... @@ -424,6 +424,8 @@
424 424  )))
425 425  |(% style="width:455px" %)AT+NWKSKEY=A8 40 41 FF FF 12 34 56 00 01 02 04 05 06 06 07|(% style="width:215px" %)Set the Network Session Key.|(% style="width:343px" %)OK
426 426  
438 +(% style="display:none" %) (%%)
439 +
427 427  = 6. Joining and sending date on LoRaWAN network =
428 428  
429 429  == 6.1 Confirm Mode ==
... ... @@ -454,6 +454,8 @@
454 454  * **Example 1:** Downlink Payload: 0501  ~/~/ Set AT+CFM=1
455 455  * **Example 2:** Downlink Payload: 0500  ~/~/ Set AT+CFM=0
456 456  
470 +(% style="display:none" %) (%%)
471 +
457 457  === 6.1.2  AT+CFM command since DR-LWS007 software stack ===
458 458  
459 459  
... ... @@ -499,6 +499,8 @@
499 499  * **Example 1:** Downlink Payload: 05010101  ~/~/ Set AT+CFM=1,1,1
500 500  * **Example 2:** Downlink Payload: 05000700  ~/~/ Set AT+CFM=0,7,0
501 501  
517 +(% style="display:none" %) (%%)
518 +
502 502  == 6.2 Confirm Status ==
503 503  
504 504  
... ... @@ -507,10 +507,10 @@
507 507  
508 508  (% style="color:blue" %)**AT Command: AT+CFS**
509 509  
510 -(% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %)
511 -|=(% colspan="3" style="width: 531px;" %)AT+CFS
512 -|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response**
513 -|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:178px" %)0(((
527 +(% border="1" style="background-color:#ffffcc; color:green; width:463px" %)
528 +|=(% colspan="3" style="width: 460px;" %)AT+CFS
529 +|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:107px" %)**Response**
530 +|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:107px" %)0(((
514 514  OK
515 515  )))
516 516  
... ... @@ -557,6 +557,8 @@
557 557  * **Example 1: **Downlink Payload: **2000                  ** ~/~/ Set AT+NJM=0
558 558  * **Example 2:** Downlink Payload: **2001**  ~/~/ Set AT+NJM=1
559 559  
577 +(% style="display:none" %) (%%)
578 +
560 560  == 6.5 LoRa® Network Join Status ==
561 561  
562 562  
... ... @@ -572,6 +572,8 @@
572 572  OK
573 573  )))
574 574  
594 +(% style="display:none" %) (%%)
595 +
575 575  == 6.6 Print Last Received Data in Raw Format ==
576 576  
577 577  
... ... @@ -587,6 +587,8 @@
587 587  OK
588 588  )))
589 589  
611 +(% style="display:none" %) (%%)
612 +
590 590  == 6.7 Print Last Received Data in Binary Format ==
591 591  
592 592  
... ... @@ -602,6 +602,8 @@
602 602  OK
603 603  )))
604 604  
628 +(% style="display:none" %) (%%)
629 +
605 605  == 6.8 Send Text Data ==
606 606  
607 607  
... ... @@ -615,12 +615,11 @@
615 615  |(% style="width:201px" %)**Command Example**|(% style="width:340px" %)**Function**|(% style="width:446px" %)**Response**
616 616  |(% style="width:201px" %)AT+SEND=12:hello world|(% style="width:340px" %)Send text data along with the application port.|(% style="width:446px" %)OK(((
617 617  While Error in format, return
618 -
619 619  AT_BUSY_ERROR/AT_BUSY_ERROR/AT_NO_NETWORK_JOINED
620 -
621 -
622 622  )))
623 623  
646 +(% style="display:none" %) (%%)
647 +
624 624  == 6.9 Send Hexadecimal Data ==
625 625  
626 626  
... ... @@ -634,11 +634,11 @@
634 634  |(% style="width:257px" %)**Command Example**|(% style="width:394px" %)**Function**|(% style="width:446px" %)**Response**
635 635  |(% style="width:257px" %)AT+SENDB=12:abcdef0123456789|(% style="width:394px" %)Send hexadecimal data along with the application port.|(% style="width:446px" %)OK
636 636  |(% style="width:257px" %)AT+SENDB=abcdef0123456789|(% style="width:394px" %)Send hexadecimal data along with the application port.|(% style="width:446px" %)While Error in format, return(((
637 -AT_PARAM_ERROR AT_BUSY_ERROR/AT_NO_NETWORK_JOINED
638 -
639 -
661 +AT_PARAM_ERROR AT_BUSY_ERROR/AT_NO_NETWORK_JOINED
640 640  )))
641 641  
664 +(% style="display:none" %) (%%)
665 +
642 642  = 7. LoRaWAN network management =
643 643  
644 644  == 7.1 Adaptive Data Rate ==
... ... @@ -667,6 +667,8 @@
667 667  * **Example 1**: Downlink Payload: **2201**  ~/~/ Set AT+ADR=1.
668 668  * **Example 2**: Downlink Payload: **2200FFFF**  ~/~/ Set AT+ADR=0.
669 669  
694 +(% style="display:none" %) (%%)
695 +
670 670  == 7.2 LoRa® Class ==
671 671  
672 672  
... ... @@ -682,9 +682,10 @@
682 682  OK
683 683  )))
684 684  |(% style="width:163px" %)AT+CLASS=C|(% style="width:166px" %)Set the Device Class.|(% style="width:175px" %)OK(((
685 -
686 686  )))
687 687  
713 +(% style="display:none" %) (%%)
714 +
688 688  == 7.3 Duty Cycle Setting ==
689 689  
690 690  
... ... @@ -700,9 +700,10 @@
700 700  OK
701 701  )))
702 702  |(% style="width:165px" %)AT+DCS=1|(% style="width:239px" %)Set the ETSI Duty Cycle setting.|(% style="width:107px" %)OK(((
703 -
704 704  )))
705 705  
732 +(% style="display:none" %) (%%)
733 +
706 706  == 7.4 Data Rate ==
707 707  
708 708  
... ... @@ -733,6 +733,8 @@
733 733  * **Example 1**: Downlink Payload: **220001FF**  ~/~/ Set AT+DR=1.
734 734  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+DR=0.
735 735  
764 +(% style="display:none" %) (%%)
765 +
736 736  == 7.5 Frame Counter Downlink ==
737 737  
738 738  
... ... @@ -1019,7 +1019,7 @@
1019 1019  )))
1020 1020  |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK
1021 1021  
1022 -(% style="color:blue" %)**Downlink Command: 0x24**
1052 +(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)**
1023 1023  
1024 1024  Format: Command Code (0x24) followed by 1 bytes channel value.
1025 1025  
... ... @@ -1059,7 +1059,6 @@
1059 1059  (((
1060 1060  Increasing thisvalue is equal to extending the time that the receiving window is opened, butthe corresponding power consumption will also increase. Properly increasingthis value can increase the success rate of the downlink.
1061 1061  
1062 -
1063 1063  
1064 1064  )))
1065 1065  
... ... @@ -1178,6 +1178,11 @@
1178 1178  
1179 1179  (% style="color:blue" %)**AT Command: AT+DDETECT**
1180 1180  
1210 +AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880)
1211 +
1212 +* ACK_Timout_1: Unit: min
1213 +* ACK_Timout_2: Unit: min
1214 +
1181 1181  (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %)
1182 1182  |=(% colspan="3" style="width: 707px;" %)AT+**DDETECT**
1183 1183  |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response**
... ... @@ -1209,13 +1209,17 @@
1209 1209  OK
1210 1210  )))
1211 1211  
1212 -(% style="color:blue" %)**Downlink Command: 0x33**
1246 +(% style="color:blue" %)**Downlink Command: 0x32**
1213 1213  
1214 1214  Format: Command Code (0x32) followed by 2 bytes mode value.
1215 1215  
1216 -If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 33.
1250 +If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32.
1217 1217  
1218 -* **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1252 +* **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1253 +** 0x01 : Flag
1254 +** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours)
1255 +** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours)
1256 +** **Explain**: Enable Online Detect, if end node doesn't receive any downlink within ACK_Timout_1( 1440 minutes or 24 hours). End node will use confirmed uplink to send packets during ACK_Timout_1 (the 24th hour) to ACK_Timout_2 ( the 48th hour). If from the 24th to 48th hour, end node got an downlink from server, it will switch back to unconfirmed uplink. end node will restart ACK_Timout_1. If from the 24th to 48th hour, end node still not got any downlink, means device doesn't get ACK from server within last 48 hours. Device will process rejoin, rejoin request interval is AT+RJTDC period. For AU915/ US915, device will use the sub-band used for last join.
1219 1219  
1220 1220  == 7.26 Request the server to send an ACK ==
1221 1221  
... ... @@ -1242,13 +1242,13 @@
1242 1242  (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %)
1243 1243  |=(% colspan="3" style="width: 724px;" %)AT+RJTDC
1244 1244  |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response**
1245 -|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30000(((
1283 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30(((
1246 1246  OK
1247 1247  
1248 -the interval is 30000ms = 30s
1286 +the interval is 30 min
1249 1249  )))
1250 -|(% style="width:165px" %)AT+RJTDC=60000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1251 -Set the ReJoin data transmission interval to 60000ms = 60 seconds
1288 +|(% style="width:165px" %)AT+RJTDC=60|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1289 +Set the ReJoin data transmission interval to 60 min
1252 1252  )))
1253 1253  
1254 1254  (% style="color:blue" %)**Downlink Command: 0x26**
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0