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
-
... ... @@ -19,10 +19,11 @@ 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]]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]]. 24 +** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server) 25 25 26 + 26 26 = 3. Support End Node and firmware version = 27 27 28 28 (% border="1" style="background-color:#ffffcc; color:green; width:966px" %) ... ... @@ -96,6 +96,8 @@ 96 96 ))) 97 97 ))) 98 98 100 + 101 + 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 140 + 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. 176 + 177 + 172 172 ))) 173 173 174 174 == 4.3 Reset to factory Default == ... ... @@ -293,6 +293,7 @@ 293 293 OK 294 294 ))) 295 295 302 + 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 321 + 314 314 == 5.2 Application Key == 315 315 316 316 Feature: Get or Set the Application Key. ... ... @@ -327,6 +327,7 @@ 327 327 ))) 328 328 |(% 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 329 329 338 + 330 330 == 5.3 Application Session Key == 331 331 332 332 Feature: Get or Set the Application Session Key. ... ... @@ -345,6 +345,8 @@ 345 345 OK 346 346 ))) 347 347 357 + 358 + 348 348 == 5.4 Device Address == 349 349 350 350 Feature: Get or Set the Device Address. ... ... @@ -363,6 +363,8 @@ 363 363 ))) 364 364 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 365 365 377 + 378 + 366 366 == 5.5 Device EUI == 367 367 368 368 Feature: Get or Set the Device EUI. ... ... @@ -381,6 +381,8 @@ 381 381 OK 382 382 ))) 383 383 397 + 398 + 384 384 == 5.6 Network ID == 385 385 386 386 Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection) ... ... @@ -397,6 +397,8 @@ 397 397 ))) 398 398 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 399 399 415 + 416 + 400 400 == 5.7 Network Session Key == 401 401 402 402 Feature: Get or Set the Network Session Key ... ... @@ -413,6 +413,8 @@ 413 413 ))) 414 414 |(% 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 415 415 433 + 434 + 416 416 = 6. Joining and sending date on LoRaWAN network = 417 417 418 418 == 6.1 Confirm Mode == ... ... @@ -441,6 +441,8 @@ 441 441 * Example 1: Downlink Payload: 0501 ~/~/ Set AT+CFM=1 442 442 * Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0 443 443 463 + 464 + 444 444 == 6.2 Confirm Status == 445 445 446 446 Feature: Get confirmation status of the last AT+SEND (0-1). ... ... @@ -456,6 +456,8 @@ 456 456 OK 457 457 ))) 458 458 480 + 481 + 459 459 == 6.3 Join LoRa® Network == 460 460 461 461 Feature: Join network. ... ... @@ -473,6 +473,8 @@ 473 473 While Error in format, return AT_BUSY_ERROR 474 474 ))) 475 475 499 + 500 + 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,8 @@ 501 501 * **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM=O 502 502 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 503 503 529 + 530 + 504 504 == 6.5 LoRa® Network Join Status == 505 505 506 506 Feature: LoRa® Network Join Status. ... ... @@ -516,6 +516,8 @@ 516 516 OK 517 517 ))) 518 518 546 + 547 + 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,8 @@ 531 531 OK 532 532 ))) 533 533 563 + 564 + 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,8 @@ 546 546 OK 547 547 ))) 548 548 580 + 581 + 549 549 == 6.8 Send Text Data == 550 550 551 551 Feature: Send Text Data<port:data>. ... ... @@ -565,6 +565,8 @@ 565 565 566 566 ))) 567 567 601 + 602 + 568 568 == 6.9 Send Hexadecimal Data == 569 569 570 570 Feature: Send hexadecimal data along with the application port. ... ... @@ -583,6 +583,8 @@ 583 583 584 584 ))) 585 585 621 + 622 + 586 586 = 7. LoRaWAN network management = 587 587 588 588 == 7.1 Adaptive Data Rate == ... ... @@ -614,6 +614,8 @@ 614 614 * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 615 615 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 616 616 654 + 655 + 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,8 @@ 632 632 633 633 ))) 634 634 674 + 675 + 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,8 @@ 650 650 651 651 ))) 652 652 694 + 695 + 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,8 @@ 678 678 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 679 679 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 680 680 724 + 725 + 681 681 == 7.5 Frame Counter Downlink == 682 682 683 683 Feature: Get or Set the Frame Counter Downlink. ... ... @@ -698,6 +698,8 @@ 698 698 699 699 ))) 700 700 746 + 747 + 701 701 == 7.6 Frame Counter Uplink == 702 702 703 703 Feature: Get or Set the Frame Counter Uplink. ... ... @@ -716,6 +716,8 @@ 716 716 717 717 ))) 718 718 766 + 767 + 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,8 @@ 734 734 735 735 ))) 736 736 786 + 787 + 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,8 @@ 752 752 753 753 ))) 754 754 806 + 807 + 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,8 @@ 772 772 773 773 ))) 774 774 828 + 829 + 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,10 @@ 790 790 791 791 ))) 792 792 793 -== 7.11Receive Delay2 == 794 794 849 + 850 +== 7.11 Receive Delay2 == 851 + 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,8 @@ 808 808 809 809 ))) 810 810 868 + 869 + 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,8 @@ 826 826 827 827 ))) 828 828 888 + 889 + 829 829 == 7.13 Rx2 Window Frequency == 830 830 831 831 Feature: Get or Set the Rx2 window frequency ... ... @@ -844,6 +844,8 @@ 844 844 845 845 ))) 846 846 908 + 909 + 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,8 @@ 869 869 * **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2. 870 870 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0. 871 871 935 + 936 + 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,8 @@ 884 884 OK 885 885 ))) 886 886 952 + 953 + 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,8 @@ 899 899 OK 900 900 ))) 901 901 969 + 970 + 902 902 == 7.17 Application Port == 903 903 904 904 Feature: Get or set the application port. ... ... @@ -926,6 +926,8 @@ 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 998 + 999 + 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,8 @@ 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 1016 + 1017 + 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,8 @@ 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 1047 + 1048 + 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. 1073 + 1074 + 998 998 ))) 999 999 1000 1000 == 7.21 Get or Set RXwindows2 timeout == ... ... @@ -1013,6 +1013,8 @@ 1013 1013 ))) 1014 1014 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1015 1015 1093 + 1094 + 1016 1016 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1017 1017 1018 1018 Feature: Get or Set uplinkdwelltime ... ... @@ -1040,6 +1040,8 @@ 1040 1040 * **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1 1041 1041 * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1042 1042 1122 + 1123 + 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,8 @@ 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 1165 + 1166 + 1084 1084 = 8. AT Commands Combination = 1085 1085 1086 1086 == 8.1 Set a fix RX2DR for downlink window == ... ... @@ -1089,6 +1089,7 @@ 1089 1089 * **AT+RX2DR=xxxx** ~-~-> Set xxxx to your wanted DataRate 1090 1090 1091 1091 1175 + 1092 1092 == 8.2 Use Downlink Command to set a fix uplink DR == 1093 1093 1094 1094 {{info}} ... ... @@ -1097,6 +1097,6 @@ 1097 1097 1098 1098 Same as: 1099 1099 1100 -* AT+ADR=0 [[Reference>>||anchor="H7.1AdaptiveDataRate"]] 1101 -* AT+DR=5 [[Reference>>||anchor="H7.4DataRate"]] 1102 -* AT+TXP=0 [[Reference>>||anchor="H7.14TransmitPower"]] 1184 +* AT+ADR=0 [[Reference>>||anchor="H7.1AdaptiveDataRate"]] 1185 +* AT+DR=5 [[Reference>>||anchor="H7.4DataRate"]] 1186 +* AT+TXP=0 [[Reference>>||anchor="H7.14TransmitPower"]]