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,6 +104,8 @@ 104 104 ))) 105 105 106 106 109 + 110 + 107 107 = 4. System Management Commands = 108 108 109 109 ... ... @@ -143,6 +143,8 @@ 143 143 * **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 144 144 145 145 150 + 151 + 146 146 == 4.2 Reboot End Node == 147 147 148 148 ... ... @@ -309,6 +309,8 @@ 309 309 ))) 310 310 311 311 318 + 319 + 312 312 = 5. Keys, IDs and EUIs management = 313 313 314 314 ... ... @@ -329,6 +329,8 @@ 329 329 |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 330 330 331 331 340 + 341 + 332 332 == 5.2 Application Key == 333 333 334 334 ... ... @@ -346,6 +346,8 @@ 346 346 |(% 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 347 347 348 348 359 + 360 + 349 349 == 5.3 Application Session Key == 350 350 351 351 ... ... @@ -365,6 +365,8 @@ 365 365 ))) 366 366 367 367 380 + 381 + 368 368 == 5.4 Device Address == 369 369 370 370 ... ... @@ -384,6 +384,8 @@ 384 384 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 385 385 386 386 401 + 402 + 387 387 == 5.5 Device EUI == 388 388 389 389 ... ... @@ -403,6 +403,8 @@ 403 403 ))) 404 404 405 405 422 + 423 + 406 406 == 5.6 Network ID == 407 407 408 408 ... ... @@ -420,6 +420,8 @@ 420 420 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 421 421 422 422 441 + 442 + 423 423 == 5.7 Network Session Key == 424 424 425 425 ... ... @@ -437,6 +437,8 @@ 437 437 |(% 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 438 438 439 439 460 + 461 + 440 440 = 6. Joining and sending date on LoRaWAN network = 441 441 442 442 ... ... @@ -460,6 +460,8 @@ 460 460 |(% style="width:155px" %)AT+CFM=1|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)OK 461 461 |(% style="width:155px" %)AT+CFM=2|(% style="width:205px" %)Set the confirmation mode|(% style="width:346px" %)While Error in format, return AT_PARAM_ERROR 462 462 485 + 486 + 463 463 (% style="color:blue" %)**Downlink Command: 0x05** 464 464 465 465 Format: Command Code (0x05) followed by 2 bytes mode value. ... ... @@ -470,6 +470,8 @@ 470 470 * **Example 2:** Downlink Payload: 0500 ~/~/ Set AT+CFM=0 471 471 472 472 497 + 498 + 473 473 === 6.1.2 AT+CFM command since DR-LWS007 software stack === 474 474 475 475 ... ... @@ -506,6 +506,8 @@ 506 506 OK 507 507 ))) 508 508 535 + 536 + 509 509 (% style="color:blue" %)**Downlink Command: 0x05** 510 510 511 511 Format: Command Code (0x05) followed by 2 bytes mode value. ... ... @@ -516,6 +516,8 @@ 516 516 * **Example 2:** Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 517 517 518 518 547 + 548 + 519 519 == 6.2 Confirm Status == 520 520 521 521 ... ... @@ -532,6 +532,8 @@ 532 532 ))) 533 533 534 534 565 + 566 + 535 535 == 6.3 Join LoRa® Network == 536 536 537 537 ... ... @@ -550,6 +550,8 @@ 550 550 ))) 551 551 552 552 585 + 586 + 553 553 == 6.4 LoRa® Network Join Mode == 554 554 555 555 ... ... @@ -567,6 +567,8 @@ 567 567 |(% style="width:162px" %)AT+NJM=0|(% style="width:227px" %)Set the Network Join Mode|(% style="width:361px" %)OK 568 568 |(% 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 569 569 604 + 605 + 570 570 (% style="color:blue" %)**Downlink Command: 0x20** 571 571 572 572 Format: Command Code (0x20) followed by 1 bytes mode value. ... ... @@ -577,6 +577,8 @@ 577 577 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 578 578 579 579 616 + 617 + 580 580 == 6.5 LoRa® Network Join Status == 581 581 582 582 ... ... @@ -593,6 +593,8 @@ 593 593 ))) 594 594 595 595 634 + 635 + 596 596 == 6.6 Print Last Received Data in Raw Format == 597 597 598 598 ... ... @@ -609,6 +609,8 @@ 609 609 ))) 610 610 611 611 652 + 653 + 612 612 == 6.7 Print Last Received Data in Binary Format == 613 613 614 614 ... ... @@ -625,6 +625,8 @@ 625 625 ))) 626 626 627 627 670 + 671 + 628 628 == 6.8 Send Text Data == 629 629 630 630 ... ... @@ -645,6 +645,8 @@ 645 645 ))) 646 646 647 647 692 + 693 + 648 648 == 6.9 Send Hexadecimal Data == 649 649 650 650 ... ... @@ -664,6 +664,8 @@ 664 664 ))) 665 665 666 666 713 + 714 + 667 667 = 7. LoRaWAN network management = 668 668 669 669 ... ... @@ -686,6 +686,8 @@ 686 686 AT_PARAM_ERROR 687 687 ))) 688 688 737 + 738 + 689 689 (% style="color:blue" %)**Downlink Command: 0x22** 690 690 691 691 If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22. ... ... @@ -694,6 +694,8 @@ 694 694 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 695 695 696 696 747 + 748 + 697 697 == 7.2 LoRa® Class == 698 698 699 699 ... ... @@ -713,6 +713,8 @@ 713 713 ))) 714 714 715 715 768 + 769 + 716 716 == 7.3 Duty Cycle Setting == 717 717 718 718 ... ... @@ -732,6 +732,8 @@ 732 732 ))) 733 733 734 734 789 + 790 + 735 735 == 7.4 Data Rate == 736 736 737 737 ... ... @@ -750,6 +750,8 @@ 750 750 751 751 ))) 752 752 809 + 810 + 753 753 (% style="color:blue" %)**Downlink Command: 0x2200aaFF** 754 754 755 755 If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF. ... ... @@ -758,6 +758,8 @@ 758 758 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 759 759 760 760 819 + 820 + 761 761 == 7.5 Frame Counter Downlink == 762 762 763 763 ... ... @@ -777,6 +777,8 @@ 777 777 ))) 778 778 779 779 840 + 841 + 780 780 == 7.6 Frame Counter Uplink == 781 781 782 782 Feature: Get or Set the Frame Counter Uplink. ... ... @@ -795,6 +795,8 @@ 795 795 ))) 796 796 797 797 860 + 861 + 798 798 == 7.7 Join Accept Delay1 == 799 799 800 800 ... ... @@ -814,6 +814,8 @@ 814 814 ))) 815 815 816 816 881 + 882 + 817 817 == 7.8 Join Accept Delay2 == 818 818 819 819 ... ... @@ -833,6 +833,8 @@ 833 833 ))) 834 834 835 835 902 + 903 + 836 836 == 7.9 Public Network Mode == 837 837 838 838 ... ... @@ -861,6 +861,8 @@ 861 861 |(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %) 862 862 863 863 932 + 933 + 864 864 == 7.10 Receive Delay1 == 865 865 866 866 ... ... @@ -880,6 +880,8 @@ 880 880 ))) 881 881 882 882 953 + 954 + 883 883 == 7.11 Receive Delay2 == 884 884 885 885 ... ... @@ -899,6 +899,8 @@ 899 899 ))) 900 900 901 901 974 + 975 + 902 902 == 7.12 Rx2 Window Data Rate == 903 903 904 904 ... ... @@ -918,6 +918,8 @@ 918 918 ))) 919 919 920 920 995 + 996 + 921 921 == 7.13 Rx2 Window Frequency == 922 922 923 923 ... ... @@ -937,6 +937,8 @@ 937 937 ))) 938 938 939 939 1016 + 1017 + 940 940 == 7.14 Transmit Power == 941 941 942 942 ... ... @@ -965,6 +965,8 @@ 965 965 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+TXP=0. 966 966 967 967 1046 + 1047 + 968 968 == 7.15 RSSI of the Last Received Packet == 969 969 970 970 ... ... @@ -981,6 +981,8 @@ 981 981 ))) 982 982 983 983 1064 + 1065 + 984 984 == 7.16 SNR of the Last Received Packet == 985 985 986 986 ... ... @@ -997,6 +997,8 @@ 997 997 ))) 998 998 999 999 1082 + 1083 + 1000 1000 == 7.17 Application Port == 1001 1001 1002 1002 ... ... @@ -1013,6 +1013,8 @@ 1013 1013 ))) 1014 1014 |(% style="width:157px" %)AT+PORT=21|(% style="width:204px" %)Set the application port|(% style="width:135px" %)OK 1015 1015 1100 + 1101 + 1016 1016 (% style="color:blue" %)**Downlink Command: 0x23** 1017 1017 1018 1018 Format: Command Code (0x23) followed by 1 bytes port value. ... ... @@ -1023,6 +1023,8 @@ 1023 1023 * **Example 2**: Downlink Payload:** 2305** ~/~/ set the application port to 5 1024 1024 1025 1025 1112 + 1113 + 1026 1026 == 7.18 Single Channel Mode == 1027 1027 1028 1028 ... ... @@ -1040,6 +1040,8 @@ 1040 1040 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 1041 1041 1042 1042 1131 + 1132 + 1043 1043 == 7.19 Eight Channel Mode == 1044 1044 1045 1045 ... ... @@ -1058,6 +1058,8 @@ 1058 1058 ))) 1059 1059 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1060 1060 1151 + 1152 + 1061 1061 (% style="color:blue" %)**Downlink Command: 0x24** 1062 1062 1063 1063 Format: Command Code (0x24) followed by 1 bytes channel value. ... ... @@ -1068,6 +1068,8 @@ 1068 1068 * **Example 2**: Downlink Payload: 2405 ~/~/ set channel mode to 5 1069 1069 1070 1070 1163 + 1164 + 1071 1071 == 7.20 Get or Set RXwindows1 timeout == 1072 1072 1073 1073 ... ... @@ -1120,6 +1120,8 @@ 1120 1120 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1121 1121 1122 1122 1217 + 1218 + 1123 1123 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1124 1124 1125 1125 ... ... @@ -1136,6 +1136,8 @@ 1136 1136 ))) 1137 1137 |(% style="width:183px" %)AT+DWELLT=0|(% style="width:179px" %)Set uplinkdwelltime|(% style="width:131px" %)OK 1138 1138 1235 + 1236 + 1139 1139 (% style="color:blue" %)**Downlink Command: 0x25** 1140 1140 1141 1141 Format: Command Code (0x25) followed by 1 bytes state value. ... ... @@ -1146,6 +1146,8 @@ 1146 1146 * **Example 2**: Downlink Payload: **2500** ~/~/ set uplinkdwelltime to 0 1147 1147 1148 1148 1247 + 1248 + 1149 1149 == 7.23 Set Packet Receiving Response Level == 1150 1150 1151 1151 ... ... @@ -1166,6 +1166,9 @@ 1166 1166 * For Class C devices used in ChirpStack, need to set AT+RPL=4 because Chirpstack require immedietely reply message to MAC Command. 1167 1167 * 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. 1168 1168 1269 + 1270 + 1271 + 1169 1169 (% style="color:blue" %)**AT Command: AT+RPL** 1170 1170 1171 1171 (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) ... ... @@ -1176,6 +1176,8 @@ 1176 1176 ))) 1177 1177 |(% style="width:160px" %)AT+RPL=0|(% style="width:263px" %)Set packet receiving response level|(% style="width:109px" %)OK 1178 1178 1282 + 1283 + 1179 1179 (% style="color:blue" %)**Downlink Command: 0x21** 1180 1180 1181 1181 Format: Command Code (0x21) followed by 1 bytes level value. ... ... @@ -1186,6 +1186,8 @@ 1186 1186 * **Example 2**: Downlink Payload: **2102** ~/~/ set packet receiving response level to 2 1187 1187 1188 1188 1294 + 1295 + 1189 1189 == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) == 1190 1190 1191 1191 ... ... @@ -1207,6 +1207,8 @@ 1207 1207 OK 1208 1208 ))) 1209 1209 1317 + 1318 + 1210 1210 (% style="color:blue" %)**Downlink Command: 0x33** 1211 1211 1212 1212 Format: Command Code (0x33) followed by 2 bytes mode value. ... ... @@ -1217,6 +1217,8 @@ 1217 1217 * Example 2: Downlink Payload: 330201 ~/~/ Set AT+SETMAXNBTRANS=2,1 1218 1218 1219 1219 1329 + 1330 + 1220 1220 == 7.25 Device offline rejoining (LWS007) == 1221 1221 1222 1222 ... ... @@ -1253,6 +1253,8 @@ 1253 1253 OK 1254 1254 ))) 1255 1255 1367 + 1368 + 1256 1256 (% style="color:blue" %)**Downlink Command: 0x33** 1257 1257 1258 1258 Format: Command Code (0x32) followed by 2 bytes mode value. ... ... @@ -1262,6 +1262,8 @@ 1262 1262 * **Example 1:** Downlink Payload: 320105A00B40 ~/~/ Set AT+DDETECT=1,1440,2880 1263 1263 1264 1264 1378 + 1379 + 1265 1265 == 7.26 Request the server to send an ACK == 1266 1266 1267 1267 ... ... @@ -1281,6 +1281,7 @@ 1281 1281 1282 1282 1283 1283 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,6 +1308,8 @@ 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 1313 1313 ... ... @@ -1315,9 +1315,11 @@ 1315 1315 1316 1316 1317 1317 * (% style="color:blue" %)**AT+ADR=0 **(%%) **~-~->** Disable ADR first 1318 -* (% style="color: blue" %)**AT+RX2DR=xxxx** (%%) **~-~->** Set xxxx to your wanted DataRate1438 +* (% style="color:red" %)**AT+RX2DR=xxxx** (%%) **~-~->** Set xxxx to your wanted DataRate 1319 1319 1320 1320 1441 + 1442 + 1321 1321 == 8.2 Use Downlink Command to set a fix uplink DR == 1322 1322 1323 1323