<
From version < 54.1 >
edited by Edwin Chen
on 2022/10/16 07:37
To version < 52.11 >
edited by Xiaoling
on 2022/09/19 15:00
>
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
... ... @@ -25,11 +25,12 @@
25 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 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:
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]], [[How to Convert>>http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H4.1ConvertHEXtoBase64]]?
28 +** Use Base64 format to send a downlink: [[Chirpstack>>Notes for ChirpStack]]
29 29  ** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server)
30 30  
31 31  
32 32  
33 +
33 33  = 3. Support End Node and firmware version =
34 34  
35 35  
... ... @@ -106,8 +106,10 @@
106 106  
107 107  
108 108  
110 +
109 109  = 4. System Management Commands =
110 110  
113 +
111 111  == 4.1 Change Uplink Interval ==
112 112  
113 113  
... ... @@ -145,6 +145,7 @@
145 145  
146 146  
147 147  
151 +
148 148  == 4.2 Reboot End Node ==
149 149  
150 150  
... ... @@ -312,8 +312,10 @@
312 312  
313 313  
314 314  
319 +
315 315  = 5. Keys, IDs and EUIs management =
316 316  
322 +
317 317  == 5.1 Application EUI ==
318 318  
319 319  
... ... @@ -332,6 +332,7 @@
332 332  
333 333  
334 334  
341 +
335 335  == 5.2 Application Key ==
336 336  
337 337  
... ... @@ -350,6 +350,7 @@
350 350  
351 351  
352 352  
360 +
353 353  == 5.3 Application Session Key ==
354 354  
355 355  
... ... @@ -370,6 +370,7 @@
370 370  
371 371  
372 372  
381 +
373 373  == 5.4 Device Address ==
374 374  
375 375  
... ... @@ -390,6 +390,7 @@
390 390  
391 391  
392 392  
402 +
393 393  == 5.5 Device EUI ==
394 394  
395 395  
... ... @@ -410,6 +410,7 @@
410 410  
411 411  
412 412  
423 +
413 413  == 5.6 Network ID ==
414 414  
415 415  
... ... @@ -428,6 +428,7 @@
428 428  
429 429  
430 430  
442 +
431 431  == 5.7 Network Session Key ==
432 432  
433 433  
... ... @@ -446,10 +446,13 @@
446 446  
447 447  
448 448  
461 +
449 449  = 6. Joining and sending date on LoRaWAN network =
450 450  
464 +
451 451  == 6.1 Confirm Mode ==
452 452  
467 +
453 453  === 6.1.1  AT+CFM command before DR-LWS007 software stack ===
454 454  
455 455  
... ... @@ -467,6 +467,8 @@
467 467  |(% style="width:155px" %)AT+CFM=1|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)OK
468 468  |(% style="width:155px" %)AT+CFM=2|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)While Error in format, return AT_PARAM_ERROR
469 469  
485 +
486 +
470 470  (% style="color:blue" %)**Downlink Command: 0x05**
471 471  
472 472  Format: Command Code (0x05) followed by 2 bytes mode value.
... ... @@ -478,6 +478,7 @@
478 478  
479 479  
480 480  
498 +
481 481  === 6.1.2  AT+CFM command since DR-LWS007 software stack ===
482 482  
483 483  
... ... @@ -514,6 +514,8 @@
514 514  OK
515 515  )))
516 516  
535 +
536 +
517 517  (% style="color:blue" %)**Downlink Command: 0x05**
518 518  
519 519  Format: Command Code (0x05) followed by 2 bytes mode value.
... ... @@ -525,6 +525,7 @@
525 525  
526 526  
527 527  
548 +
528 528  == 6.2 Confirm Status ==
529 529  
530 530  
... ... @@ -542,6 +542,7 @@
542 542  
543 543  
544 544  
566 +
545 545  == 6.3 Join LoRa® Network ==
546 546  
547 547  
... ... @@ -561,6 +561,7 @@
561 561  
562 562  
563 563  
586 +
564 564  == 6.4 LoRa® Network Join Mode ==
565 565  
566 566  
... ... @@ -578,6 +578,8 @@
578 578  |(% style="width:162px" %)AT+NJM=0|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)OK
579 579  |(% style="width:162px" %)AT+NJM=2|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)While Error in format, return AT_PARAM_ERROR
580 580  
604 +
605 +
581 581  (% style="color:blue" %)**Downlink Command: 0x20**
582 582  
583 583  Format: Command Code (0x20) followed by 1 bytes mode value.
... ... @@ -589,6 +589,7 @@
589 589  
590 590  
591 591  
617 +
592 592  == 6.5 LoRa® Network Join Status ==
593 593  
594 594  
... ... @@ -606,6 +606,7 @@
606 606  
607 607  
608 608  
635 +
609 609  == 6.6 Print Last Received Data in Raw Format ==
610 610  
611 611  
... ... @@ -623,6 +623,7 @@
623 623  
624 624  
625 625  
653 +
626 626  == 6.7 Print Last Received Data in Binary Format ==
627 627  
628 628  
... ... @@ -640,6 +640,7 @@
640 640  
641 641  
642 642  
671 +
643 643  == 6.8 Send Text Data ==
644 644  
645 645  
... ... @@ -661,6 +661,7 @@
661 661  
662 662  
663 663  
693 +
664 664  == 6.9 Send Hexadecimal Data ==
665 665  
666 666  
... ... @@ -681,8 +681,10 @@
681 681  
682 682  
683 683  
714 +
684 684  = 7. LoRaWAN network management =
685 685  
717 +
686 686  == 7.1 Adaptive Data Rate ==
687 687  
688 688  
... ... @@ -702,6 +702,8 @@
702 702  AT_PARAM_ERROR
703 703  )))
704 704  
737 +
738 +
705 705  (% style="color:blue" %)**Downlink Command: 0x22**
706 706  
707 707  If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22.
... ... @@ -711,6 +711,7 @@
711 711  
712 712  
713 713  
748 +
714 714  == 7.2 LoRa® Class ==
715 715  
716 716  
... ... @@ -731,6 +731,7 @@
731 731  
732 732  
733 733  
769 +
734 734  == 7.3 Duty Cycle Setting ==
735 735  
736 736  
... ... @@ -751,14 +751,12 @@
751 751  
752 752  
753 753  
790 +
754 754  == 7.4 Data Rate ==
755 755  
756 756  
757 -Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) .
794 +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
758 758  
759 -(% style="color:red" %)
760 -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.
761 -(%%)
762 762  
763 763  (% style="color:blue" %)**AT Command: AT+DR**
764 764  
... ... @@ -772,6 +772,8 @@
772 772  
773 773  )))
774 774  
809 +
810 +
775 775  (% style="color:blue" %)**Downlink Command: 0x2200aaFF**
776 776  
777 777  If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF.
... ... @@ -781,6 +781,7 @@
781 781  
782 782  
783 783  
820 +
784 784  == 7.5 Frame Counter Downlink ==
785 785  
786 786  
... ... @@ -801,6 +801,7 @@
801 801  
802 802  
803 803  
841 +
804 804  == 7.6 Frame Counter Uplink ==
805 805  
806 806  Feature: Get or Set the Frame Counter Uplink.
... ... @@ -820,6 +820,7 @@
820 820  
821 821  
822 822  
861 +
823 823  == 7.7 Join Accept Delay1 ==
824 824  
825 825  
... ... @@ -840,6 +840,7 @@
840 840  
841 841  
842 842  
882 +
843 843  == 7.8 Join Accept Delay2 ==
844 844  
845 845  
... ... @@ -860,6 +860,7 @@
860 860  
861 861  
862 862  
903 +
863 863  == 7.9 Public Network Mode ==
864 864  
865 865  
... ... @@ -889,6 +889,7 @@
889 889  
890 890  
891 891  
933 +
892 892  == 7.10 Receive Delay1 ==
893 893  
894 894  
... ... @@ -909,6 +909,7 @@
909 909  
910 910  
911 911  
954 +
912 912  == 7.11 Receive Delay2 ==
913 913  
914 914  
... ... @@ -929,6 +929,7 @@
929 929  
930 930  
931 931  
975 +
932 932  == 7.12 Rx2 Window Data Rate ==
933 933  
934 934  
... ... @@ -949,6 +949,7 @@
949 949  
950 950  
951 951  
996 +
952 952  == 7.13 Rx2 Window Frequency ==
953 953  
954 954  
... ... @@ -969,6 +969,7 @@
969 969  
970 970  
971 971  
1017 +
972 972  == 7.14 Transmit Power ==
973 973  
974 974  
... ... @@ -998,6 +998,7 @@
998 998  
999 999  
1000 1000  
1047 +
1001 1001  == 7.15 RSSI of the Last Received Packet ==
1002 1002  
1003 1003  
... ... @@ -1015,6 +1015,7 @@
1015 1015  
1016 1016  
1017 1017  
1065 +
1018 1018  == 7.16 SNR of the Last Received Packet ==
1019 1019  
1020 1020  
... ... @@ -1032,6 +1032,7 @@
1032 1032  
1033 1033  
1034 1034  
1083 +
1035 1035  == 7.17 Application Port ==
1036 1036  
1037 1037  
... ... @@ -1048,6 +1048,8 @@
1048 1048  )))
1049 1049  |(% style="width:157px" %)AT+PORT=21|(% style="width:204px" %)Set the application port|(% style="width:135px" %)OK
1050 1050  
1100 +
1101 +
1051 1051  (% style="color:blue" %)**Downlink Command: 0x23**
1052 1052  
1053 1053  Format: Command Code (0x23) followed by 1 bytes port value.
... ... @@ -1059,6 +1059,7 @@
1059 1059  
1060 1060  
1061 1061  
1113 +
1062 1062  == 7.18 Single Channel Mode ==
1063 1063  
1064 1064  
... ... @@ -1077,6 +1077,7 @@
1077 1077  
1078 1078  
1079 1079  
1132 +
1080 1080  == 7.19 Eight Channel Mode ==
1081 1081  
1082 1082  
... ... @@ -1095,6 +1095,8 @@
1095 1095  )))
1096 1096  |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK
1097 1097  
1151 +
1152 +
1098 1098  (% style="color:blue" %)**Downlink Command: 0x24**
1099 1099  
1100 1100  Format: Command Code (0x24) followed by 1 bytes channel value.
... ... @@ -1106,6 +1106,7 @@
1106 1106  
1107 1107  
1108 1108  
1164 +
1109 1109  == 7.20 Get or Set RXwindows1 timeout ==
1110 1110  
1111 1111  
... ... @@ -1159,6 +1159,7 @@
1159 1159  
1160 1160  
1161 1161  
1218 +
1162 1162  == 7.22 Setting up uplinkdwelltime (as923, au915) ==
1163 1163  
1164 1164  
... ... @@ -1175,6 +1175,8 @@
1175 1175  )))
1176 1176  |(% style="width:183px" %)AT+DWELLT=0|(% style="width:179px" %)Set uplinkdwelltime|(% style="width:131px" %)OK
1177 1177  
1235 +
1236 +
1178 1178  (% style="color:blue" %)**Downlink Command: 0x25**
1179 1179  
1180 1180  Format: Command Code (0x25) followed by 1 bytes state value.
... ... @@ -1186,6 +1186,7 @@
1186 1186  
1187 1187  
1188 1188  
1248 +
1189 1189  == 7.23 Set Packet Receiving Response Level ==
1190 1190  
1191 1191  
... ... @@ -1206,6 +1206,9 @@
1206 1206  * For Class C devices used in ChirpStack, need to set AT+RPL=4 because Chirpstack require immedietely reply message to MAC Command.
1207 1207  * 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.
1208 1208  
1269 +
1270 +
1271 +
1209 1209  (% style="color:blue" %)**AT Command: AT+RPL**
1210 1210  
1211 1211  (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %)
... ... @@ -1216,6 +1216,8 @@
1216 1216  )))
1217 1217  |(% style="width:160px" %)AT+RPL=0|(% style="width:263px" %)Set packet receiving response level|(% style="width:109px" %)OK
1218 1218  
1282 +
1283 +
1219 1219  (% style="color:blue" %)**Downlink Command: 0x21**
1220 1220  
1221 1221  Format: Command Code (0x21) followed by 1 bytes level value.
... ... @@ -1227,6 +1227,7 @@
1227 1227  
1228 1228  
1229 1229  
1295 +
1230 1230  == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) ==
1231 1231  
1232 1232  
... ... @@ -1248,6 +1248,8 @@
1248 1248  OK
1249 1249  )))
1250 1250  
1317 +
1318 +
1251 1251  (% style="color:blue" %)**Downlink Command: 0x33**
1252 1252  
1253 1253  Format: Command Code (0x33) followed by 2 bytes mode value.
... ... @@ -1259,6 +1259,7 @@
1259 1259  
1260 1260  
1261 1261  
1330 +
1262 1262  == 7.25 Device offline rejoining (LWS007) ==
1263 1263  
1264 1264  
... ... @@ -1295,6 +1295,8 @@
1295 1295  OK
1296 1296  )))
1297 1297  
1367 +
1368 +
1298 1298  (% style="color:blue" %)**Downlink Command: 0x33**
1299 1299  
1300 1300  Format: Command Code (0x32) followed by 2 bytes mode value.
... ... @@ -1305,6 +1305,7 @@
1305 1305  
1306 1306  
1307 1307  
1379 +
1308 1308  == 7.26 Request the server to send an ACK ==
1309 1309  
1310 1310  
... ... @@ -1324,6 +1324,7 @@
1324 1324  
1325 1325  
1326 1326  
1399 +
1327 1327  == 7.27 Adjust network rejoining interval ==
1328 1328  
1329 1329  
... ... @@ -1341,6 +1341,8 @@
1341 1341  Set the ReJoin data transmission interval to 60000ms = 60 seconds
1342 1342  )))
1343 1343  
1417 +
1418 +
1344 1344  (% style="color:blue" %)**Downlink Command: 0x26**
1345 1345  
1346 1346  Format: Command Code (0x26) followed by 2 bytes mode value.
... ... @@ -1352,16 +1352,19 @@
1352 1352  
1353 1353  
1354 1354  
1430 +
1355 1355  = 8. AT Commands Combination =
1356 1356  
1433 +
1357 1357  == 8.1 Set a fix RX2DR for downlink window ==
1358 1358  
1359 1359  
1360 1360  * (% style="color:blue" %)**AT+ADR=0             **(%%) **~-~->**  Disable ADR first
1361 -* (% style="color:blue" %)**AT+RX2DR=xxxx**   (%%) **~-~->**  Set xxxx to your wanted DataRate
1438 +* (% style="color:red" %)**AT+RX2DR=xxxx**   (%%) **~-~->**  Set xxxx to your wanted DataRate
1362 1362  
1363 1363  
1364 1364  
1442 +
1365 1365  == 8.2 Use Downlink Command to set a fix uplink DR ==
1366 1366  
1367 1367  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0