<
From version < 52.3 >
edited by Xiaoling
on 2022/08/12 15:48
To version < 59.1 >
edited by Bei Jinggeng
on 2023/01/10 11:43
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Author
... ... @@ -1,1 +1,1 @@
1 -XWiki.Xiaoling
1 +XWiki.Bei
Content
... ... @@ -9,12 +9,11 @@
9 9  
10 10  Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands:
11 11  
12 -* **Common Commands:** They should be available for each sensor, such as: change uplink interval, reset device.
13 -* **Sensor Related Commands:** Only for special sensor, such as control relay, poll RS485 device.
12 +* (% style="color:blue" %)**Common Commands:** (%%) They should be available for each sensor, such as: change uplink interval, reset device.
13 +* (% style="color:blue" %)**Sensor Related Commands:** (%%) Only for special sensor, such as control relay, poll RS485 device.
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,14 +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:
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 -
32 -
33 33  = 3. Support End Node and firmware version =
34 34  
35 35  
... ... @@ -107,7 +107,6 @@
107 107  
108 108  = 4. System Management Commands =
109 109  
110 -
111 111  == 4.1 Change Uplink Interval ==
112 112  
113 113  
... ... @@ -137,7 +137,7 @@
137 137  )))
138 138  
139 139  (((
140 -If the downlink payload=0100003C, it means set the END Nodes Transmit Interval to 0x00003C=60(S), while type code is 01.
136 +If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01.
141 141  )))
142 142  
143 143  * **Example 1**: Downlink Payload:** 0100001E**  ~/~/ Set Transmit Interval (TDC) = 30 seconds
... ... @@ -178,7 +178,6 @@
178 178  (((
179 179  If the downlink payload=**04FF**, the end node will reboot.
180 180  
181 -
182 182  
183 183  )))
184 184  
... ... @@ -218,7 +218,6 @@
218 218  )))
219 219  
220 220  
221 -
222 222  == 4.4 Show Firmware Version ==
223 223  
224 224  
... ... @@ -249,7 +249,6 @@
249 249  (((
250 250  
251 251  
252 -
253 253  **xx: Software Type:**
254 254  )))
255 255  
... ... @@ -283,7 +283,6 @@
283 283  firmware version: v1.1.0 ~-~-> 110
284 284  
285 285  
286 -
287 287  == 4.5 Show System Configure ==
288 288  
289 289  
... ... @@ -312,7 +312,6 @@
312 312  
313 313  = 5. Keys, IDs and EUIs management =
314 314  
315 -
316 316  == 5.1 Application EUI ==
317 317  
318 318  
... ... @@ -440,10 +440,8 @@
440 440  
441 441  = 6. Joining and sending date on LoRaWAN network =
442 442  
443 -
444 444  == 6.1 Confirm Mode ==
445 445  
446 -
447 447  === 6.1.1  AT+CFM command before DR-LWS007 software stack ===
448 448  
449 449  
... ... @@ -471,7 +471,6 @@
471 471  * **Example 2:** Downlink Payload: 0500  ~/~/ Set AT+CFM=0
472 472  
473 473  
474 -
475 475  === 6.1.2  AT+CFM command since DR-LWS007 software stack ===
476 476  
477 477  
... ... @@ -518,7 +518,6 @@
518 518  * **Example 2:** Downlink Payload: 05000700  ~/~/ Set AT+CFM=0,7,0
519 519  
520 520  
521 -
522 522  == 6.2 Confirm Status ==
523 523  
524 524  
... ... @@ -580,7 +580,6 @@
580 580  * **Example 2:** Downlink Payload: **2001**  ~/~/ Set AT+NJM=1
581 581  
582 582  
583 -
584 584  == 6.5 LoRa® Network Join Status ==
585 585  
586 586  
... ... @@ -657,11 +657,11 @@
657 657  
658 658  (% style="color:blue" %)**AT Command: AT+SENDB**
659 659  
660 -(% border="1" style="background-color:#ffffcc; color:green; width:1120.22px" %)
661 -|=(% colspan="3" style="width: 1117px;" %)AT+SENDB
662 -|(% style="width:257px" %)**Command Example**|(% style="width:406px" %)**Function**|(% style="width:453px" %)**Response**
663 -|(% style="width:257px" %)AT+SENDB=12:abcdef0123456789|(% style="width:406px" %)Send hexadecimal data along with the application port.|(% style="width:453px" %)OK
664 -|(% style="width:257px" %)AT+SENDB=abcdef0123456789|(% style="width:406px" %)Send hexadecimal data along with the application port.|(% style="width:453px" %)While Error in format, return(((
646 +(% border="1" style="background-color:#ffffcc; color:green; width:1101px" %)
647 +|=(% colspan="3" style="width: 1098px;" %)AT+SENDB
648 +|(% style="width:257px" %)**Command Example**|(% style="width:394px" %)**Function**|(% style="width:446px" %)**Response**
649 +|(% style="width:257px" %)AT+SENDB=12:abcdef0123456789|(% style="width:394px" %)Send hexadecimal data along with the application port.|(% style="width:446px" %)OK
650 +|(% 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(((
665 665  AT_PARAM_ERROR AT_BUSY_ERROR/AT_NO_NETWORK_JOINED
666 666  
667 667  
... ... @@ -670,7 +670,6 @@
670 670  
671 671  = 7. LoRaWAN network management =
672 672  
673 -
674 674  == 7.1 Adaptive Data Rate ==
675 675  
676 676  
... ... @@ -704,7 +704,7 @@
704 704  Feature: Get or Set the Device Class(Currently only support class A, class C).
705 705  
706 706  
707 -(% style="color:blue" %)**AT Command:AT+CLASS**
692 +(% style="color:blue" %)**AT Command:  AT+CLASS**
708 708  
709 709  (% border="1" style="background-color:#ffffcc; color:green; width:507.222px" %)
710 710  |=(% colspan="3" style="width: 504px;" %)AT+CLASS
... ... @@ -720,10 +720,10 @@
720 720  == 7.3 Duty Cycle Setting ==
721 721  
722 722  
723 -Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing.
708 +Feature: Get or Set the ETSI Duty Cycle setting** - 0**=disable, **1**=enable - Only for testing.
724 724  
725 725  
726 -(% style="color:blue" %)**AT Command:AT+DCS**
711 +(% style="color:blue" %)**AT Command:  AT+DCS**
727 727  
728 728  (% border="1" style="background-color:#ffffcc; color:green; width:515.222px" %)
729 729  |=(% colspan="3" style="width: 512px;" %)AT+DCS
... ... @@ -739,9 +739,14 @@
739 739  == 7.4 Data Rate ==
740 740  
741 741  
742 -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
727 +Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) .
743 743  
729 +(% style="color:red" %)
730 +**Notice:**
744 744  
732 +* 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.
733 +* 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/]]
734 +
745 745  (% style="color:blue" %)**AT Command: AT+DR**
746 746  
747 747  (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %)
... ... @@ -768,7 +768,7 @@
768 768  Feature: Get or Set the Frame Counter Downlink.
769 769  
770 770  
771 -(% style="color:blue" %)**AT Command:AT+FCD**
761 +(% style="color:blue" %)**AT Command:  AT+FCD**
772 772  
773 773  (% border="1" style="background-color:#ffffcc; color:green; width:693.222px" %)
774 774  |=(% colspan="3" style="width: 690px;" %)AT+FCD
... ... @@ -786,7 +786,7 @@
786 786  Feature: Get or Set the Frame Counter Uplink.
787 787  
788 788  
789 -(% style="color:blue" %)**AT Command:AT+FCU**
779 +(% style="color:blue" %)**AT Command:  AT+FCU**
790 790  
791 791  (% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %)
792 792  |=(% colspan="3" style="width: 531px;" %)AT+FCU
... ... @@ -805,7 +805,7 @@
805 805  Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms.
806 806  
807 807  
808 -(% style="color:blue" %)**AT Command:AT+JN1DL**
798 +(% style="color:blue" %)**AT Command:  AT+JN1DL**
809 809  
810 810  (% border="1" style="background-color:#ffffcc; color:green; width:537.222px" %)
811 811  |=(% colspan="3" style="width: 534px;" %)AT+JN1DL
... ... @@ -820,10 +820,11 @@
820 820  
821 821  == 7.8 Join Accept Delay2 ==
822 822  
813 +
823 823  Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms.
824 824  
825 825  
826 -(% style="color:blue" %)**AT Command:AT+JN2DL**
817 +(% style="color:blue" %)**AT Command:  AT+JN2DL**
827 827  
828 828  (% border="1" style="background-color:#ffffcc; color:green; width:538.222px" %)
829 829  |=(% colspan="3" style="width: 535px;" %)AT+JN2DL
... ... @@ -844,7 +844,7 @@
844 844  (% style="color:red" %)**Notice: If user build their own LoRaWAN server but still use syncword=0x34, this is still considered a public LoRaWAN network.**
845 845  
846 846  
847 -(% style="color:blue" %)**AT Command:AT+PNM**
838 +(% style="color:blue" %)**AT Command:  AT+PNM**
848 848  
849 849  (% border="1" style="background-color:#ffffcc; color:green; width:667.222px" %)
850 850  |=(% colspan="3" style="width: 664px;" %)AT+PNM
... ... @@ -870,7 +870,7 @@
870 870  Feature: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms
871 871  
872 872  
873 -(% style="color:blue" %)**AT Command:AT+RX1DL**
864 +(% style="color:blue" %)**AT Command: AT+RX1DL**
874 874  
875 875  (% border="1" style="background-color:#ffffcc; color:green; width:408.222px" %)
876 876  |=(% colspan="3" style="width: 405px;" %)AT+RX1DL
... ... @@ -889,7 +889,7 @@
889 889  Feature: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms
890 890  
891 891  
892 -(% style="color:blue" %)**AT Command:AT+RX2DL**
883 +(% style="color:blue" %)**AT Command: AT+RX2DL**
893 893  
894 894  (% border="1" style="background-color:#ffffcc; color:green; width:481.222px" %)
895 895  |=(% colspan="3" style="width: 478px;" %)AT+RX2DL
... ... @@ -908,7 +908,7 @@
908 908  Feature: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X)
909 909  
910 910  
911 -(% style="color:blue" %)**AT Command:AT+RX2DR**
902 +(% style="color:blue" %)**AT Command:  AT+RX2DR**
912 912  
913 913  (% border="1" style="background-color:#ffffcc; color:green; width:525.222px" %)
914 914  |=(% colspan="3" style="width: 522px;" %)AT+RX2DR
... ... @@ -927,7 +927,7 @@
927 927  Feature: Get or Set the Rx2 window frequency
928 928  
929 929  
930 -(% style="color:blue" %)**AT Command:AT+RX2FQ**
921 +(% style="color:blue" %)**AT Command:  AT+RX2FQ**
931 931  
932 932  (% border="1" style="background-color:#ffffcc; color:green; width:587.222px" %)
933 933  |=(% colspan="3" style="width: 584px;" %)AT+RX2FQ
... ... @@ -945,10 +945,10 @@
945 945  
946 946  Feature: Get or Set the Transmit Power(0-5, MAX:0, MIN:5, according to LoRaWAN Spec, or 40=10dB, 41 = 11dB, …, 50 = 20dB which is out of LoRaWAN spec. )
947 947  
948 -Notice: Transmit Power might be changed by ADR from LoRaWAN server. So manually change TXP also remember to set AT+ADR=0 in sensor
939 +(% style="color:red" %)**Notice: Transmit Power might be changed by ADR from LoRaWAN server. So manually change TXP also remember to set AT+ADR=0 in sensor**
949 949  
950 950  
951 -(% style="color:blue" %)**AT Command:AT+TXP**
942 +(% style="color:blue" %)**AT Command:  AT+TXP**
952 952  
953 953  (% border="1" style="background-color:#ffffcc; color:green; width:465.222px" %)
954 954  |=(% colspan="3" style="width: 462px;" %)AT+TXP
... ... @@ -968,7 +968,6 @@
968 968  * **Example 2**: Downlink Payload: **220000FF**  ~/~/ Set AT+TXP=0.
969 969  
970 970  
971 -
972 972  == 7.15 RSSI of the Last Received Packet ==
973 973  
974 974  
... ... @@ -991,7 +991,7 @@
991 991  Feature: Get the SNR of the last received packet
992 992  
993 993  
994 -(% style="color:blue" %)**AT Command:AT+SNR**
984 +(% style="color:blue" %)**AT Command:  AT+SNR**
995 995  
996 996  (% border="1" style="background-color:#ffffcc; color:green; width:571.222px" %)
997 997  |=(% colspan="3" style="width: 568px;" %)AT+SNR
... ... @@ -1027,7 +1027,6 @@
1027 1027  * **Example 2**: Downlink Payload:** 2305**  ~/~/ set the application port to 5
1028 1028  
1029 1029  
1030 -
1031 1031  == 7.18 Single Channel Mode ==
1032 1032  
1033 1033  
... ... @@ -1063,7 +1063,7 @@
1063 1063  )))
1064 1064  |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK
1065 1065  
1066 -(% style="color:blue" %)**Downlink Command: 0x24**
1055 +(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)**
1067 1067  
1068 1068  Format: Command Code (0x24) followed by 1 bytes channel value.
1069 1069  
... ... @@ -1073,7 +1073,6 @@
1073 1073  * **Example 2**: Downlink Payload: 2405  ~/~/ set channel mode to 5
1074 1074  
1075 1075  
1076 -
1077 1077  == 7.20 Get or Set RXwindows1 timeout ==
1078 1078  
1079 1079  
... ... @@ -1093,8 +1093,9 @@
1093 1093  (((
1094 1094  
1095 1095  
1096 -**AT+RX1TWO** 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.
1097 1097  
1085 +(% 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.
1086 +
1098 1098  
1099 1099  )))
1100 1100  
... ... @@ -1150,7 +1150,6 @@
1150 1150  * **Example 2**: Downlink Payload: **2500**  ~/~/ set uplinkdwelltime to 0
1151 1151  
1152 1152  
1153 -
1154 1154  == 7.23 Set Packet Receiving Response Level ==
1155 1155  
1156 1156  
... ... @@ -1191,7 +1191,6 @@
1191 1191  * **Example 2**: Downlink Payload: **2102**  ~/~/ set packet receiving response level to 2
1192 1192  
1193 1193  
1194 -
1195 1195  == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) ==
1196 1196  
1197 1197  
... ... @@ -1223,7 +1223,6 @@
1223 1223  * Example 2: Downlink Payload: 330201  ~/~/ Set AT+SETMAXNBTRANS=2,1
1224 1224  
1225 1225  
1226 -
1227 1227  == 7.25 Device offline rejoining (LWS007) ==
1228 1228  
1229 1229  
... ... @@ -1269,7 +1269,6 @@
1269 1269  * **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1270 1270  
1271 1271  
1272 -
1273 1273  == 7.26 Request the server to send an ACK ==
1274 1274  
1275 1275  
... ... @@ -1296,13 +1296,13 @@
1296 1296  (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %)
1297 1297  |=(% colspan="3" style="width: 724px;" %)AT+RJTDC
1298 1298  |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response**
1299 -|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30000(((
1284 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30(((
1300 1300  OK
1301 1301  
1302 -the interval is 30000ms = 30s
1287 +the interval is 30 min
1303 1303  )))
1304 -|(% style="width:165px" %)AT+RJTDC=60000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1305 -Set the ReJoin data transmission interval to 60000ms = 60 seconds
1289 +|(% style="width:165px" %)AT+RJTDC=60|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1290 +Set the ReJoin data transmission interval to 60 min
1306 1306  )))
1307 1307  
1308 1308  (% style="color:blue" %)**Downlink Command: 0x26**
... ... @@ -1315,18 +1315,15 @@
1315 1315  * **Example 2: **Downlink Payload: 260002  ~/~/ Set AT+RJTDC=2
1316 1316  
1317 1317  
1318 -
1319 1319  = 8. AT Commands Combination =
1320 1320  
1321 -
1322 1322  == 8.1 Set a fix RX2DR for downlink window ==
1323 1323  
1324 1324  
1325 -* **AT+ADR=0             ** **~-~->**  Disable ADR first
1326 -* **AT+RX2DR=xxxx**  **~-~->**  Set xxxx to your wanted DataRate
1308 +* (% style="color:blue" %)**AT+ADR=0             **(%%) **~-~->**  Disable ADR first
1309 +* (% style="color:blue" %)**AT+RX2DR=xxxx**   (%%) **~-~->**  Set xxxx to your wanted DataRate
1327 1327  
1328 1328  
1329 -
1330 1330  == 8.2 Use Downlink Command to set a fix uplink DR ==
1331 1331  
1332 1332  
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0