<
From version < 54.1 >
edited by Edwin Chen
on 2022/10/16 07:37
To version < 60.6 >
edited by Xiaoling
on 2023/03/27 14:04
>
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,22 +14,20 @@
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 -
19 -
20 20  )))
21 21  
19 +
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:
23 +* **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/]]
24 +* **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  
29 +(% style="display:none" %) (%%)
31 31  
32 -
33 33  = 3. Support End Node and firmware version =
34 34  
35 35  
... ... @@ -104,8 +104,8 @@
104 104  )))
105 105  )))
106 106  
105 +(% style="display:none" %) (%%)
107 107  
108 -
109 109  = 4. System Management Commands =
110 110  
111 111  == 4.1 Change Uplink Interval ==
... ... @@ -143,8 +143,8 @@
143 143  * **Example 1**: Downlink Payload:** 0100001E**  ~/~/ Set Transmit Interval (TDC) = 30 seconds
144 144  * **Example 2**: Downlink Payload:** 0100003C**  ~/~/ Set Transmit Interval (TDC) = 60 seconds
145 145  
144 +(% style="display:none" %) (%%)
146 146  
147 -
148 148  == 4.2 Reboot End Node ==
149 149  
150 150  
... ... @@ -177,12 +177,10 @@
177 177  )))
178 178  
179 179  (((
180 -If the downlink payload=**04FF**, the end node will reboot.
181 -
182 -
183 -
178 +If the downlink payload=**04FF**, the end node will reboot.
184 184  )))
185 185  
181 +
186 186  == 4.3 Reset to factory Default ==
187 187  
188 188  
... ... @@ -219,7 +219,6 @@
219 219  )))
220 220  
221 221  
222 -
223 223  == 4.4 Show Firmware Version ==
224 224  
225 225  
... ... @@ -250,7 +250,6 @@
250 250  (((
251 251  
252 252  
253 -
254 254  **xx: Software Type:**
255 255  )))
256 256  
... ... @@ -284,7 +284,6 @@
284 284  firmware version: v1.1.0 ~-~-> 110
285 285  
286 286  
287 -
288 288  == 4.5 Show System Configure ==
289 289  
290 290  
... ... @@ -310,8 +310,6 @@
310 310  OK
311 311  )))
312 312  
313 -
314 -
315 315  = 5. Keys, IDs and EUIs management =
316 316  
317 317  == 5.1 Application EUI ==
... ... @@ -330,8 +330,8 @@
330 330  )))
331 331  |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK
332 332  
324 +(% style="display:none" %) (%%)
333 333  
334 -
335 335  == 5.2 Application Key ==
336 336  
337 337  
... ... @@ -348,8 +348,8 @@
348 348  )))
349 349  |(% 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
350 350  
342 +(% style="display:none" %) (%%)
351 351  
352 -
353 353  == 5.3 Application Session Key ==
354 354  
355 355  
... ... @@ -368,8 +368,8 @@
368 368  OK
369 369  )))
370 370  
362 +(% style="display:none" %) (%%)
371 371  
372 -
373 373  == 5.4 Device Address ==
374 374  
375 375  
... ... @@ -388,8 +388,8 @@
388 388  )))
389 389  |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK
390 390  
382 +(% style="display:none" %) (%%)
391 391  
392 -
393 393  == 5.5 Device EUI ==
394 394  
395 395  
... ... @@ -408,8 +408,8 @@
408 408  OK
409 409  )))
410 410  
402 +(% style="display:none" %) (%%)
411 411  
412 -
413 413  == 5.6 Network ID ==
414 414  
415 415  
... ... @@ -426,8 +426,8 @@
426 426  )))
427 427  |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK
428 428  
420 +(% style="display:none" %) (%%)
429 429  
430 -
431 431  == 5.7 Network Session Key ==
432 432  
433 433  
... ... @@ -444,8 +444,8 @@
444 444  )))
445 445  |(% 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
446 446  
438 +(% style="display:none" %) (%%)
447 447  
448 -
449 449  = 6. Joining and sending date on LoRaWAN network =
450 450  
451 451  == 6.1 Confirm Mode ==
... ... @@ -476,8 +476,8 @@
476 476  * **Example 1:** Downlink Payload: 0501  ~/~/ Set AT+CFM=1
477 477  * **Example 2:** Downlink Payload: 0500  ~/~/ Set AT+CFM=0
478 478  
470 +(% style="display:none" %) (%%)
479 479  
480 -
481 481  === 6.1.2  AT+CFM command since DR-LWS007 software stack ===
482 482  
483 483  
... ... @@ -523,8 +523,8 @@
523 523  * **Example 1:** Downlink Payload: 05010101  ~/~/ Set AT+CFM=1,1,1
524 524  * **Example 2:** Downlink Payload: 05000700  ~/~/ Set AT+CFM=0,7,0
525 525  
517 +(% style="display:none" %) (%%)
526 526  
527 -
528 528  == 6.2 Confirm Status ==
529 529  
530 530  
... ... @@ -533,15 +533,13 @@
533 533  
534 534  (% style="color:blue" %)**AT Command: AT+CFS**
535 535  
536 -(% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %)
537 -|=(% colspan="3" style="width: 531px;" %)AT+CFS
538 -|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response**
539 -|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:178px" %)0(((
527 +(% border="1" style="background-color:#ffffcc; color:green; width:463px" %)
528 +|=(% colspan="3" style="width: 460px;" %)AT+CFS
529 +|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:107px" %)**Response**
530 +|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:107px" %)0(((
540 540  OK
541 541  )))
542 542  
543 -
544 -
545 545  == 6.3 Join LoRa® Network ==
546 546  
547 547  
... ... @@ -559,8 +559,6 @@
559 559  While Error in format, return AT_BUSY_ERROR
560 560  )))
561 561  
562 -
563 -
564 564  == 6.4 LoRa® Network Join Mode ==
565 565  
566 566  
... ... @@ -587,8 +587,8 @@
587 587  * **Example 1: **Downlink Payload: **2000                  ** ~/~/ Set AT+NJM=0
588 588  * **Example 2:** Downlink Payload: **2001**  ~/~/ Set AT+NJM=1
589 589  
577 +(% style="display:none" %) (%%)
590 590  
591 -
592 592  == 6.5 LoRa® Network Join Status ==
593 593  
594 594  
... ... @@ -604,8 +604,8 @@
604 604  OK
605 605  )))
606 606  
594 +(% style="display:none" %) (%%)
607 607  
608 -
609 609  == 6.6 Print Last Received Data in Raw Format ==
610 610  
611 611  
... ... @@ -621,8 +621,8 @@
621 621  OK
622 622  )))
623 623  
611 +(% style="display:none" %) (%%)
624 624  
625 -
626 626  == 6.7 Print Last Received Data in Binary Format ==
627 627  
628 628  
... ... @@ -638,8 +638,8 @@
638 638  OK
639 639  )))
640 640  
628 +(% style="display:none" %) (%%)
641 641  
642 -
643 643  == 6.8 Send Text Data ==
644 644  
645 645  
... ... @@ -653,14 +653,11 @@
653 653  |(% style="width:201px" %)**Command Example**|(% style="width:340px" %)**Function**|(% style="width:446px" %)**Response**
654 654  |(% style="width:201px" %)AT+SEND=12:hello world|(% style="width:340px" %)Send text data along with the application port.|(% style="width:446px" %)OK(((
655 655  While Error in format, return
656 -
657 657  AT_BUSY_ERROR/AT_BUSY_ERROR/AT_NO_NETWORK_JOINED
658 -
659 -
660 660  )))
661 661  
646 +(% style="display:none" %) (%%)
662 662  
663 -
664 664  == 6.9 Send Hexadecimal Data ==
665 665  
666 666  
... ... @@ -674,13 +674,11 @@
674 674  |(% style="width:257px" %)**Command Example**|(% style="width:394px" %)**Function**|(% style="width:446px" %)**Response**
675 675  |(% style="width:257px" %)AT+SENDB=12:abcdef0123456789|(% style="width:394px" %)Send hexadecimal data along with the application port.|(% style="width:446px" %)OK
676 676  |(% style="width:257px" %)AT+SENDB=abcdef0123456789|(% style="width:394px" %)Send hexadecimal data along with the application port.|(% style="width:446px" %)While Error in format, return(((
677 -AT_PARAM_ERROR AT_BUSY_ERROR/AT_NO_NETWORK_JOINED
678 -
679 -
661 +AT_PARAM_ERROR AT_BUSY_ERROR/AT_NO_NETWORK_JOINED
680 680  )))
681 681  
664 +(% style="display:none" %) (%%)
682 682  
683 -
684 684  = 7. LoRaWAN network management =
685 685  
686 686  == 7.1 Adaptive Data Rate ==
... ... @@ -709,8 +709,8 @@
709 709  * **Example 1**: Downlink Payload: **2201**  ~/~/ Set AT+ADR=1.
710 710  * **Example 2**: Downlink Payload: **2200FFFF**  ~/~/ Set AT+ADR=0.
711 711  
694 +(% style="display:none" %) (%%)
712 712  
713 -
714 714  == 7.2 LoRa® Class ==
715 715  
716 716  
... ... @@ -726,11 +726,10 @@
726 726  OK
727 727  )))
728 728  |(% style="width:163px" %)AT+CLASS=C|(% style="width:166px" %)Set the Device Class.|(% style="width:175px" %)OK(((
729 -
730 730  )))
731 731  
713 +(% style="display:none" %) (%%)
732 732  
733 -
734 734  == 7.3 Duty Cycle Setting ==
735 735  
736 736  
... ... @@ -746,11 +746,10 @@
746 746  OK
747 747  )))
748 748  |(% style="width:165px" %)AT+DCS=1|(% style="width:239px" %)Set the ETSI Duty Cycle setting.|(% style="width:107px" %)OK(((
749 -
750 750  )))
751 751  
732 +(% style="display:none" %) (%%)
752 752  
753 -
754 754  == 7.4 Data Rate ==
755 755  
756 756  
... ... @@ -757,9 +757,11 @@
757 757  Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) .
758 758  
759 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 -(%%)
740 +**Notice:**
762 762  
742 +* 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.
743 +* 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/]]
744 +
763 763  (% style="color:blue" %)**AT Command: AT+DR**
764 764  
765 765  (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %)
... ... @@ -779,8 +779,8 @@
779 779  * **Example 1**: Downlink Payload: **220001FF**  ~/~/ Set AT+DR=1.
780 780  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+DR=0.
781 781  
764 +(% style="display:none" %) (%%)
782 782  
783 -
784 784  == 7.5 Frame Counter Downlink ==
785 785  
786 786  
... ... @@ -799,8 +799,6 @@
799 799  OK
800 800  )))
801 801  
802 -
803 -
804 804  == 7.6 Frame Counter Uplink ==
805 805  
806 806  Feature: Get or Set the Frame Counter Uplink.
... ... @@ -815,11 +815,10 @@
815 815  OK
816 816  )))
817 817  |(% style="width:177px" %)AT+FCU=10|(% style="width:239px" %)Set the Frame Counter Uplink.|(% style="width:113px" %)OK(((
818 -
819 819  )))
820 820  
800 +(% style="display:none" %) (%%)
821 821  
822 -
823 823  == 7.7 Join Accept Delay1 ==
824 824  
825 825  
... ... @@ -835,11 +835,10 @@
835 835  OK
836 836  )))
837 837  |(% style="width:164px" %)AT+JN1DL=10000|(% style="width:229px" %)Set the Join Accept Delay.|(% style="width:140px" %)OK(((
838 -
839 839  )))
840 840  
819 +(% style="display:none" %) (%%)
841 841  
842 -
843 843  == 7.8 Join Accept Delay2 ==
844 844  
845 845  
... ... @@ -855,11 +855,10 @@
855 855  OK
856 856  )))
857 857  |(% style="width:160px" %)AT+JN2DL=20000|(% style="width:228px" %)Set the Join Accept Delay.|(% style="width:146px" %)OK(((
858 -
859 859  )))
860 860  
838 +(% style="display:none" %) (%%)
861 861  
862 -
863 863  == 7.9 Public Network Mode ==
864 864  
865 865  
... ... @@ -887,8 +887,8 @@
887 887  )))
888 888  |(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %)
889 889  
867 +(% style="display:none" %) (%%)
890 890  
891 -
892 892  == 7.10 Receive Delay1 ==
893 893  
894 894  
... ... @@ -904,11 +904,10 @@
904 904  OK
905 905  )))
906 906  |(% style="width:155px" %)AT+RX1DL=1500|(% style="width:128px" %)Set the delay.|(% style="width:122px" %)OK(((
907 -
908 908  )))
909 909  
886 +(% style="display:none" %) (%%)
910 910  
911 -
912 912  == 7.11 Receive Delay2 ==
913 913  
914 914  
... ... @@ -924,11 +924,10 @@
924 924  OK
925 925  )))
926 926  |(% style="width:175px" %)AT+RX2DL=2500|(% style="width:152px" %)Set the delay.|(% style="width:150px" %)OK(((
927 -
928 928  )))
929 929  
905 +(% style="display:none" %) (%%)
930 930  
931 -
932 932  == 7.12 Rx2 Window Data Rate ==
933 933  
934 934  
... ... @@ -944,11 +944,10 @@
944 944  OK
945 945  )))
946 946  |(% style="width:160px" %)AT+RX2DR=6|(% style="width:232px" %)Set the Rx2 window data rate.|(% style="width:130px" %)OK(((
947 -
948 948  )))
949 949  
924 +(% style="display:none" %) (%%)
950 950  
951 -
952 952  == 7.13 Rx2 Window Frequency ==
953 953  
954 954  
... ... @@ -964,11 +964,10 @@
964 964  OK
965 965  )))
966 966  |(% style="width:183px" %)AT+RX2FQ=434665000|(% style="width:240px" %)Set the Rx2 window frequency.|(% style="width:160px" %)OK(((
967 -
968 968  )))
969 969  
943 +(% style="display:none" %) (%%)
970 970  
971 -
972 972  == 7.14 Transmit Power ==
973 973  
974 974  
... ... @@ -986,7 +986,6 @@
986 986  OK
987 987  )))
988 988  |(% style="width:161px" %)AT+TXP=1|(% style="width:189px" %)Set the Transmit Power.|(% style="width:112px" %)OK(((
989 -
990 990  )))
991 991  
992 992  Downlink Payload. The 4th byte of 0x22 downlink.
... ... @@ -996,8 +996,8 @@
996 996  * **Example 1**: Downlink Payload: **22000102**  ~/~/ Set AT+TXP=2.
997 997  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+TXP=0.
998 998  
971 +(% style="display:none" %) (%%)
999 999  
1000 -
1001 1001  == 7.15 RSSI of the Last Received Packet ==
1002 1002  
1003 1003  
... ... @@ -1013,8 +1013,8 @@
1013 1013  OK
1014 1014  )))
1015 1015  
988 +(% style="display:none" %) (%%)
1016 1016  
1017 -
1018 1018  == 7.16 SNR of the Last Received Packet ==
1019 1019  
1020 1020  
... ... @@ -1030,8 +1030,8 @@
1030 1030  OK
1031 1031  )))
1032 1032  
1005 +(% style="display:none" %) (%%)
1033 1033  
1034 -
1035 1035  == 7.17 Application Port ==
1036 1036  
1037 1037  
... ... @@ -1057,8 +1057,8 @@
1057 1057  * **Example 1**: Downlink Payload: **2301**  ~/~/ set the application port to 1
1058 1058  * **Example 2**: Downlink Payload:** 2305**  ~/~/ set the application port to 5
1059 1059  
1032 +(% style="display:none" %) (%%)
1060 1060  
1061 -
1062 1062  == 7.18 Single Channel Mode ==
1063 1063  
1064 1064  
... ... @@ -1075,8 +1075,8 @@
1075 1075  )))
1076 1076  |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK
1077 1077  
1050 +(% style="display:none" %) (%%)
1078 1078  
1079 -
1080 1080  == 7.19 Eight Channel Mode ==
1081 1081  
1082 1082  
... ... @@ -1095,7 +1095,7 @@
1095 1095  )))
1096 1096  |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK
1097 1097  
1098 -(% style="color:blue" %)**Downlink Command: 0x24**
1070 +(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)**
1099 1099  
1100 1100  Format: Command Code (0x24) followed by 1 bytes channel value.
1101 1101  
... ... @@ -1104,8 +1104,8 @@
1104 1104  * **Example 1**: Downlink Payload: 2401  ~/~/ set channel mode to 1
1105 1105  * **Example 2**: Downlink Payload: 2405  ~/~/ set channel mode to 5
1106 1106  
1079 +(% style="display:none" %) (%%)
1107 1107  
1108 -
1109 1109  == 7.20 Get or Set RXwindows1 timeout ==
1110 1110  
1111 1111  
... ... @@ -1122,25 +1122,18 @@
1122 1122  )))
1123 1123  |(% style="width:163px" %)AT+RX1WTO=60|(% style="width:201px" %)Set RXwindows1 timeout|(% style="width:93px" %)OK
1124 1124  
1097 +(% style="display:none" %) (%%)
1125 1125  (((
1126 -
1127 -
1128 -
1129 1129  (% style="color:blue" %)**AT+RX1WTO**(%%) is theRxSingle timeout value of receive window 1. If it is not set, then the queriedvalue is the default value. If it is set, then the queried value is the setvalue. AT+RX2TWO is thesame as above. The definitionof RxSingle timeout is as described in the following paragraph.
1130 -
1131 -
1132 1132  )))
1133 1133  
1134 1134  [[image:image-20220526162535-1.png]]
1135 1135  
1136 -
1137 1137  (((
1138 1138  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.
1139 -
1140 -
1141 -
1142 1142  )))
1143 1143  
1108 +
1144 1144  == 7.21 Get or Set RXwindows2 timeout ==
1145 1145  
1146 1146  
... ... @@ -1157,8 +1157,6 @@
1157 1157  )))
1158 1158  |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK
1159 1159  
1160 -
1161 -
1162 1162  == 7.22 Setting up uplinkdwelltime (as923, au915) ==
1163 1163  
1164 1164  
... ... @@ -1184,8 +1184,6 @@
1184 1184  * **Example 1**: Downlink Payload: **2501**  ~/~/ set uplinkdwelltime to 1
1185 1185  * **Example 2**: Downlink Payload: **2500**  ~/~/ set uplinkdwelltime to 0
1186 1186  
1187 -
1188 -
1189 1189  == 7.23 Set Packet Receiving Response Level ==
1190 1190  
1191 1191  
... ... @@ -1225,8 +1225,6 @@
1225 1225  * **Example 1**: Downlink Payload: **2101**  ~/~/ set packet receiving response level to 1
1226 1226  * **Example 2**: Downlink Payload: **2102**  ~/~/ set packet receiving response level to 2
1227 1227  
1228 -
1229 -
1230 1230  == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) ==
1231 1231  
1232 1232  
... ... @@ -1257,13 +1257,16 @@
1257 1257  * Example 1: Downlink Payload: 330100  ~/~/ Set AT+SETMAXNBTRANS=1,0
1258 1258  * Example 2: Downlink Payload: 330201  ~/~/ Set AT+SETMAXNBTRANS=2,1
1259 1259  
1260 -
1261 -
1262 1262  == 7.25 Device offline rejoining (LWS007) ==
1263 1263  
1264 1264  
1265 1265  (% style="color:blue" %)**AT Command: AT+DDETECT**
1266 1266  
1224 +AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880)
1225 +
1226 +* ACK_Timout_1: Unit: min
1227 +* ACK_Timout_2: Unit: min
1228 +
1267 1267  (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %)
1268 1268  |=(% colspan="3" style="width: 707px;" %)AT+**DDETECT**
1269 1269  |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response**
... ... @@ -1295,16 +1295,18 @@
1295 1295  OK
1296 1296  )))
1297 1297  
1298 -(% style="color:blue" %)**Downlink Command: 0x33**
1260 +(% style="color:blue" %)**Downlink Command: 0x32**
1299 1299  
1300 1300  Format: Command Code (0x32) followed by 2 bytes mode value.
1301 1301  
1302 -If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 33.
1264 +If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32.
1303 1303  
1304 -* **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1266 +* **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1267 +** 0x01 : Flag
1268 +** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours)
1269 +** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours)
1270 +** **Explain**: Enable Online Detect, if end node doesn't receive any downlink within ACK_Timout_1( 1440 minutes or 24 hours). End node will use confirmed uplink to send packets during ACK_Timout_1 (the 24th hour) to ACK_Timout_2 ( the 48th hour). If from the 24th to 48th hour, end node got an downlink from server, it will switch back to unconfirmed uplink. end node will restart ACK_Timout_1. If from the 24th to 48th hour, end node still not got any downlink, means device doesn't get ACK from server within last 48 hours. Device will process rejoin, rejoin request interval is AT+RJTDC period. For AU915/ US915, device will use the sub-band used for last join.
1305 1305  
1306 -
1307 -
1308 1308  == 7.26 Request the server to send an ACK ==
1309 1309  
1310 1310  
... ... @@ -1322,8 +1322,6 @@
1322 1322  OK
1323 1323  )))
1324 1324  
1325 -
1326 -
1327 1327  == 7.27 Adjust network rejoining interval ==
1328 1328  
1329 1329  
... ... @@ -1332,13 +1332,13 @@
1332 1332  (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %)
1333 1333  |=(% colspan="3" style="width: 724px;" %)AT+RJTDC
1334 1334  |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response**
1335 -|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30000(((
1297 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30(((
1336 1336  OK
1337 1337  
1338 -the interval is 30000ms = 30s
1300 +the interval is 30 min
1339 1339  )))
1340 -|(% style="width:165px" %)AT+RJTDC=60000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1341 -Set the ReJoin data transmission interval to 60000ms = 60 seconds
1302 +|(% style="width:165px" %)AT+RJTDC=60|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1303 +Set the ReJoin data transmission interval to 60 min
1342 1342  )))
1343 1343  
1344 1344  (% style="color:blue" %)**Downlink Command: 0x26**
... ... @@ -1350,8 +1350,6 @@
1350 1350  * **Example 1:** Downlink Payload: 26000A  ~/~/ Set AT+RJTDC=10
1351 1351  * **Example 2: **Downlink Payload: 260002  ~/~/ Set AT+RJTDC=2
1352 1352  
1353 -
1354 -
1355 1355  = 8. AT Commands Combination =
1356 1356  
1357 1357  == 8.1 Set a fix RX2DR for downlink window ==
... ... @@ -1360,8 +1360,6 @@
1360 1360  * (% style="color:blue" %)**AT+ADR=0             **(%%) **~-~->**  Disable ADR first
1361 1361  * (% style="color:blue" %)**AT+RX2DR=xxxx**   (%%) **~-~->**  Set xxxx to your wanted DataRate
1362 1362  
1363 -
1364 -
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