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,27 +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 - 19 - 20 20 ))) 21 21 19 + 22 22 = 2. How to use AT Commands or Downlink command = 23 23 24 24 25 -* 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/]]26 -* 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: 27 27 ** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]] 28 -** 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]]? 29 29 ** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server) 30 30 29 +(% style="display:none" %) (%%) 31 31 32 - 33 33 = 3. Support End Node and firmware version = 34 34 35 35 ... ... @@ -104,10 +104,10 @@ 104 104 ))) 105 105 ))) 106 106 105 +(% style="display:none" %) (%%) 107 107 108 108 = 4. System Management Commands = 109 109 110 - 111 111 == 4.1 Change Uplink Interval == 112 112 113 113 ... ... @@ -137,12 +137,13 @@ 137 137 ))) 138 138 139 139 ((( 140 -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. 141 141 ))) 142 142 143 143 * **Example 1**: Downlink Payload:** 0100001E** ~/~/ Set Transmit Interval (TDC) = 30 seconds 144 144 * **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 145 145 144 +(% style="display:none" %) (%%) 146 146 147 147 == 4.2 Reboot End Node == 148 148 ... ... @@ -176,12 +176,10 @@ 176 176 ))) 177 177 178 178 ((( 179 -If the downlink payload=**04FF**, the end node will reboot. 180 - 181 - 182 - 178 +If the downlink payload=**04FF**, the end node will reboot. 183 183 ))) 184 184 181 + 185 185 == 4.3 Reset to factory Default == 186 186 187 187 ... ... @@ -218,7 +218,6 @@ 218 218 ))) 219 219 220 220 221 - 222 222 == 4.4 Show Firmware Version == 223 223 224 224 ... ... @@ -249,7 +249,6 @@ 249 249 ((( 250 250 251 251 252 - 253 253 **xx: Software Type:** 254 254 ))) 255 255 ... ... @@ -283,7 +283,6 @@ 283 283 firmware version: v1.1.0 ~-~-> 110 284 284 285 285 286 - 287 287 == 4.5 Show System Configure == 288 288 289 289 ... ... @@ -309,10 +309,8 @@ 309 309 OK 310 310 ))) 311 311 312 - 313 313 = 5. Keys, IDs and EUIs management = 314 314 315 - 316 316 == 5.1 Application EUI == 317 317 318 318 ... ... @@ -329,6 +329,7 @@ 329 329 ))) 330 330 |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 331 331 324 +(% style="display:none" %) (%%) 332 332 333 333 == 5.2 Application Key == 334 334 ... ... @@ -346,6 +346,7 @@ 346 346 ))) 347 347 |(% 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 348 348 342 +(% style="display:none" %) (%%) 349 349 350 350 == 5.3 Application Session Key == 351 351 ... ... @@ -365,6 +365,7 @@ 365 365 OK 366 366 ))) 367 367 362 +(% style="display:none" %) (%%) 368 368 369 369 == 5.4 Device Address == 370 370 ... ... @@ -384,6 +384,7 @@ 384 384 ))) 385 385 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 386 386 382 +(% style="display:none" %) (%%) 387 387 388 388 == 5.5 Device EUI == 389 389 ... ... @@ -403,6 +403,7 @@ 403 403 OK 404 404 ))) 405 405 402 +(% style="display:none" %) (%%) 406 406 407 407 == 5.6 Network ID == 408 408 ... ... @@ -420,6 +420,7 @@ 420 420 ))) 421 421 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 422 422 420 +(% style="display:none" %) (%%) 423 423 424 424 == 5.7 Network Session Key == 425 425 ... ... @@ -437,13 +437,12 @@ 437 437 ))) 438 438 |(% 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 439 439 438 +(% style="display:none" %) (%%) 440 440 441 441 = 6. Joining and sending date on LoRaWAN network = 442 442 443 - 444 444 == 6.1 Confirm Mode == 445 445 446 - 447 447 === 6.1.1 AT+CFM command before DR-LWS007 software stack === 448 448 449 449 ... ... @@ -470,8 +470,8 @@ 470 470 * **Example 1:** Downlink Payload: 0501 ~/~/ Set AT+CFM=1 471 471 * **Example 2:** Downlink Payload: 0500 ~/~/ Set AT+CFM=0 472 472 470 +(% style="display:none" %) (%%) 473 473 474 - 475 475 === 6.1.2 AT+CFM command since DR-LWS007 software stack === 476 476 477 477 ... ... @@ -517,8 +517,8 @@ 517 517 * **Example 1:** Downlink Payload: 05010101 ~/~/ Set AT+CFM=1,1,1 518 518 * **Example 2:** Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 519 519 517 +(% style="display:none" %) (%%) 520 520 521 - 522 522 == 6.2 Confirm Status == 523 523 524 524 ... ... @@ -527,14 +527,13 @@ 527 527 528 528 (% style="color:blue" %)**AT Command: AT+CFS** 529 529 530 -(% border="1" style="background-color:#ffffcc; color:green; width: 534.222px" %)531 -|=(% colspan="3" style="width: 531px;" %)AT+CFS532 -|(% style="width:156px" %)**Command Example**|(% style="width:193px" %)**Function**|(% style="width:17 8px" %)**Response**533 -|(% style="width:156px" %)AT+CFS=?|(% style="width:193px" %)Get confirmation status|(% style="width:17 8px" %)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((( 534 534 OK 535 535 ))) 536 536 537 - 538 538 == 6.3 Join LoRa® Network == 539 539 540 540 ... ... @@ -552,7 +552,6 @@ 552 552 While Error in format, return AT_BUSY_ERROR 553 553 ))) 554 554 555 - 556 556 == 6.4 LoRa® Network Join Mode == 557 557 558 558 ... ... @@ -579,8 +579,8 @@ 579 579 * **Example 1: **Downlink Payload: **2000 ** ~/~/ Set AT+NJM=0 580 580 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 581 581 577 +(% style="display:none" %) (%%) 582 582 583 - 584 584 == 6.5 LoRa® Network Join Status == 585 585 586 586 ... ... @@ -596,6 +596,7 @@ 596 596 OK 597 597 ))) 598 598 594 +(% style="display:none" %) (%%) 599 599 600 600 == 6.6 Print Last Received Data in Raw Format == 601 601 ... ... @@ -612,6 +612,7 @@ 612 612 OK 613 613 ))) 614 614 611 +(% style="display:none" %) (%%) 615 615 616 616 == 6.7 Print Last Received Data in Binary Format == 617 617 ... ... @@ -628,6 +628,7 @@ 628 628 OK 629 629 ))) 630 630 628 +(% style="display:none" %) (%%) 631 631 632 632 == 6.8 Send Text Data == 633 633 ... ... @@ -642,12 +642,10 @@ 642 642 |(% style="width:201px" %)**Command Example**|(% style="width:340px" %)**Function**|(% style="width:446px" %)**Response** 643 643 |(% style="width:201px" %)AT+SEND=12:hello world|(% style="width:340px" %)Send text data along with the application port.|(% style="width:446px" %)OK((( 644 644 While Error in format, return 645 - 646 646 AT_BUSY_ERROR/AT_BUSY_ERROR/AT_NO_NETWORK_JOINED 647 - 648 - 649 649 ))) 650 650 646 +(% style="display:none" %) (%%) 651 651 652 652 == 6.9 Send Hexadecimal Data == 653 653 ... ... @@ -657,20 +657,18 @@ 657 657 658 658 (% style="color:blue" %)**AT Command: AT+SENDB** 659 659 660 -(% border="1" style="background-color:#ffffcc; color:green; width:1120.22px" %) 661 -|=(% colspan="3" style="width: 1117px;" %)AT+SENDB 662 -|(% style="width:257px" %)**Command Example**|(% style="width:406px" %)**Function**|(% style="width:453px" %)**Response** 663 -|(% style="width:257px" %)AT+SENDB=12:abcdef0123456789|(% style="width:406px" %)Send hexadecimal data along with the application port.|(% style="width:453px" %)OK 664 -|(% 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((( 665 -AT_PARAM_ERROR AT_BUSY_ERROR/AT_NO_NETWORK_JOINED 666 - 667 - 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 668 668 ))) 669 669 664 +(% style="display:none" %) (%%) 670 670 671 671 = 7. LoRaWAN network management = 672 672 673 - 674 674 == 7.1 Adaptive Data Rate == 675 675 676 676 ... ... @@ -697,6 +697,7 @@ 697 697 * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 698 698 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 699 699 694 +(% style="display:none" %) (%%) 700 700 701 701 == 7.2 LoRa® Class == 702 702 ... ... @@ -704,7 +704,7 @@ 704 704 Feature: Get or Set the Device Class(Currently only support class A, class C). 705 705 706 706 707 -(% style="color:blue" %)**AT Command:AT+CLASS** 702 +(% style="color:blue" %)**AT Command: AT+CLASS** 708 708 709 709 (% border="1" style="background-color:#ffffcc; color:green; width:507.222px" %) 710 710 |=(% colspan="3" style="width: 504px;" %)AT+CLASS ... ... @@ -713,17 +713,17 @@ 713 713 OK 714 714 ))) 715 715 |(% style="width:163px" %)AT+CLASS=C|(% style="width:166px" %)Set the Device Class.|(% style="width:175px" %)OK((( 716 - 717 717 ))) 718 718 713 +(% style="display:none" %) (%%) 719 719 720 720 == 7.3 Duty Cycle Setting == 721 721 722 722 723 -Feature: Get or Set the ETSI Duty Cycle setting 718 +Feature: Get or Set the ETSI Duty Cycle setting** - 0**=disable, **1**=enable - Only for testing. 724 724 725 725 726 -(% style="color:blue" %)**AT Command:AT+DCS** 721 +(% style="color:blue" %)**AT Command: AT+DCS** 727 727 728 728 (% border="1" style="background-color:#ffffcc; color:green; width:515.222px" %) 729 729 |=(% colspan="3" style="width: 512px;" %)AT+DCS ... ... @@ -732,16 +732,21 @@ 732 732 OK 733 733 ))) 734 734 |(% style="width:165px" %)AT+DCS=1|(% style="width:239px" %)Set the ETSI Duty Cycle setting.|(% style="width:107px" %)OK((( 735 - 736 736 ))) 737 737 732 +(% style="display:none" %) (%%) 738 738 739 739 == 7.4 Data Rate == 740 740 741 741 742 -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 server737 +Feature: Get or Set the Data Rate. (0-7 corresponding to DR_X) . 743 743 739 +(% style="color:red" %) 740 +**Notice:** 744 744 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/]] 744 + 745 745 (% style="color:blue" %)**AT Command: AT+DR** 746 746 747 747 (% border="1" style="background-color:#ffffcc; color:green; width:466.222px" %) ... ... @@ -761,6 +761,7 @@ 761 761 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 762 762 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 763 763 764 +(% style="display:none" %) (%%) 764 764 765 765 == 7.5 Frame Counter Downlink == 766 766 ... ... @@ -768,7 +768,7 @@ 768 768 Feature: Get or Set the Frame Counter Downlink. 769 769 770 770 771 -(% style="color:blue" %)**AT Command:AT+FCD** 772 +(% style="color:blue" %)**AT Command: AT+FCD** 772 772 773 773 (% border="1" style="background-color:#ffffcc; color:green; width:693.222px" %) 774 774 |=(% colspan="3" style="width: 690px;" %)AT+FCD ... ... @@ -780,13 +780,12 @@ 780 780 OK 781 781 ))) 782 782 783 - 784 784 == 7.6 Frame Counter Uplink == 785 785 786 786 Feature: Get or Set the Frame Counter Uplink. 787 787 788 788 789 -(% style="color:blue" %)**AT Command:AT+FCU** 789 +(% style="color:blue" %)**AT Command: AT+FCU** 790 790 791 791 (% border="1" style="background-color:#ffffcc; color:green; width:534.222px" %) 792 792 |=(% colspan="3" style="width: 531px;" %)AT+FCU ... ... @@ -795,9 +795,9 @@ 795 795 OK 796 796 ))) 797 797 |(% style="width:177px" %)AT+FCU=10|(% style="width:239px" %)Set the Frame Counter Uplink.|(% style="width:113px" %)OK((( 798 - 799 799 ))) 800 800 800 +(% style="display:none" %) (%%) 801 801 802 802 == 7.7 Join Accept Delay1 == 803 803 ... ... @@ -805,7 +805,7 @@ 805 805 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms. 806 806 807 807 808 -(% style="color:blue" %)**AT Command:AT+JN1DL** 808 +(% style="color:blue" %)**AT Command: AT+JN1DL** 809 809 810 810 (% border="1" style="background-color:#ffffcc; color:green; width:537.222px" %) 811 811 |=(% colspan="3" style="width: 534px;" %)AT+JN1DL ... ... @@ -814,16 +814,17 @@ 814 814 OK 815 815 ))) 816 816 |(% style="width:164px" %)AT+JN1DL=10000|(% style="width:229px" %)Set the Join Accept Delay.|(% style="width:140px" %)OK((( 817 - 818 818 ))) 819 819 819 +(% style="display:none" %) (%%) 820 820 821 821 == 7.8 Join Accept Delay2 == 822 822 823 + 823 823 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms. 824 824 825 825 826 -(% style="color:blue" %)**AT Command:AT+JN2DL** 827 +(% style="color:blue" %)**AT Command: AT+JN2DL** 827 827 828 828 (% border="1" style="background-color:#ffffcc; color:green; width:538.222px" %) 829 829 |=(% colspan="3" style="width: 535px;" %)AT+JN2DL ... ... @@ -832,9 +832,9 @@ 832 832 OK 833 833 ))) 834 834 |(% style="width:160px" %)AT+JN2DL=20000|(% style="width:228px" %)Set the Join Accept Delay.|(% style="width:146px" %)OK((( 835 - 836 836 ))) 837 837 838 +(% style="display:none" %) (%%) 838 838 839 839 == 7.9 Public Network Mode == 840 840 ... ... @@ -844,7 +844,7 @@ 844 844 (% style="color:red" %)**Notice: If user build their own LoRaWAN server but still use syncword=0x34, this is still considered a public LoRaWAN network.** 845 845 846 846 847 -(% style="color:blue" %)**AT Command:AT+PNM** 848 +(% style="color:blue" %)**AT Command: AT+PNM** 848 848 849 849 (% border="1" style="background-color:#ffffcc; color:green; width:667.222px" %) 850 850 |=(% colspan="3" style="width: 664px;" %)AT+PNM ... ... @@ -863,6 +863,7 @@ 863 863 ))) 864 864 |(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %) 865 865 867 +(% style="display:none" %) (%%) 866 866 867 867 == 7.10 Receive Delay1 == 868 868 ... ... @@ -870,7 +870,7 @@ 870 870 Feature: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms 871 871 872 872 873 -(% style="color:blue" %)**AT Command:AT+RX1DL** 875 +(% style="color:blue" %)**AT Command: AT+RX1DL** 874 874 875 875 (% border="1" style="background-color:#ffffcc; color:green; width:408.222px" %) 876 876 |=(% colspan="3" style="width: 405px;" %)AT+RX1DL ... ... @@ -879,9 +879,9 @@ 879 879 OK 880 880 ))) 881 881 |(% style="width:155px" %)AT+RX1DL=1500|(% style="width:128px" %)Set the delay.|(% style="width:122px" %)OK((( 882 - 883 883 ))) 884 884 886 +(% style="display:none" %) (%%) 885 885 886 886 == 7.11 Receive Delay2 == 887 887 ... ... @@ -889,7 +889,7 @@ 889 889 Feature: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms 890 890 891 891 892 -(% style="color:blue" %)**AT Command:AT+RX2DL** 894 +(% style="color:blue" %)**AT Command: AT+RX2DL** 893 893 894 894 (% border="1" style="background-color:#ffffcc; color:green; width:481.222px" %) 895 895 |=(% colspan="3" style="width: 478px;" %)AT+RX2DL ... ... @@ -898,9 +898,9 @@ 898 898 OK 899 899 ))) 900 900 |(% style="width:175px" %)AT+RX2DL=2500|(% style="width:152px" %)Set the delay.|(% style="width:150px" %)OK((( 901 - 902 902 ))) 903 903 905 +(% style="display:none" %) (%%) 904 904 905 905 == 7.12 Rx2 Window Data Rate == 906 906 ... ... @@ -908,7 +908,7 @@ 908 908 Feature: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X) 909 909 910 910 911 -(% style="color:blue" %)**AT Command:AT+RX2DR** 913 +(% style="color:blue" %)**AT Command: AT+RX2DR** 912 912 913 913 (% border="1" style="background-color:#ffffcc; color:green; width:525.222px" %) 914 914 |=(% colspan="3" style="width: 522px;" %)AT+RX2DR ... ... @@ -917,9 +917,9 @@ 917 917 OK 918 918 ))) 919 919 |(% style="width:160px" %)AT+RX2DR=6|(% style="width:232px" %)Set the Rx2 window data rate.|(% style="width:130px" %)OK((( 920 - 921 921 ))) 922 922 924 +(% style="display:none" %) (%%) 923 923 924 924 == 7.13 Rx2 Window Frequency == 925 925 ... ... @@ -927,7 +927,7 @@ 927 927 Feature: Get or Set the Rx2 window frequency 928 928 929 929 930 -(% style="color:blue" %)**AT Command:AT+RX2FQ** 932 +(% style="color:blue" %)**AT Command: AT+RX2FQ** 931 931 932 932 (% border="1" style="background-color:#ffffcc; color:green; width:587.222px" %) 933 933 |=(% colspan="3" style="width: 584px;" %)AT+RX2FQ ... ... @@ -936,9 +936,9 @@ 936 936 OK 937 937 ))) 938 938 |(% style="width:183px" %)AT+RX2FQ=434665000|(% style="width:240px" %)Set the Rx2 window frequency.|(% style="width:160px" %)OK((( 939 - 940 940 ))) 941 941 943 +(% style="display:none" %) (%%) 942 942 943 943 == 7.14 Transmit Power == 944 944 ... ... @@ -945,10 +945,10 @@ 945 945 946 946 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. ) 947 947 948 -Notice: Transmit Power might be changed by ADR from LoRaWAN server. So manually change TXP also remember to set AT+ADR=0 in sensor 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** 949 949 950 950 951 -(% style="color:blue" %)**AT Command:AT+TXP** 953 +(% style="color:blue" %)**AT Command: AT+TXP** 952 952 953 953 (% border="1" style="background-color:#ffffcc; color:green; width:465.222px" %) 954 954 |=(% colspan="3" style="width: 462px;" %)AT+TXP ... ... @@ -957,7 +957,6 @@ 957 957 OK 958 958 ))) 959 959 |(% style="width:161px" %)AT+TXP=1|(% style="width:189px" %)Set the Transmit Power.|(% style="width:112px" %)OK((( 960 - 961 961 ))) 962 962 963 963 Downlink Payload. The 4th byte of 0x22 downlink. ... ... @@ -967,8 +967,8 @@ 967 967 * **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2. 968 968 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0. 969 969 971 +(% style="display:none" %) (%%) 970 970 971 - 972 972 == 7.15 RSSI of the Last Received Packet == 973 973 974 974 ... ... @@ -984,6 +984,7 @@ 984 984 OK 985 985 ))) 986 986 988 +(% style="display:none" %) (%%) 987 987 988 988 == 7.16 SNR of the Last Received Packet == 989 989 ... ... @@ -991,7 +991,7 @@ 991 991 Feature: Get the SNR of the last received packet 992 992 993 993 994 -(% style="color:blue" %)**AT Command:AT+SNR** 996 +(% style="color:blue" %)**AT Command: AT+SNR** 995 995 996 996 (% border="1" style="background-color:#ffffcc; color:green; width:571.222px" %) 997 997 |=(% colspan="3" style="width: 568px;" %)AT+SNR ... ... @@ -1000,6 +1000,7 @@ 1000 1000 OK 1001 1001 ))) 1002 1002 1005 +(% style="display:none" %) (%%) 1003 1003 1004 1004 == 7.17 Application Port == 1005 1005 ... ... @@ -1026,8 +1026,8 @@ 1026 1026 * **Example 1**: Downlink Payload: **2301** ~/~/ set the application port to 1 1027 1027 * **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5 1028 1028 1032 +(% style="display:none" %) (%%) 1029 1029 1030 - 1031 1031 == 7.18 Single Channel Mode == 1032 1032 1033 1033 ... ... @@ -1044,6 +1044,7 @@ 1044 1044 ))) 1045 1045 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 1046 1046 1050 +(% style="display:none" %) (%%) 1047 1047 1048 1048 == 7.19 Eight Channel Mode == 1049 1049 ... ... @@ -1063,7 +1063,7 @@ 1063 1063 ))) 1064 1064 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1065 1065 1066 -(% style="color:blue" %)**Downlink Command: 0x24** 1070 +(% style="color:blue" %)**Downlink Command: 0x24 (LHT65,LHT65N Downlink Command:0x07)** 1067 1067 1068 1068 Format: Command Code (0x24) followed by 1 bytes channel value. 1069 1069 ... ... @@ -1072,8 +1072,8 @@ 1072 1072 * **Example 1**: Downlink Payload: 2401 ~/~/ set channel mode to 1 1073 1073 * **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5 1074 1074 1079 +(% style="display:none" %) (%%) 1075 1075 1076 - 1077 1077 == 7.20 Get or Set RXwindows1 timeout == 1078 1078 1079 1079 ... ... @@ -1090,23 +1090,19 @@ 1090 1090 ))) 1091 1091 |(% style="width:163px" %)AT+RX1WTO=60|(% style="width:201px" %)Set RXwindows1 timeout|(% style="width:93px" %)OK 1092 1092 1093 -((( 1094 - 1097 +(% style="display:none" %) (%%) 1095 1095 1096 -**AT+RX1TWO** 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. 1097 - 1098 - 1099 +((( 1100 +(% 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. 1099 1099 ))) 1100 1100 1101 1101 [[image:image-20220526162535-1.png]] 1102 1102 1103 - 1104 1104 ((( 1105 1105 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. 1106 - 1107 - 1108 1108 ))) 1109 1109 1109 + 1110 1110 == 7.21 Get or Set RXwindows2 timeout == 1111 1111 1112 1112 ... ... @@ -1123,6 +1123,7 @@ 1123 1123 ))) 1124 1124 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1125 1125 1126 +(% style="display:none" %) (%%) 1126 1126 1127 1127 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1128 1128 ... ... @@ -1149,8 +1149,8 @@ 1149 1149 * **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1 1150 1150 * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1151 1151 1153 +(% style="display:none" %) (%%) 1152 1152 1153 - 1154 1154 == 7.23 Set Packet Receiving Response Level == 1155 1155 1156 1156 ... ... @@ -1190,8 +1190,8 @@ 1190 1190 * **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1 1191 1191 * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1192 1192 1194 +(% style="display:none" %) (%%) 1193 1193 1194 - 1195 1195 == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) == 1196 1196 1197 1197 ... ... @@ -1222,13 +1222,18 @@ 1222 1222 * Example 1: Downlink Payload: 330100 ~/~/ Set AT+SETMAXNBTRANS=1,0 1223 1223 * Example 2: Downlink Payload: 330201 ~/~/ Set AT+SETMAXNBTRANS=2,1 1224 1224 1226 +(% style="display:none" %) (%%) 1225 1225 1226 - 1227 1227 == 7.25 Device offline rejoining (LWS007) == 1228 1228 1229 1229 1230 1230 (% style="color:blue" %)**AT Command: AT+DDETECT** 1231 1231 1233 +AT+DDETECT=<Flag>,<ACK_Timout_1>,<ACK_Timout_2> (Default Value: AT+DDETECT=1,1440,2880) 1234 + 1235 +* ACK_Timout_1: Unit: min 1236 +* ACK_Timout_2: Unit: min 1237 + 1232 1232 (% border="1" style="background-color:#ffffcc; color:green; width:710.222px" %) 1233 1233 |=(% colspan="3" style="width: 707px;" %)AT+**DDETECT** 1234 1234 |(% style="width:160px" %)**Command Example**|(% style="width:198px" %)**Function**|(% style="width:349px" %)**Response** ... ... @@ -1260,16 +1260,20 @@ 1260 1260 OK 1261 1261 ))) 1262 1262 1263 -(% style="color:blue" %)**Downlink Command: 0x3 3**1269 +(% style="color:blue" %)**Downlink Command: 0x32** 1264 1264 1265 1265 Format: Command Code (0x32) followed by 2 bytes mode value. 1266 1266 1267 -If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 3 3.1273 +If the downlink payload=320105A00B40, it means set end node to use confirm mode, while type code is 32. 1268 1268 1269 -* **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1275 +* **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1276 +** 0x01 : Flag 1277 +** 0x05A0: ACK_Timout_1 : 1440minutes (24 hours) 1278 +** 0x0B40: ACK_Timout_2 : 2880minutes (48 hours) 1279 +** **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. 1270 1270 1281 +(% style="display:none" %) (%%) 1271 1271 1272 - 1273 1273 == 7.26 Request the server to send an ACK == 1274 1274 1275 1275 ... ... @@ -1283,10 +1283,10 @@ 1283 1283 ))) 1284 1284 |(% style="width:160px" %)**AT+PNACKMD=0**|(% style="width:263px" %)off request the server to send an ACK|(% style="width:109px" %)((( 1285 1285 0 1286 - 1287 1287 OK 1288 1288 ))) 1289 1289 1299 +(% style="display:none" %) (%%) 1290 1290 1291 1291 == 7.27 Adjust network rejoining interval == 1292 1292 ... ... @@ -1296,13 +1296,13 @@ 1296 1296 (% border="1" style="background-color:#ffffcc; color:green; width:727.222px" %) 1297 1297 |=(% colspan="3" style="width: 724px;" %)AT+RJTDC 1298 1298 |(% style="width:165px" %)**Command Example**|(% style="width:227px" %)**Function**|(% style="width:329px" %)**Response** 1299 -|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30 000(((1309 +|(% style="width:165px" %)AT+RJTDC=?|(% style="width:227px" %)Show the ReJoin data transmission interval in min|(% style="width:329px" %)30((( 1300 1300 OK 1301 1301 1302 -the interval is 30 000ms= 30s1312 +the interval is 30 min 1303 1303 ))) 1304 -|(% style="width:165px" %)AT+RJTDC=60 000|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK(((1305 -Set the ReJoin data transmission interval to 60 000ms= 60 seconds1314 +|(% style="width:165px" %)AT+RJTDC=60|(% style="width:227px" %)Set the ReJoin data transmission interval in min|(% style="width:329px" %)OK((( 1315 +Set the ReJoin data transmission interval to 60 min 1306 1306 ))) 1307 1307 1308 1308 (% style="color:blue" %)**Downlink Command: 0x26** ... ... @@ -1314,19 +1314,18 @@ 1314 1314 * **Example 1:** Downlink Payload: 26000A ~/~/ Set AT+RJTDC=10 1315 1315 * **Example 2: **Downlink Payload: 260002 ~/~/ Set AT+RJTDC=2 1316 1316 1327 +(% style="display:none" %) (%%) 1317 1317 1318 - 1319 1319 = 8. AT Commands Combination = 1320 1320 1321 - 1322 1322 == 8.1 Set a fix RX2DR for downlink window == 1323 1323 1324 1324 1325 -* **AT+ADR=0 ** **~-~->** Disable ADR first 1326 -* **AT+RX2DR=xxxx** 1334 +* (% style="color:blue" %)**AT+ADR=0 **(%%) **~-~->** Disable ADR first 1335 +* (% style="color:blue" %)**AT+RX2DR=xxxx** (%%) **~-~->** Set xxxx to your wanted DataRate 1327 1327 1337 +(% style="display:none" %) (%%) 1328 1328 1329 - 1330 1330 == 8.2 Use Downlink Command to set a fix uplink DR == 1331 1331 1332 1332 ... ... @@ -1335,7 +1335,9 @@ 1335 1335 **Same as:** 1336 1336 1337 1337 * AT+ADR=0 [[Reference>>||anchor="H7.1AdaptiveDataRate"]] 1347 + 1338 1338 * AT+DR=5 [[Reference>>||anchor="H7.4DataRate"]] 1349 + 1339 1339 * AT+TXP=0 [[Reference>>||anchor="H7.14TransmitPower"]] 1340 1340 1341 1341