<
From version < 53.1 >
edited by Edwin Chen
on 2022/10/10 19:39
To version < 59.2 >
edited by Xiaoling
on 2023/01/29 11:16
>
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,7 +14,6 @@
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 18  
19 19  
20 20  )))
... ... @@ -22,13 +22,14 @@
22 22  = 2. How to use AT Commands or Downlink command =
23 23  
24 24  
25 -* For AT Command , See Devices User Manual for Device. The user manual can be found in each product page of [[Dragino Official Website>>url:http://www.dragino.com/]]
26 -* For LoRaWAN Downlink: The gateway transfer downlink command in HEX format. This page shows the HEX format downlink code for each command. but some servers use base64 as downlink code. Below are reference for how to use downlink command:
24 +* **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 +* **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:
27 27  ** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]]
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  
31 31  
31 +
32 32  = 3. Support End Node and firmware version =
33 33  
34 34  
... ... @@ -104,9 +104,9 @@
104 104  )))
105 105  
106 106  
107 +
107 107  = 4. System Management Commands =
108 108  
109 -
110 110  == 4.1 Change Uplink Interval ==
111 111  
112 112  
... ... @@ -143,6 +143,7 @@
143 143  * **Example 2**: Downlink Payload:** 0100003C**  ~/~/ Set Transmit Interval (TDC) = 60 seconds
144 144  
145 145  
146 +
146 146  == 4.2 Reboot End Node ==
147 147  
148 148  
... ... @@ -177,7 +177,6 @@
177 177  (((
178 178  If the downlink payload=**04FF**, the end node will reboot.
179 179  
180 -
181 181  
182 182  )))
183 183  
... ... @@ -217,7 +217,6 @@
217 217  )))
218 218  
219 219  
220 -
221 221  == 4.4 Show Firmware Version ==
222 222  
223 223  
... ... @@ -248,7 +248,6 @@
248 248  (((
249 249  
250 250  
251 -
252 252  **xx: Software Type:**
253 253  )))
254 254  
... ... @@ -282,7 +282,6 @@
282 282  firmware version: v1.1.0 ~-~-> 110
283 283  
284 284  
285 -
286 286  == 4.5 Show System Configure ==
287 287  
288 288  
... ... @@ -309,9 +309,9 @@
309 309  )))
310 310  
311 311  
309 +
312 312  = 5. Keys, IDs and EUIs management =
313 313  
314 -
315 315  == 5.1 Application EUI ==
316 316  
317 317  
... ... @@ -329,6 +329,7 @@
329 329  |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK
330 330  
331 331  
329 +
332 332  == 5.2 Application Key ==
333 333  
334 334  
... ... @@ -346,6 +346,7 @@
346 346  |(% 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
347 347  
348 348  
347 +
349 349  == 5.3 Application Session Key ==
350 350  
351 351  
... ... @@ -365,6 +365,7 @@
365 365  )))
366 366  
367 367  
367 +
368 368  == 5.4 Device Address ==
369 369  
370 370  
... ... @@ -384,6 +384,7 @@
384 384  |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK
385 385  
386 386  
387 +
387 387  == 5.5 Device EUI ==
388 388  
389 389  
... ... @@ -403,6 +403,7 @@
403 403  )))
404 404  
405 405  
407 +
406 406  == 5.6 Network ID ==
407 407  
408 408  
... ... @@ -420,6 +420,7 @@
420 420  |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK
421 421  
422 422  
425 +
423 423  == 5.7 Network Session Key ==
424 424  
425 425  
... ... @@ -437,12 +437,11 @@
437 437  |(% 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
438 438  
439 439  
443 +
440 440  = 6. Joining and sending date on LoRaWAN network =
441 441  
442 -
443 443  == 6.1 Confirm Mode ==
444 444  
445 -
446 446  === 6.1.1  AT+CFM command before DR-LWS007 software stack ===
447 447  
448 448  
... ... @@ -470,6 +470,7 @@
470 470  * **Example 2:** Downlink Payload: 0500  ~/~/ Set AT+CFM=0
471 471  
472 472  
475 +
473 473  === 6.1.2  AT+CFM command since DR-LWS007 software stack ===
474 474  
475 475  
... ... @@ -516,6 +516,7 @@
516 516  * **Example 2:** Downlink Payload: 05000700  ~/~/ Set AT+CFM=0,7,0
517 517  
518 518  
522 +
519 519  == 6.2 Confirm Status ==
520 520  
521 521  
... ... @@ -524,14 +524,15 @@
524 524  
525 525  (% style="color:blue" %)**AT Command: AT+CFS**
526 526  
527 -(% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %)
528 -|=(% colspan="3" style="width: 531px;" %)AT+CFS
529 -|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response**
530 -|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:178px" %)0(((
531 +(% border="1" style="background-color:#ffffcc; color:green; width:463px" %)
532 +|=(% colspan="3" style="width: 460px;" %)AT+CFS
533 +|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:107px" %)**Response**
534 +|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:107px" %)0(((
531 531  OK
532 532  )))
533 533  
534 534  
539 +
535 535  == 6.3 Join LoRa® Network ==
536 536  
537 537  
... ... @@ -550,6 +550,7 @@
550 550  )))
551 551  
552 552  
558 +
553 553  == 6.4 LoRa® Network Join Mode ==
554 554  
555 555  
... ... @@ -577,6 +577,7 @@
577 577  * **Example 2:** Downlink Payload: **2001**  ~/~/ Set AT+NJM=1
578 578  
579 579  
586 +
580 580  == 6.5 LoRa® Network Join Status ==
581 581  
582 582  
... ... @@ -593,6 +593,7 @@
593 593  )))
594 594  
595 595  
603 +
596 596  == 6.6 Print Last Received Data in Raw Format ==
597 597  
598 598  
... ... @@ -609,6 +609,7 @@
609 609  )))
610 610  
611 611  
620 +
612 612  == 6.7 Print Last Received Data in Binary Format ==
613 613  
614 614  
... ... @@ -625,6 +625,7 @@
625 625  )))
626 626  
627 627  
637 +
628 628  == 6.8 Send Text Data ==
629 629  
630 630  
... ... @@ -645,6 +645,7 @@
645 645  )))
646 646  
647 647  
658 +
648 648  == 6.9 Send Hexadecimal Data ==
649 649  
650 650  
... ... @@ -664,9 +664,9 @@
664 664  )))
665 665  
666 666  
678 +
667 667  = 7. LoRaWAN network management =
668 668  
669 -
670 670  == 7.1 Adaptive Data Rate ==
671 671  
672 672  
... ... @@ -694,6 +694,7 @@
694 694  * **Example 2**: Downlink Payload: **2200FFFF**  ~/~/ Set AT+ADR=0.
695 695  
696 696  
708 +
697 697  == 7.2 LoRa® Class ==
698 698  
699 699  
... ... @@ -713,6 +713,7 @@
713 713  )))
714 714  
715 715  
728 +
716 716  == 7.3 Duty Cycle Setting ==
717 717  
718 718  
... ... @@ -732,12 +732,18 @@
732 732  )))
733 733  
734 734  
748 +
735 735  == 7.4 Data Rate ==
736 736  
737 737  
738 -Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) . Note: while set Data Rate, please use set Adptive Data Rate, ADR=0 first. otherwise device will response to server's ADR command and change the DR to the setting from server
752 +Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) .
739 739  
754 +(% style="color:red" %)
755 +**Notice:**
740 740  
757 +* 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.
758 +* 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/]]
759 +
741 741  (% style="color:blue" %)**AT Command: AT+DR**
742 742  
743 743  (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %)
... ... @@ -758,6 +758,7 @@
758 758  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+DR=0.
759 759  
760 760  
780 +
761 761  == 7.5 Frame Counter Downlink ==
762 762  
763 763  
... ... @@ -777,6 +777,7 @@
777 777  )))
778 778  
779 779  
800 +
780 780  == 7.6 Frame Counter Uplink ==
781 781  
782 782  Feature: Get or Set the Frame Counter Uplink.
... ... @@ -795,6 +795,7 @@
795 795  )))
796 796  
797 797  
819 +
798 798  == 7.7 Join Accept Delay1 ==
799 799  
800 800  
... ... @@ -814,6 +814,7 @@
814 814  )))
815 815  
816 816  
839 +
817 817  == 7.8 Join Accept Delay2 ==
818 818  
819 819  
... ... @@ -833,6 +833,7 @@
833 833  )))
834 834  
835 835  
859 +
836 836  == 7.9 Public Network Mode ==
837 837  
838 838  
... ... @@ -861,6 +861,7 @@
861 861  |(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %)
862 862  
863 863  
888 +
864 864  == 7.10 Receive Delay1 ==
865 865  
866 866  
... ... @@ -880,6 +880,7 @@
880 880  )))
881 881  
882 882  
908 +
883 883  == 7.11 Receive Delay2 ==
884 884  
885 885  
... ... @@ -899,6 +899,7 @@
899 899  )))
900 900  
901 901  
928 +
902 902  == 7.12 Rx2 Window Data Rate ==
903 903  
904 904  
... ... @@ -918,6 +918,7 @@
918 918  )))
919 919  
920 920  
948 +
921 921  == 7.13 Rx2 Window Frequency ==
922 922  
923 923  
... ... @@ -937,6 +937,7 @@
937 937  )))
938 938  
939 939  
968 +
940 940  == 7.14 Transmit Power ==
941 941  
942 942  
... ... @@ -965,6 +965,7 @@
965 965  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+TXP=0.
966 966  
967 967  
997 +
968 968  == 7.15 RSSI of the Last Received Packet ==
969 969  
970 970  
... ... @@ -981,6 +981,7 @@
981 981  )))
982 982  
983 983  
1014 +
984 984  == 7.16 SNR of the Last Received Packet ==
985 985  
986 986  
... ... @@ -997,6 +997,7 @@
997 997  )))
998 998  
999 999  
1031 +
1000 1000  == 7.17 Application Port ==
1001 1001  
1002 1002  
... ... @@ -1023,6 +1023,7 @@
1023 1023  * **Example 2**: Downlink Payload:** 2305**  ~/~/ set the application port to 5
1024 1024  
1025 1025  
1058 +
1026 1026  == 7.18 Single Channel Mode ==
1027 1027  
1028 1028  
... ... @@ -1040,6 +1040,7 @@
1040 1040  |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK
1041 1041  
1042 1042  
1076 +
1043 1043  == 7.19 Eight Channel Mode ==
1044 1044  
1045 1045  
... ... @@ -1058,7 +1058,7 @@
1058 1058  )))
1059 1059  |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK
1060 1060  
1061 -(% style="color:blue" %)**Downlink Command: 0x24**
1095 +(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)**
1062 1062  
1063 1063  Format: Command Code (0x24) followed by 1 bytes channel value.
1064 1064  
... ... @@ -1068,6 +1068,7 @@
1068 1068  * **Example 2**: Downlink Payload: 2405  ~/~/ set channel mode to 5
1069 1069  
1070 1070  
1105 +
1071 1071  == 7.20 Get or Set RXwindows1 timeout ==
1072 1072  
1073 1073  
... ... @@ -1099,7 +1099,6 @@
1099 1099  (((
1100 1100  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.
1101 1101  
1102 -
1103 1103  
1104 1104  )))
1105 1105  
... ... @@ -1120,6 +1120,7 @@
1120 1120  |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK
1121 1121  
1122 1122  
1157 +
1123 1123  == 7.22 Setting up uplinkdwelltime (as923, au915) ==
1124 1124  
1125 1125  
... ... @@ -1146,6 +1146,7 @@
1146 1146  * **Example 2**: Downlink Payload: **2500**  ~/~/ set uplinkdwelltime to 0
1147 1147  
1148 1148  
1184 +
1149 1149  == 7.23 Set Packet Receiving Response Level ==
1150 1150  
1151 1151  
... ... @@ -1186,6 +1186,7 @@
1186 1186  * **Example 2**: Downlink Payload: **2102**  ~/~/ set packet receiving response level to 2
1187 1187  
1188 1188  
1225 +
1189 1189  == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) ==
1190 1190  
1191 1191  
... ... @@ -1217,6 +1217,7 @@
1217 1217  * Example 2: Downlink Payload: 330201  ~/~/ Set AT+SETMAXNBTRANS=2,1
1218 1218  
1219 1219  
1257 +
1220 1220  == 7.25 Device offline rejoining (LWS007) ==
1221 1221  
1222 1222  
... ... @@ -1262,6 +1262,7 @@
1262 1262  * **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1263 1263  
1264 1264  
1303 +
1265 1265  == 7.26 Request the server to send an ACK ==
1266 1266  
1267 1267  
... ... @@ -1289,13 +1289,13 @@
1289 1289  (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %)
1290 1290  |=(% colspan="3" style="width: 724px;" %)AT+RJTDC
1291 1291  |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response**
1292 -|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30000(((
1331 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30(((
1293 1293  OK
1294 1294  
1295 -the interval is 30000ms = 30s
1334 +the interval is 30 min
1296 1296  )))
1297 -|(% style="width:165px" %)AT+RJTDC=60000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1298 -Set the ReJoin data transmission interval to 60000ms = 60 seconds
1336 +|(% style="width:165px" %)AT+RJTDC=60|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1337 +Set the ReJoin data transmission interval to 60 min
1299 1299  )))
1300 1300  
1301 1301  (% style="color:blue" %)**Downlink Command: 0x26**
... ... @@ -1308,9 +1308,9 @@
1308 1308  * **Example 2: **Downlink Payload: 260002  ~/~/ Set AT+RJTDC=2
1309 1309  
1310 1310  
1350 +
1311 1311  = 8. AT Commands Combination =
1312 1312  
1313 -
1314 1314  == 8.1 Set a fix RX2DR for downlink window ==
1315 1315  
1316 1316  
... ... @@ -1318,6 +1318,7 @@
1318 1318  * (% style="color:blue" %)**AT+RX2DR=xxxx**   (%%) **~-~->**  Set xxxx to your wanted DataRate
1319 1319  
1320 1320  
1360 +
1321 1321  == 8.2 Use Downlink Command to set a fix uplink DR ==
1322 1322  
1323 1323  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0