<
From version < 53.1 >
edited by Edwin Chen
on 2022/10/10 19:39
To version < 58.3 >
edited by Xiaoling
on 2022/12/02 13:51
>
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,8 +22,8 @@
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)
... ... @@ -104,9 +104,9 @@
104 104  )))
105 105  
106 106  
106 +
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  
145 +
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  
308 +
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  
328 +
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  
346 +
349 349  == 5.3 Application Session Key ==
350 350  
351 351  
... ... @@ -365,6 +365,7 @@
365 365  )))
366 366  
367 367  
366 +
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  
386 +
387 387  == 5.5 Device EUI ==
388 388  
389 389  
... ... @@ -403,6 +403,7 @@
403 403  )))
404 404  
405 405  
406 +
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  
424 +
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  
442 +
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  
474 +
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  
521 +
519 519  == 6.2 Confirm Status ==
520 520  
521 521  
... ... @@ -532,6 +532,7 @@
532 532  )))
533 533  
534 534  
538 +
535 535  == 6.3 Join LoRa® Network ==
536 536  
537 537  
... ... @@ -550,6 +550,7 @@
550 550  )))
551 551  
552 552  
557 +
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  
585 +
580 580  == 6.5 LoRa® Network Join Status ==
581 581  
582 582  
... ... @@ -593,6 +593,7 @@
593 593  )))
594 594  
595 595  
602 +
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  
619 +
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  
636 +
628 628  == 6.8 Send Text Data ==
629 629  
630 630  
... ... @@ -645,6 +645,7 @@
645 645  )))
646 646  
647 647  
657 +
648 648  == 6.9 Send Hexadecimal Data ==
649 649  
650 650  
... ... @@ -664,9 +664,9 @@
664 664  )))
665 665  
666 666  
677 +
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  
707 +
697 697  == 7.2 LoRa® Class ==
698 698  
699 699  
... ... @@ -713,6 +713,7 @@
713 713  )))
714 714  
715 715  
727 +
716 716  == 7.3 Duty Cycle Setting ==
717 717  
718 718  
... ... @@ -732,12 +732,18 @@
732 732  )))
733 733  
734 734  
747 +
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
751 +Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) .
739 739  
753 +(% style="color:red" %)
754 +**Notice:**
740 740  
756 +* 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.
757 +* 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/]]
758 +
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  
779 +
761 761  == 7.5 Frame Counter Downlink ==
762 762  
763 763  
... ... @@ -777,6 +777,7 @@
777 777  )))
778 778  
779 779  
799 +
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  
818 +
798 798  == 7.7 Join Accept Delay1 ==
799 799  
800 800  
... ... @@ -814,6 +814,7 @@
814 814  )))
815 815  
816 816  
838 +
817 817  == 7.8 Join Accept Delay2 ==
818 818  
819 819  
... ... @@ -833,6 +833,7 @@
833 833  )))
834 834  
835 835  
858 +
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  
887 +
864 864  == 7.10 Receive Delay1 ==
865 865  
866 866  
... ... @@ -880,6 +880,7 @@
880 880  )))
881 881  
882 882  
907 +
883 883  == 7.11 Receive Delay2 ==
884 884  
885 885  
... ... @@ -899,6 +899,7 @@
899 899  )))
900 900  
901 901  
927 +
902 902  == 7.12 Rx2 Window Data Rate ==
903 903  
904 904  
... ... @@ -918,6 +918,7 @@
918 918  )))
919 919  
920 920  
947 +
921 921  == 7.13 Rx2 Window Frequency ==
922 922  
923 923  
... ... @@ -937,6 +937,7 @@
937 937  )))
938 938  
939 939  
967 +
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  
996 +
968 968  == 7.15 RSSI of the Last Received Packet ==
969 969  
970 970  
... ... @@ -981,6 +981,7 @@
981 981  )))
982 982  
983 983  
1013 +
984 984  == 7.16 SNR of the Last Received Packet ==
985 985  
986 986  
... ... @@ -997,6 +997,7 @@
997 997  )))
998 998  
999 999  
1030 +
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  
1057 +
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  
1075 +
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**
1094 +(% 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  
1104 +
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  
1156 +
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  
1183 +
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  
1224 +
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  
1256 +
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  
1302 +
1265 1265  == 7.26 Request the server to send an ACK ==
1266 1266  
1267 1267  
... ... @@ -1308,9 +1308,9 @@
1308 1308  * **Example 2: **Downlink Payload: 260002  ~/~/ Set AT+RJTDC=2
1309 1309  
1310 1310  
1349 +
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  
1359 +
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