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)
-
Attachments (0 modified, 0 added, 1 removed)
Details
- Page properties
-
- Content
-
... ... @@ -1,4 +1,4 @@ 1 - **Contents:**1 +Contens 2 2 3 3 {{toc/}} 4 4 ... ... @@ -19,29 +19,28 @@ 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>>doc :Main.Notes.WebHome]]23 -** Use Base64 format to send a downlink: [[Chirpstack>>doc :Main.Notes.WebHome]].24 -** See use note for more serves [[Servers Note>>doc :Main.WebHome]](IoT LoRaWANServer)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]] 25 25 26 - 27 27 = 3. Support End Node and firmware version = 28 28 29 -(% border="1" style="background-color:#ffffcc; color:green; width:9 66px" %)30 -|=(% colspan="3" style="width: 9 63px;" %)(((28 +(% border="1" style="background-color:#ffffcc; border:1; color:green; width:995.222px" %) 29 +|=(% colspan="3" style="width: 992px;" %)((( 31 31 Dragino STM32 base hardware Firmware / LoRaWAN stack list 32 32 ))) 33 33 |(% style="width:187px" %)((( 34 34 **Model** 35 -)))|(% style="width:3 30px" %)(((34 +)))|(% style="width:349px" %)((( 36 36 **Description** 37 -)))|(% style="width:4 45px" %)(((36 +)))|(% style="width:453px" %)((( 38 38 **Firmware Version <~-~-> Stack Version** 39 39 ))) 40 40 |(% style="width:187px" %)((( 41 41 [[LSN50-v1>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/128-lsn50.html]], [[LSN50-V2>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/155-lsn50-v2.html]], 42 -)))|(% style="width:3 30px" %)(((41 +)))|(% style="width:349px" %)((( 43 43 Open Source Generic LoRaWAN Sensor Node 44 -)))|(% style="width:4 45px" %)(((43 +)))|(% style="width:453px" %)((( 45 45 ((( 46 46 LSN50 v1.6.0 <~-~-> DR-LWS-003; 47 47 ))) ... ... @@ -54,9 +54,9 @@ 54 54 ))) 55 55 |(% style="width:187px" %)((( 56 56 [[LGT92>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/142-lgt-92.html]], 57 -)))|(% style="width:3 30px" %)(((56 +)))|(% style="width:349px" %)((( 58 58 LoRaWAN GPS Tracker 59 -)))|(% style="width:4 45px" %)(((58 +)))|(% style="width:453px" %)((( 60 60 ((( 61 61 LGT92 v1.6.3 <~-~-> DR-LWS-003; 62 62 ))) ... ... @@ -69,23 +69,23 @@ 69 69 ))) 70 70 |(% style="width:187px" %)((( 71 71 [[LBT1>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/165-lbt1.html]], 72 -)))|(% style="width:3 30px" %)(((71 +)))|(% style="width:349px" %)((( 73 73 LoRaWAN BLE Indoor Tracker 74 -)))|(% style="width:4 45px" %)(((73 +)))|(% style="width:453px" %)((( 75 75 LBT1 v1.0 <~-~-> DR-LWS-005; 76 76 ))) 77 77 |(% style="width:187px" %)((( 78 78 [[RS485-LN>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/154-rs485-ln.html]], 79 -)))|(% style="width:3 30px" %)(((78 +)))|(% style="width:349px" %)((( 80 80 LoRaWAN RS485 Modbus Converter 81 -)))|(% style="width:4 45px" %)(((80 +)))|(% style="width:453px" %)((( 82 82 RS485-LN v1.3 <~-~-> DR-LWS-005; 83 83 ))) 84 84 |(% style="width:187px" %)((( 85 85 [[LHT65>>url:http://www.dragino.com/products/lora-lorawan-end-node/item/151-lht65.html]], 86 -)))|(% style="width:3 30px" %)(((85 +)))|(% style="width:349px" %)((( 87 87 LoRaWAN Temperature & Humidity Sensor 88 -)))|(% style="width:4 45px" %)(((87 +)))|(% style="width:453px" %)((( 89 89 ((( 90 90 LHT65 v1.7 <~-~-> DR-LWS-003; 91 91 ))) ... ... @@ -97,8 +97,6 @@ 97 97 ))) 98 98 ))) 99 99 100 - 101 - 102 102 = 4. System Management Commands = 103 103 104 104 == 4.1 Change Uplink Interval == ... ... @@ -126,9 +126,7 @@ 126 126 **Downlink Command: 0x01** 127 127 {{/info}} 128 128 129 -((( 130 130 Format: Command Code (0x01) followed by 3 bytes time value. 131 -))) 132 132 133 133 ((( 134 134 If the downlink payload=0100003C, it means set the END Node’s Transmit Interval to 0x00003C=60(S), while type code is 01. ... ... @@ -137,7 +137,6 @@ 137 137 * **Example 1**: Downlink Payload:** 0100001E** ~/~/ Set Transmit Interval (TDC) = 30 seconds 138 138 * **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 139 139 140 - 141 141 == 4.2 Reboot End Node == 142 142 143 143 Feature: Reboot End Node to perform a new OTAA or ABP Join. ... ... @@ -167,16 +167,10 @@ 167 167 **Downlink Command: 0x04** 168 168 {{/info}} 169 169 170 -((( 171 171 Format: Command Code (0x04) followed by FF. 172 -))) 173 173 174 -((( 175 175 If the downlink payload=**04FF**, the end node will reboot. 176 176 177 - 178 -))) 179 - 180 180 == 4.3 Reset to factory Default == 181 181 182 182 Feature: Reset the parameters to Factory Default, factory default value depends on the firmware settings, the OTAA and ABP keys will reserve after this command. ... ... @@ -206,13 +206,9 @@ 206 206 **Downlink Command: 0x04** 207 207 {{/info}} 208 208 209 -((( 210 210 Format: Command Code (0x04) followed by FE. 211 -))) 212 212 213 -((( 214 214 If the downlink payload=**04FE**, Reset Parameters to Factory Default, Keys Reserve. 215 -))) 216 216 217 217 218 218 == 4.4 Show Firmware Version == ... ... @@ -223,10 +223,10 @@ 223 223 **AT Command: AT+VER** 224 224 {{/info}} 225 225 226 -(% border="1" style="background-color:#ffffcc; color:green ; width:586px" %)227 -|=(% colspan="3" style="width: 583px;"%)AT+VER: Image Version and Frequency Band228 -| (% style="width:170px" %)**Command Example**|(% style="width:300px" %)**Function**|(% style="width:113px" %)**Response**229 -| (% style="width:170px" %)AT+VER=?|(% style="width:300px" %)Show Image version and Frequency Band|(% style="width:113px" %)(((210 +(% border="1" style="background-color:#ffffcc; color:green" %) 211 +|=(% colspan="3" %)AT+VER: Image Version and Frequency Band 212 +|**Command Example**|**Function**|**Response** 213 +|AT+VER=?|Show Image version and Frequency Band|((( 230 230 1.3 EU868 231 231 232 232 OK ... ... @@ -236,25 +236,19 @@ 236 236 **Downlink Command: 0x26 (Valid in 006 stack)** 237 237 {{/info}} 238 238 239 -((( 240 240 Downlink Format: 0x26 241 -))) 242 242 243 243 ((( 244 244 Device will reply with firmware version info, device info. frequency band info. detail please check device user manual. Total 5 bytes Example: If device is of firmware version 1.1.0 Upload: xx ~-~- yy ~-~- zz ~-~- 110 total 5 bytes 245 245 ))) 246 246 247 -((( 248 248 **xx: Software Type:** 249 -))) 250 250 251 251 * 0x00 01: LGT92 Version 252 252 * 0x00 02: LBT1 253 253 * 0x00 03: LSE01/LDDS75/LDDS20/LSPH01/LLMS01/LSNPK01 254 254 255 -((( 256 256 **yy: Frequency Band:** 257 -))) 258 258 259 259 * 0x01: EU868 260 260 * 0x02: US915 ... ... @@ -267,9 +267,7 @@ 267 267 * 0x09: AS923-2 268 268 * 0xa0: AS923-3 269 269 270 -((( 271 271 **zz: Subband** 272 -))) 273 273 274 274 firmware version: v1.1.0 ~-~-> 110 275 275 ... ... @@ -299,7 +299,6 @@ 299 299 OK 300 300 ))) 301 301 302 - 303 303 = 5. Keys, IDs and EUIs management = 304 304 305 305 == 5.1 Application EUI == ... ... @@ -318,7 +318,6 @@ 318 318 ))) 319 319 |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 320 320 321 - 322 322 == 5.2 Application Key == 323 323 324 324 Feature: Get or Set the Application Key. ... ... @@ -335,7 +335,6 @@ 335 335 ))) 336 336 |(% 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 337 337 338 - 339 339 == 5.3 Application Session Key == 340 340 341 341 Feature: Get or Set the Application Session Key. ... ... @@ -354,8 +354,6 @@ 354 354 OK 355 355 ))) 356 356 357 - 358 - 359 359 == 5.4 Device Address == 360 360 361 361 Feature: Get or Set the Device Address. ... ... @@ -374,8 +374,6 @@ 374 374 ))) 375 375 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 376 376 377 - 378 - 379 379 == 5.5 Device EUI == 380 380 381 381 Feature: Get or Set the Device EUI. ... ... @@ -394,8 +394,6 @@ 394 394 OK 395 395 ))) 396 396 397 - 398 - 399 399 == 5.6 Network ID == 400 400 401 401 Feature: Get or Set the Network ID.(You can enter this command change only after successful network connection) ... ... @@ -412,8 +412,6 @@ 412 412 ))) 413 413 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 414 414 415 - 416 - 417 417 == 5.7 Network Session Key == 418 418 419 419 Feature: Get or Set the Network Session Key ... ... @@ -430,8 +430,6 @@ 430 430 ))) 431 431 |(% 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 432 432 433 - 434 - 435 435 = 6. Joining and sending date on LoRaWAN network = 436 436 437 437 == 6.1 Confirm Mode == ... ... @@ -460,8 +460,6 @@ 460 460 * Example 1: Downlink Payload: 0501 ~/~/ Set AT+CFM=1 461 461 * Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0 462 462 463 - 464 - 465 465 == 6.2 Confirm Status == 466 466 467 467 Feature: Get confirmation status of the last AT+SEND (0-1). ... ... @@ -477,8 +477,6 @@ 477 477 OK 478 478 ))) 479 479 480 - 481 - 482 482 == 6.3 Join LoRa® Network == 483 483 484 484 Feature: Join network. ... ... @@ -496,8 +496,6 @@ 496 496 While Error in format, return AT_BUSY_ERROR 497 497 ))) 498 498 499 - 500 - 501 501 == 6.4 LoRa® Network Join Mode == 502 502 503 503 Feature: Get or Set the Network Join Mode. (0: ABP, 1: OTAA). ... ... @@ -526,8 +526,6 @@ 526 526 * **Example 1: **Downlink Payload: **2000** ~/~/ Set AT+NJM=O 527 527 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 528 528 529 - 530 - 531 531 == 6.5 LoRa® Network Join Status == 532 532 533 533 Feature: LoRa® Network Join Status. ... ... @@ -543,8 +543,6 @@ 543 543 OK 544 544 ))) 545 545 546 - 547 - 548 548 == 6.6 Print Last Received Data in Raw Format == 549 549 550 550 Feature: Print Last Received Data in Raw Format<port:data>. ... ... @@ -560,8 +560,6 @@ 560 560 OK 561 561 ))) 562 562 563 - 564 - 565 565 == 6.7 Print Last Received Data in Binary Format == 566 566 567 567 Feature: Print Last Received Data in Binary Format<port:data>. ... ... @@ -577,8 +577,6 @@ 577 577 OK 578 578 ))) 579 579 580 - 581 - 582 582 == 6.8 Send Text Data == 583 583 584 584 Feature: Send Text Data<port:data>. ... ... @@ -598,8 +598,6 @@ 598 598 599 599 ))) 600 600 601 - 602 - 603 603 == 6.9 Send Hexadecimal Data == 604 604 605 605 Feature: Send hexadecimal data along with the application port. ... ... @@ -618,8 +618,6 @@ 618 618 619 619 ))) 620 620 621 - 622 - 623 623 = 7. LoRaWAN network management = 624 624 625 625 == 7.1 Adaptive Data Rate == ... ... @@ -651,8 +651,6 @@ 651 651 * **Example 1**: Downlink Payload: **2201** ~/~/ Set AT+ADR=1. 652 652 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 653 653 654 - 655 - 656 656 == 7.2 LoRa® Class == 657 657 658 658 Feature: Get or Set the Device Class(Currently only support class A, class C). ... ... @@ -671,8 +671,6 @@ 671 671 672 672 ))) 673 673 674 - 675 - 676 676 == 7.3 Duty Cycle Setting == 677 677 678 678 Feature: Get or Set the ETSI Duty Cycle setting - 0=disable, 1=enable - Only for testing. ... ... @@ -691,8 +691,6 @@ 691 691 692 692 ))) 693 693 694 - 695 - 696 696 == 7.4 Data Rate == 697 697 698 698 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 ... ... @@ -721,8 +721,6 @@ 721 721 * **Example 1**: Downlink Payload: **220001FF** ~/~/ Set AT+DR=1. 722 722 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 723 723 724 - 725 - 726 726 == 7.5 Frame Counter Downlink == 727 727 728 728 Feature: Get or Set the Frame Counter Downlink. ... ... @@ -743,8 +743,6 @@ 743 743 744 744 ))) 745 745 746 - 747 - 748 748 == 7.6 Frame Counter Uplink == 749 749 750 750 Feature: Get or Set the Frame Counter Uplink. ... ... @@ -763,8 +763,6 @@ 763 763 764 764 ))) 765 765 766 - 767 - 768 768 == 7.7 Join Accept Delay1 == 769 769 770 770 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 1 in ms. ... ... @@ -783,8 +783,6 @@ 783 783 784 784 ))) 785 785 786 - 787 - 788 788 == 7.8 Join Accept Delay2 == 789 789 790 790 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms. ... ... @@ -803,8 +803,6 @@ 803 803 804 804 ))) 805 805 806 - 807 - 808 808 == 7.9 Public Network Mode == 809 809 810 810 Feature: Get or Set the public network mode. (0: off, 1: on) ... ... @@ -825,8 +825,6 @@ 825 825 826 826 ))) 827 827 828 - 829 - 830 830 == 7.10 Receive Delay1 == 831 831 832 832 Feature: Get or Set the delay between the end of the Tx and the Rx Window 1 in ms ... ... @@ -845,10 +845,8 @@ 845 845 846 846 ))) 847 847 775 +== 7.11Receive Delay2 == 848 848 849 - 850 -== 7.11 Receive Delay2 == 851 - 852 852 Feature: Get or Set the delay between the end of the Tx and the Rx Window 2 in ms 853 853 854 854 {{info}} ... ... @@ -865,8 +865,6 @@ 865 865 866 866 ))) 867 867 868 - 869 - 870 870 == 7.12 Rx2 Window Data Rate == 871 871 872 872 Feature: Get or Set the Rx2 window data rate (0-7 corresponding to DR_X) ... ... @@ -885,8 +885,6 @@ 885 885 886 886 ))) 887 887 888 - 889 - 890 890 == 7.13 Rx2 Window Frequency == 891 891 892 892 Feature: Get or Set the Rx2 window frequency ... ... @@ -905,8 +905,6 @@ 905 905 906 906 ))) 907 907 908 - 909 - 910 910 == 7.14 Transmit Power == 911 911 912 912 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. ) ... ... @@ -932,8 +932,6 @@ 932 932 * **Example 1**: Downlink Payload: **22000102** ~/~/ Set AT+TXP=2. 933 933 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0. 934 934 935 - 936 - 937 937 == 7.15 RSSI of the Last Received Packet == 938 938 939 939 Feature: Get or Set the Rx2 window frequency ... ... @@ -949,8 +949,6 @@ 949 949 OK 950 950 ))) 951 951 952 - 953 - 954 954 == 7.16 SNR of the Last Received Packet == 955 955 956 956 Feature: Get the SNR of the last received packet ... ... @@ -966,8 +966,6 @@ 966 966 OK 967 967 ))) 968 968 969 - 970 - 971 971 == 7.17 Application Port == 972 972 973 973 Feature: Get or set the application port. ... ... @@ -995,8 +995,6 @@ 995 995 * **Example 1**: Downlink Payload: **2301** ~/~/ set the application port to 1 996 996 * **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5 997 997 998 - 999 - 1000 1000 == 7.18 Single Channel Mode == 1001 1001 1002 1002 Feature:Get or Set Frequency (Unit: Hz) for Single Channel Mode. ... ... @@ -1013,8 +1013,6 @@ 1013 1013 ))) 1014 1014 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 1015 1015 1016 - 1017 - 1018 1018 == 7.19 Eight Channel Mode == 1019 1019 1020 1020 Feature: Get or Set eight channels mode,Only for US915,AU915,CN470. ... ... @@ -1044,8 +1044,6 @@ 1044 1044 * **Example 1**: Downlink Payload: 2401 ~/~/ set channel mode to 1 1045 1045 * **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5 1046 1046 1047 - 1048 - 1049 1049 == 7.20 Get or Set RXwindows1 timeout == 1050 1050 1051 1051 Feature:Get or Set the number of symbols to detect and timeout from RXwindow1(0 to 255). ... ... @@ -1066,12 +1066,10 @@ 1066 1066 **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. 1067 1067 ))) 1068 1068 1069 -[[image:image-202205 26162535-1.png]]976 +[[image:image-20220511120050-1.png]] 1070 1070 1071 1071 ((( 1072 1072 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 - 1075 1075 ))) 1076 1076 1077 1077 == 7.21 Get or Set RXwindows2 timeout == ... ... @@ -1090,8 +1090,6 @@ 1090 1090 ))) 1091 1091 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1092 1092 1093 - 1094 - 1095 1095 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1096 1096 1097 1097 Feature: Get or Set uplinkdwelltime ... ... @@ -1119,8 +1119,6 @@ 1119 1119 * **Example 1**: Downlink Payload: **2501** ~/~/ set uplinkdwelltime to 1 1120 1120 * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1121 1121 1122 - 1123 - 1124 1124 == 7.23 Set Packet Receiving Response Level == 1125 1125 1126 1126 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. ... ... @@ -1162,8 +1162,6 @@ 1162 1162 * **Example 1**: Downlink Payload: **2101** ~/~/ set packet receiving response level to 1 1163 1163 * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1164 1164 1165 - 1166 - 1167 1167 = 8. AT Commands Combination = 1168 1168 1169 1169 == 8.1 Set a fix RX2DR for downlink window == ... ... @@ -1171,8 +1171,6 @@ 1171 1171 * **AT+ADR=0 **~-~-> Disable ADR first 1172 1172 * **AT+RX2DR=xxxx** ~-~-> Set xxxx to your wanted DataRate 1173 1173 1174 - 1175 - 1176 1176 == 8.2 Use Downlink Command to set a fix uplink DR == 1177 1177 1178 1178 {{info}} ... ... @@ -1181,6 +1181,6 @@ 1181 1181 1182 1182 Same as: 1183 1183 1184 -* AT+ADR=0 ||anchor="H7.1AdaptiveDataRate"]]1185 -* AT+DR=5 ||anchor="H7.4DataRate"]]1186 -* AT+TXP=0 ||anchor="H7.14TransmitPower"]]1081 +* AT+ADR=0 [[Reference>>http://8.211.40.43:8080/xwiki/bin/view/End%20Device%20AT%20Commands%20and%20Downlink%20Command/#Adaptive_Data_Rate]] 1082 +* AT+DR=5 [[Reference>>url:https://wiki.dragino.com/index.php/End_Device_Downlink_Command#Data_Rate]] 1083 +* AT+TXP=0 [[Reference>>url:https://wiki.dragino.com/index.php/End_Device_Downlink_Command#Transmit_Power]]
- image-20220526162535-1.png
-
- Author
-
... ... @@ -1,1 +1,0 @@ 1 -XWiki.Xiaoling - Size
-
... ... @@ -1,1 +1,0 @@ 1 -149.4 KB - Content