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. Bei1 +XWiki.Xiaoling - Content
-
... ... @@ -95,6 +95,7 @@ 95 95 * Packet engine up to 256 bytes with CRC 96 96 97 97 98 + 98 98 == 1.3 Features == 99 99 100 100 ... ... @@ -108,6 +108,7 @@ 108 108 * Support Interrupt uplink (Since hardware version v1.2) 109 109 110 110 112 + 111 111 == 1.4 Applications == 112 112 113 113 ... ... @@ -119,6 +119,7 @@ 119 119 * Smart Factory 120 120 121 121 124 + 122 122 == 1.5 Firmware Change log == 123 123 124 124 ... ... @@ -125,7 +125,6 @@ 125 125 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] 126 126 127 127 128 - 129 129 == 1.6 Hardware Change log == 130 130 131 131 ... ... @@ -286,17 +286,17 @@ 286 286 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: 287 287 288 288 289 -(% border="1" cellspacing="5" style="background-color:#fff fcc;color:green;width:510px" %)290 -|=(% style="width: 11 0px;" %)(((291 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 292 +|=(% style="width: 119px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)((( 291 291 **AT Commands** 292 -)))|=(% style="width: 210px;" %)(((294 +)))|=(% style="width: 116px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)((( 293 293 **Description** 294 -)))|=(% style="width: 190px;" %)((( 296 +)))|=(% style="width: 190px;background-color:#D9E2F3;color:#0070C0" %)((( 295 295 **Example** 296 296 ))) 297 -|(% style="width:11 0px" %)(((299 +|(% style="width:119px" %)((( 298 298 AT+BAUDR 299 -)))|(% style="width:1 90px" %)(((301 +)))|(% style="width:116px" %)((( 300 300 Set the baud rate (for RS485 connection). Default Value is: 9600. 301 301 )))|(% style="width:190px" %)((( 302 302 ((( ... ... @@ -307,9 +307,9 @@ 307 307 Options: (1200,2400,4800,14400,19200,115200) 308 308 ))) 309 309 ))) 310 -|(% style="width:11 0px" %)(((312 +|(% style="width:119px" %)((( 311 311 AT+PARITY 312 -)))|(% style="width:1 90px" %)(((314 +)))|(% style="width:116px" %)((( 313 313 Set UART parity (for RS485 connection) 314 314 )))|(% style="width:190px" %)((( 315 315 ((( ... ... @@ -320,9 +320,9 @@ 320 320 Option: 0: no parity, 1: odd parity, 2: even parity 321 321 ))) 322 322 ))) 323 -|(% style="width:11 0px" %)(((325 +|(% style="width:119px" %)((( 324 324 AT+STOPBIT 325 -)))|(% style="width:1 90px" %)(((327 +)))|(% style="width:116px" %)((( 326 326 ((( 327 327 Set serial stopbit (for RS485 connection) 328 328 ))) ... ... @@ -345,6 +345,7 @@ 345 345 ))) 346 346 347 347 350 + 348 348 === 3.3.2 Configure sensors === 349 349 350 350 ... ... @@ -356,9 +356,9 @@ 356 356 ))) 357 357 ))) 358 358 359 -(% border="1" cellspacing="5" style="background-color:#fff fcc;color:green;width:510px" %)360 -|=(% style="width: 1 10px;" %)**AT Commands**|=(% style="width:210px;" %)**Description**|=(% style="width: 190px;" %)**Example**361 -|AT+CFGDEV|(% style="width:1 10px" %)(((362 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 363 +|=(% style="width: 122px; 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** 364 +|(% style="width:122px" %)AT+CFGDEV|(% style="width:196px" %)((( 362 362 ((( 363 363 This command is used to configure the RS485/TTL devices; they won’t be used during sampling. 364 364 ))) ... ... @@ -373,6 +373,7 @@ 373 373 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 374 374 375 375 379 + 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:# 4bacc6;color:white; width:499px" %)410 +(% border="1" style="background-color:#f2f2f2; 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:# 4bacc6;color:white; width:510px" %)426 +(% border="1" style="background-color:#f2f2f2; 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:#fff fcc;color:green;width:500px" %)565 -|=(% scope="row" style="width: 60px;" %)((( 568 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 569 +|=(% scope="row" style="width: 60px;background-color:#D9E2F3;color:#0070C0" %)((( 566 566 Size(bytes) 567 -)))|(% style="width:80px" %)1|(% style="width:360px" %)((( 568 -Length depends on the return from the commands 571 +)))|(% style="background-color:#d9e2f3; color:#0070c0; width:80px" %)**1**|(% style="background-color:#d9e2f3; color:#0070c0; width:360px" %)((( 572 +**Length depends on the return from the commands** 569 569 ))) 570 570 |=(% style="width: 90px;" %)((( 571 571 Value ... ... @@ -1189,7 +1189,7 @@ 1189 1189 1190 1190 1191 1191 1192 -==== (% style="color:blue" %)**Encrypted payload**(%%) ==== 1196 +==== (% style="color:blue" %)**Encrypted payload(Since Version 1.4.0)**(%%) ==== 1193 1193 1194 1194 ((( 1195 1195 ... ... @@ -1205,7 +1205,7 @@ 1205 1205 1206 1206 1207 1207 1208 -==== (% style="color:blue" %)**Get sensor value**(%%) ==== 1212 +==== (% style="color:blue" %)**Get sensor value(Since Version 1.4.0)**(%%) ==== 1209 1209 1210 1210 1211 1211 * ((( ... ... @@ -1218,7 +1218,7 @@ 1218 1218 1219 1219 1220 1220 1221 -==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ==== 1225 +==== (% style="color:blue" %)**Resets the downlink packet count(Since Version 1.4.0)**(%%) ==== 1222 1222 1223 1223 1224 1224 * ((( ... ... @@ -1231,7 +1231,7 @@ 1231 1231 1232 1232 1233 1233 1234 -==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ==== 1238 +==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches(Since Version 1.4.0)**(%%) ==== 1235 1235 1236 1236 1237 1237 * ((( ... ... @@ -1251,7 +1251,7 @@ 1251 1251 1252 1252 1253 1253 1254 -==== (% style="color:blue" %)**Copy downlink to uplink **(%%) ==== 1258 +==== (% style="color:blue" %)**Copy downlink to uplink (Since Version 1.4.0)**(%%) ==== 1255 1255 1256 1256 1257 1257 * ((( ... ... @@ -1275,7 +1275,7 @@ 1275 1275 1276 1276 1277 1277 1278 -==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ==== 1282 +==== (% style="color:blue" %)**Query version number and frequency band 、TDC(Since Version 1.4.0)**(%%) ==== 1279 1279 1280 1280 1281 1281 ((( ... ... @@ -1292,7 +1292,7 @@ 1292 1292 1293 1293 1294 1294 1295 -==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ==== 1299 +==== (% style="color:blue" %)** Monitor RS485 communication of other devices(Since Version 1.4.0)**(%%) ==== 1296 1296 1297 1297 1298 1298 * ((( ... ... @@ -1336,34 +1336,32 @@ 1336 1336 To enable the listening mode, use can run the command (% style="color:#4472c4" %)** AT+RXMODE**. 1337 1337 ))) 1338 1338 1339 -((( 1340 - 1341 -))) 1342 1342 1343 -(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %) 1344 -|=(% style="width: 100px;" %)((( 1344 + 1345 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 1346 +|=(% style="width: 156px; background-color:#D9E2F3;color:#0070C0" %)((( 1345 1345 **Command example** 1346 -)))|=(% style="width: 400px;" %)(((1348 +)))|=(% style="width: 355px; background-color:#D9E2F3;color:#0070C0" %)((( 1347 1347 **Function** 1348 1348 ))) 1349 -|(% style="width:1 00px" %)(((1351 +|(% style="width:156px" %)((( 1350 1350 AT+RXMODE=1,10 1351 -)))|(% style="width: 400px" %)(((1353 +)))|(% style="width:352px" %)((( 1352 1352 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. 1353 1353 ))) 1354 -|(% style="width:1 00px" %)(((1356 +|(% style="width:156px" %)((( 1355 1355 AT+RXMODE=2,500 1356 -)))|(% style="width: 400px" %)(((1358 +)))|(% style="width:352px" %)((( 1357 1357 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 1358 1358 ))) 1359 -|(% style="width:1 00px" %)(((1361 +|(% style="width:156px" %)((( 1360 1360 AT+RXMODE=0,0 1361 -)))|(% style="width: 400px" %)(((1363 +)))|(% style="width:352px" %)((( 1362 1362 Disable listening mode. This is the default settings. 1363 1363 ))) 1364 -|(% style="width:1 00px" %)(((1366 +|(% style="width:156px" %)((( 1365 1365 1366 -)))|(% style="width: 400px" %)(((1368 +)))|(% style="width:352px" %)((( 1367 1367 A6 aa bb cc same as AT+RXMODE=aa,(bb<<8 | cc) 1368 1368 ))) 1369 1369 ... ... @@ -1411,36 +1411,34 @@ 1411 1411 (% 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" %) 1412 1412 ))) 1413 1413 1414 -((( 1415 - 1416 -))) 1417 1417 1417 + 1418 1418 ((( 1419 -((( 1420 1420 (% 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.** 1421 1421 ))) 1422 -))) 1423 1423 1424 1424 1425 1425 == 3.7 Buttons == 1426 1426 1427 1427 1428 -(% border="1.5" cellspacing="4" style="background-color:#fff fcc; width:430px" %)1429 -|=(% style="width: 50px;" %)**Button**|=(% style="width: 380px;" %)**Feature** 1430 -|(% 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**1431 -|(% style="width:50px" %) **RST**|(% style="width:361px" %)Reboot RS4851432 -|(% style="width:50px" %) **PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]]1426 +(% border="1.5" cellspacing="4" style="background-color:#f2f2f2; width:430px" %) 1427 +|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)**Button**|=(% style="width: 380px;background-color:#D9E2F3;color:#0070C0" %)**Feature** 1428 +|(% 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** 1429 +|(% style="width:50px" %)RST|(% style="width:361px" %)Reboot RS485 1430 +|(% style="width:50px" %)PRO|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1433 1433 1434 1434 1433 + 1435 1435 == 3.8 LEDs == 1436 1436 1437 1437 1438 -(% border="1.5" cellspacing="4" style="background-color:#fff fcc; width:430px" %)1439 -|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature** 1440 -| **PWR**|Always on if there is power1441 -| **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.1437 +(% border="1.5" cellspacing="4" style="background-color:#f2f2f2; width:430px" %) 1438 +|=(% style="width: 50px;background-color:#D9E2F3;color:#0070C0" %)**LEDs**|=(% style="width: 380px;background-color:#D9E2F3;color:#0070C0" %)**Feature** 1439 +|PWR|Always on if there is power 1440 +|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. 1442 1442 1443 1443 1443 + 1444 1444 = 4. Case Study = 1445 1445 1446 1446 ... ... @@ -1695,7 +1695,7 @@ 1695 1695 1696 1696 RS485-LN sent below command: 1697 1697 1698 -(% 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.1698 +(% style="color:blue" %)**AT+CFGDEV=01 03 00 20 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. 1699 1699 1700 1700 1701 1701 We can see the output from the Serial port tool to analyze. And check if they are expected result. ... ... @@ -1784,6 +1784,7 @@ 1784 1784 * (% style="color:red" %)**KZ865**(%%): frequency bands KZ865 1785 1785 1786 1786 1787 + 1787 1787 = 9. Packing Info = 1788 1788 1789 1789 ... ... @@ -1801,6 +1801,7 @@ 1801 1801 * Weight / pcs : 170g 1802 1802 1803 1803 1805 + 1804 1804 = 10. FCC Caution for RS485LN-US915 = 1805 1805 1806 1806