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 ... ... @@ -330,6 +330,7 @@ 330 330 ))) 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 327 + 333 333 == 5.2 Application Key == 334 334 335 335 ... ... @@ -346,6 +346,7 @@ 346 346 ))) 347 347 |(% 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 348 348 344 + 349 349 == 5.3 Application Session Key == 350 350 351 351 ... ... @@ -364,6 +364,7 @@ 364 364 OK 365 365 ))) 366 366 363 + 367 367 == 5.4 Device Address == 368 368 369 369 ... ... @@ -382,6 +382,7 @@ 382 382 ))) 383 383 |(% style="width:192px" %)AT+DADDR=A8 40 41 FF|(% style="width:241px" %)Set the Application Session Key.|(% style="width:359px" %)OK 384 384 382 + 385 385 == 5.5 Device EUI == 386 386 387 387 ... ... @@ -400,6 +400,7 @@ 400 400 OK 401 401 ))) 402 402 401 + 403 403 == 5.6 Network ID == 404 404 405 405 ... ... @@ -416,6 +416,7 @@ 416 416 ))) 417 417 |(% style="width:191px" %)AT+NWKID=A8 40 41 FF|(% style="width:153px" %)Set the Network ID.|(% style="width:101px" %)OK 418 418 418 + 419 419 == 5.7 Network Session Key == 420 420 421 421 ... ... @@ -432,6 +432,7 @@ 432 432 ))) 433 433 |(% 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 434 434 435 + 435 435 = 6. Joining and sending date on LoRaWAN network = 436 436 437 437 ... ... @@ -465,6 +465,7 @@ 465 465 * Example 2: Downlink Payload: 0500 ~/~/ Set AT+CFM=0 466 466 467 467 469 + 468 468 === 6.1.2 AT+CFM command since DR-LWS007 software stack === 469 469 470 470 ... ... @@ -511,6 +511,7 @@ 511 511 * Example 2: Downlink Payload: 05000700 ~/~/ Set AT+CFM=0,7,0 512 512 513 513 516 + 514 514 == 6.2 Confirm Status == 515 515 516 516 ... ... @@ -526,6 +526,7 @@ 526 526 OK 527 527 ))) 528 528 532 + 529 529 == 6.3 Join LoRa® Network == 530 530 531 531 ... ... @@ -543,6 +543,7 @@ 543 543 While Error in format, return AT_BUSY_ERROR 544 544 ))) 545 545 550 + 546 546 == 6.4 LoRa® Network Join Mode == 547 547 548 548 ... ... @@ -570,6 +570,7 @@ 570 570 * **Example 2:** Downlink Payload: **2001** ~/~/ Set AT+NJM=1 571 571 572 572 578 + 573 573 == 6.5 LoRa® Network Join Status == 574 574 575 575 ... ... @@ -585,6 +585,7 @@ 585 585 OK 586 586 ))) 587 587 594 + 588 588 == 6.6 Print Last Received Data in Raw Format == 589 589 590 590 ... ... @@ -600,6 +600,7 @@ 600 600 OK 601 601 ))) 602 602 610 + 603 603 == 6.7 Print Last Received Data in Binary Format == 604 604 605 605 ... ... @@ -615,6 +615,7 @@ 615 615 OK 616 616 ))) 617 617 626 + 618 618 == 6.8 Send Text Data == 619 619 620 620 ... ... @@ -634,6 +634,7 @@ 634 634 635 635 ))) 636 636 646 + 637 637 == 6.9 Send Hexadecimal Data == 638 638 639 639 ... ... @@ -652,6 +652,7 @@ 652 652 653 653 ))) 654 654 665 + 655 655 = 7. LoRaWAN network management = 656 656 657 657 ... ... @@ -682,6 +682,7 @@ 682 682 * **Example 2**: Downlink Payload: **2200FFFF** ~/~/ Set AT+ADR=0. 683 683 684 684 696 + 685 685 == 7.2 LoRa® Class == 686 686 687 687 ... ... @@ -700,6 +700,7 @@ 700 700 701 701 ))) 702 702 715 + 703 703 == 7.3 Duty Cycle Setting == 704 704 705 705 ... ... @@ -718,6 +718,7 @@ 718 718 719 719 ))) 720 720 734 + 721 721 == 7.4 Data Rate == 722 722 723 723 ... ... @@ -744,6 +744,7 @@ 744 744 * **Example 2**: Downlink Payload: **220000FF** ~/~/ Set AT+DR=0. 745 745 746 746 761 + 747 747 == 7.5 Frame Counter Downlink == 748 748 749 749 ... ... @@ -762,6 +762,7 @@ 762 762 OK 763 763 ))) 764 764 780 + 765 765 == 7.6 Frame Counter Uplink == 766 766 767 767 Feature: Get or Set the Frame Counter Uplink. ... ... @@ -779,6 +779,7 @@ 779 779 780 780 ))) 781 781 798 + 782 782 == 7.7 Join Accept Delay1 == 783 783 784 784 ... ... @@ -797,6 +797,7 @@ 797 797 798 798 ))) 799 799 817 + 800 800 == 7.8 Join Accept Delay2 == 801 801 802 802 Feature: Get or Set the Join Accept Delay between the end of the Tx and the Join Rx Window 2 in ms. ... ... @@ -814,6 +814,7 @@ 814 814 815 815 ))) 816 816 835 + 817 817 == 7.9 Public Network Mode == 818 818 819 819 ... ... @@ -841,6 +841,7 @@ 841 841 ))) 842 842 |(% style="width:166px" %)AT+PNM=0|(% style="width:225px" %)Set to use private network autoset syncword=0x12|(% style="width:272px" %) 843 843 863 + 844 844 == 7.10 Receive Delay1 == 845 845 846 846 ... ... @@ -860,6 +860,7 @@ 860 860 ))) 861 861 862 862 883 + 863 863 == 7.11 Receive Delay2 == 864 864 865 865 ... ... @@ -879,6 +879,7 @@ 879 879 ))) 880 880 881 881 903 + 882 882 == 7.12 Rx2 Window Data Rate == 883 883 884 884 ... ... @@ -898,6 +898,7 @@ 898 898 ))) 899 899 900 900 923 + 901 901 == 7.13 Rx2 Window Frequency == 902 902 903 903 ... ... @@ -917,6 +917,7 @@ 917 917 ))) 918 918 919 919 943 + 920 920 == 7.14 Transmit Power == 921 921 922 922 ... ... @@ -944,6 +944,7 @@ 944 944 945 945 946 946 971 + 947 947 == 7.15 RSSI of the Last Received Packet == 948 948 949 949 ... ... @@ -960,6 +960,7 @@ 960 960 ))) 961 961 962 962 988 + 963 963 == 7.16 SNR of the Last Received Packet == 964 964 965 965 ... ... @@ -976,6 +976,7 @@ 976 976 ))) 977 977 978 978 1005 + 979 979 == 7.17 Application Port == 980 980 981 981 ... ... @@ -992,6 +992,7 @@ 992 992 ))) 993 993 |(% style="width:157px" %)AT+PORT=21|(% style="width:204px" %)Set the application port|(% style="width:135px" %)OK 994 994 1022 + 995 995 (% style="color:blue" %)**Downlink Command: 0x23** 996 996 997 997 Format: Command Code (0x23) followed by 1 bytes port value. ... ... @@ -1003,6 +1003,7 @@ 1003 1003 1004 1004 1005 1005 1034 + 1006 1006 == 7.18 Single Channel Mode == 1007 1007 1008 1008 ... ... @@ -1020,6 +1020,7 @@ 1020 1020 |(% style="width:182px" %)AT+CHS=868100000|(% style="width:295px" %)Set Frequency for Single Channel Mode|(% style="width:122px" %)OK 1021 1021 1022 1022 1052 + 1023 1023 == 7.19 Eight Channel Mode == 1024 1024 1025 1025 Feature: Get or Set eight channels mode,Only for US915,AU915,CN470. ... ... @@ -1037,6 +1037,7 @@ 1037 1037 ))) 1038 1038 |(% style="width:160px" %)AT+CHE=1|(% style="width:198px" %)Set eight channels mode|(% style="width:349px" %)OK 1039 1039 1070 + 1040 1040 (% style="color:blue" %)**Downlink Command: 0x24** 1041 1041 1042 1042 Format: Command Code (0x24) followed by 1 bytes channel value. ... ... @@ -1048,6 +1048,7 @@ 1048 1048 1049 1049 1050 1050 1082 + 1051 1051 == 7.20 Get or Set RXwindows1 timeout == 1052 1052 1053 1053 ... ... @@ -1098,6 +1098,7 @@ 1098 1098 |(% style="width:190px" %)AT+RX2WTO=20|(% style="width:199px" %)Set RXwindows2 timeout|(% style="width:104px" %)OK 1099 1099 1100 1100 1133 + 1101 1101 == 7.22 Setting up uplinkdwelltime (as923, au915) == 1102 1102 1103 1103 ... ... @@ -1114,6 +1114,7 @@ 1114 1114 ))) 1115 1115 |(% style="width:183px" %)AT+DWELLT=0|(% style="width:179px" %)Set uplinkdwelltime|(% style="width:131px" %)OK 1116 1116 1150 + 1117 1117 (% style="color:blue" %)**Downlink Command: 0x25** 1118 1118 1119 1119 Format: Command Code (0x25) followed by 1 bytes state value. ... ... @@ -1125,6 +1125,7 @@ 1125 1125 1126 1126 1127 1127 1162 + 1128 1128 == 7.23 Set Packet Receiving Response Level == 1129 1129 1130 1130 ... ... @@ -1140,6 +1140,7 @@ 1140 1140 * **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. 1141 1141 1142 1142 1178 + 1143 1143 Case Analyes: 1144 1144 1145 1145 * For Class A devices, AT+RPL=0 is ok. that is defaut settings in software. ... ... @@ -1147,6 +1147,7 @@ 1147 1147 * 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. 1148 1148 1149 1149 1186 + 1150 1150 (% style="color:blue" %)**AT Command: AT+RPL** 1151 1151 1152 1152 (% border="1" style="background-color:#ffffcc; color:green; width:536.222px" %) ... ... @@ -1157,6 +1157,7 @@ 1157 1157 ))) 1158 1158 |(% style="width:160px" %)AT+RPL=0|(% style="width:263px" %)Set packet receiving response level|(% style="width:109px" %)OK 1159 1159 1197 + 1160 1160 (% style="color:blue" %)**Downlink Command: 0x21** 1161 1161 1162 1162 Format: Command Code (0x21) followed by 1 bytes level value. ... ... @@ -1168,6 +1168,7 @@ 1168 1168 1169 1169 1170 1170 1209 + 1171 1171 == 7.24 Controls NBTrans in unconfirmed uplink mode(LWS007 NBTrans:Set retransmission packets) == 1172 1172 1173 1173 ... ... @@ -1185,6 +1185,7 @@ 1185 1185 OK 1186 1186 ))) 1187 1187 1227 + 1188 1188 (% style="color:blue" %)**Downlink Command: 0x33** 1189 1189 1190 1190 Format: Command Code (0x33) followed by 2 bytes mode value. ... ... @@ -1196,6 +1196,7 @@ 1196 1196 1197 1197 1198 1198 1239 + 1199 1199 == 7.25 Device offline rejoining (LWS007) == 1200 1200 1201 1201 ... ... @@ -1232,6 +1232,7 @@ 1232 1232 OK 1233 1233 ))) 1234 1234 1276 + 1235 1235 (% style="color:blue" %)**Downlink Command: 0x33** 1236 1236 1237 1237 Format: Command Code (0x32) followed by 2 bytes mode value. ... ... @@ -1242,6 +1242,7 @@ 1242 1242 1243 1243 1244 1244 1287 + 1245 1245 == 7.26 Request the server to send an ACK == 1246 1246 1247 1247 ... ... @@ -1260,6 +1260,7 @@ 1260 1260 ))) 1261 1261 1262 1262 1306 + 1263 1263 == 7.27 Adjust network rejoining interval == 1264 1264 1265 1265 ... ... @@ -1277,6 +1277,7 @@ 1277 1277 Set the ReJoin data transmission interval to 60000ms = 60 seconds 1278 1278 ))) 1279 1279 1324 + 1280 1280 (% style="color:blue" %)**Downlink Command: 0x26** 1281 1281 1282 1282 Format: Command Code (0x26) followed by 2 bytes mode value. ... ... @@ -1288,6 +1288,7 @@ 1288 1288 1289 1289 1290 1290 1336 + 1291 1291 = 8. AT Commands Combination = 1292 1292 1293 1293 ... ... @@ -1294,11 +1294,12 @@ 1294 1294 == 8.1 Set a fix RX2DR for downlink window == 1295 1295 1296 1296 1297 -* **AT+ADR=0 1343 +* **AT+ADR=0 ** **~-~->** Disable ADR first 1298 1298 * **AT+RX2DR=xxxx** **~-~->** Set xxxx to your wanted DataRate 1299 1299 1300 1300 1301 1301 1348 + 1302 1302 == 8.2 Use Downlink Command to set a fix uplink DR == 1303 1303 1304 1304