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
-
... ... @@ -30,6 +30,7 @@ 30 30 31 31 = 1.Introduction = 32 32 33 + 33 33 == 1.1 What is RS485-LN RS485 to LoRaWAN Converter == 34 34 35 35 ((( ... ... @@ -81,11 +81,15 @@ 81 81 ** Idle: 32mA@12v 82 82 ** 20dB Transmit: 65mA@12v 83 83 85 + 86 + 84 84 (% style="color:#037691" %)**Interface for Model:** 85 85 86 86 * RS485 87 87 * Power Input 7~~ 24V DC. 88 88 92 + 93 + 89 89 (% style="color:#037691" %)**LoRa Spec:** 90 90 91 91 * Frequency Range: ... ... @@ -107,6 +107,9 @@ 107 107 * Automatic RF Sense and CAD with ultra-fast AFC. 108 108 * Packet engine up to 256 bytes with CRC 109 109 115 + 116 + 117 + 110 110 == 1.3 Features == 111 111 112 112 ... ... @@ -119,6 +119,9 @@ 119 119 * Support Modbus protocol 120 120 * Support Interrupt uplink (Since hardware version v1.2) 121 121 130 + 131 + 132 + 122 122 == 1.4 Applications == 123 123 124 124 ... ... @@ -129,6 +129,9 @@ 129 129 * Smart Cities 130 130 * Smart Factory 131 131 143 + 144 + 145 + 132 132 == 1.5 Firmware Change log == 133 133 134 134 ... ... @@ -175,6 +175,7 @@ 175 175 176 176 = 3. Operation Mode = 177 177 192 + 178 178 == 3.1 How it works? == 179 179 180 180 ... ... @@ -192,6 +192,7 @@ 192 192 193 193 Here shows an example for how to join the TTN V3 Network. Below is the network structure, we use [[LG308>>url:http://www.dragino.com/products/lora-lorawan-gateway/item/140-lg308.html]] as LoRaWAN gateway here. 194 194 210 + 195 195 (% aria-label="1653268155545-638.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653268155545-638.png||data-widget="image" height="334" width="724"]](% 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" %) 196 196 197 197 ... ... @@ -202,6 +202,8 @@ 202 202 203 203 ((( 204 204 485A+ and 485B- of the sensor are connected to RS485A and RA485B of RS485-LN respectively. 221 + 222 + 205 205 ))) 206 206 207 207 (% aria-label="1653268227651-549.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653268227651-549.png||data-widget="image" height="592" width="720"]](% 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" %) ... ... @@ -228,6 +228,8 @@ 228 228 ((( 229 229 ((( 230 230 User can enter this key in their LoRaWAN Server portal. Below is TTN V3 screen shot: 249 + 250 + 231 231 ))) 232 232 233 233 ((( ... ... @@ -241,8 +241,11 @@ 241 241 242 242 (% aria-label="image-20220519174512-3.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-3.png||data-widget="image" height="556" width="724"]](% 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" %) 243 243 244 -(% aria-label="image-20220519174512-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-4.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" %)264 +(% aria-label="image-20220519174512-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220519174512-4.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"]] 245 245 266 + 267 +(% title="Click and drag to resize" %) 268 + 246 246 You can also choose to create the device manually. 247 247 248 248 (% aria-label="1652953542269-423.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953542269-423.png||data-widget="image" height="710" width="723"]](% 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" %) ... ... @@ -254,8 +254,11 @@ 254 254 (% aria-label="1652953553383-907.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953553383-907.png||data-widget="image" height="514" width="724"]](% 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" %) 255 255 256 256 280 + 257 257 ((( 258 258 (% style="color:blue" %)**Step 2**(%%): Power on RS485-LN and it will auto join to the TTN V3 network. After join success, it will start to upload message to TTN V3 and user can see in the panel. 283 + 284 + 259 259 ))) 260 260 261 261 (% aria-label="1652953568895-172.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1652953568895-172.png||data-widget="image" height="232" width="724"]](% 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" %) ... ... @@ -269,6 +269,8 @@ 269 269 ((( 270 270 ((( 271 271 There are plenty of RS485 devices in the market and each device has different command to read the valid data. To support these devices in flexible, RS485-LN supports flexible command set. User can use [[AT Commands>>||anchor="H3.5ConfigureRS485-LNviaATorDownlink"]] or LoRaWAN Downlink Command to configure what commands RS485-LN should send for each sampling and how to handle the return from RS485 devices. 298 + 299 + 272 272 ))) 273 273 ))) 274 274 ... ... @@ -287,6 +287,7 @@ 287 287 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 318 + 290 290 (% border="1" cellspacing="10" style="background-color:#ffffcc; color:green; width:510px" %) 291 291 |=(% style="width: 110px;" %)((( 292 292 **AT Commands** ... ... @@ -345,6 +345,9 @@ 345 345 ))) 346 346 ))) 347 347 377 + 378 + 379 + 348 348 === 3.3.2 Configure sensors === 349 349 350 350 ... ... @@ -372,6 +372,9 @@ 372 372 ))) 373 373 )))|(% style="width:190px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 374 374 407 + 408 + 409 + 375 375 === 3.3.3 Configure read commands for each sampling === 376 376 377 377 ... ... @@ -387,6 +387,7 @@ 387 387 388 388 (% style="color:#037691" %)**Each RS485 commands include two parts:** 389 389 425 + 390 390 ~1. What commands RS485-LN will send to the RS485 sensors. There are total 15 commands from **AT+COMMAD1**, **ATCOMMAND2**,…, to **AT+COMMANDF**. All commands are of same grammar. 391 391 392 392 2. How to get wanted value the from RS485 sensors returns from by 1). There are total 15 AT Commands to handle the return, commands are **AT+DATACUT1**,**AT+DATACUT2**,…, **AT+DATACUTF** corresponding to the commands from 1). All commands are of same grammar. ... ... @@ -426,8 +426,10 @@ 426 426 * **c: define the position for valid value. ** 427 427 ))) 428 428 465 + 429 429 **Examples:** 430 430 468 + 431 431 * (% style="color:#037691" %)**Grab bytes** 432 432 433 433 (% aria-label="image-20220602153621-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602153621-1.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" %) ... ... @@ -468,15 +468,13 @@ 468 468 ))) 469 469 470 470 ((( 471 -Final Payload is 509 +Final Payload is (% style="color:#4f81bd" %)**Battery Info+PAYVER + VALID Value from RETURN1 + Valid Value from RETURN2 + … + RETURNx** 472 472 ))) 473 473 474 474 ((( 475 -(% style="color:#4f81bd" %)**Battery Info+PAYVER + VALID Value from RETURN1 + Valid Value from RETURN2 + … + RETURNx** 476 -))) 477 - 478 -((( 479 479 Where PAYVER is defined by AT+PAYVER, below is an example screen shot. 514 + 515 + 480 480 ))) 481 481 482 482 (% aria-label="1653269759169-150.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1653269759169-150.png||data-widget="image" height="513" width="716"]](% 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" %) ... ... @@ -487,16 +487,16 @@ 487 487 488 488 Compose the uplink payload with value returns in sequence and send with (% style="color:red" %)**Multiply UPLINKs**. 489 489 490 -Final Payload is 526 +Final Payload is (% style="color:#4f81bd" %)**Battery Info+PAYVER + PAYLOAD COUNT + PAYLOAD# + DATA** 491 491 492 -(% style="color:#4f81bd" %)**Battery Info+PAYVER + PAYLOAD COUNT + PAYLOAD# + DATA** 493 493 494 - 495 495 1. PAYVER: Defined by AT+PAYVER 496 496 1. PAYLOAD COUNT: Total how many uplinks of this sampling. 497 497 1. PAYLOAD#: Number of this uplink. (from 0,1,2,3…,to PAYLOAD COUNT) 498 498 1. DATA: Valid value: max 8 bytes for each uplink so each uplink <= 11 bytes. For the last uplink, DATA will might less than 8 bytes 499 499 534 + 535 + 500 500 (% aria-label="image-20220602155039-4.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220602155039-4.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" %) 501 501 502 502 ... ... @@ -511,6 +511,7 @@ 511 511 512 512 (% style="color:red" %)**Notice: In firmware v1.3, the Max bytes has been changed according to the max bytes in different Frequency Bands for lowest SF. As below:** 513 513 550 + 514 514 ~* For AU915/AS923 bands, if UplinkDwell time=0, max 51 bytes for each uplink. 515 515 516 516 * For AU915/AS923 bands, if UplinkDwell time=0, max 11 bytes for each uplink. ... ... @@ -526,17 +526,23 @@ 526 526 527 527 (% style="color:#4f81bd" %)**If the data is empty, return to the display(Since v1.4.0)** 528 528 529 -1)When AT+MOD=1, if the data intercepted by AT+DATACUT or AT+MBFUN is empty, it will display NULL, and the payload will be filled with n FFs. 566 +1 ) When **(% style="color:blue" %)AT+MOD=1**(%%), if the data intercepted by** AT+DATACUT** or **AT+MBFUN** is empty, it will display **NULL**, and the payload will be filled with **n FFs**. 530 530 568 + 531 531 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/test/WebHome/image-20220824114359-3.png?width=1106&height=297&rev=1.1||alt="image-20220824114359-3.png" height="297" width="1106"]] 532 532 533 -2)When AT+MOD=2, if the data intercepted by AT+DATACUT or AT+MBFUN is empty, it will display NULL, and the payload will be filled with n 00s. 534 534 572 + 573 +2 ) When **(% style="color:blue" %)AT+MOD=2**(%%), if the data intercepted by **AT+DATACUT** or **AT+MBFUN** is empty, it will display **NULL**, and the payload will be filled with **n 00s**. 574 + 575 + 535 535 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/test/WebHome/image-20220824114330-2.png?rev=1.1||alt="image-20220824114330-2.png"]] 536 536 537 537 579 + 538 538 Below are the uplink payloads: 539 539 582 + 540 540 (% aria-label="1654157178836-407.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654157178836-407.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" %) 541 541 542 542 ... ... @@ -546,11 +546,11 @@ 546 546 547 547 Except uplink periodically, RS485-LN is able to uplink on demand. The server send downlink command to RS485-LN and RS485 will uplink data base on the command. 548 548 549 -Downlink control command: 592 +**(% style="color:blue" %)Downlink control command:** 550 550 551 -**0x08 command**: Poll an uplink with current command set in RS485-LN. 594 +**(% style="color:#4472C4" %) 0x08 command**(%%): Poll an uplink with current command set in RS485-LN. 552 552 553 -**0xA8 command**: Send a command to RS485-LN and uplink the output from sensors. 596 +**(% style="color:#4472C4" %) 0xA8 command**(%%): Send a command to RS485-LN and uplink the output from sensors. 554 554 555 555 556 556 ... ... @@ -559,6 +559,7 @@ 559 559 560 560 RS485-LN support external Interrupt uplink since hardware v1.2 release. 561 561 605 + 562 562 (% aria-label="1654157342174-798.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:1654157342174-798.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" %) 563 563 564 564 Connect the Interrupt pin to RS485-LN INT port and connect the GND pin to V- port. When there is a high voltage (Max 24v) on INT pin. Device will send an uplink packet. ... ... @@ -568,8 +568,10 @@ 568 568 == 3.4 Uplink Payload == 569 569 570 570 571 -(% aria-label="image-20220606110929-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220606110929-1.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" %)615 +(% aria-label="image-20220606110929-1.png image widget" contenteditable="false" role="region" tabindex="-1" %)[[image:image-20220606110929-1.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"]] 572 572 617 +(% title="Click and drag to resize" %) 618 + 573 573 Below is the decoder for the first 3 bytes. The rest bytes are dynamic depends on different RS485 sensors. 574 574 575 575 ... ... @@ -1242,7 +1242,6 @@ 1242 1242 1243 1243 [[image:http://wiki.dragino.com/xwiki/bin/download/Main/User%20Manual%20for%20LoRaWAN%20End%20Nodes/LSN50%20%26%20LSN50-V2%20-%20LoRaWAN%20Sensor%20Node%20User%20Manual/WebHome/image-20220823173929-8.png?width=1205&height=76&rev=1.1||alt="image-20220823173929-8.png"]] 1244 1244 1245 -(% class="wikigeneratedid" %) 1246 1246 ==== ==== 1247 1247 1248 1248 ==== (% style="color:blue" %)** Monitor RS485 communication of other devices**(%%) ==== ... ... @@ -1254,7 +1254,7 @@ 1254 1254 1255 1255 **~ AT+RXMODE=1,10** ~/~/ When the RS485-LN receives more than 10 bytes from the RS485, it immediately sends the uplink of the received data. 1256 1256 1257 -**~ AT+RXMODE=2,500 1302 +**~ AT+RXMODE=2,500 ** ~/~/RS485-LN uploads data as uplink from the first byte received by RS485 to the data received within 500ms after that. 1258 1258 1259 1259 **AT+RXMODE=0,0 ** ~/~/Disable this mode (default) 1260 1260 ... ... @@ -1263,7 +1263,7 @@ 1263 1263 (% style="color:#037691" %)**Downlink Payload:** 1264 1264 ))) 1265 1265 1266 -**A6 aa bb bb 1311 +**A6 aa bb bb ** ~/~/same as AT+RXMODE=aa,bb 1267 1267 1268 1268 [[image:image-20220824144240-1.png]] 1269 1269 ... ... @@ -1518,7 +1518,7 @@ 1518 1518 ))) 1519 1519 1520 1520 ((( 1521 -(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>url:https://www.dr agino.com/downloads/index.php?dir=RS485-LN/Firmware/]].1566 +(% style="color:blue" %)**Step2**(%%)**:** Download the [[LT Image files>>url:https://www.dropbox.com/sh/g99v0fxcltn9r1y/AACP33wo_ZQLsxW2MJ70oUoba/RS485-LN/Firmware?dl=0&subfolder_nav_tracking=1]]. 1522 1522 ))) 1523 1523 1524 1524 (((