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
-
... ... @@ -353,12 +353,12 @@ 353 353 354 354 == 5.3 Application Session Key == 355 355 356 - 357 357 Feature: Get or Set the Application Session Key. 358 358 359 359 360 360 (% style="color:blue" %)**AT Command: AT+APPSKEY** 361 361 361 + 362 362 (% border="1" style="background-color:#ffffcc; color:green; width:1040.22px" %) 363 363 |=(% colspan="3" style="width: 1037px;" %)AT+APPSKEY 364 364 |(% style="width:451px" %)**Command Example**|(% style="width:231px" %)**Function**|(% style="width:354px" %)**Response** ... ... @@ -369,16 +369,14 @@ 369 369 OK 370 370 ))) 371 371 372 - 373 - 374 374 == 5.4 Device Address == 375 375 376 - 377 377 Feature: Get or Set the Device Address. 378 378 379 379 380 380 (% style="color:blue" %)**AT Command: AT+DADDR** 381 381 379 + 382 382 (% border="1" style="background-color:#ffffcc; color:green; width:795.222px" %) 383 383 |=(% colspan="3" style="width: 792px;" %)AT+DADDR 384 384 |(% style="width:192px" %)**Command Example**|(% style="width:241px" %)**Function**|(% style="width:359px" %)**Response** ... ... @@ -389,16 +389,14 @@ 389 389 ))) 390 390 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 391 391 392 - 393 - 394 394 == 5.5 Device EUI == 395 395 396 - 397 397 Feature: Get or Set the Device EUI. 398 398 399 399 400 400 (% style="color:blue" %)**AT Command: AT+DEUI** 401 401 397 + 402 402 (% border="1" style="background-color:#ffffcc; color:green; width:1035.22px" %) 403 403 |=(% colspan="3" style="width: 1032px;" %)AT+DEUI 404 404 |(% style="width:250px" %)**Command Example**|(% style="width:147px" %)**Function**|(% style="width:634px" %)**Response** ... ... @@ -409,16 +409,14 @@ 409 409 OK 410 410 ))) 411 411 412 - 413 - 414 414 == 5.6 Network ID == 415 415 416 - 417 417 Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection) 418 418 419 419 420 420 (% style="color:blue" %)**AT Command: AT+NWKID** 421 421 415 + 422 422 (% border="1" style="background-color:#ffffcc; color:green; width:448.222px" %) 423 423 |=(% colspan="3" style="width: 445px;" %)AT+NWKID 424 424 |(% style="width:191px" %)**Command Example**|(% style="width:153px" %)**Function**|(% style="width:101px" %)**Response** ... ... @@ -427,16 +427,14 @@ 427 427 ))) 428 428 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 429 429 430 - 431 - 432 432 == 5.7 Network Session Key == 433 433 434 - 435 435 Feature: Get or Set the Network Session Key 436 436 437 437 438 438 (% style="color:blue" %)**AT Command: AT+NWKSKEY** 439 439 431 + 440 440 (% border="1" style="background-color:#ffffcc; color:green; width:1017.22px" %) 441 441 |=(% colspan="3" style="width: 1014px;" %)AT+NWKSKEY 442 442 |(% style="width:455px" %)**Command Example**|(% style="width:215px" %)**Function**|(% style="width:343px" %)**Response** ... ... @@ -445,22 +445,18 @@ 445 445 ))) 446 446 |(% 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 447 447 448 - 449 - 450 450 = 6. Joining and sending date on LoRaWAN network = 451 451 452 - 453 453 == 6.1 Confirm Mode == 454 454 444 +=== AT+CFM command before DR-LWS007 software stack === 455 455 456 -=== 6.1.1 AT+CFM command before DR-LWS007 software stack === 457 - 458 - 459 459 Feature: Get or Set the confirmation mode (0-1). 460 460 461 461 462 462 (% style="color:blue" %)**AT Command: AT+CFM** 463 463 451 + 464 464 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 465 465 |=(% colspan="3" style="width: 707px;" %)AT+CFM 466 466 |(% style="width:155px" %)**Command Example**|(% style="width:205px" %)**Function**|(% style="width:346px" %)**Response** ... ... @@ -470,7 +470,6 @@ 470 470 |(% style="width:155px" %)AT+CFM=1|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)OK 471 471 |(% style="width:155px" %)AT+CFM=2|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)While Error in format, return AT_PARAM_ERROR 472 472 473 - 474 474 (% style="color:blue" %)**Downlink Command: 0x05** 475 475 476 476 Format: Command Code (0x05) followed by 2 bytes mode value. ... ... @@ -480,14 +480,12 @@ 480 480 * Example 1: Downlink Payload: 0501 ~/~/ Set AT+CFM=1 481 481 * Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0 482 482 470 +=== AT+CFM command since DR-LWS007 software stack === 483 483 484 484 485 - 486 -=== 6.1.2 AT+CFM command since DR-LWS007 software stack === 487 - 488 - 489 489 (% style="color:blue" %)**AT Command: AT+CFM** 490 490 475 + 491 491 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 492 492 |=(% colspan="3" style="width: 707px;" %)AT+CFM 493 493 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -519,9 +519,9 @@ 519 519 OK 520 520 ))) 521 521 522 - 523 523 (% style="color:blue" %)**Downlink Command: 0x05** 524 524 509 + 525 525 Format: Command Code (0x05) followed by 2 bytes mode value. 526 526 527 527 If the downlink payload=05010101, it means set end node to use confirm mode, while type code is 05. ... ... @@ -529,17 +529,14 @@ 529 529 * Example 1: Downlink Payload: 05010101 ~/~/ Set AT+CFM=1,1,1 530 530 * Example 2: Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 531 531 532 - 533 - 534 - 535 535 == 6.2 Confirm Status == 536 536 537 - 538 538 Feature: Get confirmation status of the last AT+SEND (0-1). 539 539 540 540 541 541 (% style="color:blue" %)**AT Command: AT+CFS** 542 542 524 + 543 543 (% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %) 544 544 |=(% colspan="3" style="width: 531px;" %)AT+CFS 545 545 |(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:178px" %)**Response** ... ... @@ -547,16 +547,14 @@ 547 547 OK 548 548 ))) 549 549 550 - 551 - 552 552 == 6.3 Join LoRa® Network == 553 553 554 - 555 555 Feature: Join network. 556 556 557 557 558 558 (% style="color:blue" %)**AT Command: AT+JOIN** 559 559 539 + 560 560 (% border="1" style="background-color:#ffffcc; color:green; width:647.222px" %) 561 561 |=(% colspan="3" style="width: 644px;" %)AT+JOIN 562 562 |(% style="width:163px" %)**Command Example**|(% style="width:147px" %)**Function**|(% style="width:334px" %)**Response** ... ... @@ -566,16 +566,14 @@ 566 566 While Error in format, return AT_BUSY_ERROR 567 567 ))) 568 568 569 - 570 - 571 571 == 6.4 LoRa® Network Join Mode == 572 572 573 - 574 574 Feature: Get or Set the Network Join Mode. (0: ABP, 1: OTAA). 575 575 576 576 577 577 (% style="color:blue" %)**AT Command: AT+NJM** 578 578 556 + 579 579 (% border="1" style="background-color:#ffffcc; color:green; width:753.222px" %) 580 580 |=(% colspan="3" style="width: 750px;" %)AT+NJM 581 581 |(% style="width:162px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:361px" %)**Response** ... ... @@ -585,9 +585,9 @@ 585 585 |(% style="width:162px" %)AT+NJM=0|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)OK 586 586 |(% 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 587 587 588 - 589 589 (% style="color:blue" %)**Downlink Command: 0x20** 590 590 568 + 591 591 Format: Command Code (0x20) followed by 1 bytes mode value. 592 592 593 593 If the downlink payload=2000, it means set the Network Join Mode, while type code is 20. ... ... @@ -595,17 +595,14 @@ 595 595 * **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM=0 596 596 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 597 597 598 - 599 - 600 - 601 601 == 6.5 LoRa® Network Join Status == 602 602 603 - 604 604 Feature: LoRa® Network Join Status. 605 605 606 606 607 607 (% style="color:blue" %)**AT Command: AT+NJS** 608 608 583 + 609 609 (% border="1" style="background-color:#ffffcc; color:green; width:498.222px" %) 610 610 |=(% colspan="3" style="width: 495px;" %)AT+NJS 611 611 |(% style="width:169px" %)**Command Example**|(% style="width:164px" %)**Function**|(% style="width:161px" %)**Response** ... ... @@ -613,16 +613,14 @@ 613 613 OK 614 614 ))) 615 615 616 - 617 - 618 618 == 6.6 Print Last Received Data in Raw Format == 619 619 620 - 621 621 Feature: Print Last Received Data in Raw Format<port:data>. 622 622 623 623 624 624 (% style="color:blue" %)**AT Command: AT+RECV** 625 625 598 + 626 626 (% border="1" style="background-color:#ffffcc; color:green; width:587.222px" %) 627 627 |=(% colspan="3" style="width: 584px;" %)AT+RECV 628 628 |(% style="width:161px" %)**Command Example**|(% style="width:272px" %)**Function**|(% style="width:150px" %)**Response** ... ... @@ -630,16 +630,14 @@ 630 630 OK 631 631 ))) 632 632 633 - 634 - 635 635 == 6.7 Print Last Received Data in Binary Format == 636 636 637 - 638 638 Feature: Print Last Received Data in Binary Format<port:data>. 639 639 640 640 641 641 (% style="color:blue" %)**AT Command: AT+RECVB** 642 642 613 + 643 643 (% border="1" style="background-color:#ffffcc; color:green; width:793.222px" %) 644 644 |=(% colspan="3" style="width: 790px;" %)AT+RECVB 645 645 |(% style="width:173px" %)**Command Example**|(% style="width:497px" %)**Function**|(% style="width:120px" %)**Response** ... ... @@ -647,16 +647,14 @@ 647 647 OK 648 648 ))) 649 649 650 - 651 - 652 652 == 6.8 Send Text Data == 653 653 654 - 655 655 Feature: Send Text Data<port:data>. 656 656 657 657 658 658 (% style="color:blue" %)**AT Command: AT+SEND** 659 659 628 + 660 660 (% border="1" style="background-color:#ffffcc; color:green; width:991.222px" %) 661 661 |=(% colspan="3" style="width: 988px;" %)AT+SEND 662 662 |(% style="width:201px" %)**Command Example**|(% style="width:340px" %)**Function**|(% style="width:446px" %)**Response** ... ... @@ -668,16 +668,14 @@ 668 668 669 669 ))) 670 670 671 - 672 - 673 673 == 6.9 Send Hexadecimal Data == 674 674 675 - 676 676 Feature: Send hexadecimal data along with the application port. 677 677 678 678 679 679 (% style="color:blue" %)**AT Command: AT+SENDB** 680 680 647 + 681 681 (% border="1" style="background-color:#ffffcc; color:green; width:1120.22px" %) 682 682 |=(% colspan="3" style="width: 1117px;" %)AT+SENDB 683 683 |(% style="width:257px" %)**Command Example**|(% style="width:406px" %)**Function**|(% style="width:453px" %)**Response** ... ... @@ -688,19 +688,16 @@ 688 688 689 689 ))) 690 690 691 - 692 - 693 693 = 7. LoRaWAN network management = 694 694 695 - 696 696 == 7.1 Adaptive Data Rate == 697 697 698 - 699 699 Feature: Get or Set the Adaptive Data Rate setting. (0: off, 1: on). 700 700 701 701 702 702 (% style="color:blue" %)**AT Command: AT+ADR** 703 703 667 + 704 704 (% border="1" style="background-color:#ffffcc; color:green; width:683.222px" %) 705 705 |=(% colspan="3" style="width: 680px;" %)AT+ADR 706 706 |(% style="width:162px" %)**Command Example**|(% style="width:266px" %)**Function**|(% style="width:250px" %)**Response** ... ... @@ -712,25 +712,23 @@ 712 712 AT_PARAM_ERROR 713 713 ))) 714 714 715 - 716 716 (% style="color:blue" %)**Downlink Command: 0x22** 717 717 681 + 682 + 718 718 If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22. 719 719 720 -* **Example 1**: Downlink Payload: **2201** 685 +* **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 721 721 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 722 722 723 - 724 - 725 - 726 726 == 7.2 LoRa® Class == 727 727 728 - 729 729 Feature: Get or Set the Device Class(Currently only support class A, class C). 730 730 731 731 732 732 (% style="color:blue" %)**AT Command:AT+CLASS** 733 733 695 + 734 734 (% border="1" style="background-color:#ffffcc; color:green; width:507.222px" %) 735 735 |=(% colspan="3" style="width: 504px;" %)AT+CLASS 736 736 |(% style="width:163px" %)**Command Example**|(% style="width:166px" %)**Function**|(% style="width:175px" %)**Response** ... ... @@ -741,16 +741,14 @@ 741 741 742 742 ))) 743 743 744 - 745 - 746 746 == 7.3 Duty Cycle Setting == 747 747 748 - 749 749 Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing. 750 750 751 751 752 752 (% style="color:blue" %)**AT Command:AT+DCS** 753 753 713 + 754 754 (% border="1" style="background-color:#ffffcc; color:green; width:515.222px" %) 755 755 |=(% colspan="3" style="width: 512px;" %)AT+DCS 756 756 |(% style="width:165px" %)**Command Example**|(% style="width:239px" %)**Function**|(% style="width:107px" %)**Response** ... ... @@ -761,16 +761,14 @@ 761 761 762 762 ))) 763 763 764 - 765 - 766 766 == 7.4 Data Rate == 767 767 768 - 769 769 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 770 770 771 771 772 772 (% style="color:blue" %)**AT Command: AT+DR** 773 773 731 + 774 774 (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %) 775 775 |=(% colspan="3" style="width: 463px;" %)AT+DR 776 776 |(% style="width:156px" %)**Command Example**|(% style="width:167px" %)**Function**|(% style="width:140px" %)**Response** ... ... @@ -781,25 +781,23 @@ 781 781 782 782 ))) 783 783 784 - 785 785 (% style="color:blue" %)**Downlink Command: 0x2200aaFF** 786 786 744 + 745 + 787 787 If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF. 788 788 789 789 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 790 790 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 791 791 792 - 793 - 794 - 795 795 == 7.5 Frame Counter Downlink == 796 796 797 - 798 798 Feature: Get or Set the Frame Counter Downlink. 799 799 800 800 801 801 (% style="color:blue" %)**AT Command:AT+FCD** 802 802 758 + 803 803 (% border="1" style="background-color:#ffffcc; color:green; width:693.222px" %) 804 804 |=(% colspan="3" style="width: 690px;" %)AT+FCD 805 805 |(% style="width:162px" %)**Command Example**|(% style="width:258px" %)**Function**|(% style="width:269px" %)**Response** ... ... @@ -808,10 +808,10 @@ 808 808 ))) 809 809 |(% style="width:162px" %)AT+FCD=10|(% style="width:258px" %)Set the Frame Counter Downlink.|(% style="width:269px" %)(System will write new value to FCD)((( 810 810 OK 767 + 768 + 811 811 ))) 812 812 813 - 814 - 815 815 == 7.6 Frame Counter Uplink == 816 816 817 817 Feature: Get or Set the Frame Counter Uplink.