Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Bei Jinggeng on 2025/01/16 11:36
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -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:#fff fcc;color:green;width:510px" %)292 -|=(% 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);" %)((( 293 293 **AT Commands** 294 -)))|=(% style="width: 210px;" %)(((294 +)))|=(% style="width: 116px; background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)((( 295 295 **Description** 296 -)))|=(% style="width: 190px;" %)((( 296 +)))|=(% style="width: 190px;background-color:#D9E2F3;color:#0070C0" %)((( 297 297 **Example** 298 298 ))) 299 -|(% style="width:11 0px" %)(((299 +|(% style="width:119px" %)((( 300 300 AT+BAUDR 301 -)))|(% style="width:1 90px" %)(((301 +)))|(% style="width:116px" %)((( 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 0px" %)(((312 +|(% style="width:119px" %)((( 313 313 AT+PARITY 314 -)))|(% style="width:1 90px" %)(((314 +)))|(% style="width:116px" %)((( 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 0px" %)(((325 +|(% style="width:119px" %)((( 326 326 AT+STOPBIT 327 -)))|(% style="width:1 90px" %)(((327 +)))|(% style="width:116px" %)((( 328 328 ((( 329 329 Set serial stopbit (for RS485 connection) 330 330 ))) ... ... @@ -359,9 +359,9 @@ 359 359 ))) 360 360 ))) 361 361 362 -(% border="1" cellspacing="5" style="background-color:#fff fcc;color:green;width:510px" %)363 -|=(% style="width: 1 10px;" %)**AT Commands**|=(% style="width:210px;" %)**Description**|=(% style="width: 190px;" %)**Example**364 -|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" %)((( 365 365 ((( 366 366 This command is used to configure the RS485/TTL devices; they won’t be used during sampling. 367 367 ))) ... ... @@ -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:# 4bacc6;color:white; width:499px" %)410 +(% border="1" style="background-color:#f2f2f2; 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:# 4bacc6;color:white; width:510px" %)426 +(% border="1" style="background-color:#f2f2f2; 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:#fff fcc;color:green;width:500px" %)569 -|=(% 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" %)((( 570 570 Size(bytes) 571 -)))|(% style="width:80px" %)1|(% style="width:360px" %)((( 572 -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** 573 573 ))) 574 574 |=(% style="width: 90px;" %)((( 575 575 Value ... ... @@ -1340,34 +1340,32 @@ 1340 1340 To enable the listening mode, use can run the command (% style="color:#4472c4" %)** AT+RXMODE**. 1341 1341 ))) 1342 1342 1343 -((( 1344 - 1345 -))) 1346 1346 1347 -(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %) 1348 -|=(% style="width: 100px;" %)((( 1344 + 1345 +(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 1346 +|=(% style="width: 156px; background-color:#D9E2F3;color:#0070C0" %)((( 1349 1349 **Command example** 1350 -)))|=(% style="width: 400px;" %)(((1348 +)))|=(% style="width: 355px; background-color:#D9E2F3;color:#0070C0" %)((( 1351 1351 **Function** 1352 1352 ))) 1353 -|(% style="width:1 00px" %)(((1351 +|(% style="width:156px" %)((( 1354 1354 AT+RXMODE=1,10 1355 -)))|(% style="width: 400px" %)(((1353 +)))|(% style="width:352px" %)((( 1356 1356 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. 1357 1357 ))) 1358 -|(% style="width:1 00px" %)(((1356 +|(% style="width:156px" %)((( 1359 1359 AT+RXMODE=2,500 1360 -)))|(% style="width: 400px" %)(((1358 +)))|(% style="width:352px" %)((( 1361 1361 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 1362 1362 ))) 1363 -|(% style="width:1 00px" %)(((1361 +|(% style="width:156px" %)((( 1364 1364 AT+RXMODE=0,0 1365 -)))|(% style="width: 400px" %)(((1363 +)))|(% style="width:352px" %)((( 1366 1366 Disable listening mode. This is the default settings. 1367 1367 ))) 1368 -|(% style="width:1 00px" %)(((1366 +|(% style="width:156px" %)((( 1369 1369 1370 -)))|(% style="width: 400px" %)(((1368 +)))|(% style="width:352px" %)((( 1371 1371 A6 aa bb cc same as AT+RXMODE=aa,(bb<<8 | cc) 1372 1372 ))) 1373 1373 ... ... @@ -1415,25 +1415,21 @@ 1415 1415 (% 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" %) 1416 1416 ))) 1417 1417 1418 -((( 1419 - 1420 -))) 1421 1421 1417 + 1422 1422 ((( 1423 -((( 1424 1424 (% 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.** 1425 1425 ))) 1426 -))) 1427 1427 1428 1428 1429 1429 == 3.7 Buttons == 1430 1430 1431 1431 1432 -(% border="1.5" cellspacing="4" style="background-color:#fff fcc; width:430px" %)1433 -|=(% style="width: 50px;" %)**Button**|=(% style="width: 380px;" %)**Feature** 1434 -|(% 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**1435 -|(% style="width:50px" %) **RST**|(% style="width:361px" %)Reboot RS4851436 -|(% 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"]] 1437 1437 1438 1438 1439 1439 ... ... @@ -1440,10 +1440,10 @@ 1440 1440 == 3.8 LEDs == 1441 1441 1442 1442 1443 -(% border="1.5" cellspacing="4" style="background-color:#fff fcc; width:430px" %)1444 -|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature** 1445 -| **PWR**|Always on if there is power1446 -| **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. 1447 1447 1448 1448 1449 1449 ... ... @@ -1701,7 +1701,7 @@ 1701 1701 1702 1702 RS485-LN sent below command: 1703 1703 1704 -(% 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. 1705 1705 1706 1706 1707 1707 We can see the output from the Serial port tool to analyze. And check if they are expected result.