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
-
... ... @@ -23,18 +23,18 @@ 23 23 24 24 = 3. Support End Node and firmware version = 25 25 26 -(% border="1"style="background-color:#ffffcc; color:green" %)27 -|=(% colspan="3" %)28 -|**Model**|**Description**|**Firmware Version <~-~-> Stack Version** 29 -|[[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]],|Open Source Generic LoRaWAN Sensor Node|LSN50 v1.6.0 <~-~-> DR-LWS-003;((( 26 +(% style="background-color:#ffffcc; color:green; width:995.222px" %) 27 +|=(% colspan="3" style="width: 992px;" %)Dragino STM32 base hardware Firmware / LoRaWAN stack list 28 +|(% style="width:187px" %)**Model**|(% style="width:349px" %)**Description**|(% style="width:453px" %)**Firmware Version <~-~-> Stack Version** 29 +|(% style="width:187px" %)[[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]],|(% style="width:349px" %)Open Source Generic LoRaWAN Sensor Node|(% style="width:453px" %)LSN50 v1.6.0 <~-~-> DR-LWS-003;((( 30 30 LSN50 v1.7.0 <~-~-> DR-LWS-005; ~-~-> Support since this version 31 31 ))) 32 -|[[LGT92>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/142-lgt-92.html]],|LoRaWAN GPS Tracker|LGT92 v1.6.3 <~-~-> DR-LWS-003;((( 32 +|(% style="width:187px" %)[[LGT92>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/142-lgt-92.html]],|(% style="width:349px" %)LoRaWAN GPS Tracker|(% style="width:453px" %)LGT92 v1.6.3 <~-~-> DR-LWS-003;((( 33 33 LGT92 v1.6.4 <~-~-> DR-LWS-005;~-~-> Support since this version 34 34 ))) 35 -|[[LBT1>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/165-lbt1.html]],|LoRaWAN BLE Indoor Tracker|LBT1 v1.0 <~-~-> DR-LWS-005; 36 -|[[RS485-LN>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/154-rs485-ln.html]],|LoRaWAN RS485 Modbus Converter|RS485-LN v1.3 <~-~-> DR-LWS-005; 37 -|[[LHT65>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/151-lht65.html]],|LoRaWAN Temperature & Humidity Sensor|LHT65 v1.7 <~-~-> DR-LWS-003;((( 35 +|(% style="width:187px" %)[[LBT1>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/165-lbt1.html]],|(% style="width:349px" %)LoRaWAN BLE Indoor Tracker|(% style="width:453px" %)LBT1 v1.0 <~-~-> DR-LWS-005; 36 +|(% style="width:187px" %)[[RS485-LN>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/154-rs485-ln.html]],|(% style="width:349px" %)LoRaWAN RS485 Modbus Converter|(% style="width:453px" %)RS485-LN v1.3 <~-~-> DR-LWS-005; 37 +|(% style="width:187px" %)[[LHT65>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/151-lht65.html]],|(% style="width:349px" %)LoRaWAN Temperature & Humidity Sensor|(% style="width:453px" %)LHT65 v1.7 <~-~-> DR-LWS-003;((( 38 38 LHT65 v1.8.0 <~-~-> DR-LWS-005;~-~-> Support since this version 39 39 ))) 40 40 ... ... @@ -44,76 +44,99 @@ 44 44 45 45 Feature: Change LoRaWAN End Node Transmit Interval. 46 46 47 -AT Command: AT+TDC 47 +(% class="box infomessage" %) 48 +((( 49 +**AT Command: AT+TDC** 50 +))) 48 48 49 -|=(% colspan="3" %)AT+TDC 50 -|**Command Example**|**Function**|**Response** 51 -|AT+TDC=?|Show current transmit Interval|30000((( 52 +(% style="background-color:#ffffcc; color:green; width:727.222px" %) 53 +|=(% colspan="3" style="width: 724px;" %)AT+TDC 54 +|(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response** 55 +|(% style="width:165px" %)AT+TDC=?|(% style="width:227px" %)Show current transmit Interval|(% style="width:329px" %)30000((( 52 52 OK 53 53 54 54 the interval is 30000ms = 30s 55 55 ))) 56 -|AT+TDC=60000|Set Transmit Interval|OK((( 60 +|(% style="width:165px" %)AT+TDC=60000|(% style="width:227px" %)Set Transmit Interval|(% style="width:329px" %)OK((( 57 57 Set transmit interval to 60000ms = 60 seconds 58 58 ))) 59 59 60 -Downlink Command: 0x01 64 +{{info}} 65 +**Downlink Command: 0x01** 66 +{{/info}} 61 61 62 62 Format: Command Code (0x01) followed by 3 bytes time value. 63 63 64 64 If the downlink payload=0100003C, it means set the END Node’s Transmit Interval to 0x00003C=60(S), while type code is 01. 65 65 66 -* Example 1: Downlink Payload: 0100001E ~/~/ Set Transmit Interval (TDC) = 30 seconds 67 -* Example 2: Downlink Payload: 0100003C ~/~/ Set Transmit Interval (TDC) = 60 seconds 72 +* **Example 1**: Downlink Payload:** 0100001E** ~/~/ Set Transmit Interval (TDC) = 30 seconds 73 +* **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 68 68 69 69 == 4.2 Reboot End Node == 70 70 71 71 Feature: Reboot End Node to perform a new OTAA or ABP Join. 72 72 73 -AT Command: ATZ 79 +{{info}} 80 +**AT Command: ATZ** 81 +{{/info}} 74 74 83 +(% border="0" style="background-color:#ffffcc; color:green; width:727.222px" %) 75 75 |=(% colspan="3" %)ATZ: Trig a reset of the MCU 76 76 |**Command Example**|**Function**|**Response** 77 -|ATZ|Reset MCU|Device reset and show booting info 86 +|ATZ|Reset MCU|((( 87 +Device reset and show booting info 78 78 79 -{{{LSN50 Device/LoRa ST Module 89 +LSN50 Device/LoRa ST Module 90 + 80 80 Image Version: XX 92 + 81 81 Frequency Band: XX 94 + 82 82 DevEui= XX XX XX XX XX XX XX XX 83 83 84 84 <followed by the Tx and Rx information> 85 - }}}98 +))) 86 86 100 +{{info}} 101 +**Downlink Command: 0x04** 102 +{{/info}} 87 87 88 -Downlink Command: 0x04 89 - 90 90 Format: Command Code (0x04) followed by FF. 91 91 92 -If the downlink payload=04FF, the end node will reboot. 106 +If the downlink payload=**04FF**, the end node will reboot. 93 93 94 94 == 4.3 Reset to factory Default == 95 95 96 96 Feature: Reset the parameters to Factory Default, factory default value depends on the firmware settings, the OTAA and ABP keys will reserve after this command. 97 97 98 -AT Command: AT+FDR 112 +{{info}} 113 +**AT Command: AT+FDR** 114 +{{/info}} 99 99 100 -|=(% colspan="3" %)Reset to factory default 101 -|**Command Example**|**Function**|**Response** 102 -|AT+FDR|Reset to factory default|Device reset to factory default parameters and show booting info 116 +(% style="background-color:#ffffcc; color:green; width:831.222px" %) 117 +|=(% colspan="3" style="width: 828px;" %)Reset to factory default 118 +|(% style="width:181px" %)**Command Example**|(% style="width:181px" %)**Function**|(% style="width:465px" %)**Response** 119 +|(% style="width:181px" %)AT+FDR|(% style="width:181px" %)Reset to factory default|(% style="width:465px" %)((( 120 +Device reset to factory default parameters and show booting info 103 103 104 -{{{LSN50 Device/LoRa ST Module 122 +LSN50 Device/LoRa ST Module 123 + 105 105 Image Version: XX 125 + 106 106 Frequency Band: XX 127 + 107 107 DevEui= XX XX XX XX XX XX XX XX 129 + 108 108 Please set the parameters or reset Device to apply change 109 - }}}131 +))) 110 110 133 +{{info}} 134 +**Downlink Command: 0x04** 135 +{{/info}} 111 111 112 -Downlink Command: 0x04 113 - 114 114 Format: Command Code (0x04) followed by FE. 115 115 116 -If the downlink payload=04FE, Reset Parameters to Factory Default, Keys Reserve. 139 +If the downlink payload=**04FE**, Reset Parameters to Factory Default, Keys Reserve. 117 117 118 118 119 119 == 4.4 Show Firmware Version == ... ... @@ -120,30 +120,34 @@ 120 120 121 121 Feature: Show firmware version. No downlink command yet. 122 122 123 -AT Command: AT+VER 146 +{{info}} 147 +**AT Command: AT+VER** 148 +{{/info}} 124 124 150 +(% style="background-color:#ffffcc; color:green" %) 125 125 |=(% colspan="3" %)AT+VER: Image Version and Frequency Band 126 126 |**Command Example**|**Function**|**Response** 127 -|AT+VER=?|Show Image version and Frequency Band| 153 +|AT+VER=?|Show Image version and Frequency Band|((( 154 +1.3 EU868 128 128 129 -{{{1.3 EU868 130 130 OK 131 - }}}157 +))) 132 132 159 +{{info}} 160 +**Downlink Command: 0x26 (Valid in 006 stack)** 161 +{{/info}} 133 133 134 -Downlink Command: 0x26 (Valid in 006 stack) 135 - 136 136 Downlink Format: 0x26 137 137 138 138 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 139 139 140 -xx: Software Type: 167 +**xx: Software Type:** 141 141 142 142 * 0x00 01: LGT92 Version 143 143 * 0x00 02: LBT1 144 144 * 0x00 03: LSE01/LDDS75/LDDS20/LSPH01/LLMS01/LSNPK01 145 145 146 -yy: Frequency Band: 173 +**yy: Frequency Band:** 147 147 148 148 * 0x01: EU868 149 149 * 0x02: US915 ... ... @@ -156,7 +156,7 @@ 156 156 * 0x09: AS923-2 157 157 * 0xa0: AS923-3 158 158 159 -zz: Subband 186 +**zz: Subband** 160 160 161 161 firmware version: v1.1.0 ~-~-> 110 162 162 ... ... @@ -165,19 +165,26 @@ 165 165 166 166 Feature: Show All configure. No downlink command yet. 167 167 168 -AT Command: AT+CFG 195 +{{info}} 196 +**AT Command: AT+CFG** 197 +{{/info}} 169 169 170 -|=(% colspan="3" %)AT+CFG: Print all configurations 171 -|**Command Example**|**Function**|**Response** 172 -|AT+CFG|Show all configures| 199 +(% style="background-color:#ffffcc; color:green; width:599.222px" %) 200 +|=(% colspan="3" style="width: 596px;" %)AT+CFG: Print all configurations 201 +|(% style="width:160px" %)**Command Example**|(% style="width:154px" %)**Function**|(% style="width:280px" %)**Response** 202 +|(% style="width:160px" %)AT+CFG|(% style="width:154px" %)Show all configures|(% style="width:280px" %)((( 203 +AT+DEUI = XX XX XX XX XX XX XX XX 173 173 174 -{{{AT+DEUI = XX XX XX XX XX XX XX XX 175 175 AT+DADDR=XXXXXXXX 206 + 176 176 ………. 208 + 177 177 AT+RX2WTO=X 210 + 178 178 AT+CHS=868100000 212 + 179 179 OK 180 - }}}214 +))) 181 181 182 182 183 183 = 5. Keys, IDs and EUIs management = ... ... @@ -186,40 +186,49 @@ 186 186 187 187 Feature: Get or Set the Application EUI. 188 188 189 -AT Command: AT+APPEUI 223 +{{info}} 224 +**AT Command: AT+APPEUI** 225 +{{/info}} 190 190 191 -|=(% colspan="3" %)AT+APPEUI 192 -|**Command Example**|**Function**|**Response** 193 -|AT+APPEUI=?|Get the Application EUI|00 b3 d5 00 00 00 00 00((( 227 +(% style="background-color:#ffffcc; color:green; width:686.222px" %) 228 +|=(% colspan="3" style="width: 683px;" %)AT+APPEUI 229 +|(% style="width:305px" %)**Command Example**|(% style="width:186px" %)**Function**|(% style="width:191px" %)**Response** 230 +|(% style="width:305px" %)AT+APPEUI=?|(% style="width:186px" %)Get the Application EUI|(% style="width:191px" %)00 b3 d5 00 00 00 00 00((( 194 194 OK 195 195 ))) 196 -|AT+APPEUI=00 b3 d5 7e f0 00 4d 34|Set the Application EUI|OK 233 +|(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 197 197 198 198 == 5.2 Application Key == 199 199 200 200 Feature: Get or Set the Application Key. 201 201 202 -AT Command: AT+APPKEY 239 +{{info}} 240 +**AT Command: AT+APPKEY** 241 +{{/info}} 203 203 204 -|=(% colspan="3" %)AT+APPKEY 205 -|**Command Example**|**Function**|**Response** 206 -|AT+APPKEY=?|Get the Application Key|00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35((( 243 +(% style="background-color:#ffffcc; color:green; width:976.222px" %) 244 +|=(% colspan="3" style="width: 973px;" %)AT+APPKEY 245 +|(% style="width:441px" %)**Command Example**|(% style="width:180px" %)**Function**|(% style="width:350px" %)**Response** 246 +|(% style="width:441px" %)AT+APPKEY=?|(% style="width:180px" %)Get the Application Key|(% style="width:350px" %)00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35((( 207 207 OK 208 208 ))) 209 -|AT+APPKEY=00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35|Set the Application Key .|OK249 +|(% style="width:441px" %)AT+APPKEY=00 35 55 55 22 23 55 53 43 24 23 42 34 35 35 35|(% style="width:180px" %)Set the Application Key|(% style="width:350px" %)OK 210 210 211 211 == 5.3 Application Session Key == 212 212 213 213 Feature: Get or Set the Application Session Key. 214 214 215 -AT Command: AT+APPSKEY 255 +{{info}} 256 +**AT Command: AT+APPSKEY** 257 +{{/info}} 216 216 217 -|=(% colspan="3" %)AT+APPSKEY 218 -|**Command Example**|**Function**|**Response** 219 -|AT+APPSKEY=?|Get the Application Session Key|00 7d dc 73 33 d3 eb 9e 14 38 d5 a4 3e 62 5b e2((( 259 +(% style="background-color:#ffffcc; color:green; width:1040.22px" %) 260 +|=(% colspan="3" style="width: 1037px;" %)AT+APPSKEY 261 +|(% style="width:451px" %)**Command Example**|(% style="width:231px" %)**Function**|(% style="width:354px" %)**Response** 262 +|(% style="width:451px" %)AT+APPSKEY=?|(% style="width:231px" %)Get the Application Session Key|(% style="width:354px" %)00 7d dc 73 33 d3 eb 9e 14 38 d5 a4 3e 62 5b e2((( 220 220 OK 221 221 ))) 222 -|AT+APPSKEY=00 7d dc 73 33 d3 eb 9e 14 38 d5 a4 3e 62 5b e2|Set the Application Session Key .|(While Error in format, return AT_PARAM_ERROR)(((265 +|(% style="width:451px" %)AT+APPSKEY=00 7d dc 73 33 d3 eb 9e 14 38 d5 a4 3e 62 5b e2|(% style="width:231px" %)Set the Application Session Key|(% style="width:354px" %)(While Error in format, return AT_PARAM_ERROR)((( 223 223 OK 224 224 ))) 225 225 ... ... @@ -227,29 +227,35 @@ 227 227 228 228 Feature: Get or Set the Device Address. 229 229 230 -AT Command: AT+DADDR 273 +{{info}} 274 +**AT Command: AT+DADDR** 275 +{{/info}} 231 231 232 -|=(% colspan="3" %)AT+DADDR 233 -|**Command Example**|**Function**|**Response** 234 -|AT+DADDR=?|Get the Application Session Key.|(While Error in format, return AT_PARAM_ERROR)((( 277 +(% style="background-color:#ffffcc; color:green; width:795.222px" %) 278 +|=(% colspan="3" style="width: 792px;" %)AT+DADDR 279 +|(% style="width:192px" %)**Command Example**|(% style="width:241px" %)**Function**|(% style="width:359px" %)**Response** 280 +|(% style="width:192px" %)AT+DADDR=?|(% style="width:241px" %)Get the Application Session Key.|(% style="width:359px" %)(While Error in format, return AT_PARAM_ERROR)((( 235 235 A8 40 41 FF 236 236 237 237 OK 238 238 ))) 239 -|AT+DADDR=A8 40 41 FF|Set the Application Session Key.|OK 285 +|(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 240 240 241 241 == 5.5 Device EUI == 242 242 243 243 Feature: Get or Set the Device EUI. 244 244 245 -AT Command: AT+DEUI 291 +{{info}} 292 +**AT Command: AT+DEUI** 293 +{{/info}} 246 246 247 -|=(% colspan="3" %)AT+DEUI 248 -|**Command Example**|**Function**|**Response** 249 -|AT+DEUI=?|Get the Device EUI.|00 44 34 22 33 45 55 55((( 295 +(% style="background-color:#ffffcc; color:green; width:1035.22px" %) 296 +|=(% colspan="3" style="width: 1032px;" %)AT+DEUI 297 +|(% style="width:250px" %)**Command Example**|(% style="width:147px" %)**Function**|(% style="width:634px" %)**Response** 298 +|(% style="width:250px" %)AT+DEUI=?|(% style="width:147px" %)Get the Device EUI.|(% style="width:634px" %)00 44 34 22 33 45 55 55((( 250 250 OK 251 251 ))) 252 -|AT+DEUI=A8 40 41 FF FF 12 34 56|Set the Device EUI.|(System will write new value to Device EUI,While Error in format, return AT_PARAM_ERROR)((( 301 +|(% style="width:250px" %)AT+DEUI=A8 40 41 FF FF 12 34 56|(% style="width:147px" %)Set the Device EUI.|(% style="width:634px" %)(System will write new value to Device EUI,While Error in format, return AT_PARAM_ERROR)((( 253 253 OK 254 254 ))) 255 255 ... ... @@ -257,27 +257,33 @@ 257 257 258 258 Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection) 259 259 260 -AT Command: AT+NWKID 309 +{{info}} 310 +**AT Command: AT+NWKID** 311 +{{/info}} 261 261 262 -|=(% colspan="3" %)AT+NWKID 263 -|**Command Example**|**Function**|**Response** 264 -|AT+NWKID=?|Get the Network ID.|a8 40 41 ff((( 313 +(% style="background-color:#ffffcc; color:green; width:448.222px" %) 314 +|=(% colspan="3" style="width: 445px;" %)AT+NWKID 315 +|(% style="width:191px" %)**Command Example**|(% style="width:153px" %)**Function**|(% style="width:101px" %)**Response** 316 +|(% style="width:191px" %)AT+NWKID=?|(% style="width:153px" %)Get the Network ID.|(% style="width:101px" %)a8 40 41 ff((( 265 265 OK 266 266 ))) 267 -|AT+NWKID=A8 40 41 FF|Set the Network ID.|OK 319 +|(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 268 268 269 269 == 5.7 Network Session Key == 270 270 271 271 Feature: Get or Set the Network Session Key 272 272 273 -AT Command: AT+NWKSKEY 325 +{{info}} 326 +**AT Command: AT+NWKSKEY** 327 +{{/info}} 274 274 275 -|=(% colspan="3" %)AT+NWKSKEY 276 -|**Command Example**|**Function**|**Response** 277 -|AT+NWKSKEY=?|Get the Network Session Key.|00 4f 19 25 52 ce 97 09 d7 fa 84 71 db 51 02 92((( 329 +(% style="background-color:#ffffcc; color:green; width:1017.22px" %) 330 +|=(% colspan="3" style="width: 1014px;" %)AT+NWKSKEY 331 +|(% style="width:455px" %)**Command Example**|(% style="width:215px" %)**Function**|(% style="width:343px" %)**Response** 332 +|(% style="width:455px" %)AT+NWKSKEY=?|(% style="width:215px" %)Get the Network Session Key.|(% style="width:343px" %)00 4f 19 25 52 ce 97 09 d7 fa 84 71 db 51 02 92((( 278 278 OK 279 279 ))) 280 -|AT+NWKSKEY=A8 40 41 FF FF 12 34 56 00 01 02 04 05 06 06 07|Set the Network Session Key.|OK 335 +|(% style="width:455px" %)AT+NWKSKEY=A8 40 41 FF FF 12 34 56 00 01 02 04 05 06 06 07|(% style="width:215px" %)Set the Network Session Key.|(% style="width:343px" %)OK 281 281 282 282 = 6. Joining and sending date on LoRaWAN network = 283 283 ... ... @@ -285,15 +285,18 @@ 285 285 286 286 Feature: Get or Set the confirmation mode (0-1). 287 287 288 -AT Command: AT+CFM 343 +{{info}} 344 +**AT Command: AT+CFM** 345 +{{/info}} 289 289 290 -|=(% colspan="3" %)AT+CFM 291 -|**Command Example**|**Function**|**Response** 292 -|AT+CFM=?|Get the confirmation mode|0((( 347 +(% style="background-color:#ffffcc; color:green; width:710.222px" %) 348 +|=(% colspan="3" style="width: 707px;" %)AT+CFM 349 +|(% style="width:155px" %)**Command Example**|(% style="width:205px" %)**Function**|(% style="width:346px" %)**Response** 350 +|(% style="width:155px" %)AT+CFM=?|(% style="width:205px" %)Get the confirmation mode|(% style="width:346px" %)0((( 293 293 OK 294 294 ))) 295 -|AT+CFM=1|Set the confirmation mode|OK 296 -|AT+CFM=2|Set the confirmation mode|While Error in format, return AT_PARAM_ERROR 353 +|(% style="width:155px" %)AT+CFM=1|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)OK 354 +|(% style="width:155px" %)AT+CFM=2|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)While Error in format, return AT_PARAM_ERROR 297 297 298 298 Downlink Command: 0x05 299 299