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 (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Xiaoling1 +XWiki.Edwin - 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,15 +21,12 @@ 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) 29 29 30 -(% style="display:none" %) (%%) 31 - 32 - 33 33 = 3. Support End Node and firmware version = 34 34 35 35 ... ... @@ -175,6 +175,7 @@ 175 175 ((( 176 176 If the downlink payload=**04FF**, the end node will reboot. 177 177 176 + 178 178 179 179 ))) 180 180 ... ... @@ -214,6 +214,7 @@ 214 214 ))) 215 215 216 216 216 + 217 217 == 4.4 Show Firmware Version == 218 218 219 219 ... ... @@ -244,6 +244,7 @@ 244 244 ((( 245 245 246 246 247 + 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 281 + 280 280 == 4.5 Show System Configure == 281 281 282 282 ... ... @@ -505,10 +505,10 @@ 505 505 506 506 (% style="color:blue" %)**AT Command: AT+CFS** 507 507 508 -(% border="1" style="background-color:#ffffcc; color:green; width: 463px" %)509 -|=(% colspan="3" style="width: 460px;" %)AT+CFS510 -|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:1 07px" %)**Response**511 -|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:1 07px" %)0(((510 +(% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %) 511 +|=(% colspan="3" style="width: 531px;" %)AT+CFS 512 +|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response** 513 +|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:178px" %)0((( 512 512 OK 513 513 ))) 514 514 ... ... @@ -665,6 +665,7 @@ 665 665 * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 666 666 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 667 667 670 + 668 668 == 7.2 LoRa® Class == 669 669 670 670 ... ... @@ -731,6 +731,7 @@ 731 731 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 732 732 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 733 733 737 + 734 734 == 7.5 Frame Counter Downlink == 735 735 736 736 ... ... @@ -1017,7 +1017,7 @@ 1017 1017 ))) 1018 1018 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1019 1019 1020 -(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)**1024 +(% style="color:blue" %)**Downlink Command: 0x24** 1021 1021 1022 1022 Format: Command Code (0x24) followed by 1 bytes channel value. 1023 1023 ... ... @@ -1057,6 +1057,7 @@ 1057 1057 ((( 1058 1058 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. 1059 1059 1064 + 1060 1060 1061 1061 ))) 1062 1062 ... ... @@ -1175,11 +1175,6 @@ 1175 1175 1176 1176 (% style="color:blue" %)**AT Command: AT+DDETECT** 1177 1177 1178 -AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880) 1179 - 1180 -* ACK_Timout_1: Unit: min 1181 -* ACK_Timout_2: Unit: min 1182 - 1183 1183 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 1184 1184 |=(% colspan="3" style="width: 707px;" %)AT+**DDETECT** 1185 1185 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -1211,17 +1211,13 @@ 1211 1211 OK 1212 1212 ))) 1213 1213 1214 -(% style="color:blue" %)**Downlink Command: 0x3 2**1214 +(% style="color:blue" %)**Downlink Command: 0x33** 1215 1215 1216 1216 Format: Command Code (0x32) followed by 2 bytes mode value. 1217 1217 1218 -If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 3 2.1218 +If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 33. 1219 1219 1220 -* **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1221 -** 0x01 : Flag 1222 -** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours) 1223 -** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours) 1224 -** **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. 1220 +* **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1225 1225 1226 1226 == 7.26 Request the server to send an ACK == 1227 1227 ... ... @@ -1248,13 +1248,13 @@ 1248 1248 (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %) 1249 1249 |=(% colspan="3" style="width: 724px;" %)AT+RJTDC 1250 1250 |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response** 1251 -|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30((( 1247 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30000((( 1252 1252 OK 1253 1253 1254 -the interval is 30 in1250 +the interval is 30000ms = 30s 1255 1255 ))) 1256 -|(% style="width:165px" %)AT+RJTDC=60|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK((( 1257 -Set the ReJoin data transmission interval to 60 in1252 +|(% style="width:165px" %)AT+RJTDC=60000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK((( 1253 +Set the ReJoin data transmission interval to 60000ms = 60 seconds 1258 1258 ))) 1259 1259 1260 1260 (% style="color:blue" %)**Downlink Command: 0x26**