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,6 +3,7 @@ 3 3 {{toc/}} 4 4 5 5 6 + 6 6 = 1. Introduction = 7 7 8 8 Dragino LoRaWAN End Node support two types of AT Commands and Downlink Commands: ... ... @@ -19,9 +19,9 @@ 19 19 20 20 * 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/]] 21 21 * 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: 22 -** Use HEX format to send a downlink: [[TTN v3>> url:https://wiki.dragino.com/index.php/Notes_for_TTN#Send_Downlink_message]]23 -** Use Base64 format to send a downlink: [[Chirpstack>> url:https://wiki.dragino.com/index.php/Notes_for_ChirpStack#Downlink]].24 -** See use note for more serves [[Servers Note>> url:https://wiki.dragino.com/index.php/Main_Page#Use_Note_for_Server]]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]] 25 +** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server) 25 25 26 26 = 3. Support End Node and firmware version = 27 27 ... ... @@ -96,6 +96,7 @@ 96 96 ))) 97 97 ))) 98 98 100 + 99 99 = 4. System Management Commands = 100 100 101 101 == 4.1 Change Uplink Interval == ... ... @@ -134,6 +134,7 @@ 134 134 * **Example 1**: Downlink Payload:** 0100001E** ~/~/ Set Transmit Interval (TDC) = 30 seconds 135 135 * **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 136 136 139 + 137 137 == 4.2 Reboot End Node == 138 138 139 139 Feature: Reboot End Node to perform a new OTAA or ABP Join. ... ... @@ -169,6 +169,8 @@ 169 169 170 170 ((( 171 171 If the downlink payload=**04FF**, the end node will reboot. 175 + 176 + 172 172 ))) 173 173 174 174 == 4.3 Reset to factory Default == ... ... @@ -293,6 +293,7 @@ 293 293 OK 294 294 ))) 295 295 301 + 296 296 = 5. Keys, IDs and EUIs management = 297 297 298 298 == 5.1 Application EUI == ... ... @@ -311,6 +311,7 @@ 311 311 ))) 312 312 |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 313 313 320 + 314 314 == 5.2 Application Key == 315 315 316 316 Feature: Get or Set the Application Key. ... ... @@ -456,6 +456,8 @@ 456 456 OK 457 457 ))) 458 458 466 + 467 + 459 459 == 6.3 Join LoRa® Network == 460 460 461 461 Feature: Join network. ... ... @@ -473,6 +473,7 @@ 473 473 While Error in format, return AT_BUSY_ERROR 474 474 ))) 475 475 485 + 476 476 == 6.4 LoRa® Network Join Mode == 477 477 478 478 Feature: Get or Set the Network Join Mode. (0: ABP, 1: OTAA). ... ... @@ -501,6 +501,7 @@ 501 501 * **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM=O 502 502 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 503 503 514 + 504 504 == 6.5 LoRa® Network Join Status == 505 505 506 506 Feature: LoRa® Network Join Status. ... ... @@ -516,6 +516,7 @@ 516 516 OK 517 517 ))) 518 518 530 + 519 519 == 6.6 Print Last Received Data in Raw Format == 520 520 521 521 Feature: Print Last Received Data in Raw Format<port:data>. ... ... @@ -531,6 +531,7 @@ 531 531 OK 532 532 ))) 533 533 546 + 534 534 == 6.7 Print Last Received Data in Binary Format == 535 535 536 536 Feature: Print Last Received Data in Binary Format<port:data>. ... ... @@ -546,6 +546,7 @@ 546 546 OK 547 547 ))) 548 548 562 + 549 549 == 6.8 Send Text Data == 550 550 551 551 Feature: Send Text Data<port:data>. ... ... @@ -565,6 +565,7 @@ 565 565 566 566 ))) 567 567 582 + 568 568 == 6.9 Send Hexadecimal Data == 569 569 570 570 Feature: Send hexadecimal data along with the application port. ... ... @@ -583,6 +583,7 @@ 583 583 584 584 ))) 585 585 601 + 586 586 = 7. LoRaWAN network management = 587 587 588 588 == 7.1 Adaptive Data Rate == ... ... @@ -614,6 +614,7 @@ 614 614 * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 615 615 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 616 616 633 + 617 617 == 7.2 LoRa® Class == 618 618 619 619 Feature: Get or Set the Device Class(Currently only support class A, class C). ... ... @@ -632,6 +632,7 @@ 632 632 633 633 ))) 634 634 652 + 635 635 == 7.3 Duty Cycle Setting == 636 636 637 637 Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing. ... ... @@ -650,6 +650,7 @@ 650 650 651 651 ))) 652 652 671 + 653 653 == 7.4 Data Rate == 654 654 655 655 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 ... ... @@ -678,6 +678,7 @@ 678 678 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 679 679 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 680 680 700 + 681 681 == 7.5 Frame Counter Downlink == 682 682 683 683 Feature: Get or Set the Frame Counter Downlink. ... ... @@ -698,6 +698,7 @@ 698 698 699 699 ))) 700 700 721 + 701 701 == 7.6 Frame Counter Uplink == 702 702 703 703 Feature: Get or Set the Frame Counter Uplink. ... ... @@ -716,6 +716,7 @@ 716 716 717 717 ))) 718 718 740 + 719 719 == 7.7 Join Accept Delay1 == 720 720 721 721 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms. ... ... @@ -734,6 +734,7 @@ 734 734 735 735 ))) 736 736 759 + 737 737 == 7.8 Join Accept Delay2 == 738 738 739 739 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms. ... ... @@ -752,6 +752,7 @@ 752 752 753 753 ))) 754 754 778 + 755 755 == 7.9 Public Network Mode == 756 756 757 757 Feature: Get or Set the public network mode. (0: off, 1: on) ... ... @@ -772,6 +772,7 @@ 772 772 773 773 ))) 774 774 799 + 775 775 == 7.10 Receive Delay1 == 776 776 777 777 Feature: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms ... ... @@ -790,8 +790,9 @@ 790 790 791 791 ))) 792 792 793 -== 7.11Receive Delay2 == 794 794 819 +== 7.11 Receive Delay2 == 820 + 795 795 Feature: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms 796 796 797 797 {{info}} ... ... @@ -808,6 +808,7 @@ 808 808 809 809 ))) 810 810 837 + 811 811 == 7.12 Rx2 Window Data Rate == 812 812 813 813 Feature: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X) ... ... @@ -826,6 +826,7 @@ 826 826 827 827 ))) 828 828 856 + 829 829 == 7.13 Rx2 Window Frequency == 830 830 831 831 Feature: Get or Set the Rx2 window frequency ... ... @@ -844,6 +844,7 @@ 844 844 845 845 ))) 846 846 875 + 847 847 == 7.14 Transmit Power == 848 848 849 849 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. ) ... ... @@ -869,6 +869,7 @@ 869 869 * **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2. 870 870 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0. 871 871 901 + 872 872 == 7.15 RSSI of the Last Received Packet == 873 873 874 874 Feature: Get or Set the Rx2 window frequency ... ... @@ -884,6 +884,7 @@ 884 884 OK 885 885 ))) 886 886 917 + 887 887 == 7.16 SNR of the Last Received Packet == 888 888 889 889 Feature: Get the SNR of the last received packet ... ... @@ -899,6 +899,7 @@ 899 899 OK 900 900 ))) 901 901 933 + 902 902 == 7.17 Application Port == 903 903 904 904 Feature: Get or set the application port. ... ... @@ -926,6 +926,7 @@ 926 926 * **Example 1**: Downlink Payload: **2301** ~/~/ set the application port to 1 927 927 * **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5 928 928 961 + 929 929 == 7.18 Single Channel Mode == 930 930 931 931 Feature:Get or Set Frequency (Unit: Hz) for Single Channel Mode. ... ... @@ -942,6 +942,7 @@ 942 942 ))) 943 943 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 944 944 978 + 945 945 == 7.19 Eight Channel Mode == 946 946 947 947 Feature: Get or Set eight channels mode,Only for US915,AU915,CN470. ... ... @@ -971,6 +971,7 @@ 971 971 * **Example 1**: Downlink Payload: 2401 ~/~/ set channel mode to 1 972 972 * **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5 973 973 1008 + 974 974 == 7.20 Get or Set RXwindows1 timeout == 975 975 976 976 Feature:Get or Set the number of symbols to detect and timeout from RXwindow1(0 to 255). ... ... @@ -995,6 +995,8 @@ 995 995 996 996 ((( 997 997 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. 1033 + 1034 + 998 998 ))) 999 999 1000 1000 == 7.21 Get or Set RXwindows2 timeout == ... ... @@ -1013,6 +1013,7 @@ 1013 1013 ))) 1014 1014 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1015 1015 1053 + 1016 1016 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1017 1017 1018 1018 Feature: Get or Set uplinkdwelltime ... ... @@ -1040,6 +1040,7 @@ 1040 1040 * **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1 1041 1041 * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1042 1042 1081 + 1043 1043 == 7.23 Set Packet Receiving Response Level == 1044 1044 1045 1045 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. ... ... @@ -1081,6 +1081,7 @@ 1081 1081 * **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1 1082 1082 * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1083 1083 1123 + 1084 1084 = 8. AT Commands Combination = 1085 1085 1086 1086 == 8.1 Set a fix RX2DR for downlink window == ... ... @@ -1088,6 +1088,7 @@ 1088 1088 * **AT+ADR=0 **~-~-> Disable ADR first 1089 1089 * **AT+RX2DR=xxxx** ~-~-> Set xxxx to your wanted DataRate 1090 1090 1131 + 1091 1091 == 8.2 Use Downlink Command to set a fix uplink DR == 1092 1092 1093 1093 {{info}}