Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Bei Jinggeng on 2025/01/16 11:36
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. Xiaoling1 +XWiki.Bei - Content
-
... ... @@ -109,7 +109,6 @@ 109 109 * Packet engine up to 256 bytes with CRC 110 110 111 111 112 - 113 113 == 1.3 Features == 114 114 115 115 ... ... @@ -123,7 +123,6 @@ 123 123 * Support Interrupt uplink (Since hardware version v1.2) 124 124 125 125 126 - 127 127 == 1.4 Applications == 128 128 129 129 ... ... @@ -135,7 +135,6 @@ 135 135 * Smart Factory 136 136 137 137 138 - 139 139 == 1.5 Firmware Change log == 140 140 141 141 ... ... @@ -544,10 +544,10 @@ 544 544 545 545 ~* For all other bands: max 51 bytes for each uplink. 546 546 544 +(% style="color:red" %)*** When AT+DATAUP=1, the maximum number of segments is 15, and the maximum total number of bytes is 1500;** 547 547 548 -(% style="color:red" %)** When AT+DATAUP=1, the maximum number of segmentsis15,and theaximum totalnumberofbytesis1500;**546 +(% style="color:red" %)** When AT+DATAUP=1 and AT+ADR=0, the maximum number of bytes of each payload is determined by the DR value. (Since v1.4.0)** 549 549 550 -(% style="color:red" %)** When AT+DATAUP=1 and AT+ADR=0, the maximum number of bytes of each payload is determined by the DR value. (Since v1.4.0)** 551 551 552 552 553 553 ... ... @@ -586,26 +586,8 @@ 586 586 == 3.4 Uplink Payload == 587 587 588 588 589 -(% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:520px" %) 590 -|(% style="width:90px" %)((( 591 -Size(bytes) 592 -)))|(% style="width:114px" %)1|(% style="width:353px" %)((( 593 -Length depends on the return from the commands 594 -))) 595 -|(% style="width:90px" %)((( 596 -Value 597 -)))|(% style="width:114px" %)((( 598 -PAYLOAD_VER 599 -)))|(% style="width:353px" %)((( 600 -If the valid payload is too long and exceed the maximum 586 +(% aria-label="image-20220606110929-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220606110929-1.png||data-widget="image"]](% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]] 601 601 602 -support payload length in server, server will show payload not 603 - 604 -provided in the LoRaWAN server. 605 -))) 606 - 607 -(% style="background-image:url(http://wiki.dragino.com/xwiki/webjars/wiki%3Axwiki/application-ckeditor-webjar/1.61/plugins/widget/images/handle.png); background:rgba(220,220,220,0.5); display:none" %)[[image:data:image/gif;base64,R0lGODlhAQABAPABAP///wAAACH5BAEKAAAALAAAAAABAAEAAAICRAEAOw==||draggable="true" height="15" role="presentation" title="Click and drag to move" width="15"]] 608 - 609 609 (% title="Click and drag to resize" %) 610 610 611 611 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. ... ... @@ -667,7 +667,7 @@ 667 667 668 668 669 669 ((( 670 -This command is used to configure the RS485 devices; they won't be used during sampling. Max Length of AT+CFGDEV is **40 bytes**.649 +This command is used to configure the RS485 devices; they won't be used during sampling. 671 671 ))) 672 672 673 673 ((( ... ... @@ -814,16 +814,14 @@ 814 814 ))) 815 815 816 816 817 - **1 ) Add the interrupt flag at the highest bit of the Payver byte, that is, Byte7 of the first byte. (Since v1.4.0)**796 +1 ) Add the interrupt flag at the highest bit of the Payver byte, that is, Byte7 of the first byte. (Since v1.4.0) 818 818 819 - 820 820 [[image:image-20220824145428-2.png||height="168" width="1300"]] 821 821 822 822 801 +2 ) if the data intercepted by AT+DATACUT or AT+MBFUN is empty, it will display NULL, and the payload will be filled with n FFs. 823 823 824 -**2 ) if the data intercepted by AT+DATACUT or AT+MBFUN is empty, it will display NULL, and the payload will be filled with n FFs.** 825 825 826 - 827 827 [[image:image-20220824145428-3.png||height="308" width="1200"]] 828 828 829 829 ... ... @@ -949,10 +949,8 @@ 949 949 950 950 ))) 951 951 952 -(% aria-label="image-20220602165351-6.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-6.png||data-widget="image"]] 929 +(% aria-label="image-20220602165351-6.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-6.png||data-widget="image"]](% title="Click and drag to resize" %) 953 953 954 -(% title="Click and drag to resize" %) 955 - 956 956 (% aria-label="image-20220602165351-7.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602165351-7.png||data-widget="image"]](% title="Click and drag to resize" %) 957 957 958 958 ... ... @@ -1149,10 +1149,15 @@ 1149 1149 1150 1150 ((( 1151 1151 Set the Rs485 serial communication parameters: 1127 + 1128 + 1152 1152 ))) 1153 1153 1154 -((( 1155 -(% style="color:#037691" %)**AT Command:** 1131 +* ((( 1132 +(% style="color:#037691" %)** AT Command:** 1133 + 1134 + 1135 + 1156 1156 ))) 1157 1157 1158 1158 ((( ... ... @@ -1159,7 +1159,7 @@ 1159 1159 * Set Baud Rate 1160 1160 ))) 1161 1161 1162 -(% style="color:#4472c4" %)** 1142 +(% style="color:#4472c4" %)** AT+BAUDR=9600** (%%) ~/~/ Options: (200~~115200) When using low baud rate or receiving multiple bytes, you need to use AT+CMDDL to increase the receive timeout (the default receive timeout is 400ms), otherwise data will be lost 1163 1163 1164 1164 1165 1165 ((( ... ... @@ -1166,7 +1166,7 @@ 1166 1166 * Set UART Parity 1167 1167 ))) 1168 1168 1169 -(% style="color:#4472c4" %)** 1149 +(% style="color:#4472c4" %)** AT+PARITY=0** (%%) ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity 1170 1170 1171 1171 1172 1172 ((( ... ... @@ -1173,18 +1173,21 @@ 1173 1173 * Set STOPBIT 1174 1174 ))) 1175 1175 1176 -(% style="color:#4472c4" %)** 1156 +(% style="color:#4472c4" %)** AT+STOPBIT=0** (%%) ~/~/ Option: 0 for 1bit; 1 for 1.5 bit ; 2 for 2 bits 1177 1177 1178 1178 1179 -((( 1180 -(% style="color:#037691" %)**Downlink Payload:** 1159 + 1160 +* ((( 1161 +(% style="color:#037691" %)** Downlink Payload:** 1181 1181 ))) 1182 1182 1183 1183 ((( 1184 -(% style="color:#4472c4" %)** 1165 +(% style="color:#4472c4" %)** A7 01 aa bb**: (%%) Same AT+BAUDR=hex(aa bb)*100 1185 1185 ))) 1186 1186 1187 1187 ((( 1169 + 1170 + 1188 1188 **Example:** 1189 1189 ))) 1190 1190 ... ... @@ -1204,26 +1204,9 @@ 1204 1204 ))) 1205 1205 1206 1206 1207 -==== (% style="color:blue" %)**Configure Databit (Since Version 1.4.0)**(%%) ==== 1208 1208 1209 -* ((( 1210 -(% style="color:#037691" %)** AT Command:** 1211 -))) 1212 1212 1213 -**~ AT+DATABIT=7 **~/~/ Set the data bits to 7 1214 1214 1215 -**~ AT+DATABIT=8 **~/~/ Set the data bits to 8 1216 - 1217 -* ((( 1218 -(% style="color:#037691" %)**Downlink Payload:** 1219 -))) 1220 - 1221 -**~ A7 04 07**: Same as AT+DATABIT=7 1222 - 1223 -**~ A7 04 08**: Same as AT+DATABIT=8 1224 - 1225 - 1226 - 1227 1227 ==== (% style="color:blue" %)**Encrypted payload**(%%) ==== 1228 1228 1229 1229 ((( ... ... @@ -1299,17 +1299,20 @@ 1299 1299 1300 1300 (% style="color:#4472c4" %)** AT+RPL=5** (%%) ~/~/ After receiving the package from the server, it will immediately upload the content of the package to the server, the port number is 100. 1301 1301 1268 + 1302 1302 Example:**aa xx xx xx xx** ~/~/ aa indicates whether the configuration has changed, 00 is yes, 01 is no; xx xx xx xx are the bytes sent. 1303 1303 1304 1304 1305 1305 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173747-6.png?width=1124&height=165&rev=1.1||alt="image-20220823173747-6.png"]] 1306 1306 1307 -For example, sending 11 22 33 44 55 66 77 will return invalid configuration 00 11 22 33 44 55 66 77. 1308 1308 1309 1309 1276 +For example, sending 11 22 33 44 55 66 77 will return invalid configuration 00 11 22 33 44 55 66 77. 1310 1310 1278 + 1311 1311 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173833-7.png?width=1124&height=149&rev=1.1||alt="image-20220823173833-7.png"]] 1312 1312 1281 + 1313 1313 For example, if 01 00 02 58 is issued, a valid configuration of 01 01 00 02 58 will be returned. 1314 1314 1315 1315 ... ... @@ -1351,7 +1351,7 @@ 1351 1351 (% style="color:#037691" %)**Downlink Payload:** 1352 1352 ))) 1353 1353 1354 -(% style="color:#4472c4" %)** A6 aa bb bb ** (%%) ~/~/ 1323 +(% style="color:#4472c4" %)** A6 aa bb bb ** (%%) ~/~/same as AT+RXMODE=aa,bb 1355 1355 1356 1356 [[image:image-20220824144240-1.png]] 1357 1357 ... ... @@ -1445,8 +1445,6 @@ 1445 1445 1446 1446 ((( 1447 1447 RS485-LN will capture both and send the uplink: (% style="background-color:#ffc000" %)01 03 00 00 00 02 c4 0b (% style="background-color:green" %)01 03 04 00 00 00 00 fa 33 1448 - 1449 - 1450 1450 ))) 1451 1451 1452 1452 ((( ... ... @@ -1468,7 +1468,7 @@ 1468 1468 == 3.7 Buttons == 1469 1469 1470 1470 1471 -(% border="1 .5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)1438 +(% border="1" cellspacing="10" style="background-color:#f7faff; width:430px" %) 1472 1472 |=(% style="width: 50px;" %)**Button**|=(% style="width: 361px;" %)**Feature** 1473 1473 |(% style="width:50px" %)**ACT**|(% style="width:361px" %)If RS485 joined in network, press this button for more than 1 second, RS485 will upload a packet, and the SYS LED will give a (% style="color:blue" %)**Blue blink** 1474 1474 |(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485 ... ... @@ -1475,17 +1475,15 @@ 1475 1475 |(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1476 1476 1477 1477 1478 - 1479 1479 == 3.8 LEDs == 1480 1480 1481 1481 1482 -(% border="1 .5" cellspacing="4" style="background-color:#ffffcc; width:430px" %)1448 +(% border="1" cellspacing="10" style="background-color:#f7faff; width:430px" %) 1483 1483 |=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature** 1484 1484 |**PWR**|Always on if there is power 1485 1485 |**SYS**|After device is powered on, the SYS will (% style="color:green" %)**fast blink in GREEN**(%%) for 5 times, means RS485-LN start to join LoRaWAN network. If join success, SYS will be (% style="color:green" %)**on GREEN for 5 seconds** (%%)**. **SYS will (% style="color:green" %)**blink Blue**(%%) on every upload and (% style="color:green" %)**blink Green**(%%) once receive a downlink message. 1486 1486 1487 1487 1488 - 1489 1489 = 4. Case Study = 1490 1490 1491 1491 ... ... @@ -1731,7 +1731,6 @@ 1731 1731 * (% style="color:red" %)**KZ865**(%%): frequency bands KZ865 1732 1732 1733 1733 1734 - 1735 1735 = 9.Packing Info = 1736 1736 1737 1737 ... ... @@ -1749,7 +1749,6 @@ 1749 1749 * Weight / pcs : 170g 1750 1750 1751 1751 1752 - 1753 1753 = 10. FCC Caution for RS485LN-US915 = 1754 1754 1755 1755