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,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 -* ForAT Command,See Devices User Manual forDevice. The user manual can be found in each product page of [[Dragino Official Website>>url:http://www.dragino.com/]]26 -* ForLoRaWAN Downlink: The gateway transfer downlink command in HEX format. This page shows theHEX format downlinkcodefor eachcommand. 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) ... ... @@ -106,7 +106,6 @@ 106 106 107 107 = 4. System Management Commands = 108 108 109 - 110 110 == 4.1 Change Uplink Interval == 111 111 112 112 ... ... @@ -177,7 +177,6 @@ 177 177 ((( 178 178 If the downlink payload=**04FF**, the end node will reboot. 179 179 180 - 181 181 182 182 ))) 183 183 ... ... @@ -217,7 +217,6 @@ 217 217 ))) 218 218 219 219 220 - 221 221 == 4.4 Show Firmware Version == 222 222 223 223 ... ... @@ -248,7 +248,6 @@ 248 248 ((( 249 249 250 250 251 - 252 252 **xx: Software Type:** 253 253 ))) 254 254 ... ... @@ -282,7 +282,6 @@ 282 282 firmware version: v1.1.0 ~-~-> 110 283 283 284 284 285 - 286 286 == 4.5 Show System Configure == 287 287 288 288 ... ... @@ -311,7 +311,6 @@ 311 311 312 312 = 5. Keys, IDs and EUIs management = 313 313 314 - 315 315 == 5.1 Application EUI == 316 316 317 317 ... ... @@ -439,10 +439,8 @@ 439 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 ... ... @@ -524,10 +524,10 @@ 524 524 525 525 (% style="color:blue" %)**AT Command: AT+CFS** 526 526 527 -(% border="1" style="background-color:#ffffcc; color:green; width: 534.222px" %)528 -|=(% colspan="3" style="width: 531px;" %)AT+CFS529 -|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:17 8px" %)**Response**530 -|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:17 8px" %)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((( 531 531 OK 532 532 ))) 533 533 ... ... @@ -666,7 +666,6 @@ 666 666 667 667 = 7. LoRaWAN network management = 668 668 669 - 670 670 == 7.1 Adaptive Data Rate == 671 671 672 672 ... ... @@ -735,9 +735,14 @@ 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 server728 +Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) . 739 739 730 +(% style="color:red" %) 731 +**Notice:** 740 740 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 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/]] 735 + 741 741 (% style="color:blue" %)**AT Command: AT+DR** 742 742 743 743 (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %) ... ... @@ -1058,7 +1058,7 @@ 1058 1058 ))) 1059 1059 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1060 1060 1061 -(% style="color:blue" %)**Downlink Command: 0x24** 1056 +(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)** 1062 1062 1063 1063 Format: Command Code (0x24) followed by 1 bytes channel value. 1064 1064 ... ... @@ -1099,7 +1099,6 @@ 1099 1099 ((( 1100 1100 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. 1101 1101 1102 - 1103 1103 1104 1104 ))) 1105 1105 ... ... @@ -1222,6 +1222,11 @@ 1222 1222 1223 1223 (% style="color:blue" %)**AT Command: AT+DDETECT** 1224 1224 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 + 1225 1225 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 1226 1226 |=(% colspan="3" style="width: 707px;" %)AT+**DDETECT** 1227 1227 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -1253,13 +1253,17 @@ 1253 1253 OK 1254 1254 ))) 1255 1255 1256 -(% style="color:blue" %)**Downlink Command: 0x3 3**1255 +(% style="color:blue" %)**Downlink Command: 0x32** 1257 1257 1258 1258 Format: Command Code (0x32) followed by 2 bytes mode value. 1259 1259 1260 -If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 3 3.1259 +If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32. 1261 1261 1262 -* **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. 1263 1263 1264 1264 1265 1265 == 7.26 Request the server to send an ACK == ... ... @@ -1280,7 +1280,6 @@ 1280 1280 ))) 1281 1281 1282 1282 1283 - 1284 1284 == 7.27 Adjust network rejoining interval == 1285 1285 1286 1286 ... ... @@ -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" %)30 000(((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 30 000ms= 30s1297 +the interval is 30 min 1296 1296 ))) 1297 -|(% style="width:165px" %)AT+RJTDC=60 000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((1298 -Set the ReJoin data transmission interval to 60 000ms= 60 seconds1299 +|(% 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** ... ... @@ -1310,7 +1310,6 @@ 1310 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