<
From version < 55.1 >
edited by Edwin Chen
on 2022/10/16 07:43
To version < 60.1 >
edited by Edwin Chen
on 2023/03/25 15:30
>
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,8 +22,8 @@
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 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)
... ... @@ -176,7 +176,6 @@
176 176  (((
177 177  If the downlink payload=**04FF**, the end node will reboot.
178 178  
179 -
180 180  
181 181  )))
182 182  
... ... @@ -216,7 +216,6 @@
216 216  )))
217 217  
218 218  
219 -
220 220  == 4.4 Show Firmware Version ==
221 221  
222 222  
... ... @@ -247,7 +247,6 @@
247 247  (((
248 248  
249 249  
250 -
251 251  **xx: Software Type:**
252 252  )))
253 253  
... ... @@ -281,7 +281,6 @@
281 281  firmware version: v1.1.0 ~-~-> 110
282 282  
283 283  
284 -
285 285  == 4.5 Show System Configure ==
286 286  
287 287  
... ... @@ -520,10 +520,10 @@
520 520  
521 521  (% style="color:blue" %)**AT Command: AT+CFS**
522 522  
523 -(% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %)
524 -|=(% colspan="3" style="width: 531px;" %)AT+CFS
525 -|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response**
526 -|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:178px" %)0(((
518 +(% border="1" style="background-color:#ffffcc; color:green; width:463px" %)
519 +|=(% colspan="3" style="width: 460px;" %)AT+CFS
520 +|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:107px" %)**Response**
521 +|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:107px" %)0(((
527 527  OK
528 528  )))
529 529  
... ... @@ -736,9 +736,8 @@
736 736  **Notice:**
737 737  
738 738  * 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.
739 -* Data Rate specifies Spreading Factor. The mapping various in different frequency band. 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 +* 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/]]
740 740  
741 -
742 742  (% style="color:blue" %)**AT Command: AT+DR**
743 743  
744 744  (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %)
... ... @@ -1059,7 +1059,7 @@
1059 1059  )))
1060 1060  |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK
1061 1061  
1062 -(% style="color:blue" %)**Downlink Command: 0x24**
1056 +(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)**
1063 1063  
1064 1064  Format: Command Code (0x24) followed by 1 bytes channel value.
1065 1065  
... ... @@ -1100,7 +1100,6 @@
1100 1100  (((
1101 1101  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.
1102 1102  
1103 -
1104 1104  
1105 1105  )))
1106 1106  
... ... @@ -1223,6 +1223,11 @@
1223 1223  
1224 1224  (% style="color:blue" %)**AT Command: AT+DDETECT**
1225 1225  
1219 +AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880)
1220 +
1221 +* ACK_Timout_1: Unit: min
1222 +* ACK_Timout_2: Unit: min
1223 +
1226 1226  (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %)
1227 1227  |=(% colspan="3" style="width: 707px;" %)AT+**DDETECT**
1228 1228  |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response**
... ... @@ -1254,13 +1254,17 @@
1254 1254  OK
1255 1255  )))
1256 1256  
1257 -(% style="color:blue" %)**Downlink Command: 0x33**
1255 +(% style="color:blue" %)**Downlink Command: 0x32**
1258 1258  
1259 1259  Format: Command Code (0x32) followed by 2 bytes mode value.
1260 1260  
1261 -If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 33.
1259 +If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32.
1262 1262  
1263 -* **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1261 +* **Example 1:** Downlink Payload: 320105A00B40  ~/~/ Set AT+DDETECT=1,1440,2880
1262 +** 0x01 : Flag
1263 +** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours)
1264 +** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours)
1265 +** **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.
1264 1264  
1265 1265  
1266 1266  == 7.26 Request the server to send an ACK ==
... ... @@ -1289,13 +1289,13 @@
1289 1289  (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %)
1290 1290  |=(% colspan="3" style="width: 724px;" %)AT+RJTDC
1291 1291  |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response**
1292 -|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30000(((
1294 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30(((
1293 1293  OK
1294 1294  
1295 -the interval is 30000ms = 30s
1297 +the interval is 30 min
1296 1296  )))
1297 -|(% style="width:165px" %)AT+RJTDC=60000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1298 -Set the ReJoin data transmission interval to 60000ms = 60 seconds
1299 +|(% style="width:165px" %)AT+RJTDC=60|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((
1300 +Set the ReJoin data transmission interval to 60 min
1299 1299  )))
1300 1300  
1301 1301  (% style="color:blue" %)**Downlink Command: 0x26**
Copyright ©2010-2022 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0