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
-
... ... @@ -9,25 +9,25 @@ 9 9 10 10 Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands: 11 11 12 -* **Common Commands:** They should be available for each sensor, such as: change uplink interval, reset device. 13 -* **Sensor Related Commands:** Only for special sensor, such as control relay, poll RS485 device. 12 +* (% style="color:blue" %)**Common Commands:** (%%) They should be available for each sensor, such as: change uplink interval, reset device. 13 +* (% style="color:blue" %)**Sensor Related Commands:** (%%) Only for special sensor, such as control relay, poll RS485 device. 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 - 18 18 ))) 19 19 19 + 20 20 = 2. How to use AT Commands or Downlink command = 21 21 22 22 23 -* ForAT Command,See Devices User Manual forDevice. The user manual can be found in each product page of [[Dragino Official Website>>url:http://www.dragino.com/]]24 -* ForLoRaWAN Downlink: The gateway transfer downlink command in HEX format. This page shows theHEX format downlinkcodefor eachcommand. but some servers use base64 as downlink code. Below are reference for how to use downlink command:23 +* **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/]] 24 +* **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: 25 25 ** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]] 26 -** Use Base64 format to send a downlink: [[Chirpstack>>Notes for ChirpStack]] 26 +** 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]]? 27 27 ** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server) 28 28 29 +(% style="display:none" %) (%%) 29 29 30 - 31 31 = 3. Support End Node and firmware version = 32 32 33 33 ... ... @@ -102,16 +102,16 @@ 102 102 ))) 103 103 ))) 104 104 105 +(% style="display:none" %) (%%) 105 105 106 - 107 107 = 4. System Management Commands = 108 108 109 - 110 110 == 4.1 Change Uplink Interval == 111 111 112 112 113 113 Feature: Change LoRaWAN End Node Transmit Interval. 114 114 114 + 115 115 (% style="color:blue" %)**AT Command: AT+TDC** 116 116 117 117 (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %) ... ... @@ -135,14 +135,14 @@ 135 135 ))) 136 136 137 137 ((( 138 -If the downlink payload=0100003C, it means set the END Node ’s Transmit Interval to 0x00003C=60(S), while type code is 01.138 +If the downlink payload=0100003C, it means set the END Node's Transmit Interval to 0x00003C=60(S), while type code is 01. 139 139 ))) 140 140 141 -* **Example 1**: Downlink Payload:** 0100001E** ~/~/ Set Transmit Interval (TDC) = 30 seconds 142 -* **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 141 +* **Example 1**: Downlink Payload:** 0100001E** ~/~/ Set Transmit Interval (TDC) = 30 seconds 142 +* **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 143 143 144 +(% style="display:none" %) (%%) 144 144 145 - 146 146 == 4.2 Reboot End Node == 147 147 148 148 ... ... @@ -151,11 +151,10 @@ 151 151 152 152 (% style="color:blue" %)**AT Command: ATZ** 153 153 154 - 155 -(% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %) 156 -|=(% colspan="3" %)ATZ: Trig a reset of the MCU 157 -|**Command Example**|**Function**|**Response** 158 -|ATZ|Reset MCU|((( 154 +(% border="1" style="background-color:#ffffcc; color:green; width:546px" %) 155 +|=(% colspan="3" style="width: 543px;" %)ATZ: Trig a reset of the MCU 156 +|(% style="width:157px" %)**Command Example**|(% style="width:92px" %)**Function**|(% style="width:294px" %)**Response** 157 +|(% style="width:157px" %)ATZ|(% style="width:92px" %)Reset MCU|(% style="width:294px" %)((( 159 159 Device reset and show booting info 160 160 161 161 LSN50 Device/LoRa ST Module ... ... @@ -169,31 +169,29 @@ 169 169 <followed by the Tx and Rx information> 170 170 ))) 171 171 172 - 173 173 (% style="color:blue" %)**Downlink Command: 0x04** 174 174 175 - 176 176 ((( 177 177 Format: Command Code (0x04) followed by FF. 178 178 ))) 179 179 180 180 ((( 181 -If the downlink payload=**04FF**, the end node will reboot. 182 - 183 - 178 +If the downlink payload=**04FF**, the end node will reboot. 184 184 ))) 185 185 181 + 186 186 == 4.3 Reset to factory Default == 187 187 188 188 189 189 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. 190 190 187 + 191 191 (% style="color:blue" %)**AT Command: AT+FDR** 192 192 193 -(% border="1" style="background-color:#ffffcc; color:green; width:8 31.222px" %)194 -|=(% colspan="3" style="width: 8 28px;" %)Reset to factory default195 -|(% style="width:1 81px" %)**Command Example**|(% style="width:181px" %)**Function**|(% style="width:465px" %)**Response**196 -|(% style="width:1 81px" %)AT+FDR|(% style="width:181px" %)Reset to factory default|(% style="width:465px" %)(((190 +(% border="1" style="background-color:#ffffcc; color:green; width:789px" %) 191 +|=(% colspan="3" style="width: 786px;" %)Reset to factory default 192 +|(% style="width:154px" %)**Command Example**|(% style="width:175px" %)**Function**|(% style="width:456px" %)**Response** 193 +|(% style="width:154px" %)AT+FDR|(% style="width:175px" %)Reset to factory default|(% style="width:456px" %)((( 197 197 Device reset to factory default parameters and show booting info 198 198 199 199 LSN50 Device/LoRa ST Module ... ... @@ -207,10 +207,8 @@ 207 207 Please set the parameters or reset Device to apply change 208 208 ))) 209 209 210 - 211 211 (% style="color:blue" %)**Downlink Command: 0x04** 212 212 213 - 214 214 ((( 215 215 Format: Command Code (0x04) followed by FE. 216 216 ))) ... ... @@ -222,25 +222,23 @@ 222 222 223 223 == 4.4 Show Firmware Version == 224 224 220 + 225 225 Feature: Show firmware version. No downlink command yet. 226 226 227 227 228 228 (% style="color:blue" %)**AT Command: AT+VER** 229 229 230 - 231 -(% border="1" style="background-color:#ffffcc; color:green; width:586px" %) 232 -|=(% colspan="3" style="width: 583px;" %)AT+VER: Image Version and Frequency Band 233 -|(% style="width:170px" %)**Command Example**|(% style="width:300px" %)**Function**|(% style="width:113px" %)**Response** 234 -|(% style="width:170px" %)AT+VER=?|(% style="width:300px" %)Show Image version and Frequency Band|(% style="width:113px" %)((( 226 +(% border="1" style="background-color:#ffffcc; color:green; width:542px" %) 227 +|=(% colspan="3" style="width: 539px;" %)AT+VER: Image Version and Frequency Band 228 +|(% style="width:157px" %)**Command Example**|(% style="width:295px" %)**Function**|(% style="width:86px" %)**Response** 229 +|(% style="width:157px" %)AT+VER=?|(% style="width:295px" %)Show Image version and Frequency Band|(% style="width:86px" %)((( 235 235 1.3 EU868 236 236 237 237 OK 238 238 ))) 239 239 240 - 241 241 (% style="color:blue" %)**Downlink Command: 0x26 (Valid in 006 stack)** 242 242 243 - 244 244 ((( 245 245 Downlink Format: 0x26 246 246 ))) ... ... @@ -250,6 +250,8 @@ 250 250 ))) 251 251 252 252 ((( 246 + 247 + 253 253 **xx: Software Type:** 254 254 ))) 255 255 ... ... @@ -258,6 +258,8 @@ 258 258 * 0x00 03: LSE01/LDDS75/LDDS20/LSPH01/LLMS01/LSNPK01 259 259 260 260 ((( 256 + 257 + 261 261 **yy: Frequency Band:** 262 262 ))) 263 263 ... ... @@ -273,6 +273,8 @@ 273 273 * 0xa0: AS923-3 274 274 275 275 ((( 273 + 274 + 276 276 **zz: Subband** 277 277 ))) 278 278 ... ... @@ -281,12 +281,12 @@ 281 281 282 282 == 4.5 Show System Configure == 283 283 283 + 284 284 Feature: Show All configure. No downlink command yet. 285 285 286 286 287 287 (% style="color:blue" %)**AT Command: AT+CFG** 288 288 289 - 290 290 (% border="1" style="background-color:#ffffcc; color:green; width:599.222px" %) 291 291 |=(% colspan="3" style="width: 596px;" %)AT+CFG: Print all configurations 292 292 |(% style="width:160px" %)**Command Example**|(% style="width:154px" %)**Function**|(% style="width:280px" %)**Response** ... ... @@ -308,12 +308,12 @@ 308 308 309 309 == 5.1 Application EUI == 310 310 310 + 311 311 Feature: Get or Set the Application EUI. 312 312 313 313 314 314 (% style="color:blue" %)**AT Command: AT+APPEUI** 315 315 316 - 317 317 (% border="1" style="background-color:#ffffcc; color:green; width:686.222px" %) 318 318 |=(% colspan="3" style="width: 683px;" %)AT+APPEUI 319 319 |(% style="width:305px" %)**Command Example**|(% style="width:186px" %)**Function**|(% style="width:191px" %)**Response** ... ... @@ -322,14 +322,16 @@ 322 322 ))) 323 323 |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 324 324 324 +(% style="display:none" %) (%%) 325 + 325 325 == 5.2 Application Key == 326 326 328 + 327 327 Feature: Get or Set the Application Key. 328 328 329 329 330 330 (% style="color:blue" %)**AT Command: AT+APPKEY** 331 331 332 - 333 333 (% border="1" style="background-color:#ffffcc; color:green; width:976.222px" %) 334 334 |=(% colspan="3" style="width: 973px;" %)AT+APPKEY 335 335 |(% style="width:441px" %)**Command Example**|(% style="width:180px" %)**Function**|(% style="width:350px" %)**Response** ... ... @@ -338,14 +338,16 @@ 338 338 ))) 339 339 |(% 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 340 340 342 +(% style="display:none" %) (%%) 343 + 341 341 == 5.3 Application Session Key == 342 342 346 + 343 343 Feature: Get or Set the Application Session Key. 344 344 345 345 346 346 (% style="color:blue" %)**AT Command: AT+APPSKEY** 347 347 348 - 349 349 (% border="1" style="background-color:#ffffcc; color:green; width:1040.22px" %) 350 350 |=(% colspan="3" style="width: 1037px;" %)AT+APPSKEY 351 351 |(% style="width:451px" %)**Command Example**|(% style="width:231px" %)**Function**|(% style="width:354px" %)**Response** ... ... @@ -356,14 +356,16 @@ 356 356 OK 357 357 ))) 358 358 362 +(% style="display:none" %) (%%) 363 + 359 359 == 5.4 Device Address == 360 360 366 + 361 361 Feature: Get or Set the Device Address. 362 362 363 363 364 364 (% style="color:blue" %)**AT Command: AT+DADDR** 365 365 366 - 367 367 (% border="1" style="background-color:#ffffcc; color:green; width:795.222px" %) 368 368 |=(% colspan="3" style="width: 792px;" %)AT+DADDR 369 369 |(% style="width:192px" %)**Command Example**|(% style="width:241px" %)**Function**|(% style="width:359px" %)**Response** ... ... @@ -374,14 +374,16 @@ 374 374 ))) 375 375 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 376 376 382 +(% style="display:none" %) (%%) 383 + 377 377 == 5.5 Device EUI == 378 378 386 + 379 379 Feature: Get or Set the Device EUI. 380 380 381 381 382 382 (% style="color:blue" %)**AT Command: AT+DEUI** 383 383 384 - 385 385 (% border="1" style="background-color:#ffffcc; color:green; width:1035.22px" %) 386 386 |=(% colspan="3" style="width: 1032px;" %)AT+DEUI 387 387 |(% style="width:250px" %)**Command Example**|(% style="width:147px" %)**Function**|(% style="width:634px" %)**Response** ... ... @@ -392,14 +392,16 @@ 392 392 OK 393 393 ))) 394 394 402 +(% style="display:none" %) (%%) 403 + 395 395 == 5.6 Network ID == 396 396 406 + 397 397 Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection) 398 398 399 399 400 400 (% style="color:blue" %)**AT Command: AT+NWKID** 401 401 402 - 403 403 (% border="1" style="background-color:#ffffcc; color:green; width:448.222px" %) 404 404 |=(% colspan="3" style="width: 445px;" %)AT+NWKID 405 405 |(% style="width:191px" %)**Command Example**|(% style="width:153px" %)**Function**|(% style="width:101px" %)**Response** ... ... @@ -408,14 +408,16 @@ 408 408 ))) 409 409 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 410 410 420 +(% style="display:none" %) (%%) 421 + 411 411 == 5.7 Network Session Key == 412 412 424 + 413 413 Feature: Get or Set the Network Session Key 414 414 415 415 416 416 (% style="color:blue" %)**AT Command: AT+NWKSKEY** 417 417 418 - 419 419 (% border="1" style="background-color:#ffffcc; color:green; width:1017.22px" %) 420 420 |=(% colspan="3" style="width: 1014px;" %)AT+NWKSKEY 421 421 |(% style="width:455px" %)**Command Example**|(% style="width:215px" %)**Function**|(% style="width:343px" %)**Response** ... ... @@ -424,18 +424,20 @@ 424 424 ))) 425 425 |(% 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 426 426 438 +(% style="display:none" %) (%%) 439 + 427 427 = 6. Joining and sending date on LoRaWAN network = 428 428 429 429 == 6.1 Confirm Mode == 430 430 431 -=== AT+CFM command before DR-LWS007 software stack === 444 +=== 6.1.1 AT+CFM command before DR-LWS007 software stack === 432 432 446 + 433 433 Feature: Get or Set the confirmation mode (0-1). 434 434 435 435 436 436 (% style="color:blue" %)**AT Command: AT+CFM** 437 437 438 - 439 439 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 440 440 |=(% colspan="3" style="width: 707px;" %)AT+CFM 441 441 |(% style="width:155px" %)**Command Example**|(% style="width:205px" %)**Function**|(% style="width:346px" %)**Response** ... ... @@ -451,15 +451,16 @@ 451 451 452 452 If the downlink payload=0501, it means set end node to use confirm mode, while type code is 05. 453 453 454 -* Example 1: Downlink Payload: 0501 ~/~/ Set AT+CFM=1 455 -* Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0 467 +* **Example 1:** Downlink Payload: 0501 ~/~/ Set AT+CFM=1 468 +* **Example 2:** Downlink Payload: 0500 ~/~/ Set AT+CFM=0 456 456 457 - ===AT+CFM commandsinceDR-LWS007softwarestack===470 +(% style="display:none" %) (%%) 458 458 472 +=== 6.1.2 AT+CFM command since DR-LWS007 software stack === 459 459 474 + 460 460 (% style="color:blue" %)**AT Command: AT+CFM** 461 461 462 - 463 463 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 464 464 |=(% colspan="3" style="width: 707px;" %)AT+CFM 465 465 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -491,40 +491,40 @@ 491 491 OK 492 492 ))) 493 493 494 - 495 495 (% style="color:blue" %)**Downlink Command: 0x05** 496 496 497 - 498 498 Format: Command Code (0x05) followed by 2 bytes mode value. 499 499 500 500 If the downlink payload=05010101, it means set end node to use confirm mode, while type code is 05. 501 501 502 -* Example 1: Downlink Payload: 05010101 ~/~/ Set AT+CFM=1,1,1 503 -* Example 2: Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 514 +* **Example 1:** Downlink Payload: 05010101 ~/~/ Set AT+CFM=1,1,1 515 +* **Example 2:** Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 504 504 517 +(% style="display:none" %) (%%) 518 + 505 505 == 6.2 Confirm Status == 506 506 521 + 507 507 Feature: Get confirmation status of the last AT+SEND (0-1). 508 508 509 509 510 510 (% style="color:blue" %)**AT Command: AT+CFS** 511 511 512 - 513 -(% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %) 514 -|=(% colspan="3" style="width: 531px;" %)AT+CFS 515 -|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response** 516 -|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:178px" %)0((( 527 +(% border="1" style="background-color:#ffffcc; color:green; width:463px" %) 528 +|=(% colspan="3" style="width: 460px;" %)AT+CFS 529 +|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:107px" %)**Response** 530 +|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:107px" %)0((( 517 517 OK 518 518 ))) 519 519 520 520 == 6.3 Join LoRa® Network == 521 521 536 + 522 522 Feature: Join network. 523 523 524 524 525 525 (% style="color:blue" %)**AT Command: AT+JOIN** 526 526 527 - 528 528 (% border="1" style="background-color:#ffffcc; color:green; width:647.222px" %) 529 529 |=(% colspan="3" style="width: 644px;" %)AT+JOIN 530 530 |(% style="width:163px" %)**Command Example**|(% style="width:147px" %)**Function**|(% style="width:334px" %)**Response** ... ... @@ -536,12 +536,12 @@ 536 536 537 537 == 6.4 LoRa® Network Join Mode == 538 538 553 + 539 539 Feature: Get or Set the Network Join Mode. (0: ABP, 1: OTAA). 540 540 541 541 542 542 (% style="color:blue" %)**AT Command: AT+NJM** 543 543 544 - 545 545 (% border="1" style="background-color:#ffffcc; color:green; width:753.222px" %) 546 546 |=(% colspan="3" style="width: 750px;" %)AT+NJM 547 547 |(% style="width:162px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:361px" %)**Response** ... ... @@ -551,25 +551,25 @@ 551 551 |(% style="width:162px" %)AT+NJM=0|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)OK 552 552 |(% style="width:162px" %)AT+NJM=2|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)While Error in format, return AT_PARAM_ERROR 553 553 554 - 555 555 (% style="color:blue" %)**Downlink Command: 0x20** 556 556 557 - 558 558 Format: Command Code (0x20) followed by 1 bytes mode value. 559 559 560 560 If the downlink payload=2000, it means set the Network Join Mode, while type code is 20. 561 561 562 -* **Example 1: **Downlink Payload: **2000** 563 -* **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 574 +* **Example 1: **Downlink Payload: **2000 ** ~/~/ Set AT+NJM=0 575 +* **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 564 564 577 +(% style="display:none" %) (%%) 578 + 565 565 == 6.5 LoRa® Network Join Status == 566 566 581 + 567 567 Feature: LoRa® Network Join Status. 568 568 569 569 570 570 (% style="color:blue" %)**AT Command: AT+NJS** 571 571 572 - 573 573 (% border="1" style="background-color:#ffffcc; color:green; width:498.222px" %) 574 574 |=(% colspan="3" style="width: 495px;" %)AT+NJS 575 575 |(% style="width:169px" %)**Command Example**|(% style="width:164px" %)**Function**|(% style="width:161px" %)**Response** ... ... @@ -577,14 +577,16 @@ 577 577 OK 578 578 ))) 579 579 594 +(% style="display:none" %) (%%) 595 + 580 580 == 6.6 Print Last Received Data in Raw Format == 581 581 598 + 582 582 Feature: Print Last Received Data in Raw Format<port:data>. 583 583 584 584 585 585 (% style="color:blue" %)**AT Command: AT+RECV** 586 586 587 - 588 588 (% border="1" style="background-color:#ffffcc; color:green; width:587.222px" %) 589 589 |=(% colspan="3" style="width: 584px;" %)AT+RECV 590 590 |(% style="width:161px" %)**Command Example**|(% style="width:272px" %)**Function**|(% style="width:150px" %)**Response** ... ... @@ -592,14 +592,16 @@ 592 592 OK 593 593 ))) 594 594 611 +(% style="display:none" %) (%%) 612 + 595 595 == 6.7 Print Last Received Data in Binary Format == 596 596 615 + 597 597 Feature: Print Last Received Data in Binary Format<port:data>. 598 598 599 599 600 600 (% style="color:blue" %)**AT Command: AT+RECVB** 601 601 602 - 603 603 (% border="1" style="background-color:#ffffcc; color:green; width:793.222px" %) 604 604 |=(% colspan="3" style="width: 790px;" %)AT+RECVB 605 605 |(% style="width:173px" %)**Command Example**|(% style="width:497px" %)**Function**|(% style="width:120px" %)**Response** ... ... @@ -607,53 +607,54 @@ 607 607 OK 608 608 ))) 609 609 628 +(% style="display:none" %) (%%) 629 + 610 610 == 6.8 Send Text Data == 611 611 632 + 612 612 Feature: Send Text Data<port:data>. 613 613 614 614 615 615 (% style="color:blue" %)**AT Command: AT+SEND** 616 616 617 - 618 618 (% border="1" style="background-color:#ffffcc; color:green; width:991.222px" %) 619 619 |=(% colspan="3" style="width: 988px;" %)AT+SEND 620 620 |(% style="width:201px" %)**Command Example**|(% style="width:340px" %)**Function**|(% style="width:446px" %)**Response** 621 621 |(% style="width:201px" %)AT+SEND=12:hello world|(% style="width:340px" %)Send text data along with the application port.|(% style="width:446px" %)OK((( 622 622 While Error in format, return 623 - 624 624 AT_BUSY_ERROR/AT_BUSY_ERROR/AT_NO_NETWORK_JOINED 625 - 626 - 627 627 ))) 628 628 646 +(% style="display:none" %) (%%) 647 + 629 629 == 6.9 Send Hexadecimal Data == 630 630 650 + 631 631 Feature: Send hexadecimal data along with the application port. 632 632 633 633 634 634 (% style="color:blue" %)**AT Command: AT+SENDB** 635 635 636 - 637 -(% border="1" style="background-color:#ffffcc; color:green; width:1120.22px" %) 638 -|=(% colspan="3" style="width: 1117px;" %)AT+SENDB 639 -|(% style="width:257px" %)**Command Example**|(% style="width:406px" %)**Function**|(% style="width:453px" %)**Response** 640 -|(% style="width:257px" %)AT+SENDB=12:abcdef0123456789|(% style="width:406px" %)Send hexadecimal data along with the application port.|(% style="width:453px" %)OK 641 -|(% style="width:257px" %)AT+SENDB=abcdef0123456789|(% style="width:406px" %)Send hexadecimal data along with the application port.|(% style="width:453px" %)While Error in format, return((( 642 -AT_PARAM_ERROR AT_BUSY_ERROR/AT_NO_NETWORK_JOINED 643 - 644 - 656 +(% border="1" style="background-color:#ffffcc; color:green; width:1101px" %) 657 +|=(% colspan="3" style="width: 1098px;" %)AT+SENDB 658 +|(% style="width:257px" %)**Command Example**|(% style="width:394px" %)**Function**|(% style="width:446px" %)**Response** 659 +|(% style="width:257px" %)AT+SENDB=12:abcdef0123456789|(% style="width:394px" %)Send hexadecimal data along with the application port.|(% style="width:446px" %)OK 660 +|(% style="width:257px" %)AT+SENDB=abcdef0123456789|(% style="width:394px" %)Send hexadecimal data along with the application port.|(% style="width:446px" %)While Error in format, return((( 661 +AT_PARAM_ERROR AT_BUSY_ERROR/AT_NO_NETWORK_JOINED 645 645 ))) 646 646 664 +(% style="display:none" %) (%%) 665 + 647 647 = 7. LoRaWAN network management = 648 648 649 649 == 7.1 Adaptive Data Rate == 650 650 670 + 651 651 Feature: Get or Set the Adaptive Data Rate setting. (0: off, 1: on). 652 652 653 653 654 654 (% style="color:blue" %)**AT Command: AT+ADR** 655 655 656 - 657 657 (% border="1" style="background-color:#ffffcc; color:green; width:683.222px" %) 658 658 |=(% colspan="3" style="width: 680px;" %)AT+ADR 659 659 |(% style="width:162px" %)**Command Example**|(% style="width:266px" %)**Function**|(% style="width:250px" %)**Response** ... ... @@ -665,24 +665,23 @@ 665 665 AT_PARAM_ERROR 666 666 ))) 667 667 668 - 669 669 (% style="color:blue" %)**Downlink Command: 0x22** 670 670 671 - 672 - 673 673 If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22. 674 674 675 -* **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 676 -* **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 691 +* **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 692 +* **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 677 677 694 +(% style="display:none" %) (%%) 695 + 678 678 == 7.2 LoRa® Class == 679 679 698 + 680 680 Feature: Get or Set the Device Class(Currently only support class A, class C). 681 681 682 682 683 -(% style="color:blue" %)**AT Command:AT+CLASS** 702 +(% style="color:blue" %)**AT Command: AT+CLASS** 684 684 685 - 686 686 (% border="1" style="background-color:#ffffcc; color:green; width:507.222px" %) 687 687 |=(% colspan="3" style="width: 504px;" %)AT+CLASS 688 688 |(% style="width:163px" %)**Command Example**|(% style="width:166px" %)**Function**|(% style="width:175px" %)**Response** ... ... @@ -690,16 +690,17 @@ 690 690 OK 691 691 ))) 692 692 |(% style="width:163px" %)AT+CLASS=C|(% style="width:166px" %)Set the Device Class.|(% style="width:175px" %)OK((( 693 - 694 694 ))) 695 695 713 +(% style="display:none" %) (%%) 714 + 696 696 == 7.3 Duty Cycle Setting == 697 697 698 -Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing. 699 699 718 +Feature: Get or Set the ETSI Duty Cycle setting** - 0**=disable, **1**=enable - Only for testing. 700 700 701 -(% style="color:blue" %)**AT Command:AT+DCS** 702 702 721 +(% style="color:blue" %)**AT Command: AT+DCS** 703 703 704 704 (% border="1" style="background-color:#ffffcc; color:green; width:515.222px" %) 705 705 |=(% colspan="3" style="width: 512px;" %)AT+DCS ... ... @@ -708,17 +708,23 @@ 708 708 OK 709 709 ))) 710 710 |(% style="width:165px" %)AT+DCS=1|(% style="width:239px" %)Set the ETSI Duty Cycle setting.|(% style="width:107px" %)OK((( 711 - 712 712 ))) 713 713 732 +(% style="display:none" %) (%%) 733 + 714 714 == 7.4 Data Rate == 715 715 716 -Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) . Note: while set Data Rate, please use set Adptive Data Rate, ADR=0 first. otherwise device will response to server's ADR command and change the DR to the setting from server 717 717 737 +Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) . 718 718 719 -(% style="color:blue" %)**AT Command: AT+DR** 739 +(% style="color:red" %) 740 +**Notice:** 720 720 742 +* 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. 743 +* 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/]] 721 721 745 +(% style="color:blue" %)**AT Command: AT+DR** 746 + 722 722 (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %) 723 723 |=(% colspan="3" style="width: 463px;" %)AT+DR 724 724 |(% style="width:156px" %)**Command Example**|(% style="width:167px" %)**Function**|(% style="width:140px" %)**Response** ... ... @@ -729,24 +729,23 @@ 729 729 730 730 ))) 731 731 732 - 733 733 (% style="color:blue" %)**Downlink Command: 0x2200aaFF** 734 734 735 - 736 - 737 737 If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF. 738 738 739 -* **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 740 -* **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 761 +* **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 762 +* **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 741 741 764 +(% style="display:none" %) (%%) 765 + 742 742 == 7.5 Frame Counter Downlink == 743 743 768 + 744 744 Feature: Get or Set the Frame Counter Downlink. 745 745 746 746 747 -(% style="color:blue" %)**AT Command:AT+FCD** 772 +(% style="color:blue" %)**AT Command: AT+FCD** 748 748 749 - 750 750 (% border="1" style="background-color:#ffffcc; color:green; width:693.222px" %) 751 751 |=(% colspan="3" style="width: 690px;" %)AT+FCD 752 752 |(% style="width:162px" %)**Command Example**|(% style="width:258px" %)**Function**|(% style="width:269px" %)**Response** ... ... @@ -755,8 +755,6 @@ 755 755 ))) 756 756 |(% style="width:162px" %)AT+FCD=10|(% style="width:258px" %)Set the Frame Counter Downlink.|(% style="width:269px" %)(System will write new value to FCD)((( 757 757 OK 758 - 759 - 760 760 ))) 761 761 762 762 == 7.6 Frame Counter Uplink == ... ... @@ -764,9 +764,8 @@ 764 764 Feature: Get or Set the Frame Counter Uplink. 765 765 766 766 767 -(% style="color:blue" %)**AT Command:AT+FCU** 789 +(% style="color:blue" %)**AT Command: AT+FCU** 768 768 769 - 770 770 (% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %) 771 771 |=(% colspan="3" style="width: 531px;" %)AT+FCU 772 772 |(% style="width:177px" %)**Command Example**|(% style="width:239px" %)**Function**|(% style="width:113px" %)**Response** ... ... @@ -774,17 +774,18 @@ 774 774 OK 775 775 ))) 776 776 |(% style="width:177px" %)AT+FCU=10|(% style="width:239px" %)Set the Frame Counter Uplink.|(% style="width:113px" %)OK((( 777 - 778 778 ))) 779 779 800 +(% style="display:none" %) (%%) 801 + 780 780 == 7.7 Join Accept Delay1 == 781 781 804 + 782 782 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms. 783 783 784 784 785 -(% style="color:blue" %)**AT Command:AT+JN1DL** 808 +(% style="color:blue" %)**AT Command: AT+JN1DL** 786 786 787 - 788 788 (% border="1" style="background-color:#ffffcc; color:green; width:537.222px" %) 789 789 |=(% colspan="3" style="width: 534px;" %)AT+JN1DL 790 790 |(% style="width:164px" %)**Command Example**|(% style="width:229px" %)**Function**|(% style="width:140px" %)**Response** ... ... @@ -792,17 +792,18 @@ 792 792 OK 793 793 ))) 794 794 |(% style="width:164px" %)AT+JN1DL=10000|(% style="width:229px" %)Set the Join Accept Delay.|(% style="width:140px" %)OK((( 795 - 796 796 ))) 797 797 819 +(% style="display:none" %) (%%) 820 + 798 798 == 7.8 Join Accept Delay2 == 799 799 823 + 800 800 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms. 801 801 802 802 803 -(% style="color:blue" %)**AT Command:AT+JN2DL** 827 +(% style="color:blue" %)**AT Command: AT+JN2DL** 804 804 805 - 806 806 (% border="1" style="background-color:#ffffcc; color:green; width:538.222px" %) 807 807 |=(% colspan="3" style="width: 535px;" %)AT+JN2DL 808 808 |(% style="width:160px" %)**Command Example**|(% style="width:228px" %)**Function**|(% style="width:146px" %)**Response** ... ... @@ -810,19 +810,20 @@ 810 810 OK 811 811 ))) 812 812 |(% style="width:160px" %)AT+JN2DL=20000|(% style="width:228px" %)Set the Join Accept Delay.|(% style="width:146px" %)OK((( 813 - 814 814 ))) 815 815 838 +(% style="display:none" %) (%%) 839 + 816 816 == 7.9 Public Network Mode == 817 817 842 + 818 818 Feature: Get or Set the public network mode. (0: off, 1: on). A Public LoRaWAN network use 0x34 as syncword. Default Settings; PNM=1 819 819 820 -Notice: If user build their own LoRaWAN server but still use syncword=0x34, this is still considered a public LoRaWAN network 845 +(% style="color:red" %)**Notice: If user build their own LoRaWAN server but still use syncword=0x34, this is still considered a public LoRaWAN network.** 821 821 822 822 823 -(% style="color:blue" %)**AT Command:AT+PNM** 848 +(% style="color:blue" %)**AT Command: AT+PNM** 824 824 825 - 826 826 (% border="1" style="background-color:#ffffcc; color:green; width:667.222px" %) 827 827 |=(% colspan="3" style="width: 664px;" %)AT+PNM 828 828 |(% style="width:166px" %)**Command Example**|(% style="width:225px" %)**Function**|(% style="width:272px" %)**Response** ... ... @@ -840,14 +840,16 @@ 840 840 ))) 841 841 |(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %) 842 842 867 +(% style="display:none" %) (%%) 868 + 843 843 == 7.10 Receive Delay1 == 844 844 871 + 845 845 Feature: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms 846 846 847 847 848 -(% style="color:blue" %)**AT Command:AT+RX1DL** 875 +(% style="color:blue" %)**AT Command: AT+RX1DL** 849 849 850 - 851 851 (% border="1" style="background-color:#ffffcc; color:green; width:408.222px" %) 852 852 |=(% colspan="3" style="width: 405px;" %)AT+RX1DL 853 853 |(% style="width:155px" %)**Command Example**|(% style="width:128px" %)**Function**|(% style="width:122px" %)**Response** ... ... @@ -855,17 +855,18 @@ 855 855 OK 856 856 ))) 857 857 |(% style="width:155px" %)AT+RX1DL=1500|(% style="width:128px" %)Set the delay.|(% style="width:122px" %)OK((( 858 - 859 859 ))) 860 860 886 +(% style="display:none" %) (%%) 887 + 861 861 == 7.11 Receive Delay2 == 862 862 890 + 863 863 Feature: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms 864 864 865 865 866 -(% style="color:blue" %)**AT Command:AT+RX2DL** 894 +(% style="color:blue" %)**AT Command: AT+RX2DL** 867 867 868 - 869 869 (% border="1" style="background-color:#ffffcc; color:green; width:481.222px" %) 870 870 |=(% colspan="3" style="width: 478px;" %)AT+RX2DL 871 871 |(% style="width:175px" %)**Command Example**|(% style="width:152px" %)**Function**|(% style="width:150px" %)**Response** ... ... @@ -873,17 +873,18 @@ 873 873 OK 874 874 ))) 875 875 |(% style="width:175px" %)AT+RX2DL=2500|(% style="width:152px" %)Set the delay.|(% style="width:150px" %)OK((( 876 - 877 877 ))) 878 878 905 +(% style="display:none" %) (%%) 906 + 879 879 == 7.12 Rx2 Window Data Rate == 880 880 909 + 881 881 Feature: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X) 882 882 883 883 884 -(% style="color:blue" %)**AT Command:AT+RX2DR** 913 +(% style="color:blue" %)**AT Command: AT+RX2DR** 885 885 886 - 887 887 (% border="1" style="background-color:#ffffcc; color:green; width:525.222px" %) 888 888 |=(% colspan="3" style="width: 522px;" %)AT+RX2DR 889 889 |(% style="width:160px" %)**Command Example**|(% style="width:232px" %)**Function**|(% style="width:130px" %)**Response** ... ... @@ -891,17 +891,18 @@ 891 891 OK 892 892 ))) 893 893 |(% style="width:160px" %)AT+RX2DR=6|(% style="width:232px" %)Set the Rx2 window data rate.|(% style="width:130px" %)OK((( 894 - 895 895 ))) 896 896 924 +(% style="display:none" %) (%%) 925 + 897 897 == 7.13 Rx2 Window Frequency == 898 898 928 + 899 899 Feature: Get or Set the Rx2 window frequency 900 900 901 901 902 -(% style="color:blue" %)**AT Command:AT+RX2FQ** 932 +(% style="color:blue" %)**AT Command: AT+RX2FQ** 903 903 904 - 905 905 (% border="1" style="background-color:#ffffcc; color:green; width:587.222px" %) 906 906 |=(% colspan="3" style="width: 584px;" %)AT+RX2FQ 907 907 |(% style="width:183px" %)**Command Example**|(% style="width:240px" %)**Function**|(% style="width:160px" %)**Response** ... ... @@ -909,16 +909,19 @@ 909 909 OK 910 910 ))) 911 911 |(% style="width:183px" %)AT+RX2FQ=434665000|(% style="width:240px" %)Set the Rx2 window frequency.|(% style="width:160px" %)OK((( 912 - 913 913 ))) 914 914 943 +(% style="display:none" %) (%%) 944 + 915 915 == 7.14 Transmit Power == 916 916 947 + 917 917 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. ) 918 918 950 +(% 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** 919 919 920 -(% style="color:blue" %)**AT Command:AT+TXP** 921 921 953 +(% style="color:blue" %)**AT Command: AT+TXP** 922 922 923 923 (% border="1" style="background-color:#ffffcc; color:green; width:465.222px" %) 924 924 |=(% colspan="3" style="width: 462px;" %)AT+TXP ... ... @@ -927,7 +927,6 @@ 927 927 OK 928 928 ))) 929 929 |(% style="width:161px" %)AT+TXP=1|(% style="width:189px" %)Set the Transmit Power.|(% style="width:112px" %)OK((( 930 - 931 931 ))) 932 932 933 933 Downlink Payload. The 4th byte of 0x22 downlink. ... ... @@ -934,17 +934,19 @@ 934 934 935 935 If the downlink payload=22000100, it means setting the TXP to 0. 936 936 937 -* **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2. 938 -* **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0. 968 +* **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2. 969 +* **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0. 939 939 971 +(% style="display:none" %) (%%) 972 + 940 940 == 7.15 RSSI of the Last Received Packet == 941 941 975 + 942 942 Feature: Get or Set the Rx2 window frequency 943 943 944 944 945 945 (% style="color:blue" %)**AT Command:AT+RSSI** 946 946 947 - 948 948 (% border="1" style="background-color:#ffffcc; color:green; width:557.222px" %) 949 949 |=(% colspan="3" style="width: 554px;" %)AT+RSSI 950 950 |(% style="width:164px" %)**Command Example**|(% style="width:289px" %)**Function**|(% style="width:100px" %)**Response** ... ... @@ -952,14 +952,16 @@ 952 952 OK 953 953 ))) 954 954 988 +(% style="display:none" %) (%%) 989 + 955 955 == 7.16 SNR of the Last Received Packet == 956 956 992 + 957 957 Feature: Get the SNR of the last received packet 958 958 959 -{{info}} 960 -**AT Command:AT+SNR** 961 -{{/info}} 962 962 996 +(% style="color:blue" %)**AT Command: AT+SNR** 997 + 963 963 (% border="1" style="background-color:#ffffcc; color:green; width:571.222px" %) 964 964 |=(% colspan="3" style="width: 568px;" %)AT+SNR 965 965 |(% style="width:164px" %)**Command Example**|(% style="width:290px" %)**Function**|(% style="width:113px" %)**Response** ... ... @@ -967,14 +967,16 @@ 967 967 OK 968 968 ))) 969 969 1005 +(% style="display:none" %) (%%) 1006 + 970 970 == 7.17 Application Port == 971 971 1009 + 972 972 Feature: Get or set the application port. 973 973 974 -{{info}} 975 -**AT Command: AT+PORT** 976 -{{/info}} 977 977 1013 +(% style="color:blue" %)**AT Command: AT+PORT** 1014 + 978 978 (% border="1" style="background-color:#ffffcc; color:green; width:500.222px" %) 979 979 |=(% colspan="3" style="width: 497px;" %)AT+PORT 980 980 |(% style="width:157px" %)**Command Example**|(% style="width:204px" %)**Function**|(% style="width:135px" %)**Response** ... ... @@ -983,25 +983,25 @@ 983 983 ))) 984 984 |(% style="width:157px" %)AT+PORT=21|(% style="width:204px" %)Set the application port|(% style="width:135px" %)OK 985 985 986 -{{info}} 987 -**Downlink Command: 0x23** 988 -{{/info}} 1023 +(% style="color:blue" %)**Downlink Command: 0x23** 989 989 990 990 Format: Command Code (0x23) followed by 1 bytes port value. 991 991 992 992 If the downlink payload=2301, it means set the application port to 1, while type code is 23. 993 993 994 -* **Example 1**: Downlink Payload: **2301** ~/~/ set the application port to 1 995 -* **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5 1029 +* **Example 1**: Downlink Payload: **2301** ~/~/ set the application port to 1 1030 +* **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5 996 996 1032 +(% style="display:none" %) (%%) 1033 + 997 997 == 7.18 Single Channel Mode == 998 998 1036 + 999 999 Feature:Get or Set Frequency (Unit: Hz) for Single Channel Mode. 1000 1000 1001 -{{info}} 1002 -**AT Command: AT+CHS** 1003 -{{/info}} 1004 1004 1040 +(% style="color:blue" %)**AT Command: AT+CHS** 1041 + 1005 1005 (% border="1" style="background-color:#ffffcc; color:green; width:603.222px" %) 1006 1006 |=(% colspan="3" style="width: 600px;" %)AT+CHS 1007 1007 |(% style="width:182px" %)**Command Example**|(% style="width:295px" %)**Function**|(% style="width:122px" %)**Response** ... ... @@ -1010,14 +1010,16 @@ 1010 1010 ))) 1011 1011 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 1012 1012 1050 +(% style="display:none" %) (%%) 1051 + 1013 1013 == 7.19 Eight Channel Mode == 1014 1014 1054 + 1015 1015 Feature: Get or Set eight channels mode,Only for US915,AU915,CN470. 1016 1016 1017 -{{info}} 1018 -**AT Command: AT+CHE** 1019 -{{/info}} 1020 1020 1058 +(% style="color:blue" %)**AT Command: AT+CHE** 1059 + 1021 1021 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 1022 1022 |=(% colspan="3" style="width: 707px;" %)AT+CHE 1023 1023 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -1028,25 +1028,25 @@ 1028 1028 ))) 1029 1029 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1030 1030 1031 -{{info}} 1032 -**Downlink Command: 0x24** 1033 -{{/info}} 1070 +(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)** 1034 1034 1035 1035 Format: Command Code (0x24) followed by 1 bytes channel value. 1036 1036 1037 1037 If the downlink payload=2401, it means set channel mode to 1, while type code is 24. 1038 1038 1039 -* **Example 1**: Downlink Payload: 2401 ~/~/ set channel mode to 1 1040 -* **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5 1076 +* **Example 1**: Downlink Payload: 2401 ~/~/ set channel mode to 1 1077 +* **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5 1041 1041 1079 +(% style="display:none" %) (%%) 1080 + 1042 1042 == 7.20 Get or Set RXwindows1 timeout == 1043 1043 1044 -Feature:Get or Set the number of symbols to detect and timeout from RXwindow1(0 to 255). 1045 1045 1046 -{{info}} 1047 -**AT Command: AT+RX1WTO** 1048 -{{/info}} 1084 +Feature: Get or Set the number of symbols to detect and timeout from RXwindow1(0 to 255). 1049 1049 1086 + 1087 +(% style="color:blue" %)**AT Command: AT+RX1WTO** 1088 + 1050 1050 (% border="1" style="background-color:#ffffcc; color:green; width:460.222px" %) 1051 1051 |=(% colspan="3" style="width: 457px;" %)AT+ RX1WTO 1052 1052 |(% style="width:163px" %)**Command Example**|(% style="width:201px" %)**Function**|(% style="width:93px" %)**Response** ... ... @@ -1055,8 +1055,9 @@ 1055 1055 ))) 1056 1056 |(% style="width:163px" %)AT+RX1WTO=60|(% style="width:201px" %)Set RXwindows1 timeout|(% style="width:93px" %)OK 1057 1057 1097 +(% style="display:none" %) (%%) 1058 1058 ((( 1059 -**AT+RX1 TWO**1099 +(% style="color:blue" %)**AT+RX1WTO**(%%) is theRxSingle timeout value of receive window 1. If it is not set, then the queriedvalue is the default value. If it is set, then the queried value is the setvalue. AT+RX2TWO is thesame as above. The definitionof RxSingle timeout is as described in the following paragraph. 1060 1060 ))) 1061 1061 1062 1062 [[image:image-20220526162535-1.png]] ... ... @@ -1063,18 +1063,17 @@ 1063 1063 1064 1064 ((( 1065 1065 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. 1066 - 1067 - 1068 1068 ))) 1069 1069 1108 + 1070 1070 == 7.21 Get or Set RXwindows2 timeout == 1071 1071 1072 -Feature:Get or Set the number of symbols to detect and timeout from RXwindow2(0 to 255). 1073 1073 1074 -{{info}} 1075 -**AT Command: AT+RX2WTO** 1076 -{{/info}} 1112 +Feature: Get or Set the number of symbols to detect and timeout from RXwindow2(0 to 255). 1077 1077 1114 + 1115 +(% style="color:blue" %)**AT Command: AT+RX2WTO** 1116 + 1078 1078 (% border="1" style="background-color:#ffffcc; color:green; width:497.222px" %) 1079 1079 |=(% colspan="3" style="width: 494px;" %)AT+ RX2WTO 1080 1080 |(% style="width:190px" %)**Command Example**|(% style="width:199px" %)**Function**|(% style="width:104px" %)**Response** ... ... @@ -1085,12 +1085,12 @@ 1085 1085 1086 1086 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1087 1087 1127 + 1088 1088 Feature: Get or Set uplinkdwelltime 1089 1089 1090 -{{info}} 1091 -**AT Command: AT+DWELLT** 1092 -{{/info}} 1093 1093 1131 +(% style="color:blue" %)**AT Command: AT+DWELLT** 1132 + 1094 1094 (% border="1" style="background-color:#ffffcc; color:green; width:497.222px" %) 1095 1095 |=(% colspan="3" style="width: 494px;" %)AT+DWELLT 1096 1096 |(% style="width:183px" %)**Command Example**|(% style="width:179px" %)**Function**|(% style="width:131px" %)**Response** ... ... @@ -1099,23 +1099,23 @@ 1099 1099 ))) 1100 1100 |(% style="width:183px" %)AT+DWELLT=0|(% style="width:179px" %)Set uplinkdwelltime|(% style="width:131px" %)OK 1101 1101 1102 -{{info}} 1103 -**Downlink Command: 0x25** 1104 -{{/info}} 1141 +(% style="color:blue" %)**Downlink Command: 0x25** 1105 1105 1106 1106 Format: Command Code (0x25) followed by 1 bytes state value. 1107 1107 1108 1108 If the downlink payload=2501, it means set uplinkdwelltime to 1, while type code is 25. 1109 1109 1110 -* **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1 1111 -* **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1147 +* **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1 1148 +* **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1112 1112 1113 1113 == 7.23 Set Packet Receiving Response Level == 1114 1114 1152 + 1115 1115 Feature: Get or Set packet receiving response level. This feature is used to set compatible with different LoRaWAN servers. If RPL doesn;t match , user will see strange message in the server portal. 1116 1116 1117 -RPL value: 1118 1118 1156 +**RPL value:** 1157 + 1119 1119 * **AT+RPL=0:** Device won't immediately reply any downlink commands from platform. 1120 1120 * **AT+RPL=1:** Device will immediately reply message to Unconfirmed Data Down. Payload is 0x00. 1121 1121 * **AT+RPL=2:** Device will immediately reply message to Confirmed Data Down. Payload is 0x00 and requied response header for this command. ... ... @@ -1122,15 +1122,13 @@ 1122 1122 * **AT+RPL=3:** Device will immediately reply message to MAC Command. Payload is 0x00 and requied response header for this command. 1123 1123 * **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. 1124 1124 1125 -Case Analyes: 1164 +**Case Analyes:** 1126 1126 1127 1127 * For Class A devices, AT+RPL=0 is ok. that is defaut settings in software. 1128 1128 * For Class C devices used in ChirpStack, need to set AT+RPL=4 because Chirpstack require immedietely reply message to MAC Command. 1129 1129 * 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. 1130 1130 1131 -{{info}} 1132 -**AT Command: AT+RPL** 1133 -{{/info}} 1170 +(% style="color:blue" %)**AT Command: AT+RPL** 1134 1134 1135 1135 (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) 1136 1136 |=(% colspan="3" style="width: 533px;" %)AT+RPL ... ... @@ -1140,52 +1140,55 @@ 1140 1140 ))) 1141 1141 |(% style="width:160px" %)AT+RPL=0|(% style="width:263px" %)Set packet receiving response level|(% style="width:109px" %)OK 1142 1142 1143 -{{info}} 1144 -**Downlink Command: 0x21** 1145 -{{/info}} 1180 +(% style="color:blue" %)**Downlink Command: 0x21** 1146 1146 1147 1147 Format: Command Code (0x21) followed by 1 bytes level value. 1148 1148 1149 1149 If the downlink payload=2101, it means set packet receiving response level to 1, while type code is 21. 1150 1150 1151 -* **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1 1152 -* **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1186 +* **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1 1187 +* **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1153 1153 1154 1154 == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) == 1155 1155 1156 -{{info}} 1157 -**AT Command: AT+SETMAXNBTRANS ** 1158 -{{/info}} 1159 1159 1160 -(% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) 1161 -|=(% colspan="3" style="width: 533px;" %)AT+**SETMAXNBTRANS** 1162 -|(% style="width:160px" %)**Command Example**|(% style="width:263px" %)**Function**|(% style="width:109px" %)**Response** 1163 -|(% style="width:160px" %)**AT+SETMAXNBTRANS=1,0**|(% style="width:263px" %)Value1: set the maximum NBTrans.|(% style="width:109px" %)1((( 1192 +(% style="color:blue" %)**AT Command: AT+SETMAXNBTRANS ** 1193 + 1194 +(% border="1" style="background-color:#ffffcc; color:green; width:589px" %) 1195 +|=(% colspan="3" style="width: 586px;" %)AT+**SETMAXNBTRANS** 1196 +|(% style="width:227px" %)**Command Example**|(% style="width:300px" %)**Function**|(% style="width:87px" %)**Response** 1197 +|(% style="width:227px" %)**AT+SETMAXNBTRANS=1,0**|(% style="width:300px" %)Value1: set the maximum NBTrans.|(% style="width:87px" %)1((( 1164 1164 OK 1165 1165 ))) 1166 -|(% style="width:160px" %)**AT+SETMAXNBTRANS=?,1**|(% style="width:263px" %)value2: 0: uplink fcnt doesn't change for each NBTrans; 1: uplink fcnt increase by 1 for each NBTrans.|(% style="width:109px" %)((( 1200 +|(% style="width:227px" %)**AT+SETMAXNBTRANS=?,1**|(% style="width:300px" %)((( 1201 +value2: 0: uplink fcnt doesn't change for each NBTrans; 1202 + 1203 +1: uplink fcnt increase by 1 for each NBTrans. 1204 +)))|(% style="width:87px" %)((( 1167 1167 1 1168 1168 1169 1169 OK 1170 1170 ))) 1171 1171 1172 -{{info}} 1173 -**Downlink Command: 0x33** 1174 -{{/info}} 1210 +(% style="color:blue" %)**Downlink Command: 0x33** 1175 1175 1176 1176 Format: Command Code (0x33) followed by 2 bytes mode value. 1177 1177 1178 1178 If the downlink payload=330100, it means set end node to use confirm mode, while type code is 33. 1179 1179 1180 -* Example 1: Downlink Payload: 330100 ~/~/ Set AT+SETMAXNBTRANS=1,0 1181 -* Example 2: Downlink Payload: 330201 ~/~/ Set AT+SETMAXNBTRANS=2,1 1216 +* Example 1: Downlink Payload: 330100 ~/~/ Set AT+SETMAXNBTRANS=1,0 1217 +* Example 2: Downlink Payload: 330201 ~/~/ Set AT+SETMAXNBTRANS=2,1 1182 1182 1183 1183 == 7.25 Device offline rejoining (LWS007) == 1184 1184 1185 -{{info}} 1186 -**AT Command: AT+DDETECT** 1187 -{{/info}} 1188 1188 1222 +(% style="color:blue" %)**AT Command: AT+DDETECT** 1223 + 1224 +AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880) 1225 + 1226 +* ACK_Timout_1: Unit: min 1227 +* ACK_Timout_2: Unit: min 1228 + 1189 1189 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 1190 1190 |=(% colspan="3" style="width: 707px;" %)AT+**DDETECT** 1191 1191 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -1217,22 +1217,23 @@ 1217 1217 OK 1218 1218 ))) 1219 1219 1220 -{{info}} 1221 -**Downlink Command: 0x33** 1222 -{{/info}} 1260 +(% style="color:blue" %)**Downlink Command: 0x32** 1223 1223 1224 1224 Format: Command Code (0x32) followed by 2 bytes mode value. 1225 1225 1226 -If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 3 3.1264 +If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32. 1227 1227 1228 -* Example 1: Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1266 +* **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1267 +** 0x01 : Flag 1268 +** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours) 1269 +** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours) 1270 +** **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. 1229 1229 1230 1230 == 7.26 Request the server to send an ACK == 1231 1231 1232 -{{info}} 1233 -**AT Command: AT+PNACKMD** 1234 -{{/info}} 1235 1235 1275 +(% style="color:blue" %)**AT Command: AT+PNACKMD** 1276 + 1236 1236 (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) 1237 1237 |=(% colspan="3" style="width: 533px;" %)**AT+PNACKMD** 1238 1238 |(% style="width:160px" %)**Command Example**|(% style="width:263px" %)**Function**|(% style="width:109px" %)**Response** ... ... @@ -1247,49 +1247,47 @@ 1247 1247 1248 1248 == 7.27 Adjust network rejoining interval == 1249 1249 1250 -{{info}} 1251 -**AT Command: AT+RJTDC** 1252 -{{/info}} 1253 1253 1292 +(% style="color:blue" %)**AT Command: AT+RJTDC** 1293 + 1254 1254 (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %) 1255 1255 |=(% colspan="3" style="width: 724px;" %)AT+RJTDC 1256 1256 |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response** 1257 -|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30 000(((1297 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30((( 1258 1258 OK 1259 1259 1260 -the interval is 30 000ms= 30s1300 +the interval is 30 min 1261 1261 ))) 1262 -|(% style="width:165px" %)AT+RJTDC=60 000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((1263 -Set the ReJoin data transmission interval to 60 000ms= 60 seconds1302 +|(% style="width:165px" %)AT+RJTDC=60|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK((( 1303 +Set the ReJoin data transmission interval to 60 min 1264 1264 ))) 1265 1265 1266 -{{info}} 1267 -**Downlink Command: 0x26** 1268 -{{/info}} 1306 +(% style="color:blue" %)**Downlink Command: 0x26** 1269 1269 1270 1270 Format: Command Code (0x26) followed by 2 bytes mode value. 1271 1271 1272 1272 If the downlink payload=26000A, it means set end node to use confirm mode, while type code is 26. 1273 1273 1274 -* Example 1: Downlink Payload: 26000A ~/~/ Set AT+RJTDC=10 1275 -* Example 2: Downlink Payload: 260002 ~/~/ Set AT+RJTDC=2 1312 +* **Example 1:** Downlink Payload: 26000A ~/~/ Set AT+RJTDC=10 1313 +* **Example 2: **Downlink Payload: 260002 ~/~/ Set AT+RJTDC=2 1276 1276 1277 1277 = 8. AT Commands Combination = 1278 1278 1279 1279 == 8.1 Set a fix RX2DR for downlink window == 1280 1280 1281 -* **AT+ADR=0 **~-~-> Disable ADR first 1282 -* **AT+RX2DR=xxxx** ~-~-> Set xxxx to your wanted DataRate 1283 1283 1320 +* (% style="color:blue" %)**AT+ADR=0 **(%%) **~-~->** Disable ADR first 1321 +* (% style="color:blue" %)**AT+RX2DR=xxxx** (%%) **~-~->** Set xxxx to your wanted DataRate 1322 + 1284 1284 == 8.2 Use Downlink Command to set a fix uplink DR == 1285 1285 1286 -{{info}} 1287 -**Downlink Command: 0x22000500** 1288 -{{/info}} 1289 1289 1290 - Same as:1326 +(% style="color:blue" %)**Downlink Command: 0x22000500** 1291 1291 1292 -* AT+ADR=0 [[Reference>>||anchor="H7.1AdaptiveDataRate"]] 1293 -* AT+DR=5 [[Reference>>||anchor="H7.4DataRate"]] 1294 -* AT+TXP=0 [[Reference>>||anchor="H7.14TransmitPower"]] 1295 -~)~)~) 1328 +**Same as:** 1329 + 1330 +* AT+ADR=0 [[Reference>>||anchor="H7.1AdaptiveDataRate"]] 1331 +* AT+DR=5 [[Reference>>||anchor="H7.4DataRate"]] 1332 +* AT+TXP=0 [[Reference>>||anchor="H7.14TransmitPower"]] 1333 + 1334 +