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
-
... ... @@ -28,7 +28,7 @@ 28 28 29 29 30 30 31 -= 1. 31 += 1.Introduction = 32 32 33 33 == 1.1 What is RS485-LN RS485 to LoRaWAN Converter == 34 34 ... ... @@ -94,6 +94,7 @@ 94 94 * Automatic RF Sense and CAD with ultra-fast AFC. 95 95 * Packet engine up to 256 bytes with CRC 96 96 97 + 97 97 == 1.3 Features == 98 98 99 99 ... ... @@ -106,6 +106,7 @@ 106 106 * Support Modbus protocol 107 107 * Support Interrupt uplink (Since hardware version v1.2) 108 108 110 + 109 109 == 1.4 Applications == 110 110 111 111 ... ... @@ -116,6 +116,7 @@ 116 116 * Smart Cities 117 117 * Smart Factory 118 118 121 + 119 119 == 1.5 Firmware Change log == 120 120 121 121 ... ... @@ -122,6 +122,7 @@ 122 122 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] 123 123 124 124 128 + 125 125 == 1.6 Hardware Change log == 126 126 127 127 ... ... @@ -281,53 +281,44 @@ 281 281 282 282 To use RS485-LN to read data from RS485 sensors, connect the RS485-LN A/B traces to the sensors. And user need to make sure RS485-LN use the match UART setting to access the sensors. The related commands for UART settings are: 283 283 284 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 285 -|=(% style="width: 126px; background-color:#D9E2F3;color:#0070C0" %)((( 288 + 289 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %) 290 +|=(% style="width: 110px;" %)((( 286 286 **AT Commands** 287 -)))|=(% style="width: 1 87px;background-color:#D9E2F3;color:#0070C0" %)(((292 +)))|=(% style="width: 210px;" %)((( 288 288 **Description** 289 -)))|=(% style="width: 19 7px;background-color:#D9E2F3;color:#0070C0" %)(((294 +)))|=(% style="width: 190px;" %)((( 290 290 **Example** 291 291 ))) 292 -|(% style="width:126px" %)((( 293 - 294 - 295 -((( 297 +|(% style="width:110px" %)((( 296 296 AT+BAUDR 297 -))) 298 -)))|(% style="width:177px" %)((( 299 +)))|(% style="width:190px" %)((( 299 299 Set the baud rate (for RS485 connection). Default Value is: 9600. 300 -)))|(% style="width:19 3px" %)(((301 +)))|(% style="width:190px" %)((( 301 301 ((( 302 302 AT+BAUDR=9600 303 303 ))) 304 304 305 305 ((( 306 -Options: (1200,2400,4800, 307 - 308 -14400,19200,115200) 307 +Options: (1200,2400,4800,14400,19200,115200) 309 309 ))) 310 310 ))) 311 -|(% style="width:1 26px" %)(((310 +|(% style="width:110px" %)((( 312 312 AT+PARITY 313 -)))|(% style="width:1 77px" %)(((312 +)))|(% style="width:190px" %)((( 314 314 Set UART parity (for RS485 connection) 315 -)))|(% style="width:19 3px" %)(((314 +)))|(% style="width:190px" %)((( 316 316 ((( 317 317 AT+PARITY=0 318 318 ))) 319 319 320 320 ((( 321 -Option: 0: no parity, 322 - 323 -1: odd parity, 324 - 325 -2: even parity 320 +Option: 0: no parity, 1: odd parity, 2: even parity 326 326 ))) 327 327 ))) 328 -|(% style="width:1 26px" %)(((323 +|(% style="width:110px" %)((( 329 329 AT+STOPBIT 330 -)))|(% style="width:1 77px" %)(((325 +)))|(% style="width:190px" %)((( 331 331 ((( 332 332 Set serial stopbit (for RS485 connection) 333 333 ))) ... ... @@ -335,7 +335,7 @@ 335 335 ((( 336 336 337 337 ))) 338 -)))|(% style="width:19 3px" %)(((333 +)))|(% style="width:190px" %)((( 339 339 ((( 340 340 AT+STOPBIT=0 for 1bit 341 341 ))) ... ... @@ -354,12 +354,16 @@ 354 354 355 355 356 356 ((( 352 +((( 357 357 Some sensors might need to configure before normal operation. User can configure such sensor via PC and RS485 adapter or through RS485-LN AT Commands (% style="color:#4f81bd" %)**AT+CFGDEV**(%%). Each (% style="color:#4f81bd" %)**AT+CFGDEV **(%%)equals to send a RS485 command to sensors. This command will only run when user input it and won't run during each sampling. 354 + 355 + 358 358 ))) 357 +))) 359 359 360 -(% border="1" cellspacing="5" style="background-color:#f 2f2f2; width:510px" %)361 -|=(% style="width: 1 22px;background-color:#D9E2F3;color:#0070C0" %)**AT Commands**|=(% style="width: 198px;background-color:#D9E2F3;color:#0070C0" %)**Description**|=(% style="width: 190px;background-color:#D9E2F3;color:#0070C0" %)**Example**362 -| (% style="width:122px" %)AT+CFGDEV|(% style="width:196px" %)(((359 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %) 360 +|=(% style="width: 110px;" %)**AT Commands**|=(% style="width: 210px;" %)**Description**|=(% style="width: 190px;" %)**Example** 361 +|AT+CFGDEV|(% style="width:110px" %)((( 363 363 ((( 364 364 This command is used to configure the RS485/TTL devices; they won’t be used during sampling. 365 365 ))) ... ... @@ -373,6 +373,7 @@ 373 373 ))) 374 374 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 375 375 375 + 376 376 === 3.3.3 Configure read commands for each sampling === 377 377 378 378 ... ... @@ -403,7 +403,7 @@ 403 403 404 404 (% style="color:#037691" %)**AT+COMMANDx **(%%)**: **This command will be sent to RS485 devices during each sampling, Max command length is 14 bytes. The grammar is: 405 405 406 -(% border="1" style="background-color:# f2f2f2; width:499px" %)406 +(% border="1" style="background-color:#4bacc6; color:white; width:499px" %) 407 407 |(% style="width:496px" %)((( 408 408 **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m** 409 409 ... ... @@ -419,7 +419,7 @@ 419 419 420 420 (% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 100 bytes. 421 421 422 -(% border="1" style="background-color:# f2f2f2; width:510px" %)422 +(% border="1" style="background-color:#4bacc6; color:white; width:510px" %) 423 423 |(% style="width:510px" %)((( 424 424 **AT+DATACUTx=a,b,c** 425 425 ... ... @@ -561,11 +561,11 @@ 561 561 == 3.4 Uplink Payload == 562 562 563 563 564 -(% border="1" cellspacing="5" style="background-color:#f 2f2f2; width:510px" %)565 -|=(% scope="row" style="width: 60px; background-color:#D9E2F3;color:#0070C0" %)(((564 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:500px" %) 565 +|=(% scope="row" style="width: 60px;" %)((( 566 566 Size(bytes) 567 -)))|(% style=" background-color:#d9e2f3; color:#0070c0;width:80px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0;width:360px" %)(((568 - **Length depends on the return from the commands**567 +)))|(% style="width:80px" %)1|(% style="width:360px" %)((( 568 +Length depends on the return from the commands 569 569 ))) 570 570 |=(% style="width: 90px;" %)((( 571 571 Value ... ... @@ -610,6 +610,7 @@ 610 610 ))) 611 611 612 612 613 + 613 613 === 3.5.1 Common Commands === 614 614 615 615 ... ... @@ -755,6 +755,7 @@ 755 755 756 756 757 757 759 + 758 758 ==== (% style="color:blue" %)**Set Payload version**(%%) ==== 759 759 760 760 ... ... @@ -797,6 +797,7 @@ 797 797 798 798 799 799 802 + 800 800 ==== (% style="color:blue" %)**Set RS485 Sampling Commands**(%%) ==== 801 801 802 802 ... ... @@ -881,6 +881,7 @@ 881 881 882 882 883 883 887 + 884 884 ==== (% style="color:blue" %)**Fast command to handle MODBUS device**(%%) ==== 885 885 886 886 ... ... @@ -924,6 +924,7 @@ 924 924 925 925 926 926 931 + 927 927 ==== (% style="color:blue" %)**RS485 command timeout**(%%) ==== 928 928 929 929 ... ... @@ -960,7 +960,7 @@ 960 960 ))) 961 961 962 962 ((( 963 -(% style="color:#4472c4" %)** 0x AA aa bb cc**(%%) Same as: AT+CMDDLaa=hex 968 +(% style="color:#4472c4" %)** 0x AA aa bb cc**(%%) Same as: AT+CMDDLaa=hex(bb cc)*1000 964 964 ))) 965 965 966 966 ((( ... ... @@ -970,11 +970,12 @@ 970 970 ))) 971 971 972 972 ((( 973 -**0xAA 01 0 3E8** ~-~-> Same as **AT+CMDDL1=1000 ms**978 +**0xAA 01 00 01** ~-~-> Same as **AT+CMDDL1=1000 ms** 974 974 ))) 975 975 976 976 977 977 983 + 978 978 ==== (% style="color:blue" %)**Uplink payload mode**(%%) ==== 979 979 980 980 ... ... @@ -1029,6 +1029,7 @@ 1029 1029 1030 1030 1031 1031 1038 + 1032 1032 ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 1033 1033 1034 1034 ... ... @@ -1058,6 +1058,7 @@ 1058 1058 1059 1059 1060 1060 1068 + 1061 1061 ==== (% style="color:blue" %)**Clear RS485 Command**(%%) ==== 1062 1062 1063 1063 ... ... @@ -1106,6 +1106,7 @@ 1106 1106 1107 1107 1108 1108 1117 + 1109 1109 ==== (% style="color:blue" %)**Set Serial Communication Parameters**(%%) ==== 1110 1110 1111 1111 ... ... @@ -1189,7 +1189,7 @@ 1189 1189 1190 1190 1191 1191 1192 -==== (% style="color:blue" %)**Encrypted payload (Since Version 1.4.0)**(%%) ====1201 +==== (% style="color:blue" %)**Encrypted payload**(%%) ==== 1193 1193 1194 1194 ((( 1195 1195 ... ... @@ -1205,9 +1205,10 @@ 1205 1205 1206 1206 1207 1207 1208 -==== (% style="color:blue" %)**Get sensor value(Since Version 1.4.0)**(%%) ==== 1209 1209 1218 +==== (% style="color:blue" %)**Get sensor value**(%%) ==== 1210 1210 1220 + 1211 1211 * ((( 1212 1212 (% style="color:#037691" %)** AT Command:** 1213 1213 ))) ... ... @@ -1218,9 +1218,10 @@ 1218 1218 1219 1219 1220 1220 1221 -==== (% style="color:blue" %)**Resets the downlink packet count(Since Version 1.4.0)**(%%) ==== 1222 1222 1232 +==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ==== 1223 1223 1234 + 1224 1224 * ((( 1225 1225 (% style="color:#037691" %)** AT Command:** 1226 1226 ))) ... ... @@ -1231,9 +1231,10 @@ 1231 1231 1232 1232 1233 1233 1234 -==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches(Since Version 1.4.0)**(%%) ==== 1235 1235 1246 +==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ==== 1236 1236 1248 + 1237 1237 * ((( 1238 1238 (% style="color:#037691" %)** AT Command:** 1239 1239 ))) ... ... @@ -1251,9 +1251,10 @@ 1251 1251 1252 1252 1253 1253 1254 -==== (% style="color:blue" %)**Copy downlink to uplink (Since Version 1.4.0)**(%%) ==== 1255 1255 1267 +==== (% style="color:blue" %)** Copy downlink to uplink **(%%) ==== 1256 1256 1269 + 1257 1257 * ((( 1258 1258 (% style="color:#037691" %)** AT Command:** 1259 1259 ))) ... ... @@ -1275,9 +1275,10 @@ 1275 1275 1276 1276 1277 1277 1278 -==== (% style="color:blue" %)**Query version number and frequency band 、TDC(Since Version 1.4.0)**(%%) ==== 1279 1279 1292 +==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ==== 1280 1280 1294 + 1281 1281 ((( 1282 1282 * (% style="color:#037691" %)**Downlink Payload:** 1283 1283 ... ... @@ -1292,9 +1292,10 @@ 1292 1292 1293 1293 1294 1294 1295 -==== (% style="color:blue" %)** Monitor RS485 communication of other devices(Since Version 1.4.0)**(%%) ==== 1296 1296 1310 +==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ==== 1297 1297 1312 + 1298 1298 * ((( 1299 1299 (% style="color:#037691" %)** AT Command:** 1300 1300 ))) ... ... @@ -1336,32 +1336,34 @@ 1336 1336 To enable the listening mode, use can run the command (% style="color:#4472c4" %)** AT+RXMODE**. 1337 1337 ))) 1338 1338 1354 +((( 1355 + 1356 +))) 1339 1339 1340 - 1341 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 1342 -|=(% style="width: 156px; background-color:#D9E2F3;color:#0070C0" %)((( 1358 +(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %) 1359 +|=(% style="width: 100px;" %)((( 1343 1343 **Command example** 1344 -)))|=(% style="width: 355px;background-color:#D9E2F3;color:#0070C0" %)(((1361 +)))|=(% style="width: 400px;" %)((( 1345 1345 **Function** 1346 1346 ))) 1347 -|(% style="width:1 56px" %)(((1364 +|(% style="width:100px" %)((( 1348 1348 AT+RXMODE=1,10 1349 -)))|(% style="width: 352px" %)(((1366 +)))|(% style="width:400px" %)((( 1350 1350 Enable listening mode 1, if RS485-LN has received more than 10 RS485 commands from the network. RS485-LN will send these commands via LoRaWAN uplinks. 1351 1351 ))) 1352 -|(% style="width:1 56px" %)(((1369 +|(% style="width:100px" %)((( 1353 1353 AT+RXMODE=2,500 1354 -)))|(% style="width: 352px" %)(((1371 +)))|(% style="width:400px" %)((( 1355 1355 Enable listening mode 2, RS485-LN will capture and send a 500ms content once from the first detect of character. Max value is 65535 ms 1356 1356 ))) 1357 -|(% style="width:1 56px" %)(((1374 +|(% style="width:100px" %)((( 1358 1358 AT+RXMODE=0,0 1359 -)))|(% style="width: 352px" %)(((1376 +)))|(% style="width:400px" %)((( 1360 1360 Disable listening mode. This is the default settings. 1361 1361 ))) 1362 -|(% style="width:1 56px" %)(((1379 +|(% style="width:100px" %)((( 1363 1363 1364 -)))|(% style="width: 352px" %)(((1381 +)))|(% style="width:400px" %)((( 1365 1365 A6 aa bb cc same as AT+RXMODE=aa,(bb<<8 | cc) 1366 1366 ))) 1367 1367 ... ... @@ -1409,30 +1409,36 @@ 1409 1409 (% aria-label="image-20220602171200-9.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602171200-9.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"]](% title="Click and drag to resize" %) 1410 1410 ))) 1411 1411 1429 +((( 1430 + 1431 +))) 1412 1412 1413 - 1414 1414 ((( 1434 +((( 1415 1415 (% style="color:red" %)**Notice: Listening mode can work with the default polling mode of RS485-LN. When RS485-LN is in to send the RS485 commands (from AT+COMMANDx), the listening mode will be interrupt for a while.** 1416 1416 ))) 1437 +))) 1417 1417 1418 1418 1419 1419 == 3.7 Buttons == 1420 1420 1421 1421 1422 -(% border="1.5" cellspacing="4" style="background-color:#f 2f2f2; width:430px" %)1423 -|=(% style="width: 50px; background-color:#D9E2F3;color:#0070C0" %)**Button**|=(% style="width: 380px;background-color:#D9E2F3;color:#0070C0" %)**Feature**1424 -|(% 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** 1425 -|(% style="width:50px" %)RST|(% style="width:361px" %)Reboot RS485 1426 -|(% style="width:50px" %)PRO|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1443 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %) 1444 +|=(% style="width: 50px;" %)**Button**|=(% style="width: 380px;" %)**Feature** 1445 +|(% 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** 1446 +|(% style="width:50px" %)**RST**|(% style="width:361px" %)Reboot RS485 1447 +|(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1427 1427 1449 + 1428 1428 == 3.8 LEDs == 1429 1429 1430 1430 1431 -(% border="1.5" cellspacing="4" style="background-color:#f 2f2f2; width:430px" %)1432 -|=(% style="width: 50px; background-color:#D9E2F3;color:#0070C0" %)**LEDs**|=(% style="width: 380px;background-color:#D9E2F3;color:#0070C0" %)**Feature**1433 -|PWR|Always on if there is power 1434 -|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. 1453 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %) 1454 +|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature** 1455 +|**PWR**|Always on if there is power 1456 +|**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. 1435 1435 1458 + 1436 1436 = 4. Case Study = 1437 1437 1438 1438 ... ... @@ -1486,6 +1486,8 @@ 1486 1486 1487 1487 * (% style="color:#037691" %)**AT+NJM=0** 1488 1488 * (% style="color:#037691" %)**ATZ** 1512 + 1513 + 1489 1489 ))) 1490 1490 1491 1491 ... ... @@ -1687,7 +1687,7 @@ 1687 1687 1688 1688 RS485-LN sent below command: 1689 1689 1690 -(% style="color:blue" %)**AT+CFGDEV=01 03 0020 00 01,1**(%%) to RS485 network, and PC is able to get this command and return commands from MTU to show in the serial tool.1715 +(% style="color:blue" %)**AT+CFGDEV=01 03 20 00 01 85 c0,1**(%%) to RS485 network, and PC is able to get this command and return commands from MTU to show in the serial tool. 1691 1691 1692 1692 1693 1693 We can see the output from the Serial port tool to analyze. And check if they are expected result. ... ... @@ -1739,10 +1739,9 @@ 1739 1739 1740 1740 == 6.8 Where to get the decoder for RS485-LN? == 1741 1741 1767 +The decoder for RS485-LN needs to be written by yourself. Because the sensor to which the user is connected is custom, the read device data bytes also need custom parsing, so there is no universal decoder. We can only provide templates for decoders (no intermediate data parsing part involved) 1742 1742 1743 -The decoder for RS485-LN needs to be written by yourself. Because the sensor to which the user is connected is custom, the read device data bytes also need custom parsing, so there is no universal decoder. We can only provide [[templates>>https://github.com/dragino/dragino-end-node-decoder/tree/main/RS485-LN]] for decoders (no intermediate data parsing part involved) 1744 1744 1745 - 1746 1746 = 7. Trouble Shooting = 1747 1747 1748 1748 == 7.1 Downlink doesn't work, how to solve it? == ... ... @@ -1775,9 +1775,10 @@ 1775 1775 * (% style="color:red" %)**RU864**(%%): frequency bands RU864 1776 1776 * (% style="color:red" %)**KZ865**(%%): frequency bands KZ865 1777 1777 1778 -= 9. Packing Info = 1779 1779 1803 += 9.Packing Info = 1780 1780 1805 + 1781 1781 **Package Includes**: 1782 1782 1783 1783 * RS485-LN x 1 ... ... @@ -1791,6 +1791,7 @@ 1791 1791 * Package Size / pcs : 14.5 x 8 x 5 cm 1792 1792 * Weight / pcs : 170g 1793 1793 1819 + 1794 1794 = 10. FCC Caution for RS485LN-US915 = 1795 1795 1796 1796