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
-
... ... @@ -27,8 +27,6 @@ 27 27 ** See use note for more serves [[Servers Note>>doc:Main.WebHome]](IoT LoRaWAN Server) 28 28 29 29 30 - 31 - 32 32 = 3. Support End Node and firmware version = 33 33 34 34 ... ... @@ -103,9 +103,6 @@ 103 103 ))) 104 104 ))) 105 105 106 - 107 - 108 - 109 109 = 4. System Management Commands = 110 110 111 111 ... ... @@ -145,8 +145,6 @@ 145 145 * **Example 2**: Downlink Payload:** 0100003C** ~/~/ Set Transmit Interval (TDC) = 60 seconds 146 146 147 147 148 - 149 - 150 150 == 4.2 Reboot End Node == 151 151 152 152 ... ... @@ -261,6 +261,7 @@ 261 261 ((( 262 262 263 263 257 + 264 264 **yy: Frequency Band:** 265 265 ))) 266 266 ... ... @@ -278,6 +278,7 @@ 278 278 ((( 279 279 280 280 275 + 281 281 **zz: Subband** 282 282 ))) 283 283 ... ... @@ -310,7 +310,6 @@ 310 310 ))) 311 311 312 312 313 - 314 314 = 5. Keys, IDs and EUIs management = 315 315 316 316 ... ... @@ -331,7 +331,6 @@ 331 331 |(% style="width:305px" %)AT+APPEUI=00 b3 d5 7e f0 00 4d 34|(% style="width:186px" %)Set the Application EUI|(% style="width:191px" %)OK 332 332 333 333 334 - 335 335 == 5.2 Application Key == 336 336 337 337 ... ... @@ -349,7 +349,6 @@ 349 349 |(% 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 350 350 351 351 352 - 353 353 == 5.3 Application Session Key == 354 354 355 355 ... ... @@ -369,7 +369,6 @@ 369 369 ))) 370 370 371 371 372 - 373 373 == 5.4 Device Address == 374 374 375 375 ... ... @@ -389,7 +389,6 @@ 389 389 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 390 390 391 391 392 - 393 393 == 5.5 Device EUI == 394 394 395 395 ... ... @@ -408,6 +408,7 @@ 408 408 OK 409 409 ))) 410 410 401 + 411 411 == 5.6 Network ID == 412 412 413 413 ... ... @@ -424,6 +424,7 @@ 424 424 ))) 425 425 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 426 426 418 + 427 427 == 5.7 Network Session Key == 428 428 429 429 ... ... @@ -440,6 +440,7 @@ 440 440 ))) 441 441 |(% 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 442 442 435 + 443 443 = 6. Joining and sending date on LoRaWAN network = 444 444 445 445 ... ... @@ -473,6 +473,7 @@ 473 473 * Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0 474 474 475 475 469 + 476 476 === 6.1.2 AT+CFM command since DR-LWS007 software stack === 477 477 478 478 ... ... @@ -519,6 +519,7 @@ 519 519 * Example 2: Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 520 520 521 521 516 + 522 522 == 6.2 Confirm Status == 523 523 524 524 ... ... @@ -534,6 +534,7 @@ 534 534 OK 535 535 ))) 536 536 532 + 537 537 == 6.3 Join LoRa® Network == 538 538 539 539 ... ... @@ -551,6 +551,7 @@ 551 551 While Error in format, return AT_BUSY_ERROR 552 552 ))) 553 553 550 + 554 554 == 6.4 LoRa® Network Join Mode == 555 555 556 556 ... ... @@ -578,6 +578,7 @@ 578 578 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 579 579 580 580 578 + 581 581 == 6.5 LoRa® Network Join Status == 582 582 583 583 ... ... @@ -593,6 +593,7 @@ 593 593 OK 594 594 ))) 595 595 594 + 596 596 == 6.6 Print Last Received Data in Raw Format == 597 597 598 598 ... ... @@ -608,6 +608,7 @@ 608 608 OK 609 609 ))) 610 610 610 + 611 611 == 6.7 Print Last Received Data in Binary Format == 612 612 613 613 ... ... @@ -623,6 +623,7 @@ 623 623 OK 624 624 ))) 625 625 626 + 626 626 == 6.8 Send Text Data == 627 627 628 628 ... ... @@ -642,6 +642,7 @@ 642 642 643 643 ))) 644 644 646 + 645 645 == 6.9 Send Hexadecimal Data == 646 646 647 647 ... ... @@ -660,6 +660,7 @@ 660 660 661 661 ))) 662 662 665 + 663 663 = 7. LoRaWAN network management = 664 664 665 665 ... ... @@ -690,6 +690,7 @@ 690 690 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 691 691 692 692 696 + 693 693 == 7.2 LoRa® Class == 694 694 695 695 ... ... @@ -708,6 +708,7 @@ 708 708 709 709 ))) 710 710 715 + 711 711 == 7.3 Duty Cycle Setting == 712 712 713 713 ... ... @@ -726,6 +726,7 @@ 726 726 727 727 ))) 728 728 734 + 729 729 == 7.4 Data Rate == 730 730 731 731 ... ... @@ -752,6 +752,7 @@ 752 752 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 753 753 754 754 761 + 755 755 == 7.5 Frame Counter Downlink == 756 756 757 757 ... ... @@ -770,6 +770,7 @@ 770 770 OK 771 771 ))) 772 772 780 + 773 773 == 7.6 Frame Counter Uplink == 774 774 775 775 Feature: Get or Set the Frame Counter Uplink. ... ... @@ -787,6 +787,7 @@ 787 787 788 788 ))) 789 789 798 + 790 790 == 7.7 Join Accept Delay1 == 791 791 792 792 ... ... @@ -805,6 +805,7 @@ 805 805 806 806 ))) 807 807 817 + 808 808 == 7.8 Join Accept Delay2 == 809 809 810 810 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms. ... ... @@ -822,6 +822,7 @@ 822 822 823 823 ))) 824 824 835 + 825 825 == 7.9 Public Network Mode == 826 826 827 827 ... ... @@ -849,6 +849,7 @@ 849 849 ))) 850 850 |(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %) 851 851 863 + 852 852 == 7.10 Receive Delay1 == 853 853 854 854 ... ... @@ -868,6 +868,7 @@ 868 868 ))) 869 869 870 870 883 + 871 871 == 7.11 Receive Delay2 == 872 872 873 873 ... ... @@ -887,6 +887,7 @@ 887 887 ))) 888 888 889 889 903 + 890 890 == 7.12 Rx2 Window Data Rate == 891 891 892 892 ... ... @@ -906,6 +906,7 @@ 906 906 ))) 907 907 908 908 923 + 909 909 == 7.13 Rx2 Window Frequency == 910 910 911 911 ... ... @@ -925,6 +925,7 @@ 925 925 ))) 926 926 927 927 943 + 928 928 == 7.14 Transmit Power == 929 929 930 930 ... ... @@ -952,6 +952,7 @@ 952 952 953 953 954 954 971 + 955 955 == 7.15 RSSI of the Last Received Packet == 956 956 957 957 ... ... @@ -968,6 +968,7 @@ 968 968 ))) 969 969 970 970 988 + 971 971 == 7.16 SNR of the Last Received Packet == 972 972 973 973 ... ... @@ -984,6 +984,7 @@ 984 984 ))) 985 985 986 986 1005 + 987 987 == 7.17 Application Port == 988 988 989 989 ... ... @@ -1000,6 +1000,7 @@ 1000 1000 ))) 1001 1001 |(% style="width:157px" %)AT+PORT=21|(% style="width:204px" %)Set the application port|(% style="width:135px" %)OK 1002 1002 1022 + 1003 1003 (% style="color:blue" %)**Downlink Command: 0x23** 1004 1004 1005 1005 Format: Command Code (0x23) followed by 1 bytes port value. ... ... @@ -1011,6 +1011,7 @@ 1011 1011 1012 1012 1013 1013 1034 + 1014 1014 == 7.18 Single Channel Mode == 1015 1015 1016 1016 ... ... @@ -1028,6 +1028,7 @@ 1028 1028 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 1029 1029 1030 1030 1052 + 1031 1031 == 7.19 Eight Channel Mode == 1032 1032 1033 1033 Feature: Get or Set eight channels mode,Only for US915,AU915,CN470. ... ... @@ -1045,6 +1045,7 @@ 1045 1045 ))) 1046 1046 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1047 1047 1070 + 1048 1048 (% style="color:blue" %)**Downlink Command: 0x24** 1049 1049 1050 1050 Format: Command Code (0x24) followed by 1 bytes channel value. ... ... @@ -1056,6 +1056,7 @@ 1056 1056 1057 1057 1058 1058 1082 + 1059 1059 == 7.20 Get or Set RXwindows1 timeout == 1060 1060 1061 1061 ... ... @@ -1106,6 +1106,7 @@ 1106 1106 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1107 1107 1108 1108 1133 + 1109 1109 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1110 1110 1111 1111 ... ... @@ -1122,6 +1122,7 @@ 1122 1122 ))) 1123 1123 |(% style="width:183px" %)AT+DWELLT=0|(% style="width:179px" %)Set uplinkdwelltime|(% style="width:131px" %)OK 1124 1124 1150 + 1125 1125 (% style="color:blue" %)**Downlink Command: 0x25** 1126 1126 1127 1127 Format: Command Code (0x25) followed by 1 bytes state value. ... ... @@ -1133,6 +1133,7 @@ 1133 1133 1134 1134 1135 1135 1162 + 1136 1136 == 7.23 Set Packet Receiving Response Level == 1137 1137 1138 1138 ... ... @@ -1148,6 +1148,7 @@ 1148 1148 * **AT+RPL=4: **Device will immediately reply message to Confirmed Data Down & MAC Command. Payload is 0x00 and requied response header for these two commands. 1149 1149 1150 1150 1178 + 1151 1151 Case Analyes: 1152 1152 1153 1153 * For Class A devices, AT+RPL=0 is ok. that is defaut settings in software. ... ... @@ -1155,6 +1155,7 @@ 1155 1155 * 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. 1156 1156 1157 1157 1186 + 1158 1158 (% style="color:blue" %)**AT Command: AT+RPL** 1159 1159 1160 1160 (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) ... ... @@ -1165,6 +1165,7 @@ 1165 1165 ))) 1166 1166 |(% style="width:160px" %)AT+RPL=0|(% style="width:263px" %)Set packet receiving response level|(% style="width:109px" %)OK 1167 1167 1197 + 1168 1168 (% style="color:blue" %)**Downlink Command: 0x21** 1169 1169 1170 1170 Format: Command Code (0x21) followed by 1 bytes level value. ... ... @@ -1176,6 +1176,7 @@ 1176 1176 1177 1177 1178 1178 1209 + 1179 1179 == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) == 1180 1180 1181 1181 ... ... @@ -1193,6 +1193,7 @@ 1193 1193 OK 1194 1194 ))) 1195 1195 1227 + 1196 1196 (% style="color:blue" %)**Downlink Command: 0x33** 1197 1197 1198 1198 Format: Command Code (0x33) followed by 2 bytes mode value. ... ... @@ -1204,6 +1204,7 @@ 1204 1204 1205 1205 1206 1206 1239 + 1207 1207 == 7.25 Device offline rejoining (LWS007) == 1208 1208 1209 1209 ... ... @@ -1240,6 +1240,7 @@ 1240 1240 OK 1241 1241 ))) 1242 1242 1276 + 1243 1243 (% style="color:blue" %)**Downlink Command: 0x33** 1244 1244 1245 1245 Format: Command Code (0x32) followed by 2 bytes mode value. ... ... @@ -1250,6 +1250,7 @@ 1250 1250 1251 1251 1252 1252 1287 + 1253 1253 == 7.26 Request the server to send an ACK == 1254 1254 1255 1255 ... ... @@ -1268,6 +1268,7 @@ 1268 1268 ))) 1269 1269 1270 1270 1306 + 1271 1271 == 7.27 Adjust network rejoining interval == 1272 1272 1273 1273 ... ... @@ -1285,6 +1285,7 @@ 1285 1285 Set the ReJoin data transmission interval to 60000ms = 60 seconds 1286 1286 ))) 1287 1287 1324 + 1288 1288 (% style="color:blue" %)**Downlink Command: 0x26** 1289 1289 1290 1290 Format: Command Code (0x26) followed by 2 bytes mode value. ... ... @@ -1296,6 +1296,7 @@ 1296 1296 1297 1297 1298 1298 1336 + 1299 1299 = 8. AT Commands Combination = 1300 1300 1301 1301 ... ... @@ -1302,11 +1302,12 @@ 1302 1302 == 8.1 Set a fix RX2DR for downlink window == 1303 1303 1304 1304 1305 -* **AT+ADR=0 1343 +* **AT+ADR=0 ** **~-~->** Disable ADR first 1306 1306 * **AT+RX2DR=xxxx** **~-~->** Set xxxx to your wanted DataRate 1307 1307 1308 1308 1309 1309 1348 + 1310 1310 == 8.2 Use Downlink Command to set a fix uplink DR == 1311 1311 1312 1312