<
From version < 53.1 >
edited by Edwin Chen
on 2022/10/10 19:39
To version < 57.1 >
edited by Edwin Chen
on 2022/10/21 10:47
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -22,13 +22,12 @@
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:
25 +* **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/]]
26 +* **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 -
32 32  = 3. Support End Node and firmware version =
33 33  
34 34  
... ... @@ -103,10 +103,8 @@
103 103  )))
104 104  )))
105 105  
106 -
107 107  = 4. System Management Commands =
108 108  
109 -
110 110  == 4.1 Change Uplink Interval ==
111 111  
112 112  
... ... @@ -142,7 +142,6 @@
142 142  * **Example 1**: Downlink Payload:** 0100001E**  ~/~/ Set Transmit Interval (TDC) = 30 seconds
143 143  * **Example 2**: Downlink Payload:** 0100003C**  ~/~/ Set Transmit Interval (TDC) = 60 seconds
144 144  
145 -
146 146  == 4.2 Reboot End Node ==
147 147  
148 148  
... ... @@ -308,10 +308,8 @@
308 308  OK
309 309  )))
310 310  
311 -
312 312  = 5. Keys, IDs and EUIs management =
313 313  
314 -
315 315  == 5.1 Application EUI ==
316 316  
317 317  
... ... @@ -328,7 +328,6 @@
328 328  )))
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 -
332 332  == 5.2 Application Key ==
333 333  
334 334  
... ... @@ -345,7 +345,6 @@
345 345  )))
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 -
349 349  == 5.3 Application Session Key ==
350 350  
351 351  
... ... @@ -364,7 +364,6 @@
364 364  OK
365 365  )))
366 366  
367 -
368 368  == 5.4 Device Address ==
369 369  
370 370  
... ... @@ -383,7 +383,6 @@
383 383  )))
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 -
387 387  == 5.5 Device EUI ==
388 388  
389 389  
... ... @@ -402,7 +402,6 @@
402 402  OK
403 403  )))
404 404  
405 -
406 406  == 5.6 Network ID ==
407 407  
408 408  
... ... @@ -419,7 +419,6 @@
419 419  )))
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 -
423 423  == 5.7 Network Session Key ==
424 424  
425 425  
... ... @@ -436,13 +436,10 @@
436 436  )))
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 -
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  
... ... @@ -469,7 +469,6 @@
469 469  * **Example 1:** Downlink Payload: 0501  ~/~/ Set AT+CFM=1
470 470  * **Example 2:** Downlink Payload: 0500  ~/~/ Set AT+CFM=0
471 471  
472 -
473 473  === 6.1.2  AT+CFM command since DR-LWS007 software stack ===
474 474  
475 475  
... ... @@ -515,7 +515,6 @@
515 515  * **Example 1:** Downlink Payload: 05010101  ~/~/ Set AT+CFM=1,1,1
516 516  * **Example 2:** Downlink Payload: 05000700  ~/~/ Set AT+CFM=0,7,0
517 517  
518 -
519 519  == 6.2 Confirm Status ==
520 520  
521 521  
... ... @@ -531,7 +531,6 @@
531 531  OK
532 532  )))
533 533  
534 -
535 535  == 6.3 Join LoRa® Network ==
536 536  
537 537  
... ... @@ -549,7 +549,6 @@
549 549  While Error in format, return AT_BUSY_ERROR
550 550  )))
551 551  
552 -
553 553  == 6.4 LoRa® Network Join Mode ==
554 554  
555 555  
... ... @@ -576,7 +576,6 @@
576 576  * **Example 1: **Downlink Payload: **2000                  ** ~/~/ Set AT+NJM=0
577 577  * **Example 2:** Downlink Payload: **2001**  ~/~/ Set AT+NJM=1
578 578  
579 -
580 580  == 6.5 LoRa® Network Join Status ==
581 581  
582 582  
... ... @@ -592,7 +592,6 @@
592 592  OK
593 593  )))
594 594  
595 -
596 596  == 6.6 Print Last Received Data in Raw Format ==
597 597  
598 598  
... ... @@ -608,7 +608,6 @@
608 608  OK
609 609  )))
610 610  
611 -
612 612  == 6.7 Print Last Received Data in Binary Format ==
613 613  
614 614  
... ... @@ -624,7 +624,6 @@
624 624  OK
625 625  )))
626 626  
627 -
628 628  == 6.8 Send Text Data ==
629 629  
630 630  
... ... @@ -644,7 +644,6 @@
644 644  
645 645  )))
646 646  
647 -
648 648  == 6.9 Send Hexadecimal Data ==
649 649  
650 650  
... ... @@ -663,10 +663,8 @@
663 663  
664 664  )))
665 665  
666 -
667 667  = 7. LoRaWAN network management =
668 668  
669 -
670 670  == 7.1 Adaptive Data Rate ==
671 671  
672 672  
... ... @@ -693,7 +693,6 @@
693 693  * **Example 1**: Downlink Payload: **2201**  ~/~/ Set AT+ADR=1.
694 694  * **Example 2**: Downlink Payload: **2200FFFF**  ~/~/ Set AT+ADR=0.
695 695  
696 -
697 697  == 7.2 LoRa® Class ==
698 698  
699 699  
... ... @@ -712,7 +712,6 @@
712 712  
713 713  )))
714 714  
715 -
716 716  == 7.3 Duty Cycle Setting ==
717 717  
718 718  
... ... @@ -731,13 +731,17 @@
731 731  
732 732  )))
733 733  
734 -
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
709 +Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) .
739 739  
711 +(% style="color:red" %)
712 +**Notice:**
740 740  
714 +* 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.
715 +* 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/]]
716 +
741 741  (% style="color:blue" %)**AT Command: AT+DR**
742 742  
743 743  (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %)
... ... @@ -757,7 +757,6 @@
757 757  * **Example 1**: Downlink Payload: **220001FF**  ~/~/ Set AT+DR=1.
758 758  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+DR=0.
759 759  
760 -
761 761  == 7.5 Frame Counter Downlink ==
762 762  
763 763  
... ... @@ -776,7 +776,6 @@
776 776  OK
777 777  )))
778 778  
779 -
780 780  == 7.6 Frame Counter Uplink ==
781 781  
782 782  Feature: Get or Set the Frame Counter Uplink.
... ... @@ -794,7 +794,6 @@
794 794  
795 795  )))
796 796  
797 -
798 798  == 7.7 Join Accept Delay1 ==
799 799  
800 800  
... ... @@ -813,7 +813,6 @@
813 813  
814 814  )))
815 815  
816 -
817 817  == 7.8 Join Accept Delay2 ==
818 818  
819 819  
... ... @@ -832,7 +832,6 @@
832 832  
833 833  )))
834 834  
835 -
836 836  == 7.9 Public Network Mode ==
837 837  
838 838  
... ... @@ -860,7 +860,6 @@
860 860  )))
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 -
864 864  == 7.10 Receive Delay1 ==
865 865  
866 866  
... ... @@ -879,7 +879,6 @@
879 879  
880 880  )))
881 881  
882 -
883 883  == 7.11 Receive Delay2 ==
884 884  
885 885  
... ... @@ -898,7 +898,6 @@
898 898  
899 899  )))
900 900  
901 -
902 902  == 7.12 Rx2 Window Data Rate ==
903 903  
904 904  
... ... @@ -917,7 +917,6 @@
917 917  
918 918  )))
919 919  
920 -
921 921  == 7.13 Rx2 Window Frequency ==
922 922  
923 923  
... ... @@ -936,7 +936,6 @@
936 936  
937 937  )))
938 938  
939 -
940 940  == 7.14 Transmit Power ==
941 941  
942 942  
... ... @@ -964,7 +964,6 @@
964 964  * **Example 1**: Downlink Payload: **22000102**  ~/~/ Set AT+TXP=2.
965 965  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+TXP=0.
966 966  
967 -
968 968  == 7.15 RSSI of the Last Received Packet ==
969 969  
970 970  
... ... @@ -980,7 +980,6 @@
980 980  OK
981 981  )))
982 982  
983 -
984 984  == 7.16 SNR of the Last Received Packet ==
985 985  
986 986  
... ... @@ -996,7 +996,6 @@
996 996  OK
997 997  )))
998 998  
999 -
1000 1000  == 7.17 Application Port ==
1001 1001  
1002 1002  
... ... @@ -1022,7 +1022,6 @@
1022 1022  * **Example 1**: Downlink Payload: **2301**  ~/~/ set the application port to 1
1023 1023  * **Example 2**: Downlink Payload:** 2305**  ~/~/ set the application port to 5
1024 1024  
1025 -
1026 1026  == 7.18 Single Channel Mode ==
1027 1027  
1028 1028  
... ... @@ -1039,7 +1039,6 @@
1039 1039  )))
1040 1040  |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK
1041 1041  
1042 -
1043 1043  == 7.19 Eight Channel Mode ==
1044 1044  
1045 1045  
... ... @@ -1067,7 +1067,6 @@
1067 1067  * **Example 1**: Downlink Payload: 2401  ~/~/ set channel mode to 1
1068 1068  * **Example 2**: Downlink Payload: 2405  ~/~/ set channel mode to 5
1069 1069  
1070 -
1071 1071  == 7.20 Get or Set RXwindows1 timeout ==
1072 1072  
1073 1073  
... ... @@ -1119,7 +1119,6 @@
1119 1119  )))
1120 1120  |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK
1121 1121  
1122 -
1123 1123  == 7.22 Setting up uplinkdwelltime (as923, au915) ==
1124 1124  
1125 1125  
... ... @@ -1145,7 +1145,6 @@
1145 1145  * **Example 1**: Downlink Payload: **2501**  ~/~/ set uplinkdwelltime to 1
1146 1146  * **Example 2**: Downlink Payload: **2500**  ~/~/ set uplinkdwelltime to 0
1147 1147  
1148 -
1149 1149  == 7.23 Set Packet Receiving Response Level ==
1150 1150  
1151 1151  
... ... @@ -1185,7 +1185,6 @@
1185 1185  * **Example 1**: Downlink Payload: **2101**  ~/~/ set packet receiving response level to 1
1186 1186  * **Example 2**: Downlink Payload: **2102**  ~/~/ set packet receiving response level to 2
1187 1187  
1188 -
1189 1189  == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) ==
1190 1190  
1191 1191  
... ... @@ -1216,7 +1216,6 @@
1216 1216  * Example 1: Downlink Payload: 330100  ~/~/ Set AT+SETMAXNBTRANS=1,0
1217 1217  * Example 2: Downlink Payload: 330201  ~/~/ Set AT+SETMAXNBTRANS=2,1
1218 1218  
1219 -
1220 1220  == 7.25 Device offline rejoining (LWS007) ==
1221 1221  
1222 1222  
... ... @@ -1261,7 +1261,6 @@
1261 1261  
1262 1262  * **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1263 1263  
1264 -
1265 1265  == 7.26 Request the server to send an ACK ==
1266 1266  
1267 1267  
... ... @@ -1279,8 +1279,6 @@
1279 1279  OK
1280 1280  )))
1281 1281  
1282 -
1283 -
1284 1284  == 7.27 Adjust network rejoining interval ==
1285 1285  
1286 1286  
... ... @@ -1307,10 +1307,8 @@
1307 1307  * **Example 1:** Downlink Payload: 26000A  ~/~/ Set AT+RJTDC=10
1308 1308  * **Example 2: **Downlink Payload: 260002  ~/~/ Set AT+RJTDC=2
1309 1309  
1310 -
1311 1311  = 8. AT Commands Combination =
1312 1312  
1313 -
1314 1314  == 8.1 Set a fix RX2DR for downlink window ==
1315 1315  
1316 1316  
... ... @@ -1317,7 +1317,6 @@
1317 1317  * (% style="color:blue" %)**AT+ADR=0             **(%%) **~-~->**  Disable ADR first
1318 1318  * (% style="color:blue" %)**AT+RX2DR=xxxx**   (%%) **~-~->**  Set xxxx to your wanted DataRate
1319 1319  
1320 -
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