Changes for page End Device AT Commands and Downlink Command
Last modified by kai on 2024/09/06 10:00
Change comment:
There is no comment for this version
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Author
-
... ... @@ -1,1 +1,1 @@ 1 -XWiki. Edwin1 +XWiki.Xiaoling - Content
-
... ... @@ -25,10 +25,12 @@ 25 25 * 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/]] 26 26 * 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: 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]] , [[How to Convert>>http://wiki.dragino.com/xwiki/bin/view/Main/Notes%20for%20ChirpStack/#H4.1ConvertHEXtoBase64]]?28 +** Use Base64 format to send a downlink: [[Chirpstack>>Notes for ChirpStack]] 29 29 ** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server) 30 30 31 31 32 + 33 + 32 32 = 3. Support End Node and firmware version = 33 33 34 34 ... ... @@ -104,8 +104,11 @@ 104 104 ))) 105 105 106 106 109 + 110 + 107 107 = 4. System Management Commands = 108 108 113 + 109 109 == 4.1 Change Uplink Interval == 110 110 111 111 ... ... @@ -142,6 +142,8 @@ 142 142 * **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 143 143 144 144 150 + 151 + 145 145 == 4.2 Reboot End Node == 146 146 147 147 ... ... @@ -308,8 +308,11 @@ 308 308 ))) 309 309 310 310 318 + 319 + 311 311 = 5. Keys, IDs and EUIs management = 312 312 322 + 313 313 == 5.1 Application EUI == 314 314 315 315 ... ... @@ -327,6 +327,8 @@ 327 327 |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 328 328 329 329 340 + 341 + 330 330 == 5.2 Application Key == 331 331 332 332 ... ... @@ -344,6 +344,8 @@ 344 344 |(% 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 345 345 346 346 359 + 360 + 347 347 == 5.3 Application Session Key == 348 348 349 349 ... ... @@ -363,6 +363,8 @@ 363 363 ))) 364 364 365 365 380 + 381 + 366 366 == 5.4 Device Address == 367 367 368 368 ... ... @@ -382,6 +382,8 @@ 382 382 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 383 383 384 384 401 + 402 + 385 385 == 5.5 Device EUI == 386 386 387 387 ... ... @@ -401,6 +401,8 @@ 401 401 ))) 402 402 403 403 422 + 423 + 404 404 == 5.6 Network ID == 405 405 406 406 ... ... @@ -418,6 +418,8 @@ 418 418 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 419 419 420 420 441 + 442 + 421 421 == 5.7 Network Session Key == 422 422 423 423 ... ... @@ -435,10 +435,14 @@ 435 435 |(% 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 436 436 437 437 460 + 461 + 438 438 = 6. Joining and sending date on LoRaWAN network = 439 439 464 + 440 440 == 6.1 Confirm Mode == 441 441 467 + 442 442 === 6.1.1 AT+CFM command before DR-LWS007 software stack === 443 443 444 444 ... ... @@ -456,6 +456,8 @@ 456 456 |(% style="width:155px" %)AT+CFM=1|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)OK 457 457 |(% style="width:155px" %)AT+CFM=2|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)While Error in format, return AT_PARAM_ERROR 458 458 485 + 486 + 459 459 (% style="color:blue" %)**Downlink Command: 0x05** 460 460 461 461 Format: Command Code (0x05) followed by 2 bytes mode value. ... ... @@ -466,6 +466,8 @@ 466 466 * **Example 2:** Downlink Payload: 0500 ~/~/ Set AT+CFM=0 467 467 468 468 497 + 498 + 469 469 === 6.1.2 AT+CFM command since DR-LWS007 software stack === 470 470 471 471 ... ... @@ -502,6 +502,8 @@ 502 502 OK 503 503 ))) 504 504 535 + 536 + 505 505 (% style="color:blue" %)**Downlink Command: 0x05** 506 506 507 507 Format: Command Code (0x05) followed by 2 bytes mode value. ... ... @@ -512,6 +512,8 @@ 512 512 * **Example 2:** Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 513 513 514 514 547 + 548 + 515 515 == 6.2 Confirm Status == 516 516 517 517 ... ... @@ -528,6 +528,8 @@ 528 528 ))) 529 529 530 530 565 + 566 + 531 531 == 6.3 Join LoRa® Network == 532 532 533 533 ... ... @@ -546,6 +546,8 @@ 546 546 ))) 547 547 548 548 585 + 586 + 549 549 == 6.4 LoRa® Network Join Mode == 550 550 551 551 ... ... @@ -563,6 +563,8 @@ 563 563 |(% style="width:162px" %)AT+NJM=0|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)OK 564 564 |(% style="width:162px" %)AT+NJM=2|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)While Error in format, return AT_PARAM_ERROR 565 565 604 + 605 + 566 566 (% style="color:blue" %)**Downlink Command: 0x20** 567 567 568 568 Format: Command Code (0x20) followed by 1 bytes mode value. ... ... @@ -573,6 +573,8 @@ 573 573 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 574 574 575 575 616 + 617 + 576 576 == 6.5 LoRa® Network Join Status == 577 577 578 578 ... ... @@ -589,6 +589,8 @@ 589 589 ))) 590 590 591 591 634 + 635 + 592 592 == 6.6 Print Last Received Data in Raw Format == 593 593 594 594 ... ... @@ -605,6 +605,8 @@ 605 605 ))) 606 606 607 607 652 + 653 + 608 608 == 6.7 Print Last Received Data in Binary Format == 609 609 610 610 ... ... @@ -621,6 +621,8 @@ 621 621 ))) 622 622 623 623 670 + 671 + 624 624 == 6.8 Send Text Data == 625 625 626 626 ... ... @@ -641,6 +641,8 @@ 641 641 ))) 642 642 643 643 692 + 693 + 644 644 == 6.9 Send Hexadecimal Data == 645 645 646 646 ... ... @@ -660,8 +660,11 @@ 660 660 ))) 661 661 662 662 713 + 714 + 663 663 = 7. LoRaWAN network management = 664 664 717 + 665 665 == 7.1 Adaptive Data Rate == 666 666 667 667 ... ... @@ -681,6 +681,8 @@ 681 681 AT_PARAM_ERROR 682 682 ))) 683 683 737 + 738 + 684 684 (% style="color:blue" %)**Downlink Command: 0x22** 685 685 686 686 If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22. ... ... @@ -689,6 +689,8 @@ 689 689 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 690 690 691 691 747 + 748 + 692 692 == 7.2 LoRa® Class == 693 693 694 694 ... ... @@ -708,6 +708,8 @@ 708 708 ))) 709 709 710 710 768 + 769 + 711 711 == 7.3 Duty Cycle Setting == 712 712 713 713 ... ... @@ -727,16 +727,12 @@ 727 727 ))) 728 728 729 729 730 -== 7.4 Data Rate == 731 731 732 732 733 - Feature:Getor Set theData Rate.(0-7 corresponding to DR_X) .791 +== 7.4 Data Rate == 734 734 735 -(% style="color:red" %) 736 -**Notice:** 737 737 738 -* 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. 739 -* Data Rate specifies Spreading Factor. The mapping various in different frequency band. 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/]] 794 +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 740 740 741 741 742 742 (% style="color:blue" %)**AT Command: AT+DR** ... ... @@ -751,6 +751,8 @@ 751 751 752 752 ))) 753 753 809 + 810 + 754 754 (% style="color:blue" %)**Downlink Command: 0x2200aaFF** 755 755 756 756 If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF. ... ... @@ -759,6 +759,8 @@ 759 759 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 760 760 761 761 819 + 820 + 762 762 == 7.5 Frame Counter Downlink == 763 763 764 764 ... ... @@ -778,6 +778,8 @@ 778 778 ))) 779 779 780 780 840 + 841 + 781 781 == 7.6 Frame Counter Uplink == 782 782 783 783 Feature: Get or Set the Frame Counter Uplink. ... ... @@ -796,6 +796,8 @@ 796 796 ))) 797 797 798 798 860 + 861 + 799 799 == 7.7 Join Accept Delay1 == 800 800 801 801 ... ... @@ -815,6 +815,8 @@ 815 815 ))) 816 816 817 817 881 + 882 + 818 818 == 7.8 Join Accept Delay2 == 819 819 820 820 ... ... @@ -834,6 +834,8 @@ 834 834 ))) 835 835 836 836 902 + 903 + 837 837 == 7.9 Public Network Mode == 838 838 839 839 ... ... @@ -862,6 +862,8 @@ 862 862 |(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %) 863 863 864 864 932 + 933 + 865 865 == 7.10 Receive Delay1 == 866 866 867 867 ... ... @@ -881,6 +881,8 @@ 881 881 ))) 882 882 883 883 953 + 954 + 884 884 == 7.11 Receive Delay2 == 885 885 886 886 ... ... @@ -900,6 +900,8 @@ 900 900 ))) 901 901 902 902 974 + 975 + 903 903 == 7.12 Rx2 Window Data Rate == 904 904 905 905 ... ... @@ -919,6 +919,8 @@ 919 919 ))) 920 920 921 921 995 + 996 + 922 922 == 7.13 Rx2 Window Frequency == 923 923 924 924 ... ... @@ -938,6 +938,8 @@ 938 938 ))) 939 939 940 940 1016 + 1017 + 941 941 == 7.14 Transmit Power == 942 942 943 943 ... ... @@ -966,6 +966,8 @@ 966 966 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0. 967 967 968 968 1046 + 1047 + 969 969 == 7.15 RSSI of the Last Received Packet == 970 970 971 971 ... ... @@ -982,6 +982,8 @@ 982 982 ))) 983 983 984 984 1064 + 1065 + 985 985 == 7.16 SNR of the Last Received Packet == 986 986 987 987 ... ... @@ -998,6 +998,8 @@ 998 998 ))) 999 999 1000 1000 1082 + 1083 + 1001 1001 == 7.17 Application Port == 1002 1002 1003 1003 ... ... @@ -1014,6 +1014,8 @@ 1014 1014 ))) 1015 1015 |(% style="width:157px" %)AT+PORT=21|(% style="width:204px" %)Set the application port|(% style="width:135px" %)OK 1016 1016 1100 + 1101 + 1017 1017 (% style="color:blue" %)**Downlink Command: 0x23** 1018 1018 1019 1019 Format: Command Code (0x23) followed by 1 bytes port value. ... ... @@ -1024,6 +1024,8 @@ 1024 1024 * **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5 1025 1025 1026 1026 1112 + 1113 + 1027 1027 == 7.18 Single Channel Mode == 1028 1028 1029 1029 ... ... @@ -1041,6 +1041,8 @@ 1041 1041 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 1042 1042 1043 1043 1131 + 1132 + 1044 1044 == 7.19 Eight Channel Mode == 1045 1045 1046 1046 ... ... @@ -1059,6 +1059,8 @@ 1059 1059 ))) 1060 1060 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1061 1061 1151 + 1152 + 1062 1062 (% style="color:blue" %)**Downlink Command: 0x24** 1063 1063 1064 1064 Format: Command Code (0x24) followed by 1 bytes channel value. ... ... @@ -1069,6 +1069,8 @@ 1069 1069 * **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5 1070 1070 1071 1071 1163 + 1164 + 1072 1072 == 7.20 Get or Set RXwindows1 timeout == 1073 1073 1074 1074 ... ... @@ -1121,6 +1121,8 @@ 1121 1121 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1122 1122 1123 1123 1217 + 1218 + 1124 1124 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1125 1125 1126 1126 ... ... @@ -1137,6 +1137,8 @@ 1137 1137 ))) 1138 1138 |(% style="width:183px" %)AT+DWELLT=0|(% style="width:179px" %)Set uplinkdwelltime|(% style="width:131px" %)OK 1139 1139 1235 + 1236 + 1140 1140 (% style="color:blue" %)**Downlink Command: 0x25** 1141 1141 1142 1142 Format: Command Code (0x25) followed by 1 bytes state value. ... ... @@ -1147,6 +1147,8 @@ 1147 1147 * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1148 1148 1149 1149 1247 + 1248 + 1150 1150 == 7.23 Set Packet Receiving Response Level == 1151 1151 1152 1152 ... ... @@ -1167,6 +1167,9 @@ 1167 1167 * For Class C devices used in ChirpStack, need to set AT+RPL=4 because Chirpstack require immedietely reply message to MAC Command. 1168 1168 * For Class C devices used in TTI, need to set AT+RPL=4 because TTI require immediately reply message to Confirmed Data Down & MAC Command. 1169 1169 1269 + 1270 + 1271 + 1170 1170 (% style="color:blue" %)**AT Command: AT+RPL** 1171 1171 1172 1172 (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) ... ... @@ -1177,6 +1177,8 @@ 1177 1177 ))) 1178 1178 |(% style="width:160px" %)AT+RPL=0|(% style="width:263px" %)Set packet receiving response level|(% style="width:109px" %)OK 1179 1179 1282 + 1283 + 1180 1180 (% style="color:blue" %)**Downlink Command: 0x21** 1181 1181 1182 1182 Format: Command Code (0x21) followed by 1 bytes level value. ... ... @@ -1187,6 +1187,8 @@ 1187 1187 * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1188 1188 1189 1189 1294 + 1295 + 1190 1190 == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) == 1191 1191 1192 1192 ... ... @@ -1208,6 +1208,8 @@ 1208 1208 OK 1209 1209 ))) 1210 1210 1317 + 1318 + 1211 1211 (% style="color:blue" %)**Downlink Command: 0x33** 1212 1212 1213 1213 Format: Command Code (0x33) followed by 2 bytes mode value. ... ... @@ -1218,6 +1218,8 @@ 1218 1218 * Example 2: Downlink Payload: 330201 ~/~/ Set AT+SETMAXNBTRANS=2,1 1219 1219 1220 1220 1329 + 1330 + 1221 1221 == 7.25 Device offline rejoining (LWS007) == 1222 1222 1223 1223 ... ... @@ -1254,6 +1254,8 @@ 1254 1254 OK 1255 1255 ))) 1256 1256 1367 + 1368 + 1257 1257 (% style="color:blue" %)**Downlink Command: 0x33** 1258 1258 1259 1259 Format: Command Code (0x32) followed by 2 bytes mode value. ... ... @@ -1263,6 +1263,8 @@ 1263 1263 * **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1264 1264 1265 1265 1378 + 1379 + 1266 1266 == 7.26 Request the server to send an ACK == 1267 1267 1268 1268 ... ... @@ -1281,6 +1281,8 @@ 1281 1281 ))) 1282 1282 1283 1283 1398 + 1399 + 1284 1284 == 7.27 Adjust network rejoining interval == 1285 1285 1286 1286 ... ... @@ -1298,6 +1298,8 @@ 1298 1298 Set the ReJoin data transmission interval to 60000ms = 60 seconds 1299 1299 ))) 1300 1300 1417 + 1418 + 1301 1301 (% style="color:blue" %)**Downlink Command: 0x26** 1302 1302 1303 1303 Format: Command Code (0x26) followed by 2 bytes mode value. ... ... @@ -1308,15 +1308,20 @@ 1308 1308 * **Example 2: **Downlink Payload: 260002 ~/~/ Set AT+RJTDC=2 1309 1309 1310 1310 1429 + 1430 + 1311 1311 = 8. AT Commands Combination = 1312 1312 1433 + 1313 1313 == 8.1 Set a fix RX2DR for downlink window == 1314 1314 1315 1315 1316 1316 * (% style="color:blue" %)**AT+ADR=0 **(%%) **~-~->** Disable ADR first 1317 -* (% style="color: blue" %)**AT+RX2DR=xxxx** (%%) **~-~->** Set xxxx to your wanted DataRate1438 +* (% style="color:red" %)**AT+RX2DR=xxxx** (%%) **~-~->** Set xxxx to your wanted DataRate 1318 1318 1319 1319 1441 + 1442 + 1320 1320 == 8.2 Use Downlink Command to set a fix uplink DR == 1321 1321 1322 1322