Changes for page End Device AT Commands and Downlink Command
Last modified by kai on 2024/09/06 10:00
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -10,7 +10,6 @@ 10 10 Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands: 11 11 12 12 * (% style="color:blue" %)**Common Commands:** (%%) They should be available for each sensor, such as: change uplink interval, reset device. 13 - 14 14 * (% style="color:blue" %)**Sensor Related Commands:** (%%) Only for special sensor, such as control relay, poll RS485 device. 15 15 16 16 ((( ... ... @@ -22,7 +22,6 @@ 22 22 23 23 24 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 - 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]] 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]]? ... ... @@ -36,7 +36,13 @@ 36 36 Dragino STM32 base hardware Firmware / LoRaWAN stack list 37 37 38 38 (% border="1" cellspacing="4" style="background-color:#f2f2f2; width:966px" %) 39 -|(% style="background-color:#4f81bd; color:white; width:187px" %)**Model**|(% style="background-color:#4f81bd; color:white; width:330px" %)**Description**|(% style="background-color:#4f81bd; color:white; width:445px" %)**Firmware Version <~-~-> Stack Version** 37 +|(% style="background-color:#4f81bd; color:white; width:187px" %)((( 38 +**Model** 39 +)))|(% style="background-color:#4f81bd; color:white; width:330px" %)((( 40 +**Description** 41 +)))|(% style="background-color:#4f81bd; color:white; width:445px" %)((( 42 +**Firmware Version <~-~-> Stack Version** 43 +))) 40 40 |(% style="width:187px" %)((( 41 41 [[LSN50-v1>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/128-lsn50.html]], [[LSN50-V2>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/155-lsn50-v2.html]], 42 42 )))|(% style="width:330px" %)((( ... ... @@ -131,7 +131,6 @@ 131 131 ))) 132 132 133 133 * **Example 1**: Downlink Payload:** 0100001E** ~/~/ Set Transmit Interval (TDC) = 30 seconds 134 - 135 135 * **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 136 136 137 137 (% style="display:none" %) (%%) ... ... @@ -443,7 +443,6 @@ 443 443 If the downlink payload=0501, it means set end node to use confirm mode, while type code is 05. 444 444 445 445 * **Example 1:** Downlink Payload: 0501 ~/~/ Set AT+CFM=1 446 - 447 447 * **Example 2:** Downlink Payload: 0500 ~/~/ Set AT+CFM=0 448 448 449 449 (% style="display:none" %) (%%) ... ... @@ -490,7 +490,6 @@ 490 490 If the downlink payload=05010101, it means set end node to use confirm mode, while type code is 05. 491 491 492 492 * **Example 1:** Downlink Payload: 05010101 ~/~/ Set AT+CFM=1,1,1 493 - 494 494 * **Example 2:** Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 495 495 496 496 (% style="display:none" %) (%%) ... ... @@ -551,7 +551,6 @@ 551 551 If the downlink payload=2000, it means set the Network Join Mode, while type code is 20. 552 552 553 553 * **Example 1: **Downlink Payload: **2000 ** ~/~/ Set AT+NJM=0 554 - 555 555 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 556 556 557 557 (% style="display:none" %) (%%) ... ... @@ -663,7 +663,6 @@ 663 663 If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22. 664 664 665 665 * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 666 - 667 667 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 668 668 669 669 (% style="display:none" %) (%%) ... ... @@ -720,7 +720,6 @@ 720 720 **Notice:** 721 721 722 722 * 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. 723 - 724 724 * 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/]] 725 725 726 726 (% style="color:blue" %)**AT Command: AT+DR** ... ... @@ -739,7 +739,6 @@ 739 739 If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF. 740 740 741 741 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 742 - 743 743 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 744 744 745 745 (% style="display:none" %) (%%) ... ... @@ -947,7 +947,6 @@ 947 947 If the downlink payload=22000100, it means setting the TXP to 0. 948 948 949 949 * **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2. 950 - 951 951 * **Example 2**: Downlink Payload: **22000000** ~/~/ Set AT+TXP=0. 952 952 953 953 (% style="display:none" %) (%%) ... ... @@ -1006,7 +1006,6 @@ 1006 1006 If the downlink payload=2301, it means set the application port to 1, while type code is 23. 1007 1007 1008 1008 * **Example 1**: Downlink Payload: **2301** ~/~/ set the application port to 1 1009 - 1010 1010 * **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5 1011 1011 1012 1012 (% style="display:none" %) (%%) ... ... @@ -1052,7 +1052,6 @@ 1052 1052 If the downlink payload=2401, it means set channel mode to 1, while type code is 24. 1053 1053 1054 1054 * **Example 1**: Downlink Payload: 2401 ~/~/ set channel mode to 1 1055 - 1056 1056 * **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5 1057 1057 1058 1058 (% style="display:none" %) (%%) ... ... @@ -1124,7 +1124,6 @@ 1124 1124 If the downlink payload=2501, it means set uplinkdwelltime to 1, while type code is 25. 1125 1125 1126 1126 * **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1 1127 - 1128 1128 * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1129 1129 1130 1130 (% style="display:none" %) (%%) ... ... @@ -1138,21 +1138,15 @@ 1138 1138 (% style="color:blue" %)**RPL value:** 1139 1139 1140 1140 * **AT+RPL=0:** Device won't immediately reply any downlink commands from platform. 1141 - 1142 1142 * **AT+RPL=1:** Device will immediately reply message to Unconfirmed Data Down. Payload is 0x00. 1143 - 1144 1144 * **AT+RPL=2:** Device will immediately reply message to Confirmed Data Down. Payload is 0x00 and requied response header for this command. 1145 - 1146 1146 * **AT+RPL=3:** Device will immediately reply message to MAC Command. Payload is 0x00 and requied response header for this command. 1147 - 1148 1148 * **AT+RPL=4: **Device will immediately reply message to Confirmed Data Down & MAC Command. Payload is 0x00 and requied response header for these two commands. 1149 1149 1150 1150 (% style="color:blue" %)**Case Analyes:** 1151 1151 1152 1152 * For Class A devices, AT+RPL=0 is ok. that is defaut settings in software. 1153 - 1154 1154 * For Class C devices used in ChirpStack, need to set AT+RPL=4 because Chirpstack require immedietely reply message to MAC Command. 1155 - 1156 1156 * For Class C devices used in TTI, need to set AT+RPL=4 because TTI require immediately reply message to Confirmed Data Down & MAC Command. 1157 1157 1158 1158 (% style="color:blue" %)**AT Command: AT+RPL** ... ... @@ -1171,7 +1171,6 @@ 1171 1171 If the downlink payload=2101, it means set packet receiving response level to 1, while type code is 21. 1172 1172 1173 1173 * **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1 1174 - 1175 1175 * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1176 1176 1177 1177 (% style="display:none" %) (%%) ... ... @@ -1203,7 +1203,6 @@ 1203 1203 If the downlink payload=330100, it means set end node to use confirm mode, while type code is 33. 1204 1204 1205 1205 * Example 1: Downlink Payload: 330100 ~/~/ Set AT+SETMAXNBTRANS=1,0 1206 - 1207 1207 * Example 2: Downlink Payload: 330201 ~/~/ Set AT+SETMAXNBTRANS=2,1 1208 1208 1209 1209 (% style="display:none" %) (%%) ... ... @@ -1255,7 +1255,6 @@ 1255 1255 If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32. 1256 1256 1257 1257 * **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1258 - 1259 1259 ** 0x01 : Flag 1260 1260 ** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours) 1261 1261 ** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours) ... ... @@ -1303,7 +1303,6 @@ 1303 1303 If the downlink payload=26000A, it means set end node to use confirm mode, while type code is 26. 1304 1304 1305 1305 * **Example 1:** Downlink Payload: 26000A ~/~/ Set AT+RJTDC=10 1306 - 1307 1307 * **Example 2: **Downlink Payload: 260002 ~/~/ Set AT+RJTDC=2 1308 1308 1309 1309 (% style="display:none" %) (%%)