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:#f 2f2f2; width:510px" %)292 -|=(% style="width: 11 9px;background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)(((291 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %) 292 +|=(% style="width: 110px;" %)((( 293 293 **AT Commands** 294 -)))|=(% style="width: 1 16px;background-color: rgb(217, 226, 243); color: rgb(0, 112, 192);" %)(((294 +)))|=(% style="width: 210px;" %)((( 295 295 **Description** 296 -)))|=(% style="width: 190px; background-color:#D9E2F3;color:#0070C0" %)(((296 +)))|=(% style="width: 190px;" %)((( 297 297 **Example** 298 298 ))) 299 -|(% style="width:11 9px" %)(((299 +|(% style="width:110px" %)((( 300 300 AT+BAUDR 301 -)))|(% style="width:1 16px" %)(((301 +)))|(% 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" %)(((312 +|(% style="width:110px" %)((( 313 313 AT+PARITY 314 -)))|(% style="width:1 16px" %)(((314 +)))|(% 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" %)(((325 +|(% style="width:110px" %)((( 326 326 AT+STOPBIT 327 -)))|(% style="width:1 16px" %)(((327 +)))|(% style="width:190px" %)((( 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:#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" %)(((362 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:510px" %) 363 +|=(% style="width: 110px;" %)**AT Commands**|=(% style="width: 210px;" %)**Description**|=(% style="width: 190px;" %)**Example** 364 +|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 ))) ... ... @@ -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" %)410 +(% 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" %)426 +(% 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" %)(((568 +(% border="1" cellspacing="5" style="background-color:#ffffcc; color:green; width:500px" %) 569 +|=(% 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**571 +)))|(% style="width:80px" %)1|(% style="width:360px" %)((( 572 +Length depends on the return from the commands 573 573 ))) 574 574 |=(% style="width: 90px;" %)((( 575 575 Value ... ... @@ -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 1343 +((( 1344 + 1345 +))) 1343 1343 1344 - 1345 -(% border="1" cellspacing="5" style="background-color:#f2f2f2; width:510px" %) 1346 -|=(% style="width: 156px; background-color:#D9E2F3;color:#0070C0" %)((( 1347 +(% border="1" cellspacing="10" style="background-color:#ffffcc; width:500px" %) 1348 +|=(% style="width: 100px;" %)((( 1347 1347 **Command example** 1348 -)))|=(% style="width: 355px;background-color:#D9E2F3;color:#0070C0" %)(((1350 +)))|=(% style="width: 400px;" %)((( 1349 1349 **Function** 1350 1350 ))) 1351 -|(% style="width:1 56px" %)(((1353 +|(% style="width:100px" %)((( 1352 1352 AT+RXMODE=1,10 1353 -)))|(% style="width: 352px" %)(((1355 +)))|(% 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" %)(((1358 +|(% style="width:100px" %)((( 1357 1357 AT+RXMODE=2,500 1358 -)))|(% style="width: 352px" %)(((1360 +)))|(% 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" %)(((1363 +|(% style="width:100px" %)((( 1362 1362 AT+RXMODE=0,0 1363 -)))|(% style="width: 352px" %)(((1365 +)))|(% style="width:400px" %)((( 1364 1364 Disable listening mode. This is the default settings. 1365 1365 ))) 1366 -|(% style="width:1 56px" %)(((1368 +|(% style="width:100px" %)((( 1367 1367 1368 -)))|(% style="width: 352px" %)(((1370 +)))|(% style="width:400px" %)((( 1369 1369 A6 aa bb cc same as AT+RXMODE=aa,(bb<<8 | cc) 1370 1370 ))) 1371 1371 ... ... @@ -1413,21 +1413,25 @@ 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 1418 +((( 1419 + 1420 +))) 1416 1416 1417 - 1418 1418 ((( 1423 +((( 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 ))) 1426 +))) 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"]] 1432 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; 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 RS485 1436 +|(% style="width:50px" %)**PRO**|(% style="width:361px" %)Use for upload image, see [[How to Update Image>>||anchor="H6.1Howtoupgradetheimage3F"]] 1431 1431 1432 1432 1433 1433 ... ... @@ -1434,10 +1434,10 @@ 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. 1443 +(% border="1.5" cellspacing="4" style="background-color:#ffffcc; width:430px" %) 1444 +|=(% style="width: 50px;" %)**LEDs**|=(% style="width: 380px;" %)**Feature** 1445 +|**PWR**|Always on if there is power 1446 +|**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 1443 ... ... @@ -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.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. 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.