<
From version < 52.12 >
edited by Xiaoling
on 2022/09/19 15:25
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
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,15 +22,13 @@
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 -** Use Base64 format to send a downlink: [[Chirpstack>>Notes for ChirpStack]]
27 +** 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  
32 -
33 -
34 34  = 3. Support End Node and firmware version =
35 35  
36 36  
... ... @@ -107,10 +107,8 @@
107 107  
108 108  
109 109  
110 -
111 111  = 4. System Management Commands =
112 112  
113 -
114 114  == 4.1 Change Uplink Interval ==
115 115  
116 116  
... ... @@ -148,7 +148,6 @@
148 148  
149 149  
150 150  
151 -
152 152  == 4.2 Reboot End Node ==
153 153  
154 154  
... ... @@ -183,7 +183,6 @@
183 183  (((
184 184  If the downlink payload=**04FF**, the end node will reboot.
185 185  
186 -
187 187  
188 188  )))
189 189  
... ... @@ -223,7 +223,6 @@
223 223  )))
224 224  
225 225  
226 -
227 227  == 4.4 Show Firmware Version ==
228 228  
229 229  
... ... @@ -254,7 +254,6 @@
254 254  (((
255 255  
256 256  
257 -
258 258  **xx: Software Type:**
259 259  )))
260 260  
... ... @@ -288,7 +288,6 @@
288 288  firmware version: v1.1.0 ~-~-> 110
289 289  
290 290  
291 -
292 292  == 4.5 Show System Configure ==
293 293  
294 294  
... ... @@ -316,10 +316,8 @@
316 316  
317 317  
318 318  
319 -
320 320  = 5. Keys, IDs and EUIs management =
321 321  
322 -
323 323  == 5.1 Application EUI ==
324 324  
325 325  
... ... @@ -338,7 +338,6 @@
338 338  
339 339  
340 340  
341 -
342 342  == 5.2 Application Key ==
343 343  
344 344  
... ... @@ -357,7 +357,6 @@
357 357  
358 358  
359 359  
360 -
361 361  == 5.3 Application Session Key ==
362 362  
363 363  
... ... @@ -378,7 +378,6 @@
378 378  
379 379  
380 380  
381 -
382 382  == 5.4 Device Address ==
383 383  
384 384  
... ... @@ -399,7 +399,6 @@
399 399  
400 400  
401 401  
402 -
403 403  == 5.5 Device EUI ==
404 404  
405 405  
... ... @@ -420,7 +420,6 @@
420 420  
421 421  
422 422  
423 -
424 424  == 5.6 Network ID ==
425 425  
426 426  
... ... @@ -439,7 +439,6 @@
439 439  
440 440  
441 441  
442 -
443 443  == 5.7 Network Session Key ==
444 444  
445 445  
... ... @@ -458,13 +458,10 @@
458 458  
459 459  
460 460  
461 -
462 462  = 6. Joining and sending date on LoRaWAN network =
463 463  
464 -
465 465  == 6.1 Confirm Mode ==
466 466  
467 -
468 468  === 6.1.1  AT+CFM command before DR-LWS007 software stack ===
469 469  
470 470  
... ... @@ -493,7 +493,6 @@
493 493  
494 494  
495 495  
496 -
497 497  === 6.1.2  AT+CFM command since DR-LWS007 software stack ===
498 498  
499 499  
... ... @@ -541,7 +541,6 @@
541 541  
542 542  
543 543  
544 -
545 545  == 6.2 Confirm Status ==
546 546  
547 547  
... ... @@ -559,7 +559,6 @@
559 559  
560 560  
561 561  
562 -
563 563  == 6.3 Join LoRa® Network ==
564 564  
565 565  
... ... @@ -579,7 +579,6 @@
579 579  
580 580  
581 581  
582 -
583 583  == 6.4 LoRa® Network Join Mode ==
584 584  
585 585  
... ... @@ -608,7 +608,6 @@
608 608  
609 609  
610 610  
611 -
612 612  == 6.5 LoRa® Network Join Status ==
613 613  
614 614  
... ... @@ -626,7 +626,6 @@
626 626  
627 627  
628 628  
629 -
630 630  == 6.6 Print Last Received Data in Raw Format ==
631 631  
632 632  
... ... @@ -644,7 +644,6 @@
644 644  
645 645  
646 646  
647 -
648 648  == 6.7 Print Last Received Data in Binary Format ==
649 649  
650 650  
... ... @@ -662,7 +662,6 @@
662 662  
663 663  
664 664  
665 -
666 666  == 6.8 Send Text Data ==
667 667  
668 668  
... ... @@ -684,7 +684,6 @@
684 684  
685 685  
686 686  
687 -
688 688  == 6.9 Send Hexadecimal Data ==
689 689  
690 690  
... ... @@ -705,10 +705,8 @@
705 705  
706 706  
707 707  
708 -
709 709  = 7. LoRaWAN network management =
710 710  
711 -
712 712  == 7.1 Adaptive Data Rate ==
713 713  
714 714  
... ... @@ -737,7 +737,6 @@
737 737  
738 738  
739 739  
740 -
741 741  == 7.2 LoRa® Class ==
742 742  
743 743  
... ... @@ -758,7 +758,6 @@
758 758  
759 759  
760 760  
761 -
762 762  == 7.3 Duty Cycle Setting ==
763 763  
764 764  
... ... @@ -779,13 +779,17 @@
779 779  
780 780  
781 781  
782 -
783 783  == 7.4 Data Rate ==
784 784  
785 785  
786 -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) .
787 787  
753 +(% style="color:red" %)
754 +**Notice:**
788 788  
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 +
789 789  (% style="color:blue" %)**AT Command: AT+DR**
790 790  
791 791  (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %)
... ... @@ -807,7 +807,6 @@
807 807  
808 808  
809 809  
810 -
811 811  == 7.5 Frame Counter Downlink ==
812 812  
813 813  
... ... @@ -828,7 +828,6 @@
828 828  
829 829  
830 830  
831 -
832 832  == 7.6 Frame Counter Uplink ==
833 833  
834 834  Feature: Get or Set the Frame Counter Uplink.
... ... @@ -848,7 +848,6 @@
848 848  
849 849  
850 850  
851 -
852 852  == 7.7 Join Accept Delay1 ==
853 853  
854 854  
... ... @@ -869,7 +869,6 @@
869 869  
870 870  
871 871  
872 -
873 873  == 7.8 Join Accept Delay2 ==
874 874  
875 875  
... ... @@ -890,7 +890,6 @@
890 890  
891 891  
892 892  
893 -
894 894  == 7.9 Public Network Mode ==
895 895  
896 896  
... ... @@ -920,7 +920,6 @@
920 920  
921 921  
922 922  
923 -
924 924  == 7.10 Receive Delay1 ==
925 925  
926 926  
... ... @@ -941,7 +941,6 @@
941 941  
942 942  
943 943  
944 -
945 945  == 7.11 Receive Delay2 ==
946 946  
947 947  
... ... @@ -962,7 +962,6 @@
962 962  
963 963  
964 964  
965 -
966 966  == 7.12 Rx2 Window Data Rate ==
967 967  
968 968  
... ... @@ -983,7 +983,6 @@
983 983  
984 984  
985 985  
986 -
987 987  == 7.13 Rx2 Window Frequency ==
988 988  
989 989  
... ... @@ -1004,7 +1004,6 @@
1004 1004  
1005 1005  
1006 1006  
1007 -
1008 1008  == 7.14 Transmit Power ==
1009 1009  
1010 1010  
... ... @@ -1034,7 +1034,6 @@
1034 1034  
1035 1035  
1036 1036  
1037 -
1038 1038  == 7.15 RSSI of the Last Received Packet ==
1039 1039  
1040 1040  
... ... @@ -1052,7 +1052,6 @@
1052 1052  
1053 1053  
1054 1054  
1055 -
1056 1056  == 7.16 SNR of the Last Received Packet ==
1057 1057  
1058 1058  
... ... @@ -1070,7 +1070,6 @@
1070 1070  
1071 1071  
1072 1072  
1073 -
1074 1074  == 7.17 Application Port ==
1075 1075  
1076 1076  
... ... @@ -1098,7 +1098,6 @@
1098 1098  
1099 1099  
1100 1100  
1101 -
1102 1102  == 7.18 Single Channel Mode ==
1103 1103  
1104 1104  
... ... @@ -1117,7 +1117,6 @@
1117 1117  
1118 1118  
1119 1119  
1120 -
1121 1121  == 7.19 Eight Channel Mode ==
1122 1122  
1123 1123  
... ... @@ -1136,7 +1136,7 @@
1136 1136  )))
1137 1137  |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK
1138 1138  
1139 -(% style="color:blue" %)**Downlink Command: 0x24**
1094 +(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)**
1140 1140  
1141 1141  Format: Command Code (0x24) followed by 1 bytes channel value.
1142 1142  
... ... @@ -1147,7 +1147,6 @@
1147 1147  
1148 1148  
1149 1149  
1150 -
1151 1151  == 7.20 Get or Set RXwindows1 timeout ==
1152 1152  
1153 1153  
... ... @@ -1179,7 +1179,6 @@
1179 1179  (((
1180 1180  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.
1181 1181  
1182 -
1183 1183  
1184 1184  )))
1185 1185  
... ... @@ -1201,7 +1201,6 @@
1201 1201  
1202 1202  
1203 1203  
1204 -
1205 1205  == 7.22 Setting up uplinkdwelltime (as923, au915) ==
1206 1206  
1207 1207  
... ... @@ -1229,7 +1229,6 @@
1229 1229  
1230 1230  
1231 1231  
1232 -
1233 1233  == 7.23 Set Packet Receiving Response Level ==
1234 1234  
1235 1235  
... ... @@ -1250,8 +1250,6 @@
1250 1250  * For Class C devices used in ChirpStack, need to set AT+RPL=4 because Chirpstack require immedietely reply message to MAC Command.
1251 1251  * 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.
1252 1252  
1253 -
1254 -
1255 1255  (% style="color:blue" %)**AT Command: AT+RPL**
1256 1256  
1257 1257  (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %)
... ... @@ -1273,7 +1273,6 @@
1273 1273  
1274 1274  
1275 1275  
1276 -
1277 1277  == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) ==
1278 1278  
1279 1279  
... ... @@ -1306,7 +1306,6 @@
1306 1306  
1307 1307  
1308 1308  
1309 -
1310 1310  == 7.25 Device offline rejoining (LWS007) ==
1311 1311  
1312 1312  
... ... @@ -1353,7 +1353,6 @@
1353 1353  
1354 1354  
1355 1355  
1356 -
1357 1357  == 7.26 Request the server to send an ACK ==
1358 1358  
1359 1359  
... ... @@ -1372,6 +1372,7 @@
1372 1372  )))
1373 1373  
1374 1374  
1321 +
1375 1375  == 7.27 Adjust network rejoining interval ==
1376 1376  
1377 1377  
... ... @@ -1400,10 +1400,8 @@
1400 1400  
1401 1401  
1402 1402  
1403 -
1404 1404  = 8. AT Commands Combination =
1405 1405  
1406 -
1407 1407  == 8.1 Set a fix RX2DR for downlink window ==
1408 1408  
1409 1409  
... ... @@ -1412,7 +1412,6 @@
1412 1412  
1413 1413  
1414 1414  
1415 -
1416 1416  == 8.2 Use Downlink Command to set a fix uplink DR ==
1417 1417  
1418 1418  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0