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)
-
Attachments (0 modified, 0 added, 6 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. kai1 +XWiki.Xiaoling - Content
-
... ... @@ -21,7 +21,7 @@ 21 21 = 2. How to use AT Commands or Downlink command = 22 22 23 23 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 **[[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/]] 25 25 26 26 * **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]] ... ... @@ -225,11 +225,11 @@ 225 225 (% style="color:blue" %)**Downlink Command: 0x26 (Valid in 006 stack)** 226 226 227 227 ((( 228 -Format: CommandCode (0x26) followed by 1 byte.228 +Downlink Format: 0x26 229 229 ))) 230 230 231 231 ((( 232 - 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 233 233 ))) 234 234 235 235 ((( ... ... @@ -438,7 +438,7 @@ 438 438 439 439 (% style="color:blue" %)**Downlink Command: 0x05** 440 440 441 -Format: Command Code (0x05) followed by 1byte mode value.441 +Format: Command Code (0x05) followed by 2 bytes mode value. 442 442 443 443 If the downlink payload=0501, it means set end node to use confirm mode, while type code is 05. 444 444 ... ... @@ -485,7 +485,7 @@ 485 485 486 486 (% style="color:blue" %)**Downlink Command: 0x05** 487 487 488 -Format: Command Code (0x05) followed by 3bytes mode value.488 +Format: Command Code (0x05) followed by 2 bytes mode value. 489 489 490 490 If the downlink payload=05010101, it means set end node to use confirm mode, while type code is 05. 491 491 ... ... @@ -604,7 +604,7 @@ 604 604 605 605 (% style="display:none" %) (%%) 606 606 607 -== 6.8 Send Text Data (Note:The format of this command of LA66 is subject to the manual)==607 +== 6.8 Send Text Data == 608 608 609 609 610 610 Feature: Send Text Data<port:data>. ... ... @@ -621,7 +621,7 @@ 621 621 622 622 (% style="display:none" %) (%%) 623 623 624 -== 6.9 Send Hexadecimal Data (Note:The format of this command of LA66 is subject to the manual)==624 +== 6.9 Send Hexadecimal Data == 625 625 626 626 627 627 Feature: Send hexadecimal data along with the application port. ... ... @@ -926,7 +926,7 @@ 926 926 == 7.14 Transmit Power == 927 927 928 928 929 -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. ) 930 930 931 931 (% 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** 932 932 ... ... @@ -1084,22 +1084,7 @@ 1084 1084 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. 1085 1085 ))) 1086 1086 1087 -**Example:** 1088 -~1. Set AT+RX1WTO=0, AT+RX1DL=5000, the window opening time is: 53.699ms 1089 1089 1090 -[[image:image-20240906095336-1.png||height="404" width="759"]] 1091 - 1092 - 1093 -2. Set AT+RX1WTO=128, AT+RX1DL=5000, the window opening time is: 149.644ms 1094 - 1095 -[[image:image-20240906095433-2.png||height="403" width="756"]] 1096 - 1097 - 1098 -3. Set AT+RX1WTO=128, AT+RX1DL=5000, the window opening time is: 298.221ms 1099 - 1100 -[[image:image-20240906095527-3.png||height="400" width="749"]] 1101 - 1102 - 1103 1103 == 7.21 Get or Set RXwindows2 timeout == 1104 1104 1105 1105 ... ... @@ -1115,22 +1115,8 @@ 1115 1115 ))) 1116 1116 |(% style="width:162px" %)AT+RX2WTO=20|(% style="width:192px" %)Set RXwindows2 timeout|(% style="width:90px" %)OK 1117 1117 1118 -**Example:** 1119 -~1. Set AT+RX2WTO=0, AT+RX2DL=6000, the window opening time is: 48.435ms 1103 +(% style="display:none" %) (%%) 1120 1120 1121 -(% style="display:none" %) (%%) [[image:image-20240906095619-4.png||height="375" width="703"]] 1122 - 1123 - 1124 -2. Set AT+RX2WTO=128, AT+RX2DL=6000, the window opening time is: 3011ms 1125 - 1126 -[[image:image-20240906095726-5.png||height="381" width="714"]] 1127 - 1128 - 1129 -3. Set AT+RX2WTO=255, AT+RX2DL=6000, the window opening time is: 3009ms 1130 - 1131 -[[image:image-20240906095811-6.png||height="380" width="711"]] 1132 - 1133 - 1134 1134 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1135 1135 1136 1136 ... ... @@ -1245,7 +1245,6 @@ 1245 1245 AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880) 1246 1246 1247 1247 * ACK_Timout_1: Unit: min 1248 - 1249 1249 * ACK_Timout_2: Unit: min 1250 1250 1251 1251 (% border="1" style="background-color:#f2f2f2; width:562px" %) ... ... @@ -1286,41 +1286,31 @@ 1286 1286 1287 1287 * **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1288 1288 1289 -* 1290 -** 0x01** : Flag** 1259 +* 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. 1291 1291 1292 - **0x05A0 **: ACK_Timout_1 : 1440minutes (24 hours) 1293 - 1294 - **0x0B40 **: ACK_Timout_2 : 2880minutes (48 hours) 1295 - 1296 -* **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. 1297 - 1298 1298 (% style="display:none" %) (%%) 1299 1299 1300 1300 == 7.26 Request the server to send an ACK == 1301 1301 1302 1302 1303 -Feature: Mode for sending data for which acknowledgment was not received. LoraWAN Network Server(eg. The Things NetWork/ChirpStack/AWS/...). 1304 - 1305 1305 (% style="color:blue" %)**AT Command: AT+PNACKMD** 1306 1306 1307 1307 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:889px" %) 1308 1308 |(% 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** 1309 -|(% 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((( 1310 1310 OK 1311 1311 ))) 1312 -|(% 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" %)((( 1313 1313 0 1314 1314 OK 1315 1315 ))) 1316 1316 1317 -(% style="display:none" %) (%%) (% style="color:blue" %)**Downlink Command: 0x34**1282 +(% style="display:none" %) (%%) 1318 1318 1319 -0X34 01 ~/~/Same As AT+PNACKMD=1 1320 - 1321 -0x34 00 ~/~/Same As AT+PNACKMD=0 1322 - 1323 - 1324 1324 == 7.27 Adjust network rejoining interval == 1325 1325 1326 1326
- 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