Changes for page End Device AT Commands and Downlink Command
Last modified by Mengting Qiu on 2025/07/01 15:53
From version 81.4
edited by Mengting Qiu
on 2025/07/01 15:28
on 2025/07/01 15:28
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
-
Attachments (0 modified, 0 added, 6 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. ting1 +XWiki.Xiaoling - Content
-
... ... @@ -18,13 +18,10 @@ 18 18 ))) 19 19 20 20 21 - 22 - 23 - 24 24 = 2. How to use AT Commands or Downlink command = 25 25 26 26 27 -* **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 **[[DraginoProductsUser Manual>>http://wiki.dragino.com/xwiki/bin/view/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/]]**.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/]] 28 28 29 29 * **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: 30 30 ** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]] ... ... @@ -228,11 +228,11 @@ 228 228 (% style="color:blue" %)**Downlink Command: 0x26 (Valid in 006 stack)** 229 229 230 230 ((( 231 -Format: CommandCode (0x26) followed by 1 byte.228 +Downlink Format: 0x26 232 232 ))) 233 233 234 234 ((( 235 - If the downlink payload=**2601, **Device will reply with firmware version info, device info. frequency band info. detail please check device user manual. Total 5 bytes Example: If device is of firmware version 1.1.0 Upload: xx ~-~- yy ~-~- zz ~-~- 110 total 5 bytes( FPort= 5 usually).232 +Device will reply with firmware version info, device info. frequency band info. detail please check device user manual. Total 5 bytes Example: If device is of firmware version 1.1.0 Upload: xx ~-~- yy ~-~- zz ~-~- 110 total 5 bytes 236 236 ))) 237 237 238 238 ((( ... ... @@ -258,9 +258,9 @@ 258 258 * 0x05: KZ865 259 259 * 0x06: RU864 260 260 * 0x07: AS923 261 -* 0x08: AS923- 2262 -* 0x09: AS923- 3263 -* 0xa0: AS923- 4258 +* 0x08: AS923-1 259 +* 0x09: AS923-2 260 +* 0xa0: AS923-3 264 264 265 265 ((( 266 266 ... ... @@ -292,62 +292,6 @@ 292 292 293 293 (% style="display:none" %) (%%) 294 294 295 -== 4.6 Get or Set time synchronization method == 296 - 297 - 298 -Feature: Set the system time synchronization. 299 - 300 -(% style="color:blue" %)**AT Command: AT+SYNCMOD** 301 - 302 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:727.222px" %) 303 -|(% style="background-color:#4f81bd; color:white; width:165px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:227px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:329px" %)**Response** 304 -|(% style="width:165px" %)AT+SYNCMOD=?|(% style="width:227px" %)Get the current time synchronization configuration|(% style="width:329px" %)((( 305 -1,0(Default) 306 - 307 -((( 308 -OK 309 -))) 310 -))) 311 -|(% style="width:165px" %)AT+SYNCMOD=1,8|(% style="width:227px" %)Set the time to UTC+8 time display.|(% style="width:329px" %)OK 312 - 313 -(% border="1" cellspacing="4" style="background-color:#f2f2f2; width:727.222px" %) 314 -|(% style="background-color:#4f81bd; color:white; width:165px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:227px" %)**Parameters**|(% style="background-color:#4f81bd; color:white; width:329px" %)((( 315 -|**Explanation** 316 -))) 317 -|(% style="width:165px" %)AT+SYNCMOD=?|(% style="width:227px" %)Get the current time synchronization configuration|(% style="width:329px" %)((( 318 -1,0(Default) 319 - 320 -((( 321 -OK 322 -))) 323 -))) 324 -|(% style="width:165px" %)AT+SYNCMOD=1,8|(% style="width:227px" %)Set the time to UTC+8 time display.|(% style="width:329px" %)OK 325 - 326 - 327 - 328 - 329 - AT+SYNCMOD=1,bb 330 - 331 -* ((( 332 -1: Set the system time synchronization 333 -))) 334 - 335 - bb: Set local time (24 zones): -12~~12 336 - 337 -* ((( 338 -Example: AT+SYNCMOD=1,8 ~/~/Set the time to UTC+8 time display. 339 -))) 340 -* ((( 341 -Downlink payload:28 01 xx 342 - 343 -Example: downlink 0x280108 ~-~-~-~-->AT+SYNCMOD=1,8 344 -))) 345 - 346 -Note: This command takes effect after the node is reset, or after downlink 0x2601(query device status). 347 - 348 - 349 - 350 - 351 351 = 5. Keys, IDs and EUIs management = 352 352 353 353 == 5.1 Application EUI == ... ... @@ -497,7 +497,7 @@ 497 497 498 498 (% style="color:blue" %)**Downlink Command: 0x05** 499 499 500 -Format: Command Code (0x05) followed by 1byte mode value.441 +Format: Command Code (0x05) followed by 2 bytes mode value. 501 501 502 502 If the downlink payload=0501, it means set end node to use confirm mode, while type code is 05. 503 503 ... ... @@ -544,7 +544,7 @@ 544 544 545 545 (% style="color:blue" %)**Downlink Command: 0x05** 546 546 547 -Format: Command Code (0x05) followed by 3bytes mode value.488 +Format: Command Code (0x05) followed by 2 bytes mode value. 548 548 549 549 If the downlink payload=05010101, it means set end node to use confirm mode, while type code is 05. 550 550 ... ... @@ -663,7 +663,7 @@ 663 663 664 664 (% style="display:none" %) (%%) 665 665 666 -== 6.8 Send Text Data (Note:The format of this command of LA66 is subject to the manual)==607 +== 6.8 Send Text Data == 667 667 668 668 669 669 Feature: Send Text Data<port:data>. ... ... @@ -680,7 +680,7 @@ 680 680 681 681 (% style="display:none" %) (%%) 682 682 683 -== 6.9 Send Hexadecimal Data (Note:The format of this command of LA66 is subject to the manual)==624 +== 6.9 Send Hexadecimal Data == 684 684 685 685 686 686 Feature: Send hexadecimal data along with the application port. ... ... @@ -985,7 +985,7 @@ 985 985 == 7.14 Transmit Power == 986 986 987 987 988 -Feature: Get or Set the Transmit Power(0-5, MAX:0, MIN:5, according to LoRaWAN Spec, or 40=10dB m, 41 = 11dBm, …, 50 = 20dBmwhich is out of LoRaWAN spec. )929 +Feature: Get or Set the Transmit Power(0-5, MAX:0, MIN:5, according to LoRaWAN Spec, or 40=10dB, 41 = 11dB, …, 50 = 20dB which is out of LoRaWAN spec. ) 989 989 990 990 (% style="color:red" %)**Notice: Transmit Power might be changed by ADR from LoRaWAN server. So manually change TXP also remember to set AT+ADR=0 in sensor** 991 991 ... ... @@ -1143,22 +1143,7 @@ 1143 1143 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. 1144 1144 ))) 1145 1145 1146 -**Example:** 1147 -~1. Set AT+RX1WTO=0, AT+RX1DL=5000, the window opening time is: 53.699ms 1148 1148 1149 -[[image:image-20240906095336-1.png||height="404" width="759"]] 1150 - 1151 - 1152 -2. Set AT+RX1WTO=128, AT+RX1DL=5000, the window opening time is: 149.644ms 1153 - 1154 -[[image:image-20240906095433-2.png||height="403" width="756"]] 1155 - 1156 - 1157 -3. Set AT+RX1WTO=128, AT+RX1DL=5000, the window opening time is: 298.221ms 1158 - 1159 -[[image:image-20240906095527-3.png||height="400" width="749"]] 1160 - 1161 - 1162 1162 == 7.21 Get or Set RXwindows2 timeout == 1163 1163 1164 1164 ... ... @@ -1174,22 +1174,8 @@ 1174 1174 ))) 1175 1175 |(% style="width:162px" %)AT+RX2WTO=20|(% style="width:192px" %)Set RXwindows2 timeout|(% style="width:90px" %)OK 1176 1176 1177 -**Example:** 1178 -~1. Set AT+RX2WTO=0, AT+RX2DL=6000, the window opening time is: 48.435ms 1103 +(% style="display:none" %) (%%) 1179 1179 1180 -(% style="display:none" %) (%%) [[image:image-20240906095619-4.png||height="375" width="703"]] 1181 - 1182 - 1183 -2. Set AT+RX2WTO=128, AT+RX2DL=6000, the window opening time is: 3011ms 1184 - 1185 -[[image:image-20240906095726-5.png||height="381" width="714"]] 1186 - 1187 - 1188 -3. Set AT+RX2WTO=255, AT+RX2DL=6000, the window opening time is: 3009ms 1189 - 1190 -[[image:image-20240906095811-6.png||height="380" width="711"]] 1191 - 1192 - 1193 1193 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1194 1194 1195 1195 ... ... @@ -1304,7 +1304,6 @@ 1304 1304 AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880) 1305 1305 1306 1306 * ACK_Timout_1: Unit: min 1307 - 1308 1308 * ACK_Timout_2: Unit: min 1309 1309 1310 1310 (% border="1" style="background-color:#f2f2f2; width:562px" %) ... ... @@ -1346,40 +1346,30 @@ 1346 1346 * **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1347 1347 1348 1348 * 1349 -** 0x01** : Flag** 1260 +** 0x01 : Flag 1261 +** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours) 1262 +** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours) 1263 +** **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. 1350 1350 1351 - **0x05A0 **: ACK_Timout_1 : 1440minutes (24 hours) 1352 - 1353 - **0x0B40 **: ACK_Timout_2 : 2880minutes (48 hours) 1354 - 1355 -* **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. 1356 - 1357 1357 (% style="display:none" %) (%%) 1358 1358 1359 1359 == 7.26 Request the server to send an ACK == 1360 1360 1361 1361 1362 -Feature: Mode for sending data for which acknowledgment was not received. LoraWAN Network Server(eg. The Things NetWork/ChirpStack/AWS/...). 1363 - 1364 1364 (% style="color:blue" %)**AT Command: AT+PNACKMD** 1365 1365 1366 1366 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:889px" %) 1367 1367 |(% style="background-color:#4f81bd; color:white; width:160px" %)**Command Example**|(% style="background-color:#4f81bd; color:white; width:627px" %)**Function**|(% style="background-color:#4f81bd; color:white; width:100px" %)**Response** 1368 -|(% style="width:160px" %)AT+PNACKMD=1|(% style="width:627px" %)If the node uploads the ACK as confirm, it will request the LoraWAN Network Server to send an ACK. If theLoraWAN Network Server ack is not received, the node will upload the packets that have not received the ACK the next time it receives the ACK|(% style="width:100px" %)1(((1274 +|(% style="width:160px" %)AT+PNACKMD=1|(% style="width:627px" %)If the node uploads the ACK as confirm, it will request the server to send an ACK. If the server ack is not received, the node will upload the packets that have not received the ACK the next time it receives the ACK|(% style="width:100px" %)1((( 1369 1369 OK 1370 1370 ))) 1371 -|(% style="width:160px" %)AT+PNACKMD=0|(% style="width:627px" %)off request the LoraWAN Network Server to send an ACK|(% style="width:100px" %)(((1277 +|(% style="width:160px" %)AT+PNACKMD=0|(% style="width:627px" %)off request the server to send an ACK|(% style="width:100px" %)((( 1372 1372 0 1373 1373 OK 1374 1374 ))) 1375 1375 1376 -(% style="display:none" %) (%%) (% style="color:blue" %)**Downlink Command: 0x34**1282 +(% style="display:none" %) (%%) 1377 1377 1378 -0X34 01 ~/~/Same As AT+PNACKMD=1 1379 - 1380 -0x34 00 ~/~/Same As AT+PNACKMD=0 1381 - 1382 - 1383 1383 == 7.27 Adjust network rejoining interval == 1384 1384 1385 1385
- image-20240906095336-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.kai - Size
-
... ... @@ -1,1 +1,0 @@ 1 -111.0 KB - Content
- image-20240906095433-2.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.kai - Size
-
... ... @@ -1,1 +1,0 @@ 1 -113.2 KB - Content
- image-20240906095527-3.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.kai - Size
-
... ... @@ -1,1 +1,0 @@ 1 -111.6 KB - Content
- image-20240906095619-4.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.kai - Size
-
... ... @@ -1,1 +1,0 @@ 1 -112.4 KB - Content
- image-20240906095726-5.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.kai - Size
-
... ... @@ -1,1 +1,0 @@ 1 -114.0 KB - Content
- image-20240906095811-6.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.kai - Size
-
... ... @@ -1,1 +1,0 @@ 1 -112.8 KB - Content