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) ... ... @@ -105,6 +105,7 @@ 105 105 106 106 = 4. System Management Commands = 107 107 109 + 108 108 == 4.1 Change Uplink Interval == 109 109 110 110 ... ... @@ -175,6 +175,7 @@ 175 175 ((( 176 176 If the downlink payload=**04FF**, the end node will reboot. 177 177 180 + 178 178 179 179 ))) 180 180 ... ... @@ -214,6 +214,7 @@ 214 214 ))) 215 215 216 216 220 + 217 217 == 4.4 Show Firmware Version == 218 218 219 219 ... ... @@ -244,6 +244,7 @@ 244 244 ((( 245 245 246 246 251 + 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 285 + 280 280 == 4.5 Show System Configure == 281 281 282 282 ... ... @@ -305,6 +305,7 @@ 305 305 306 306 = 5. Keys, IDs and EUIs management = 307 307 314 + 308 308 == 5.1 Application EUI == 309 309 310 310 ... ... @@ -432,8 +432,10 @@ 432 432 433 433 = 6. Joining and sending date on LoRaWAN network = 434 434 442 + 435 435 == 6.1 Confirm Mode == 436 436 445 + 437 437 === 6.1.1 AT+CFM command before DR-LWS007 software stack === 438 438 439 439 ... ... @@ -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(((527 +(% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %) 528 +|=(% colspan="3" style="width: 531px;" %)AT+CFS 529 +|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response** 530 +|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:178px" %)0((( 522 522 OK 523 523 ))) 524 524 ... ... @@ -657,6 +657,7 @@ 657 657 658 658 = 7. LoRaWAN network management = 659 659 669 + 660 660 == 7.1 Adaptive Data Rate == 661 661 662 662 ... ... @@ -725,14 +725,9 @@ 725 725 == 7.4 Data Rate == 726 726 727 727 728 -Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) . 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 server 729 729 730 -(% style="color:red" %) 731 -**Notice:** 732 732 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 - 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)**1061 +(% 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 1102 + 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**1256 +(% 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.1260 +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. 1262 +* **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 == ... ... @@ -1283,6 +1283,7 @@ 1283 1283 ))) 1284 1284 1285 1285 1283 + 1286 1286 == 7.27 Adjust network rejoining interval == 1287 1287 1288 1288 ... ... @@ -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** ... ... @@ -1312,6 +1312,7 @@ 1312 1312 1313 1313 = 8. AT Commands Combination = 1314 1314 1313 + 1315 1315 == 8.1 Set a fix RX2DR for downlink window == 1316 1316 1317 1317