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
-
... ... @@ -3,7 +3,6 @@ 3 3 {{toc/}} 4 4 5 5 6 - 7 7 = 1. Introduction = 8 8 9 9 Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands: ... ... @@ -20,8 +20,8 @@ 20 20 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 -** Use HEX format to send a downlink: [[TTN v3>>Notes for TTN]] 24 -** Use Base64 format to send a downlink: [[Chirpstack>>Notes for ChirpStack]] 22 +** Use HEX format to send a downlink: [[TTN v3>>doc:Main.Notes for TTN.WebHome]] 23 +** Use Base64 format to send a downlink: [[Chirpstack>>doc:Main.Notes for ChirpStack.WebHome]]. 25 25 ** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server) 26 26 27 27 ... ... @@ -138,6 +138,7 @@ 138 138 * **Example 1**: Downlink Payload:** 0100001E** ~/~/ Set Transmit Interval (TDC) = 30 seconds 139 139 * **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 140 140 140 + 141 141 == 4.2 Reboot End Node == 142 142 143 143 Feature: Reboot End Node to perform a new OTAA or ABP Join. ... ... @@ -299,6 +299,7 @@ 299 299 OK 300 300 ))) 301 301 302 + 302 302 = 5. Keys, IDs and EUIs management = 303 303 304 304 == 5.1 Application EUI == ... ... @@ -317,6 +317,7 @@ 317 317 ))) 318 318 |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 319 319 321 + 320 320 == 5.2 Application Key == 321 321 322 322 Feature: Get or Set the Application Key. ... ... @@ -353,6 +353,7 @@ 353 353 ))) 354 354 355 355 358 + 356 356 == 5.4 Device Address == 357 357 358 358 Feature: Get or Set the Device Address. ... ... @@ -372,6 +372,7 @@ 372 372 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 373 373 374 374 378 + 375 375 == 5.5 Device EUI == 376 376 377 377 Feature: Get or Set the Device EUI. ... ... @@ -391,6 +391,7 @@ 391 391 ))) 392 392 393 393 398 + 394 394 == 5.6 Network ID == 395 395 396 396 Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection) ... ... @@ -408,6 +408,7 @@ 408 408 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 409 409 410 410 416 + 411 411 == 5.7 Network Session Key == 412 412 413 413 Feature: Get or Set the Network Session Key ... ... @@ -425,6 +425,7 @@ 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 427 427 434 + 428 428 = 6. Joining and sending date on LoRaWAN network = 429 429 430 430 == 6.1 Confirm Mode == ... ... @@ -454,6 +454,7 @@ 454 454 * Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0 455 455 456 456 464 + 457 457 == 6.2 Confirm Status == 458 458 459 459 Feature: Get confirmation status of the last AT+SEND (0-1). ... ... @@ -470,6 +470,7 @@ 470 470 ))) 471 471 472 472 481 + 473 473 == 6.3 Join LoRa® Network == 474 474 475 475 Feature: Join network. ... ... @@ -487,6 +487,8 @@ 487 487 While Error in format, return AT_BUSY_ERROR 488 488 ))) 489 489 499 + 500 + 490 490 == 6.4 LoRa® Network Join Mode == 491 491 492 492 Feature: Get or Set the Network Join Mode. (0: ABP, 1: OTAA). ... ... @@ -515,6 +515,8 @@ 515 515 * **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM=O 516 516 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 517 517 529 + 530 + 518 518 == 6.5 LoRa® Network Join Status == 519 519 520 520 Feature: LoRa® Network Join Status. ... ... @@ -530,6 +530,8 @@ 530 530 OK 531 531 ))) 532 532 546 + 547 + 533 533 == 6.6 Print Last Received Data in Raw Format == 534 534 535 535 Feature: Print Last Received Data in Raw Format<port:data>. ... ... @@ -545,6 +545,8 @@ 545 545 OK 546 546 ))) 547 547 563 + 564 + 548 548 == 6.7 Print Last Received Data in Binary Format == 549 549 550 550 Feature: Print Last Received Data in Binary Format<port:data>. ... ... @@ -560,6 +560,8 @@ 560 560 OK 561 561 ))) 562 562 580 + 581 + 563 563 == 6.8 Send Text Data == 564 564 565 565 Feature: Send Text Data<port:data>. ... ... @@ -579,6 +579,8 @@ 579 579 580 580 ))) 581 581 601 + 602 + 582 582 == 6.9 Send Hexadecimal Data == 583 583 584 584 Feature: Send hexadecimal data along with the application port. ... ... @@ -597,6 +597,8 @@ 597 597 598 598 ))) 599 599 621 + 622 + 600 600 = 7. LoRaWAN network management = 601 601 602 602 == 7.1 Adaptive Data Rate == ... ... @@ -628,6 +628,8 @@ 628 628 * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 629 629 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 630 630 654 + 655 + 631 631 == 7.2 LoRa® Class == 632 632 633 633 Feature: Get or Set the Device Class(Currently only support class A, class C). ... ... @@ -646,6 +646,8 @@ 646 646 647 647 ))) 648 648 674 + 675 + 649 649 == 7.3 Duty Cycle Setting == 650 650 651 651 Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing. ... ... @@ -664,6 +664,8 @@ 664 664 665 665 ))) 666 666 694 + 695 + 667 667 == 7.4 Data Rate == 668 668 669 669 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 ... ... @@ -692,6 +692,8 @@ 692 692 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 693 693 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 694 694 724 + 725 + 695 695 == 7.5 Frame Counter Downlink == 696 696 697 697 Feature: Get or Set the Frame Counter Downlink. ... ... @@ -712,6 +712,8 @@ 712 712 713 713 ))) 714 714 746 + 747 + 715 715 == 7.6 Frame Counter Uplink == 716 716 717 717 Feature: Get or Set the Frame Counter Uplink. ... ... @@ -730,6 +730,8 @@ 730 730 731 731 ))) 732 732 766 + 767 + 733 733 == 7.7 Join Accept Delay1 == 734 734 735 735 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms. ... ... @@ -748,6 +748,8 @@ 748 748 749 749 ))) 750 750 786 + 787 + 751 751 == 7.8 Join Accept Delay2 == 752 752 753 753 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms. ... ... @@ -766,6 +766,8 @@ 766 766 767 767 ))) 768 768 806 + 807 + 769 769 == 7.9 Public Network Mode == 770 770 771 771 Feature: Get or Set the public network mode. (0: off, 1: on) ... ... @@ -786,6 +786,8 @@ 786 786 787 787 ))) 788 788 828 + 829 + 789 789 == 7.10 Receive Delay1 == 790 790 791 791 Feature: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms ... ... @@ -804,6 +804,8 @@ 804 804 805 805 ))) 806 806 848 + 849 + 807 807 == 7.11 Receive Delay2 == 808 808 809 809 Feature: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms ... ... @@ -822,6 +822,8 @@ 822 822 823 823 ))) 824 824 868 + 869 + 825 825 == 7.12 Rx2 Window Data Rate == 826 826 827 827 Feature: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X) ... ... @@ -840,6 +840,8 @@ 840 840 841 841 ))) 842 842 888 + 889 + 843 843 == 7.13 Rx2 Window Frequency == 844 844 845 845 Feature: Get or Set the Rx2 window frequency ... ... @@ -858,6 +858,8 @@ 858 858 859 859 ))) 860 860 908 + 909 + 861 861 == 7.14 Transmit Power == 862 862 863 863 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. ) ... ... @@ -883,6 +883,8 @@ 883 883 * **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2. 884 884 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0. 885 885 935 + 936 + 886 886 == 7.15 RSSI of the Last Received Packet == 887 887 888 888 Feature: Get or Set the Rx2 window frequency ... ... @@ -898,6 +898,8 @@ 898 898 OK 899 899 ))) 900 900 952 + 953 + 901 901 == 7.16 SNR of the Last Received Packet == 902 902 903 903 Feature: Get the SNR of the last received packet ... ... @@ -913,6 +913,8 @@ 913 913 OK 914 914 ))) 915 915 969 + 970 + 916 916 == 7.17 Application Port == 917 917 918 918 Feature: Get or set the application port. ... ... @@ -940,6 +940,8 @@ 940 940 * **Example 1**: Downlink Payload: **2301** ~/~/ set the application port to 1 941 941 * **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5 942 942 998 + 999 + 943 943 == 7.18 Single Channel Mode == 944 944 945 945 Feature:Get or Set Frequency (Unit: Hz) for Single Channel Mode. ... ... @@ -956,6 +956,8 @@ 956 956 ))) 957 957 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 958 958 1016 + 1017 + 959 959 == 7.19 Eight Channel Mode == 960 960 961 961 Feature: Get or Set eight channels mode,Only for US915,AU915,CN470. ... ... @@ -985,6 +985,8 @@ 985 985 * **Example 1**: Downlink Payload: 2401 ~/~/ set channel mode to 1 986 986 * **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5 987 987 1047 + 1048 + 988 988 == 7.20 Get or Set RXwindows1 timeout == 989 989 990 990 Feature:Get or Set the number of symbols to detect and timeout from RXwindow1(0 to 255). ... ... @@ -1029,6 +1029,8 @@ 1029 1029 ))) 1030 1030 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1031 1031 1093 + 1094 + 1032 1032 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1033 1033 1034 1034 Feature: Get or Set uplinkdwelltime ... ... @@ -1056,6 +1056,8 @@ 1056 1056 * **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1 1057 1057 * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1058 1058 1122 + 1123 + 1059 1059 == 7.23 Set Packet Receiving Response Level == 1060 1060 1061 1061 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. ... ... @@ -1097,6 +1097,8 @@ 1097 1097 * **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1 1098 1098 * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1099 1099 1165 + 1166 + 1100 1100 = 8. AT Commands Combination = 1101 1101 1102 1102 == 8.1 Set a fix RX2DR for downlink window == ... ... @@ -1104,6 +1104,8 @@ 1104 1104 * **AT+ADR=0 **~-~-> Disable ADR first 1105 1105 * **AT+RX2DR=xxxx** ~-~-> Set xxxx to your wanted DataRate 1106 1106 1174 + 1175 + 1107 1107 == 8.2 Use Downlink Command to set a fix uplink DR == 1108 1108 1109 1109 {{info}}