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 ... ... @@ -409,7 +409,6 @@ 409 409 ))) 410 410 411 411 412 - 413 413 == 5.6 Network ID == 414 414 415 415 ... ... @@ -427,7 +427,6 @@ 427 427 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 428 428 429 429 430 - 431 431 == 5.7 Network Session Key == 432 432 433 433 ... ... @@ -445,7 +445,6 @@ 445 445 |(% 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 446 446 447 447 448 - 449 449 = 6. Joining and sending date on LoRaWAN network = 450 450 451 451 ... ... @@ -480,7 +480,6 @@ 480 480 481 481 482 482 483 - 484 484 === 6.1.2 AT+CFM command since DR-LWS007 software stack === 485 485 486 486 ... ... @@ -528,7 +528,6 @@ 528 528 529 529 530 530 531 - 532 532 == 6.2 Confirm Status == 533 533 534 534 ... ... @@ -545,7 +545,6 @@ 545 545 ))) 546 546 547 547 548 - 549 549 == 6.3 Join LoRa® Network == 550 550 551 551 ... ... @@ -564,7 +564,6 @@ 564 564 ))) 565 565 566 566 567 - 568 568 == 6.4 LoRa® Network Join Mode == 569 569 570 570 ... ... @@ -593,7 +593,6 @@ 593 593 594 594 595 595 596 - 597 597 == 6.5 LoRa® Network Join Status == 598 598 599 599 ... ... @@ -610,7 +610,6 @@ 610 610 ))) 611 611 612 612 613 - 614 614 == 6.6 Print Last Received Data in Raw Format == 615 615 616 616 ... ... @@ -627,7 +627,6 @@ 627 627 ))) 628 628 629 629 630 - 631 631 == 6.7 Print Last Received Data in Binary Format == 632 632 633 633 ... ... @@ -644,7 +644,6 @@ 644 644 ))) 645 645 646 646 647 - 648 648 == 6.8 Send Text Data == 649 649 650 650 ... ... @@ -665,7 +665,6 @@ 665 665 ))) 666 666 667 667 668 - 669 669 == 6.9 Send Hexadecimal Data == 670 670 671 671 ... ... @@ -685,7 +685,6 @@ 685 685 ))) 686 686 687 687 688 - 689 689 = 7. LoRaWAN network management = 690 690 691 691 ... ... @@ -708,7 +708,6 @@ 708 708 AT_PARAM_ERROR 709 709 ))) 710 710 711 - 712 712 (% style="color:blue" %)**Downlink Command: 0x22** 713 713 714 714 If the downlink payload=2201, it means setting the adaptive data rate to 1, while type code is 22. ... ... @@ -718,7 +718,6 @@ 718 718 719 719 720 720 721 - 722 722 == 7.2 LoRa® Class == 723 723 724 724 ... ... @@ -738,7 +738,6 @@ 738 738 ))) 739 739 740 740 741 - 742 742 == 7.3 Duty Cycle Setting == 743 743 744 744 ... ... @@ -758,7 +758,6 @@ 758 758 ))) 759 759 760 760 761 - 762 762 == 7.4 Data Rate == 763 763 764 764 ... ... @@ -777,7 +777,6 @@ 777 777 778 778 ))) 779 779 780 - 781 781 (% style="color:blue" %)**Downlink Command: 0x2200aaFF** 782 782 783 783 If the downlink payload=220001FF, it means setting the data rate to 1, while type code is 22 00 aa FF. ... ... @@ -787,7 +787,6 @@ 787 787 788 788 789 789 790 - 791 791 == 7.5 Frame Counter Downlink == 792 792 793 793 ... ... @@ -807,7 +807,6 @@ 807 807 ))) 808 808 809 809 810 - 811 811 == 7.6 Frame Counter Uplink == 812 812 813 813 Feature: Get or Set the Frame Counter Uplink. ... ... @@ -825,6 +825,7 @@ 825 825 826 826 ))) 827 827 798 + 828 828 == 7.7 Join Accept Delay1 == 829 829 830 830 ... ... @@ -843,6 +843,7 @@ 843 843 844 844 ))) 845 845 817 + 846 846 == 7.8 Join Accept Delay2 == 847 847 848 848 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms. ... ... @@ -860,6 +860,7 @@ 860 860 861 861 ))) 862 862 835 + 863 863 == 7.9 Public Network Mode == 864 864 865 865 ... ... @@ -887,6 +887,7 @@ 887 887 ))) 888 888 |(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %) 889 889 863 + 890 890 == 7.10 Receive Delay1 == 891 891 892 892 ... ... @@ -906,6 +906,7 @@ 906 906 ))) 907 907 908 908 883 + 909 909 == 7.11 Receive Delay2 == 910 910 911 911 ... ... @@ -925,6 +925,7 @@ 925 925 ))) 926 926 927 927 903 + 928 928 == 7.12 Rx2 Window Data Rate == 929 929 930 930 ... ... @@ -944,6 +944,7 @@ 944 944 ))) 945 945 946 946 923 + 947 947 == 7.13 Rx2 Window Frequency == 948 948 949 949 ... ... @@ -963,6 +963,7 @@ 963 963 ))) 964 964 965 965 943 + 966 966 == 7.14 Transmit Power == 967 967 968 968 ... ... @@ -990,6 +990,7 @@ 990 990 991 991 992 992 971 + 993 993 == 7.15 RSSI of the Last Received Packet == 994 994 995 995 ... ... @@ -1006,6 +1006,7 @@ 1006 1006 ))) 1007 1007 1008 1008 988 + 1009 1009 == 7.16 SNR of the Last Received Packet == 1010 1010 1011 1011 ... ... @@ -1022,6 +1022,7 @@ 1022 1022 ))) 1023 1023 1024 1024 1005 + 1025 1025 == 7.17 Application Port == 1026 1026 1027 1027 ... ... @@ -1038,6 +1038,7 @@ 1038 1038 ))) 1039 1039 |(% style="width:157px" %)AT+PORT=21|(% style="width:204px" %)Set the application port|(% style="width:135px" %)OK 1040 1040 1022 + 1041 1041 (% style="color:blue" %)**Downlink Command: 0x23** 1042 1042 1043 1043 Format: Command Code (0x23) followed by 1 bytes port value. ... ... @@ -1049,6 +1049,7 @@ 1049 1049 1050 1050 1051 1051 1034 + 1052 1052 == 7.18 Single Channel Mode == 1053 1053 1054 1054 ... ... @@ -1066,6 +1066,7 @@ 1066 1066 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 1067 1067 1068 1068 1052 + 1069 1069 == 7.19 Eight Channel Mode == 1070 1070 1071 1071 Feature: Get or Set eight channels mode,Only for US915,AU915,CN470. ... ... @@ -1083,6 +1083,7 @@ 1083 1083 ))) 1084 1084 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1085 1085 1070 + 1086 1086 (% style="color:blue" %)**Downlink Command: 0x24** 1087 1087 1088 1088 Format: Command Code (0x24) followed by 1 bytes channel value. ... ... @@ -1094,6 +1094,7 @@ 1094 1094 1095 1095 1096 1096 1082 + 1097 1097 == 7.20 Get or Set RXwindows1 timeout == 1098 1098 1099 1099 ... ... @@ -1144,6 +1144,7 @@ 1144 1144 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1145 1145 1146 1146 1133 + 1147 1147 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1148 1148 1149 1149 ... ... @@ -1160,6 +1160,7 @@ 1160 1160 ))) 1161 1161 |(% style="width:183px" %)AT+DWELLT=0|(% style="width:179px" %)Set uplinkdwelltime|(% style="width:131px" %)OK 1162 1162 1150 + 1163 1163 (% style="color:blue" %)**Downlink Command: 0x25** 1164 1164 1165 1165 Format: Command Code (0x25) followed by 1 bytes state value. ... ... @@ -1171,6 +1171,7 @@ 1171 1171 1172 1172 1173 1173 1162 + 1174 1174 == 7.23 Set Packet Receiving Response Level == 1175 1175 1176 1176 ... ... @@ -1186,6 +1186,7 @@ 1186 1186 * **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. 1187 1187 1188 1188 1178 + 1189 1189 Case Analyes: 1190 1190 1191 1191 * For Class A devices, AT+RPL=0 is ok. that is defaut settings in software. ... ... @@ -1193,6 +1193,7 @@ 1193 1193 * 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. 1194 1194 1195 1195 1186 + 1196 1196 (% style="color:blue" %)**AT Command: AT+RPL** 1197 1197 1198 1198 (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) ... ... @@ -1203,6 +1203,7 @@ 1203 1203 ))) 1204 1204 |(% style="width:160px" %)AT+RPL=0|(% style="width:263px" %)Set packet receiving response level|(% style="width:109px" %)OK 1205 1205 1197 + 1206 1206 (% style="color:blue" %)**Downlink Command: 0x21** 1207 1207 1208 1208 Format: Command Code (0x21) followed by 1 bytes level value. ... ... @@ -1214,6 +1214,7 @@ 1214 1214 1215 1215 1216 1216 1209 + 1217 1217 == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) == 1218 1218 1219 1219 ... ... @@ -1231,6 +1231,7 @@ 1231 1231 OK 1232 1232 ))) 1233 1233 1227 + 1234 1234 (% style="color:blue" %)**Downlink Command: 0x33** 1235 1235 1236 1236 Format: Command Code (0x33) followed by 2 bytes mode value. ... ... @@ -1242,6 +1242,7 @@ 1242 1242 1243 1243 1244 1244 1239 + 1245 1245 == 7.25 Device offline rejoining (LWS007) == 1246 1246 1247 1247 ... ... @@ -1278,6 +1278,7 @@ 1278 1278 OK 1279 1279 ))) 1280 1280 1276 + 1281 1281 (% style="color:blue" %)**Downlink Command: 0x33** 1282 1282 1283 1283 Format: Command Code (0x32) followed by 2 bytes mode value. ... ... @@ -1288,6 +1288,7 @@ 1288 1288 1289 1289 1290 1290 1287 + 1291 1291 == 7.26 Request the server to send an ACK == 1292 1292 1293 1293 ... ... @@ -1306,6 +1306,7 @@ 1306 1306 ))) 1307 1307 1308 1308 1306 + 1309 1309 == 7.27 Adjust network rejoining interval == 1310 1310 1311 1311 ... ... @@ -1323,6 +1323,7 @@ 1323 1323 Set the ReJoin data transmission interval to 60000ms = 60 seconds 1324 1324 ))) 1325 1325 1324 + 1326 1326 (% style="color:blue" %)**Downlink Command: 0x26** 1327 1327 1328 1328 Format: Command Code (0x26) followed by 2 bytes mode value. ... ... @@ -1334,24 +1334,22 @@ 1334 1334 1335 1335 1336 1336 1336 + 1337 1337 = 8. AT Commands Combination = 1338 1338 1339 - 1340 1340 == 8.1 Set a fix RX2DR for downlink window == 1341 1341 1341 +* **AT+ADR=0 **~-~-> Disable ADR first 1342 +* **AT+RX2DR=xxxx** ~-~-> Set xxxx to your wanted DataRate 1342 1342 1343 -* **AT+ADR=0 ** **~-~->** Disable ADR first 1344 -* **AT+RX2DR=xxxx** **~-~->** Set xxxx to your wanted DataRate 1345 - 1346 - 1347 - 1348 1348 == 8.2 Use Downlink Command to set a fix uplink DR == 1349 1349 1350 1350 1351 1351 (% style="color:blue" %)**Downlink Command: 0x22000500** 1352 1352 1353 -**Same as:** 1354 1354 1350 +Same as: 1351 + 1355 1355 * AT+ADR=0 [[Reference>>||anchor="H7.1AdaptiveDataRate"]] 1356 1356 * AT+DR=5 [[Reference>>||anchor="H7.4DataRate"]] 1357 -* AT+TXP=0 1354 +* AT+TXP=0 [[Reference>>||anchor="H7.14TransmitPower"]]