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
-
... ... @@ -95,7 +95,6 @@ 95 95 * Packet engine up to 256 bytes with CRC 96 96 97 97 98 - 99 99 == 1.3 Features == 100 100 101 101 ... ... @@ -109,7 +109,6 @@ 109 109 * Support Interrupt uplink (Since hardware version v1.2) 110 110 111 111 112 - 113 113 == 1.4 Applications == 114 114 115 115 ... ... @@ -121,7 +121,6 @@ 121 121 * Smart Factory 122 122 123 123 124 - 125 125 == 1.5 Firmware Change log == 126 126 127 127 ... ... @@ -128,6 +128,7 @@ 128 128 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] 129 129 130 130 128 + 131 131 == 1.6 Hardware Change log == 132 132 133 133 ... ... @@ -288,17 +288,17 @@ 288 288 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: 289 289 290 290 291 -(% border="1" cellspacing="5" style="background-color:#f 2f2f2; width:510px" %)292 -|=(% style="width: 11 9px;background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)(((289 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %) 290 +|=(% style="width: 110px;" %)((( 293 293 **AT Commands** 294 -)))|=(% style="width: 1 16px;background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)(((292 +)))|=(% style="width: 210px;" %)((( 295 295 **Description** 296 -)))|=(% style="width: 190px; background-color:#D9E2F3;color:#0070C0" %)(((294 +)))|=(% style="width: 190px;" %)((( 297 297 **Example** 298 298 ))) 299 -|(% style="width:11 9px" %)(((297 +|(% style="width:110px" %)((( 300 300 AT+BAUDR 301 -)))|(% style="width:1 16px" %)(((299 +)))|(% style="width:190px" %)((( 302 302 Set the baud rate (for RS485 connection). Default Value is: 9600. 303 303 )))|(% style="width:190px" %)((( 304 304 ((( ... ... @@ -309,9 +309,9 @@ 309 309 Options: (1200,2400,4800,14400,19200,115200) 310 310 ))) 311 311 ))) 312 -|(% style="width:11 9px" %)(((310 +|(% style="width:110px" %)((( 313 313 AT+PARITY 314 -)))|(% style="width:1 16px" %)(((312 +)))|(% style="width:190px" %)((( 315 315 Set UART parity (for RS485 connection) 316 316 )))|(% style="width:190px" %)((( 317 317 ((( ... ... @@ -322,9 +322,9 @@ 322 322 Option: 0: no parity, 1: odd parity, 2: even parity 323 323 ))) 324 324 ))) 325 -|(% style="width:11 9px" %)(((323 +|(% style="width:110px" %)((( 326 326 AT+STOPBIT 327 -)))|(% style="width:1 16px" %)(((325 +)))|(% style="width:190px" %)((( 328 328 ((( 329 329 Set serial stopbit (for RS485 connection) 330 330 ))) ... ... @@ -347,7 +347,6 @@ 347 347 ))) 348 348 349 349 350 - 351 351 === 3.3.2 Configure sensors === 352 352 353 353 ... ... @@ -359,9 +359,9 @@ 359 359 ))) 360 360 ))) 361 361 362 -(% border="1" cellspacing="5" style="background-color:#f 2f2f2; width:510px" %)363 -|=(% 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**364 -| (% 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" %)((( 365 365 ((( 366 366 This command is used to configure the RS485/TTL devices; they won’t be used during sampling. 367 367 ))) ... ... @@ -376,7 +376,6 @@ 376 376 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 377 377 378 378 379 - 380 380 === 3.3.3 Configure read commands for each sampling === 381 381 382 382 ... ... @@ -407,7 +407,7 @@ 407 407 408 408 (% 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: 409 409 410 -(% border="1" style="background-color:# f2f2f2; width:499px" %)406 +(% border="1" style="background-color:#4bacc6; color:white; width:499px" %) 411 411 |(% style="width:496px" %)((( 412 412 **AT+COMMANDx=xx xx xx xx xx xx xx xx xx xx xx xx,m** 413 413 ... ... @@ -423,7 +423,7 @@ 423 423 424 424 (% style="color:#037691" %)**AT+DATACUTx **(%%)**: **This command defines how to handle the return from AT+COMMANDx, max return length is 100 bytes. 425 425 426 -(% border="1" style="background-color:# f2f2f2; width:510px" %)422 +(% border="1" style="background-color:#4bacc6; color:white; width:510px" %) 427 427 |(% style="width:510px" %)((( 428 428 **AT+DATACUTx=a,b,c** 429 429 ... ... @@ -565,11 +565,11 @@ 565 565 == 3.4 Uplink Payload == 566 566 567 567 568 -(% border="1" cellspacing="5" style="background-color:#f 2f2f2; width:510px" %)569 -|=(% 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;" %)((( 570 570 Size(bytes) 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**567 +)))|(% style="width:80px" %)1|(% style="width:360px" %)((( 568 +Length depends on the return from the commands 573 573 ))) 574 574 |=(% style="width: 90px;" %)((( 575 575 Value ... ... @@ -1193,7 +1193,7 @@ 1193 1193 1194 1194 1195 1195 1196 -==== (% style="color:blue" %)**Encrypted payload (Since Version 1.4.0)**(%%) ====1192 +==== (% style="color:blue" %)**Encrypted payload**(%%) ==== 1197 1197 1198 1198 ((( 1199 1199 ... ... @@ -1209,7 +1209,7 @@ 1209 1209 1210 1210 1211 1211 1212 -==== (% style="color:blue" %)**Get sensor value (Since Version 1.4.0)**(%%) ====1208 +==== (% style="color:blue" %)**Get sensor value**(%%) ==== 1213 1213 1214 1214 1215 1215 * ((( ... ... @@ -1222,7 +1222,7 @@ 1222 1222 1223 1223 1224 1224 1225 -==== (% style="color:blue" %)**Resets the downlink packet count (Since Version 1.4.0)**(%%) ====1221 +==== (% style="color:blue" %)**Resets the downlink packet count**(%%) ==== 1226 1226 1227 1227 1228 1228 * ((( ... ... @@ -1235,7 +1235,7 @@ 1235 1235 1236 1236 1237 1237 1238 -==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches (Since Version 1.4.0)**(%%) ====1234 +==== (% style="color:blue" %)**When the limit bytes are exceeded, upload in batches**(%%) ==== 1239 1239 1240 1240 1241 1241 * ((( ... ... @@ -1255,7 +1255,7 @@ 1255 1255 1256 1256 1257 1257 1258 -==== (% style="color:blue" %)**Copy downlink to uplink (SinceVersion 1.4.0)**(%%) ====1254 +==== (% style="color:blue" %)**Copy downlink to uplink **(%%) ==== 1259 1259 1260 1260 1261 1261 * ((( ... ... @@ -1279,7 +1279,7 @@ 1279 1279 1280 1280 1281 1281 1282 -==== (% style="color:blue" %)**Query version number and frequency band 、TDC (Since Version 1.4.0)**(%%) ====1278 +==== (% style="color:blue" %)**Query version number and frequency band 、TDC**(%%) ==== 1283 1283 1284 1284 1285 1285 ((( ... ... @@ -1296,7 +1296,7 @@ 1296 1296 1297 1297 1298 1298 1299 -==== (% style="color:blue" %)** Monitor RS485 communication of other devices (Since Version 1.4.0)**(%%) ====1295 +==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ==== 1300 1300 1301 1301 1302 1302 * ((( ... ... @@ -1340,32 +1340,34 @@ 1340 1340 To enable the listening mode, use can run the command (% style="color:#4472c4" %)** AT+RXMODE**. 1341 1341 ))) 1342 1342 1339 +((( 1340 + 1341 +))) 1343 1343 1344 - 1345 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 1346 -|=(% style="width: 156px; background-color:#D9E2F3;color:#0070C0" %)((( 1343 +(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %) 1344 +|=(% style="width: 100px;" %)((( 1347 1347 **Command example** 1348 -)))|=(% style="width: 355px;background-color:#D9E2F3;color:#0070C0" %)(((1346 +)))|=(% style="width: 400px;" %)((( 1349 1349 **Function** 1350 1350 ))) 1351 -|(% style="width:1 56px" %)(((1349 +|(% style="width:100px" %)((( 1352 1352 AT+RXMODE=1,10 1353 -)))|(% style="width: 352px" %)(((1351 +)))|(% style="width:400px" %)((( 1354 1354 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. 1355 1355 ))) 1356 -|(% style="width:1 56px" %)(((1354 +|(% style="width:100px" %)((( 1357 1357 AT+RXMODE=2,500 1358 -)))|(% style="width: 352px" %)(((1356 +)))|(% style="width:400px" %)((( 1359 1359 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 1360 1360 ))) 1361 -|(% style="width:1 56px" %)(((1359 +|(% style="width:100px" %)((( 1362 1362 AT+RXMODE=0,0 1363 -)))|(% style="width: 352px" %)(((1361 +)))|(% style="width:400px" %)((( 1364 1364 Disable listening mode. This is the default settings. 1365 1365 ))) 1366 -|(% style="width:1 56px" %)(((1364 +|(% style="width:100px" %)((( 1367 1367 1368 -)))|(% style="width: 352px" %)(((1366 +)))|(% style="width:400px" %)((( 1369 1369 A6 aa bb cc same as AT+RXMODE=aa,(bb<<8 | cc) 1370 1370 ))) 1371 1371 ... ... @@ -1413,34 +1413,36 @@ 1413 1413 (% 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" %) 1414 1414 ))) 1415 1415 1414 +((( 1415 + 1416 +))) 1416 1416 1417 - 1418 1418 ((( 1419 +((( 1419 1419 (% 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.** 1420 1420 ))) 1422 +))) 1421 1421 1422 1422 1423 1423 == 3.7 Buttons == 1424 1424 1425 1425 1426 -(% border="1.5" cellspacing="4" style="background-color:#f 2f2f2; 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"]] 1428 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; 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 RS485 1432 +|(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1431 1431 1432 1432 1433 - 1434 1434 == 3.8 LEDs == 1435 1435 1436 1436 1437 -(% border="1.5" cellspacing="4" style="background-color:#f 2f2f2; 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. 1438 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %) 1439 +|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature** 1440 +|**PWR**|Always on if there is power 1441 +|**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. 1441 1441 1442 1442 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 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.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. 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,7 +1784,6 @@ 1784 1784 * (% style="color:red" %)**KZ865**(%%): frequency bands KZ865 1785 1785 1786 1786 1787 - 1788 1788 = 9. Packing Info = 1789 1789 1790 1790 ... ... @@ -1802,7 +1802,6 @@ 1802 1802 * Weight / pcs : 170g 1803 1803 1804 1804 1805 - 1806 1806 = 10. FCC Caution for RS485LN-US915 = 1807 1807 1808 1808