Changes for page End Device AT Commands and Downlink Command
Last modified by kai on 2024/09/06 10:00
Change comment:
There is no comment for this version
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -14,6 +14,7 @@ 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 + 17 17 18 18 19 19 ))) ... ... @@ -21,8 +21,8 @@ 21 21 = 2. How to use AT Commands or Downlink command = 22 22 23 23 24 -* **AT Command**:See Devices User Manual forhow to connect to devicevia 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 DownlinkCommand**: The gateway transfer downlink command in HEX format. This page shows theDownlinkCommandIn HEXformat.PleasenotesomeLoRaWANservers use base64 as downlink codeso user need to convert HEX to Base64 and use. Below are referencesfor how to use downlink command: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: 26 26 ** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]] 27 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]]? 28 28 ** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server) ... ... @@ -175,6 +175,7 @@ 175 175 ((( 176 176 If the downlink payload=**04FF**, the end node will reboot. 177 177 179 + 178 178 179 179 ))) 180 180 ... ... @@ -214,6 +214,7 @@ 214 214 ))) 215 215 216 216 219 + 217 217 == 4.4 Show Firmware Version == 218 218 219 219 ... ... @@ -244,6 +244,7 @@ 244 244 ((( 245 245 246 246 250 + 247 247 **xx: Software Type:** 248 248 ))) 249 249 ... ... @@ -277,6 +277,7 @@ 277 277 firmware version: v1.1.0 ~-~-> 110 278 278 279 279 284 + 280 280 == 4.5 Show System Configure == 281 281 282 282 ... ... @@ -515,10 +515,10 @@ 515 515 516 516 (% style="color:blue" %)**AT Command: AT+CFS** 517 517 518 -(% border="1" style="background-color:#ffffcc; color:green; width: 463px" %)519 -|=(% colspan="3" style="width: 460px;" %)AT+CFS520 -|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:1 07px" %)**Response**521 -|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:1 07px" %)0(((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((( 522 522 OK 523 523 ))) 524 524 ... ... @@ -731,8 +731,9 @@ 731 731 **Notice:** 732 732 733 733 * 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. 734 -* Data Rate specifies Spreading Factor. The mapping vari es 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/]]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/]] 735 735 741 + 736 736 (% style="color:blue" %)**AT Command: AT+DR** 737 737 738 738 (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %) ... ... @@ -1053,7 +1053,7 @@ 1053 1053 ))) 1054 1054 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1055 1055 1056 -(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)**1062 +(% style="color:blue" %)**Downlink Command: 0x24** 1057 1057 1058 1058 Format: Command Code (0x24) followed by 1 bytes channel value. 1059 1059 ... ... @@ -1094,6 +1094,7 @@ 1094 1094 ((( 1095 1095 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. 1096 1096 1103 + 1097 1097 1098 1098 ))) 1099 1099 ... ... @@ -1216,11 +1216,6 @@ 1216 1216 1217 1217 (% style="color:blue" %)**AT Command: AT+DDETECT** 1218 1218 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 - 1224 1224 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 1225 1225 |=(% colspan="3" style="width: 707px;" %)AT+**DDETECT** 1226 1226 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -1252,17 +1252,13 @@ 1252 1252 OK 1253 1253 ))) 1254 1254 1255 -(% style="color:blue" %)**Downlink Command: 0x3 2**1257 +(% style="color:blue" %)**Downlink Command: 0x33** 1256 1256 1257 1257 Format: Command Code (0x32) followed by 2 bytes mode value. 1258 1258 1259 -If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 3 2.1261 +If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 33. 1260 1260 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. 1263 +* **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1266 1266 1267 1267 1268 1268 == 7.26 Request the server to send an ACK == ... ... @@ -1291,13 +1291,13 @@ 1291 1291 (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %) 1292 1292 |=(% colspan="3" style="width: 724px;" %)AT+RJTDC 1293 1293 |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response** 1294 -|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30((( 1292 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30000((( 1295 1295 OK 1296 1296 1297 -the interval is 30 in1295 +the interval is 30000ms = 30s 1298 1298 ))) 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 in1297 +|(% 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 1301 1301 ))) 1302 1302 1303 1303 (% style="color:blue" %)**Downlink Command: 0x26**