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
-
... ... @@ -1,4 +1,4 @@ 1 - **Contents:** 1 + **Table of** **Contents:** 2 2 3 3 {{toc/}} 4 4 ... ... @@ -6,6 +6,7 @@ 6 6 7 7 = 1. Introduction = 8 8 9 + 9 9 Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands: 10 10 11 11 * **Common Commands:** They should be available for each sensor, such as: change uplink interval, reset device. ... ... @@ -18,6 +18,7 @@ 18 18 19 19 = 2. How to use AT Commands or Downlink command = 20 20 22 + 21 21 * For AT Command , See Devices User Manual for Device. The user manual can be found in each product page of [[Dragino Official Website>>url:http://www.dragino.com/]] 22 22 * For LoRaWAN Downlink: The gateway transfer downlink command in HEX format. This page shows the HEX format downlink code for each command. but some servers use base64 as downlink code. Below are reference for how to use downlink command: 23 23 ** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]] ... ... @@ -28,6 +28,7 @@ 28 28 29 29 = 3. Support End Node and firmware version = 30 30 33 + 31 31 (% border="1" style="background-color:#ffffcc; color:green; width:966px" %) 32 32 |=(% colspan="3" style="width: 963px;" %)((( 33 33 Dragino STM32 base hardware Firmware / LoRaWAN stack list ... ... @@ -100,18 +100,17 @@ 100 100 ))) 101 101 102 102 103 - 104 104 = 4. System Management Commands = 105 105 108 + 106 106 == 4.1 Change Uplink Interval == 107 107 111 + 108 108 Feature: Change LoRaWAN End Node Transmit Interval. 109 109 110 -(% class="box infomessage" %) 111 -((( 112 -**AT Command: AT+TDC** 113 -))) 114 114 115 +(% style="color:blue" %)**AT Command: AT+TDC** 116 + 115 115 (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %) 116 116 |=(% colspan="3" style="width: 724px;" %)AT+TDC 117 117 |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response** ... ... @@ -124,11 +124,11 @@ 124 124 Set transmit interval to 60000ms = 60 seconds 125 125 ))) 126 126 127 -{{info}} 128 -**Downlink Command: 0x01** 129 -{{/info}} 130 - 131 131 ((( 130 + 131 + 132 +(% style="color:blue" %)**Downlink Command: 0x01** 133 + 132 132 Format: Command Code (0x01) followed by 3 bytes time value. 133 133 ))) 134 134 ... ... @@ -143,12 +143,12 @@ 143 143 144 144 == 4.2 Reboot End Node == 145 145 148 + 146 146 Feature: Reboot End Node to perform a new OTAA or ABP Join. 147 147 148 -{{info}} 149 -**AT Command: ATZ** 150 -{{/info}} 151 151 152 +(% style="color:blue" %)**AT Command: ATZ** 153 + 152 152 (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %) 153 153 |=(% colspan="3" %)ATZ: Trig a reset of the MCU 154 154 |**Command Example**|**Function**|**Response** ... ... @@ -166,10 +166,9 @@ 166 166 <followed by the Tx and Rx information> 167 167 ))) 168 168 169 -{{info}} 170 -**Downlink Command: 0x04** 171 -{{/info}} 172 172 172 +(% style="color:blue" %)**Downlink Command: 0x04** 173 + 173 173 ((( 174 174 Format: Command Code (0x04) followed by FF. 175 175 ))) ... ... @@ -182,12 +182,12 @@ 182 182 183 183 == 4.3 Reset to factory Default == 184 184 186 + 185 185 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. 186 186 187 -{{info}} 188 -**AT Command: AT+FDR** 189 -{{/info}} 190 190 190 +(% style="color:blue" %)**AT Command: AT+FDR** 191 + 191 191 (% border="1" style="background-color:#ffffcc; color:green; width:831.222px" %) 192 192 |=(% colspan="3" style="width: 828px;" %)Reset to factory default 193 193 |(% style="width:181px" %)**Command Example**|(% style="width:181px" %)**Function**|(% style="width:465px" %)**Response** ... ... @@ -205,10 +205,9 @@ 205 205 Please set the parameters or reset Device to apply change 206 206 ))) 207 207 208 -{{info}} 209 -**Downlink Command: 0x04** 210 -{{/info}} 211 211 210 +(% style="color:blue" %)**Downlink Command: 0x04** 211 + 212 212 ((( 213 213 Format: Command Code (0x04) followed by FE. 214 214 ))) ... ... @@ -220,12 +220,12 @@ 220 220 221 221 == 4.4 Show Firmware Version == 222 222 223 + 223 223 Feature: Show firmware version. No downlink command yet. 224 224 225 -{{info}} 226 -**AT Command: AT+VER** 227 -{{/info}} 228 228 227 +(% style="color:blue" %)**AT Command: AT+VER** 228 + 229 229 (% border="1" style="background-color:#ffffcc; color:green; width:586px" %) 230 230 |=(% colspan="3" style="width: 583px;" %)AT+VER: Image Version and Frequency Band 231 231 |(% style="width:170px" %)**Command Example**|(% style="width:300px" %)**Function**|(% style="width:113px" %)**Response** ... ... @@ -235,10 +235,9 @@ 235 235 OK 236 236 ))) 237 237 238 -{{info}} 239 -**Downlink Command: 0x26 (Valid in 006 stack)** 240 -{{/info}} 241 241 239 +(% style="color:blue" %)**Downlink Command: 0x26 (Valid in 006 stack)** 240 + 242 242 ((( 243 243 Downlink Format: 0x26 244 244 ))) ... ... @@ -248,6 +248,9 @@ 248 248 ))) 249 249 250 250 ((( 250 + 251 + 252 + 251 251 **xx: Software Type:** 252 252 ))) 253 253 ... ... @@ -256,6 +256,9 @@ 256 256 * 0x00 03: LSE01/LDDS75/LDDS20/LSPH01/LLMS01/LSNPK01 257 257 258 258 ((( 261 + 262 + 263 + 259 259 **yy: Frequency Band:** 260 260 ))) 261 261 ... ... @@ -271,6 +271,9 @@ 271 271 * 0xa0: AS923-3 272 272 273 273 ((( 279 + 280 + 281 + 274 274 **zz: Subband** 275 275 ))) 276 276 ... ... @@ -279,12 +279,12 @@ 279 279 280 280 == 4.5 Show System Configure == 281 281 290 + 282 282 Feature: Show All configure. No downlink command yet. 283 283 284 -{{info}} 285 -**AT Command: AT+CFG** 286 -{{/info}} 287 287 294 +(% style="color:blue" %)**AT Command: AT+CFG** 295 + 288 288 (% border="1" style="background-color:#ffffcc; color:green; width:599.222px" %) 289 289 |=(% colspan="3" style="width: 596px;" %)AT+CFG: Print all configurations 290 290 |(% style="width:160px" %)**Command Example**|(% style="width:154px" %)**Function**|(% style="width:280px" %)**Response** ... ... @@ -306,14 +306,15 @@ 306 306 307 307 = 5. Keys, IDs and EUIs management = 308 308 317 + 309 309 == 5.1 Application EUI == 310 310 320 + 311 311 Feature: Get or Set the Application EUI. 312 312 313 -{{info}} 314 -**AT Command: AT+APPEUI** 315 -{{/info}} 316 316 324 +(% style="color:blue" %)**AT Command: AT+APPEUI** 325 + 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** ... ... @@ -326,12 +326,12 @@ 326 326 327 327 == 5.2 Application Key == 328 328 338 + 329 329 Feature: Get or Set the Application Key. 330 330 331 -{{info}} 332 -**AT Command: AT+APPKEY** 333 -{{/info}} 334 334 342 +(% style="color:blue" %)**AT Command: AT+APPKEY** 343 + 335 335 (% border="1" style="background-color:#ffffcc; color:green; width:976.222px" %) 336 336 |=(% colspan="3" style="width: 973px;" %)AT+APPKEY 337 337 |(% style="width:441px" %)**Command Example**|(% style="width:180px" %)**Function**|(% style="width:350px" %)**Response** ... ... @@ -344,12 +344,12 @@ 344 344 345 345 == 5.3 Application Session Key == 346 346 356 + 347 347 Feature: Get or Set the Application Session Key. 348 348 349 -{{info}} 350 -**AT Command: AT+APPSKEY** 351 -{{/info}} 352 352 360 +(% style="color:blue" %)**AT Command: AT+APPSKEY** 361 + 353 353 (% border="1" style="background-color:#ffffcc; color:green; width:1040.22px" %) 354 354 |=(% colspan="3" style="width: 1037px;" %)AT+APPSKEY 355 355 |(% style="width:451px" %)**Command Example**|(% style="width:231px" %)**Function**|(% style="width:354px" %)**Response** ... ... @@ -364,12 +364,12 @@ 364 364 365 365 == 5.4 Device Address == 366 366 376 + 367 367 Feature: Get or Set the Device Address. 368 368 369 -{{info}} 370 -**AT Command: AT+DADDR** 371 -{{/info}} 372 372 380 +(% style="color:blue" %)**AT Command: AT+DADDR** 381 + 373 373 (% border="1" style="background-color:#ffffcc; color:green; width:795.222px" %) 374 374 |=(% colspan="3" style="width: 792px;" %)AT+DADDR 375 375 |(% style="width:192px" %)**Command Example**|(% style="width:241px" %)**Function**|(% style="width:359px" %)**Response** ... ... @@ -384,12 +384,12 @@ 384 384 385 385 == 5.5 Device EUI == 386 386 396 + 387 387 Feature: Get or Set the Device EUI. 388 388 389 -{{info}} 390 -**AT Command: AT+DEUI** 391 -{{/info}} 392 392 400 +(% style="color:blue" %)**AT Command: AT+DEUI** 401 + 393 393 (% border="1" style="background-color:#ffffcc; color:green; width:1035.22px" %) 394 394 |=(% colspan="3" style="width: 1032px;" %)AT+DEUI 395 395 |(% style="width:250px" %)**Command Example**|(% style="width:147px" %)**Function**|(% style="width:634px" %)**Response** ... ... @@ -404,12 +404,12 @@ 404 404 405 405 == 5.6 Network ID == 406 406 416 + 407 407 Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection) 408 408 409 -{{info}} 410 -**AT Command: AT+NWKID** 411 -{{/info}} 412 412 420 +(% style="color:blue" %)**AT Command: AT+NWKID** 421 + 413 413 (% border="1" style="background-color:#ffffcc; color:green; width:448.222px" %) 414 414 |=(% colspan="3" style="width: 445px;" %)AT+NWKID 415 415 |(% style="width:191px" %)**Command Example**|(% style="width:153px" %)**Function**|(% style="width:101px" %)**Response** ... ... @@ -422,12 +422,12 @@ 422 422 423 423 == 5.7 Network Session Key == 424 424 434 + 425 425 Feature: Get or Set the Network Session Key 426 426 427 -{{info}} 428 -**AT Command: AT+NWKSKEY** 429 -{{/info}} 430 430 438 +(% style="color:blue" %)**AT Command: AT+NWKSKEY** 439 + 431 431 (% border="1" style="background-color:#ffffcc; color:green; width:1017.22px" %) 432 432 |=(% colspan="3" style="width: 1014px;" %)AT+NWKSKEY 433 433 |(% style="width:455px" %)**Command Example**|(% style="width:215px" %)**Function**|(% style="width:343px" %)**Response** ... ... @@ -440,14 +440,18 @@ 440 440 441 441 = 6. Joining and sending date on LoRaWAN network = 442 442 452 + 443 443 == 6.1 Confirm Mode == 444 444 455 + 456 +=== 6.1.1 AT+CFM command before DR-LWS007 software stack === 457 + 458 + 445 445 Feature: Get or Set the confirmation mode (0-1). 446 446 447 -{{info}} 448 -**AT Command: AT+CFM** 449 -{{/info}} 450 450 462 +(% style="color:blue" %)**AT Command: AT+CFM** 463 + 451 451 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 452 452 |=(% colspan="3" style="width: 707px;" %)AT+CFM 453 453 |(% style="width:155px" %)**Command Example**|(% style="width:205px" %)**Function**|(% style="width:346px" %)**Response** ... ... @@ -457,8 +457,9 @@ 457 457 |(% style="width:155px" %)AT+CFM=1|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)OK 458 458 |(% style="width:155px" %)AT+CFM=2|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)While Error in format, return AT_PARAM_ERROR 459 459 460 -Downlink Command: 0x05 461 461 474 +(% style="color:blue" %)**Downlink Command: 0x05** 475 + 462 462 Format: Command Code (0x05) followed by 2 bytes mode value. 463 463 464 464 If the downlink payload=0501, it means set end node to use confirm mode, while type code is 05. ... ... @@ -468,14 +468,64 @@ 468 468 469 469 470 470 485 + 486 +=== 6.1.2 AT+CFM command since DR-LWS007 software stack === 487 + 488 + 489 +(% style="color:blue" %)**AT Command: AT+CFM** 490 + 491 +(% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 492 +|=(% colspan="3" style="width: 707px;" %)AT+CFM 493 +|(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** 494 +|(% style="width:160px" %)((( 495 +AT+CFM=1,0,0 496 + 497 +value1 498 +)))|(% style="width:198px" %)confirmed uplink|(% style="width:349px" %)((( 499 +1 500 + 501 +OK 502 +))) 503 +|(% style="width:160px" %)((( 504 +AT+CFM=0,?,0 505 + 506 +value2 507 +)))|(% style="width:198px" %)set max retry , range: 0 ~~ 7|(% style="width:349px" %)((( 508 +0~~7 509 + 510 +OK 511 +))) 512 +|(% style="width:160px" %)((( 513 +AT+CFM=0,0,1 514 + 515 +value3 516 +)))|(% style="width:198px" %)uplink fcnt increase by 1 for each retry|(% style="width:349px" %)((( 517 +1 518 + 519 +OK 520 +))) 521 + 522 + 523 +(% style="color:blue" %)**Downlink Command: 0x05** 524 + 525 +Format: Command Code (0x05) followed by 2 bytes mode value. 526 + 527 +If the downlink payload=05010101, it means set end node to use confirm mode, while type code is 05. 528 + 529 +* Example 1: Downlink Payload: 05010101 ~/~/ Set AT+CFM=1,1,1 530 +* Example 2: Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 531 + 532 + 533 + 534 + 471 471 == 6.2 Confirm Status == 472 472 537 + 473 473 Feature: Get confirmation status of the last AT+SEND (0-1). 474 474 475 -{{info}} 476 -**AT Command: AT+CFS** 477 -{{/info}} 478 478 541 +(% style="color:blue" %)**AT Command: AT+CFS** 542 + 479 479 (% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %) 480 480 |=(% colspan="3" style="width: 531px;" %)AT+CFS 481 481 |(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response** ... ... @@ -487,12 +487,12 @@ 487 487 488 488 == 6.3 Join LoRa® Network == 489 489 554 + 490 490 Feature: Join network. 491 491 492 -{{info}} 493 -**AT Command: AT+JOIN** 494 -{{/info}} 495 495 558 +(% style="color:blue" %)**AT Command: AT+JOIN** 559 + 496 496 (% border="1" style="background-color:#ffffcc; color:green; width:647.222px" %) 497 497 |=(% colspan="3" style="width: 644px;" %)AT+JOIN 498 498 |(% style="width:163px" %)**Command Example**|(% style="width:147px" %)**Function**|(% style="width:334px" %)**Response** ... ... @@ -506,12 +506,12 @@ 506 506 507 507 == 6.4 LoRa® Network Join Mode == 508 508 573 + 509 509 Feature: Get or Set the Network Join Mode. (0: ABP, 1: OTAA). 510 510 511 -{{info}} 512 -**AT Command: AT+NJM** 513 -{{/info}} 514 514 577 +(% style="color:blue" %)**AT Command: AT+NJM** 578 + 515 515 (% border="1" style="background-color:#ffffcc; color:green; width:753.222px" %) 516 516 |=(% colspan="3" style="width: 750px;" %)AT+NJM 517 517 |(% style="width:162px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:361px" %)**Response** ... ... @@ -521,27 +521,27 @@ 521 521 |(% style="width:162px" %)AT+NJM=0|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)OK 522 522 |(% 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 523 523 524 -{{info}} 525 -**Downlink Command: 0x20** 526 -{{/info}} 527 527 589 +(% style="color:blue" %)**Downlink Command: 0x20** 590 + 528 528 Format: Command Code (0x20) followed by 1 bytes mode value. 529 529 530 530 If the downlink payload=2000, it means set the Network Join Mode, while type code is 20. 531 531 532 -* **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM= O595 +* **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM=0 533 533 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 534 534 535 535 536 536 600 + 537 537 == 6.5 LoRa® Network Join Status == 538 538 603 + 539 539 Feature: LoRa® Network Join Status. 540 540 541 -{{info}} 542 -**AT Command: AT+NJS** 543 -{{/info}} 544 544 607 +(% style="color:blue" %)**AT Command: AT+NJS** 608 + 545 545 (% border="1" style="background-color:#ffffcc; color:green; width:498.222px" %) 546 546 |=(% colspan="3" style="width: 495px;" %)AT+NJS 547 547 |(% style="width:169px" %)**Command Example**|(% style="width:164px" %)**Function**|(% style="width:161px" %)**Response** ... ... @@ -553,12 +553,12 @@ 553 553 554 554 == 6.6 Print Last Received Data in Raw Format == 555 555 620 + 556 556 Feature: Print Last Received Data in Raw Format<port:data>. 557 557 558 -{{info}} 559 -**AT Command: AT+RECV** 560 -{{/info}} 561 561 624 +(% style="color:blue" %)**AT Command: AT+RECV** 625 + 562 562 (% border="1" style="background-color:#ffffcc; color:green; width:587.222px" %) 563 563 |=(% colspan="3" style="width: 584px;" %)AT+RECV 564 564 |(% style="width:161px" %)**Command Example**|(% style="width:272px" %)**Function**|(% style="width:150px" %)**Response** ... ... @@ -570,12 +570,12 @@ 570 570 571 571 == 6.7 Print Last Received Data in Binary Format == 572 572 637 + 573 573 Feature: Print Last Received Data in Binary Format<port:data>. 574 574 575 -{{info}} 576 -**AT Command: AT+RECVB** 577 -{{/info}} 578 578 641 +(% style="color:blue" %)**AT Command: AT+RECVB** 642 + 579 579 (% border="1" style="background-color:#ffffcc; color:green; width:793.222px" %) 580 580 |=(% colspan="3" style="width: 790px;" %)AT+RECVB 581 581 |(% style="width:173px" %)**Command Example**|(% style="width:497px" %)**Function**|(% style="width:120px" %)**Response** ... ... @@ -587,12 +587,12 @@ 587 587 588 588 == 6.8 Send Text Data == 589 589 654 + 590 590 Feature: Send Text Data<port:data>. 591 591 592 -{{info}} 593 -**AT Command: AT+SEND** 594 -{{/info}} 595 595 658 +(% style="color:blue" %)**AT Command: AT+SEND** 659 + 596 596 (% border="1" style="background-color:#ffffcc; color:green; width:991.222px" %) 597 597 |=(% colspan="3" style="width: 988px;" %)AT+SEND 598 598 |(% style="width:201px" %)**Command Example**|(% style="width:340px" %)**Function**|(% style="width:446px" %)**Response** ... ... @@ -608,12 +608,12 @@ 608 608 609 609 == 6.9 Send Hexadecimal Data == 610 610 675 + 611 611 Feature: Send hexadecimal data along with the application port. 612 612 613 -{{info}} 614 -**AT Command: AT+SENDB** 615 -{{/info}} 616 616 679 +(% style="color:blue" %)**AT Command: AT+SENDB** 680 + 617 617 (% border="1" style="background-color:#ffffcc; color:green; width:1120.22px" %) 618 618 |=(% colspan="3" style="width: 1117px;" %)AT+SENDB 619 619 |(% style="width:257px" %)**Command Example**|(% style="width:406px" %)**Function**|(% style="width:453px" %)**Response** ... ... @@ -624,16 +624,19 @@ 624 624 625 625 ))) 626 626 691 + 692 + 627 627 = 7. LoRaWAN network management = 628 628 695 + 629 629 == 7.1 Adaptive Data Rate == 630 630 698 + 631 631 Feature: Get or Set the Adaptive Data Rate setting. (0: off, 1: on). 632 632 633 -{{info}} 634 -**AT Command: AT+ADR** 635 -{{/info}} 636 636 702 +(% style="color:blue" %)**AT Command: AT+ADR** 703 + 637 637 (% border="1" style="background-color:#ffffcc; color:green; width:683.222px" %) 638 638 |=(% colspan="3" style="width: 680px;" %)AT+ADR 639 639 |(% style="width:162px" %)**Command Example**|(% style="width:266px" %)**Function**|(% style="width:250px" %)**Response** ... ... @@ -645,11 +645,10 @@ 645 645 AT_PARAM_ERROR 646 646 ))) 647 647 648 -{{info}} 649 -**Downlink Command: 0x22** 650 -{{/info}} 715 +(% style="color:blue" %)**Downlink Command: 0x22** 651 651 652 652 718 + 653 653 If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22. 654 654 655 655 * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. ... ... @@ -659,10 +659,10 @@ 659 659 660 660 Feature: Get or Set the Device Class(Currently only support class A, class C). 661 661 662 -{{info}} 663 -**AT Command:AT+CLASS** 664 -{{/info}} 665 665 729 +(% style="color:blue" %)**AT Command:AT+CLASS** 730 + 731 + 666 666 (% border="1" style="background-color:#ffffcc; color:green; width:507.222px" %) 667 667 |=(% colspan="3" style="width: 504px;" %)AT+CLASS 668 668 |(% style="width:163px" %)**Command Example**|(% style="width:166px" %)**Function**|(% style="width:175px" %)**Response** ... ... @@ -677,10 +677,10 @@ 677 677 678 678 Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing. 679 679 680 -{{info}} 681 -**AT Command:AT+DCS** 682 -{{/info}} 683 683 747 +(% style="color:blue" %)**AT Command:AT+DCS** 748 + 749 + 684 684 (% border="1" style="background-color:#ffffcc; color:green; width:515.222px" %) 685 685 |=(% colspan="3" style="width: 512px;" %)AT+DCS 686 686 |(% style="width:165px" %)**Command Example**|(% style="width:239px" %)**Function**|(% style="width:107px" %)**Response** ... ... @@ -695,10 +695,10 @@ 695 695 696 696 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 697 697 698 -{{info}} 699 -**AT Command: AT+DR** 700 -{{/info}} 701 701 765 +(% style="color:blue" %)**AT Command: AT+DR** 766 + 767 + 702 702 (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %) 703 703 |=(% colspan="3" style="width: 463px;" %)AT+DR 704 704 |(% style="width:156px" %)**Command Example**|(% style="width:167px" %)**Function**|(% style="width:140px" %)**Response** ... ... @@ -709,11 +709,10 @@ 709 709 710 710 ))) 711 711 712 -{{info}} 713 -**Downlink Command: 0x2200aaFF** 714 -{{/info}} 778 +(% style="color:blue" %)**Downlink Command: 0x2200aaFF** 715 715 716 716 781 + 717 717 If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF. 718 718 719 719 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. ... ... @@ -723,10 +723,10 @@ 723 723 724 724 Feature: Get or Set the Frame Counter Downlink. 725 725 726 -{{info}} 727 -**AT Command:AT+FCD** 728 -{{/info}} 729 729 792 +(% style="color:blue" %)**AT Command:AT+FCD** 793 + 794 + 730 730 (% border="1" style="background-color:#ffffcc; color:green; width:693.222px" %) 731 731 |=(% colspan="3" style="width: 690px;" %)AT+FCD 732 732 |(% style="width:162px" %)**Command Example**|(% style="width:258px" %)**Function**|(% style="width:269px" %)**Response** ... ... @@ -743,10 +743,10 @@ 743 743 744 744 Feature: Get or Set the Frame Counter Uplink. 745 745 746 -{{info}} 747 -**AT Command:AT+FCU** 748 -{{/info}} 749 749 812 +(% style="color:blue" %)**AT Command:AT+FCU** 813 + 814 + 750 750 (% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %) 751 751 |=(% colspan="3" style="width: 531px;" %)AT+FCU 752 752 |(% style="width:177px" %)**Command Example**|(% style="width:239px" %)**Function**|(% style="width:113px" %)**Response** ... ... @@ -761,10 +761,10 @@ 761 761 762 762 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms. 763 763 764 -{{info}} 765 -**AT Command:AT+JN1DL** 766 -{{/info}} 767 767 830 +(% style="color:blue" %)**AT Command:AT+JN1DL** 831 + 832 + 768 768 (% border="1" style="background-color:#ffffcc; color:green; width:537.222px" %) 769 769 |=(% colspan="3" style="width: 534px;" %)AT+JN1DL 770 770 |(% style="width:164px" %)**Command Example**|(% style="width:229px" %)**Function**|(% style="width:140px" %)**Response** ... ... @@ -779,10 +779,10 @@ 779 779 780 780 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms. 781 781 782 -{{info}} 783 -**AT Command:AT+JN2DL** 784 -{{/info}} 785 785 848 +(% style="color:blue" %)**AT Command:AT+JN2DL** 849 + 850 + 786 786 (% border="1" style="background-color:#ffffcc; color:green; width:538.222px" %) 787 787 |=(% colspan="3" style="width: 535px;" %)AT+JN2DL 788 788 |(% style="width:160px" %)**Command Example**|(% style="width:228px" %)**Function**|(% style="width:146px" %)**Response** ... ... @@ -795,12 +795,14 @@ 795 795 796 796 == 7.9 Public Network Mode == 797 797 798 -Feature: Get or Set the public network mode. (0: off, 1: on) 863 +Feature: Get or Set the public network mode. (0: off, 1: on). A Public LoRaWAN network use 0x34 as syncword. Default Settings; PNM=1 799 799 800 -{{info}} 801 -**AT Command:AT+PNM** 802 -{{/info}} 865 +Notice: If user build their own LoRaWAN server but still use syncword=0x34, this is still considered a public LoRaWAN network 803 803 867 + 868 +(% style="color:blue" %)**AT Command:AT+PNM** 869 + 870 + 804 804 (% border="1" style="background-color:#ffffcc; color:green; width:667.222px" %) 805 805 |=(% colspan="3" style="width: 664px;" %)AT+PNM 806 806 |(% style="width:166px" %)**Command Example**|(% style="width:225px" %)**Function**|(% style="width:272px" %)**Response** ... ... @@ -807,20 +807,25 @@ 807 807 |(% style="width:166px" %)AT+PNM=?|(% style="width:225px" %)Get the public network mode.|(% style="width:272px" %)1((( 808 808 OK 809 809 ))) 810 -|(% style="width:166px" %)AT+PNM=1|(% style="width:225px" %)Set the public network mode.|(% style="width:272px" %)(System will write new value to PNM)((( 877 +|(% style="width:166px" %)AT+PNM=1|(% style="width:225px" %)((( 878 +Set the public network mode. 879 + 880 +Set syncword=0x34 881 +)))|(% style="width:272px" %)(System will write new value to PNM)((( 811 811 OK 812 812 813 813 814 814 ))) 886 +|(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %) 815 815 816 816 == 7.10 Receive Delay1 == 817 817 818 818 Feature: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms 819 819 820 -{{info}} 821 -**AT Command:AT+RX1DL** 822 -{{/info}} 823 823 893 +(% style="color:blue" %)**AT Command:AT+RX1DL** 894 + 895 + 824 824 (% border="1" style="background-color:#ffffcc; color:green; width:408.222px" %) 825 825 |=(% colspan="3" style="width: 405px;" %)AT+RX1DL 826 826 |(% style="width:155px" %)**Command Example**|(% style="width:128px" %)**Function**|(% style="width:122px" %)**Response** ... ... @@ -835,10 +835,10 @@ 835 835 836 836 Feature: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms 837 837 838 -{{info}} 839 -**AT Command:AT+RX2DL** 840 -{{/info}} 841 841 911 +(% style="color:blue" %)**AT Command:AT+RX2DL** 912 + 913 + 842 842 (% border="1" style="background-color:#ffffcc; color:green; width:481.222px" %) 843 843 |=(% colspan="3" style="width: 478px;" %)AT+RX2DL 844 844 |(% style="width:175px" %)**Command Example**|(% style="width:152px" %)**Function**|(% style="width:150px" %)**Response** ... ... @@ -853,10 +853,10 @@ 853 853 854 854 Feature: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X) 855 855 856 -{{info}} 857 -**AT Command:AT+RX2DR** 858 -{{/info}} 859 859 929 +(% style="color:blue" %)**AT Command:AT+RX2DR** 930 + 931 + 860 860 (% border="1" style="background-color:#ffffcc; color:green; width:525.222px" %) 861 861 |=(% colspan="3" style="width: 522px;" %)AT+RX2DR 862 862 |(% style="width:160px" %)**Command Example**|(% style="width:232px" %)**Function**|(% style="width:130px" %)**Response** ... ... @@ -871,10 +871,10 @@ 871 871 872 872 Feature: Get or Set the Rx2 window frequency 873 873 874 -{{info}} 875 -**AT Command:AT+RX2FQ** 876 -{{/info}} 877 877 947 +(% style="color:blue" %)**AT Command:AT+RX2FQ** 948 + 949 + 878 878 (% border="1" style="background-color:#ffffcc; color:green; width:587.222px" %) 879 879 |=(% colspan="3" style="width: 584px;" %)AT+RX2FQ 880 880 |(% style="width:183px" %)**Command Example**|(% style="width:240px" %)**Function**|(% style="width:160px" %)**Response** ... ... @@ -889,10 +889,10 @@ 889 889 890 890 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. ) 891 891 892 -{{info}} 893 -**AT Command:AT+TXP** 894 -{{/info}} 895 895 965 +(% style="color:blue" %)**AT Command:AT+TXP** 966 + 967 + 896 896 (% border="1" style="background-color:#ffffcc; color:green; width:465.222px" %) 897 897 |=(% colspan="3" style="width: 462px;" %)AT+TXP 898 898 |(% style="width:161px" %)**Command Example**|(% style="width:189px" %)**Function**|(% style="width:112px" %)**Response** ... ... @@ -914,10 +914,10 @@ 914 914 915 915 Feature: Get or Set the Rx2 window frequency 916 916 917 -{{info}} 918 -**AT Command:AT+RSSI** 919 -{{/info}} 920 920 990 +(% style="color:blue" %)**AT Command:AT+RSSI** 991 + 992 + 921 921 (% border="1" style="background-color:#ffffcc; color:green; width:557.222px" %) 922 922 |=(% colspan="3" style="width: 554px;" %)AT+RSSI 923 923 |(% style="width:164px" %)**Command Example**|(% style="width:289px" %)**Function**|(% style="width:100px" %)**Response** ... ... @@ -929,10 +929,10 @@ 929 929 930 930 Feature: Get the SNR of the last received packet 931 931 932 -{{info}} 933 -**AT Command:AT+SNR** 934 -{{/info}} 935 935 1005 +(% style="color:blue" %)**AT Command:AT+SNR** 1006 + 1007 + 936 936 (% border="1" style="background-color:#ffffcc; color:green; width:571.222px" %) 937 937 |=(% colspan="3" style="width: 568px;" %)AT+SNR 938 938 |(% style="width:164px" %)**Command Example**|(% style="width:290px" %)**Function**|(% style="width:113px" %)**Response** ... ... @@ -944,10 +944,10 @@ 944 944 945 945 Feature: Get or set the application port. 946 946 947 -{{info}} 948 -**AT Command: AT+PORT** 949 -{{/info}} 950 950 1020 +(% style="color:blue" %)**AT Command: AT+PORT** 1021 + 1022 + 951 951 (% border="1" style="background-color:#ffffcc; color:green; width:500.222px" %) 952 952 |=(% colspan="3" style="width: 497px;" %)AT+PORT 953 953 |(% style="width:157px" %)**Command Example**|(% style="width:204px" %)**Function**|(% style="width:135px" %)**Response** ... ... @@ -956,10 +956,9 @@ 956 956 ))) 957 957 |(% style="width:157px" %)AT+PORT=21|(% style="width:204px" %)Set the application port|(% style="width:135px" %)OK 958 958 959 -{{info}} 960 -**Downlink Command: 0x23** 961 -{{/info}} 1031 +(% style="color:blue" %)**Downlink Command: 0x23** 962 962 1033 + 963 963 Format: Command Code (0x23) followed by 1 bytes port value. 964 964 965 965 If the downlink payload=2301, it means set the application port to 1, while type code is 23. ... ... @@ -971,10 +971,10 @@ 971 971 972 972 Feature:Get or Set Frequency (Unit: Hz) for Single Channel Mode. 973 973 974 -{{info}} 975 -**AT Command: AT+CHS** 976 -{{/info}} 977 977 1046 +(% style="color:blue" %)**AT Command: AT+CHS** 1047 + 1048 + 978 978 (% border="1" style="background-color:#ffffcc; color:green; width:603.222px" %) 979 979 |=(% colspan="3" style="width: 600px;" %)AT+CHS 980 980 |(% style="width:182px" %)**Command Example**|(% style="width:295px" %)**Function**|(% style="width:122px" %)**Response** ... ... @@ -987,10 +987,10 @@ 987 987 988 988 Feature: Get or Set eight channels mode,Only for US915,AU915,CN470. 989 989 990 -{{info}} 991 -**AT Command: AT+CHE** 992 -{{/info}} 993 993 1062 +(% style="color:blue" %)**AT Command: AT+CHE** 1063 + 1064 + 994 994 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 995 995 |=(% colspan="3" style="width: 707px;" %)AT+CHE 996 996 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -1001,10 +1001,9 @@ 1001 1001 ))) 1002 1002 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1003 1003 1004 -{{info}} 1005 -**Downlink Command: 0x24** 1006 -{{/info}} 1075 +(% style="color:blue" %)**Downlink Command: 0x24** 1007 1007 1077 + 1008 1008 Format: Command Code (0x24) followed by 1 bytes channel value. 1009 1009 1010 1010 If the downlink payload=2401, it means set channel mode to 1, while type code is 24. ... ... @@ -1016,10 +1016,10 @@ 1016 1016 1017 1017 Feature:Get or Set the number of symbols to detect and timeout from RXwindow1(0 to 255). 1018 1018 1019 -{{info}} 1020 -**AT Command: AT+RX1WTO** 1021 -{{/info}} 1022 1022 1090 +(% style="color:blue" %)**AT Command: AT+RX1WTO** 1091 + 1092 + 1023 1023 (% border="1" style="background-color:#ffffcc; color:green; width:460.222px" %) 1024 1024 |=(% colspan="3" style="width: 457px;" %)AT+ RX1WTO 1025 1025 |(% style="width:163px" %)**Command Example**|(% style="width:201px" %)**Function**|(% style="width:93px" %)**Response** ... ... @@ -1044,10 +1044,10 @@ 1044 1044 1045 1045 Feature:Get or Set the number of symbols to detect and timeout from RXwindow2(0 to 255). 1046 1046 1047 -{{info}} 1048 -**AT Command: AT+RX2WTO** 1049 -{{/info}} 1050 1050 1118 +(% style="color:blue" %)**AT Command: AT+RX2WTO** 1119 + 1120 + 1051 1051 (% border="1" style="background-color:#ffffcc; color:green; width:497.222px" %) 1052 1052 |=(% colspan="3" style="width: 494px;" %)AT+ RX2WTO 1053 1053 |(% style="width:190px" %)**Command Example**|(% style="width:199px" %)**Function**|(% style="width:104px" %)**Response** ... ... @@ -1060,10 +1060,10 @@ 1060 1060 1061 1061 Feature: Get or Set uplinkdwelltime 1062 1062 1063 -{{info}} 1064 -**AT Command: AT+DWELLT** 1065 -{{/info}} 1066 1066 1134 +(% style="color:blue" %)**AT Command: AT+DWELLT** 1135 + 1136 + 1067 1067 (% border="1" style="background-color:#ffffcc; color:green; width:497.222px" %) 1068 1068 |=(% colspan="3" style="width: 494px;" %)AT+DWELLT 1069 1069 |(% style="width:183px" %)**Command Example**|(% style="width:179px" %)**Function**|(% style="width:131px" %)**Response** ... ... @@ -1072,10 +1072,9 @@ 1072 1072 ))) 1073 1073 |(% style="width:183px" %)AT+DWELLT=0|(% style="width:179px" %)Set uplinkdwelltime|(% style="width:131px" %)OK 1074 1074 1075 -{{info}} 1076 -**Downlink Command: 0x25** 1077 -{{/info}} 1145 +(% style="color:blue" %)**Downlink Command: 0x25** 1078 1078 1147 + 1079 1079 Format: Command Code (0x25) followed by 1 bytes state value. 1080 1080 1081 1081 If the downlink payload=2501, it means set uplinkdwelltime to 1, while type code is 25. ... ... @@ -1101,10 +1101,9 @@ 1101 1101 * For Class C devices used in ChirpStack, need to set AT+RPL=4 because Chirpstack require immedietely reply message to MAC Command. 1102 1102 * 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. 1103 1103 1104 -{{info}} 1105 -**AT Command: AT+RPL** 1106 -{{/info}} 1173 +(% style="color:blue" %)**AT Command: AT+RPL** 1107 1107 1175 + 1108 1108 (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) 1109 1109 |=(% colspan="3" style="width: 533px;" %)AT+RPL 1110 1110 |(% style="width:160px" %)**Command Example**|(% style="width:263px" %)**Function**|(% style="width:109px" %)**Response** ... ... @@ -1113,10 +1113,9 @@ 1113 1113 ))) 1114 1114 |(% style="width:160px" %)AT+RPL=0|(% style="width:263px" %)Set packet receiving response level|(% style="width:109px" %)OK 1115 1115 1116 -{{info}} 1117 -**Downlink Command: 0x21** 1118 -{{/info}} 1184 +(% style="color:blue" %)**Downlink Command: 0x21** 1119 1119 1186 + 1120 1120 Format: Command Code (0x21) followed by 1 bytes level value. 1121 1121 1122 1122 If the downlink payload=2101, it means set packet receiving response level to 1, while type code is 21. ... ... @@ -1124,6 +1124,126 @@ 1124 1124 * **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1 1125 1125 * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1126 1126 1194 +== 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) == 1195 + 1196 + 1197 +(% style="color:blue" %)**AT Command: AT+SETMAXNBTRANS ** 1198 + 1199 + 1200 +(% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) 1201 +|=(% colspan="3" style="width: 533px;" %)AT+**SETMAXNBTRANS** 1202 +|(% style="width:160px" %)**Command Example**|(% style="width:263px" %)**Function**|(% style="width:109px" %)**Response** 1203 +|(% style="width:160px" %)**AT+SETMAXNBTRANS=1,0**|(% style="width:263px" %)Value1: set the maximum NBTrans.|(% style="width:109px" %)1((( 1204 +OK 1205 +))) 1206 +|(% 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" %)((( 1207 +1 1208 + 1209 +OK 1210 +))) 1211 + 1212 +(% style="color:blue" %)**Downlink Command: 0x33** 1213 + 1214 + 1215 +Format: Command Code (0x33) followed by 2 bytes mode value. 1216 + 1217 +If the downlink payload=330100, it means set end node to use confirm mode, while type code is 33. 1218 + 1219 +* Example 1: Downlink Payload: 330100 ~/~/ Set AT+SETMAXNBTRANS=1,0 1220 +* Example 2: Downlink Payload: 330201 ~/~/ Set AT+SETMAXNBTRANS=2,1 1221 + 1222 +== 7.25 Device offline rejoining (LWS007) == 1223 + 1224 + 1225 +(% style="color:blue" %)**AT Command: AT+DDETECT** 1226 + 1227 + 1228 +(% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 1229 +|=(% colspan="3" style="width: 707px;" %)AT+**DDETECT** 1230 +|(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** 1231 +|(% style="width:160px" %)((( 1232 +AT+DDETECT=1,1440,2880 1233 + 1234 +value1 1235 +)))|(% style="width:198px" %)Enable online detect|(% style="width:349px" %)((( 1236 +1 1237 + 1238 +OK 1239 +))) 1240 +|(% style="width:160px" %)((( 1241 +AT+DDETECT=1,?,2880 1242 + 1243 +value2 1244 +)))|(% style="width:198px" %)Online detection packet sending time|(% style="width:349px" %)((( 1245 + 1246 + 1247 +OK 1248 +))) 1249 +|(% style="width:160px" %)((( 1250 +AT+DDETECT=1,1440,? 1251 + 1252 +value3 1253 +)))|(% style="width:198px" %)Process rejoin|(% style="width:349px" %)((( 1254 + 1255 + 1256 +OK 1257 +))) 1258 + 1259 +(% style="color:blue" %)**Downlink Command: 0x33** 1260 + 1261 + 1262 +Format: Command Code (0x32) followed by 2 bytes mode value. 1263 + 1264 +If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 33. 1265 + 1266 +* Example 1: Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1267 + 1268 +== 7.26 Request the server to send an ACK == 1269 + 1270 + 1271 +(% style="color:blue" %)**AT Command: AT+PNACKMD** 1272 + 1273 + 1274 +(% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) 1275 +|=(% colspan="3" style="width: 533px;" %)**AT+PNACKMD** 1276 +|(% style="width:160px" %)**Command Example**|(% style="width:263px" %)**Function**|(% style="width:109px" %)**Response** 1277 +|(% style="width:160px" %)**AT+PNACKMD=1**|(% style="width:263px" %)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:109px" %)1((( 1278 +OK 1279 +))) 1280 +|(% style="width:160px" %)**AT+PNACKMD=0**|(% style="width:263px" %)off request the server to send an ACK|(% style="width:109px" %)((( 1281 +0 1282 + 1283 +OK 1284 +))) 1285 + 1286 +== 7.27 Adjust network rejoining interval == 1287 + 1288 + 1289 +(% style="color:blue" %)**AT Command: AT+RJTDC** 1290 + 1291 + 1292 +(% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %) 1293 +|=(% colspan="3" style="width: 724px;" %)AT+RJTDC 1294 +|(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response** 1295 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30000((( 1296 +OK 1297 + 1298 +the interval is 30000ms = 30s 1299 +))) 1300 +|(% style="width:165px" %)AT+RJTDC=60000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK((( 1301 +Set the ReJoin data transmission interval to 60000ms = 60 seconds 1302 +))) 1303 + 1304 +(% style="color:blue" %)**Downlink Command: 0x26** 1305 + 1306 + 1307 +Format: Command Code (0x26) followed by 2 bytes mode value. 1308 + 1309 +If the downlink payload=26000A, it means set end node to use confirm mode, while type code is 26. 1310 + 1311 +* Example 1: Downlink Payload: 26000A ~/~/ Set AT+RJTDC=10 1312 +* Example 2: Downlink Payload: 260002 ~/~/ Set AT+RJTDC=2 1313 + 1127 1127 = 8. AT Commands Combination = 1128 1128 1129 1129 == 8.1 Set a fix RX2DR for downlink window == ... ... @@ -1133,10 +1133,10 @@ 1133 1133 1134 1134 == 8.2 Use Downlink Command to set a fix uplink DR == 1135 1135 1136 -{{info}} 1137 -**Downlink Command: 0x22000500** 1138 -{{/info}} 1139 1139 1324 +(% style="color:blue" %)**Downlink Command: 0x22000500** 1325 + 1326 + 1140 1140 Same as: 1141 1141 1142 1142 * AT+ADR=0 [[Reference>>||anchor="H7.1AdaptiveDataRate"]]