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 ... ... @@ -633,7 +633,7 @@ 633 633 (% style="color:#037691" %)**AT Command** 634 634 635 635 ((( 636 -**AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m** m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command 682 +**(% style="color:#4472C4" %) AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m** (%%) m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command 637 637 ))) 638 638 ))) 639 639 ... ... @@ -646,7 +646,7 @@ 646 646 ))) 647 647 648 648 ((( 649 -Format: A8 MM NN XX XX XX XX YY 695 +Format:(%%) **(% style="color:#4472C4" %) A8 MM NN XX XX XX XX YY** 650 650 ))) 651 651 652 652 ((( ... ... @@ -755,7 +755,7 @@ 755 755 * ((( 756 756 (% style="color:#037691" %)**AT Command:** 757 757 758 -**AT+PAYVER: **Set PAYVER field = 1 804 +**(% style="color:#4472C4" %) AT+PAYVER: ** (%%) Set PAYVER field = 1 759 759 760 760 761 761 ))) ... ... @@ -764,18 +764,18 @@ 764 764 ))) 765 765 766 766 ((( 767 -**0xAE 01** ~-~-> Set PAYVER field = 0x01 813 +**(% style="color:#4472C4" %) 0xAE 01** (%%) ~-~-> Set PAYVER field = 0x01 768 768 ))) 769 769 770 770 ((( 771 -**0xAE 0F** ~-~-> Set PAYVER field = 0x0F 817 +**(% style="color:#4472C4" %) 0xAE 0F** (%%) ~-~-> Set PAYVER field = 0x0F 772 772 ))) 773 773 774 774 775 -1)Add the interrupt flag at the highest bit of the Payver byte, that is, Byte7 of the first byte. (Since v1.4.0)[[image:image-20220824145428-2.png||height="168" width="1300"]] 821 +1) Add the interrupt flag at the highest bit of the Payver byte, that is, Byte7 of the first byte. (Since v1.4.0)[[image:image-20220824145428-2.png||height="168" width="1300"]] 776 776 777 777 778 -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 FFs. 824 +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 FFs. 779 779 780 780 [[image:image-20220824145428-3.png||height="308" width="1200"]] 781 781 ... ... @@ -799,9 +799,9 @@ 799 799 (% style="color:#037691" %)**AT Command:** 800 800 ))) 801 801 802 -**AT+COMMANDx: **Configure RS485 read command to sensor. 848 +**(% style="color:#4472C4" %) AT+COMMANDx: ** (%%) Configure RS485 read command to sensor. 803 803 804 -**AT+DATACUTx: **Configure how to handle return from RS485 devices. 850 +**(% style="color:#4472C4" %) AT+DATACUTx: **(%%) Configure how to handle return from RS485 devices. 805 805 806 806 807 807 * ((( ... ... @@ -809,19 +809,19 @@ 809 809 ))) 810 810 811 811 ((( 812 -**0xAF** downlink command can be used to set AT+COMMANDx or AT+DATACUTx. 858 +**(% style="color:#4472C4" %) 0xAF**(%%) downlink command can be used to set AT+COMMANDx or AT+DATACUTx. 813 813 814 814 815 815 ))) 816 816 817 817 ((( 818 -(% style="color:red" %)**Note **(%%): if user use AT+COMMANDx to add a new command, he also need to send AT+DATACUTx downlink.864 +(% style="color:red" %)**Note : if user use AT+COMMANDx to add a new command, he also need to send AT+DATACUTx downlink.** 819 819 820 820 821 821 ))) 822 822 823 823 ((( 824 -Format: AF MM NN LL XX XX XX XX YY 870 +Format: (%%)**(% style="color:#4472C4" %) AF MM NN LL XX XX XX XX YY** 825 825 ))) 826 826 827 827 ((( ... ... @@ -869,7 +869,7 @@ 869 869 870 870 871 871 ((( 872 -**AT+MBFUN** is valid since v1.3 firmware version. The command is for fast configure to read Modbus devices. It is only valid for the devices which follow the [[MODBUS-RTU protocol>>url:https://www.modbustools.com/modbus.html]]. 918 +**(% style="color:#4472C4" %) AT+MBFUN**(%%) is valid since v1.3 firmware version. The command is for fast configure to read Modbus devices. It is only valid for the devices which follow the [[MODBUS-RTU protocol>>url:https://www.modbustools.com/modbus.html]]. 873 873 ))) 874 874 875 875 ((( ... ... @@ -921,7 +921,7 @@ 921 921 * ((( 922 922 (% style="color:#037691" %)** AT Command:** 923 923 924 -**AT+CMDDLaa=hex(bb cc)*1000** 970 +**(% style="color:#4472C4" %) AT+CMDDLaa=hex(bb cc)*1000** 925 925 ))) 926 926 927 927 ((( ... ... @@ -931,7 +931,7 @@ 931 931 ))) 932 932 933 933 ((( 934 -**AT+CMDDL1=1000** to send the open time to 1000ms 980 +**(% style="color:#4472C4" %) AT+CMDDL1=1000** (%%)to send the open time to 1000ms 935 935 ))) 936 936 937 937 ((( ... ... @@ -943,7 +943,7 @@ 943 943 ))) 944 944 945 945 ((( 946 -**0x AA aa bb cc** 992 +**(% style="color:#4472C4" %) 0x AA aa bb cc** 947 947 ))) 948 948 949 949 ((( ... ... @@ -975,14 +975,14 @@ 975 975 * ((( 976 976 (% style="color:#037691" %)** AT Command:** 977 977 978 -**AT+DATAUP=0** 1024 +**(% style="color:#4472C4" %) AT+DATAUP=0** 979 979 980 -**AT+DATAUP=1** 1026 +**(% style="color:#4472C4" %) AT+DATAUP=1** 981 981 982 982 983 983 ))) 984 984 985 -**0xAD 01 00 00 14** **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds) 1031 +**(% style="color:#4472C4" %) 0xAD 01 00 00 14** (%%) **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds) 986 986 987 987 Each uplink is sent to the server at 20-second intervals when segmented. 988 988 ... ... @@ -991,9 +991,9 @@ 991 991 (% style="color:#037691" %)** Downlink Payload:** 992 992 ))) 993 993 994 -**0xAD 00** **~-~->** Same as AT+DATAUP=0 1040 +**(% style="color:#4472C4" %) 0xAD 00** (%%) **~-~->** Same as AT+DATAUP=0 995 995 996 -**0xAD 01** **~-~->** Same as AT+DATAUP=1 ~/~/Each uplink is sent to the server one after the other as it is segmented. 1042 +**(% style="color:#4472C4" %) 0xAD 01** (%%) **~-~->** Same as AT+DATAUP=1 ~/~/Each uplink is sent to the server one after the other as it is segmented. 997 997 998 998 999 999 * ((( ... ... @@ -1000,7 +1000,7 @@ 1000 1000 (% style="color:#037691" %)** AT Command:** 1001 1001 ))) 1002 1002 1003 -**AT+DATAUP=1,Timeout** 1049 +**(% style="color:#4472C4" %) AT+DATAUP=1,Timeout** 1004 1004 1005 1005 1006 1006 * ((( ... ... @@ -1007,10 +1007,12 @@ 1007 1007 (% style="color:#037691" %)** Downlink Payload:** 1008 1008 ))) 1009 1009 1010 -**0xAD 01 00 00 14** **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds) 1056 +**(% style="color:#4472C4" %) 0xAD 01 00 00 14** (%%) **~-~->** Same as AT+DATAUP=1,20000 ~/~/(00 00 14 is 20 seconds) 1011 1011 1012 1012 Each uplink is sent to the server at 20-second intervals when segmented. 1013 1013 1060 + 1061 + 1014 1014 ==== (% style="color:blue" %)**Manually trigger an Uplink**(%%) ==== 1015 1015 1016 1016 ... ... @@ -1035,7 +1035,7 @@ 1035 1035 ))) 1036 1036 1037 1037 ((( 1038 -**0x08 FF**, RS485-LN will immediately send an uplink. 1086 +**(% style="color:#4472C4" %) 0x08 FF**(%%), RS485-LN will immediately send an uplink. 1039 1039 ))) 1040 1040 1041 1041 ... ... @@ -1055,7 +1055,7 @@ 1055 1055 ))) 1056 1056 1057 1057 ((( 1058 -**AT+CMDEAR=mm,nn** mm: start position of erase ,nn: stop position of erase 1106 +**(% style="color:#4472C4" %) AT+CMDEAR=mm,nn** (%%) mm: start position of erase ,nn: stop position of erase 1059 1059 ))) 1060 1060 1061 1061 ((( ... ... @@ -1082,7 +1082,7 @@ 1082 1082 ))) 1083 1083 1084 1084 ((( 1085 -**0x09 aa bb** same as AT+CMDEAR=aa,bb 1133 +**(% style="color:#4472C4" %) 0x09 aa bb** (%%) same as AT+CMDEAR=aa,bb 1086 1086 ))) 1087 1087 1088 1088 ... ... @@ -1105,7 +1105,7 @@ 1105 1105 * Set Baud Rate 1106 1106 ))) 1107 1107 1108 -**AT+BAUDR=9600** ~/~/ Options: (200~~115200) When using low baud rate or receiving multiple bytes, you need to use AT+CMDDL to increase the receive timeout (the default receive timeout is 400ms), otherwise data will be lost 1156 +**(% style="color:#4472C4" %) AT+BAUDR=9600** (%%) ~/~/ Options: (200~~115200) When using low baud rate or receiving multiple bytes, you need to use AT+CMDDL to increase the receive timeout (the default receive timeout is 400ms), otherwise data will be lost 1109 1109 1110 1110 1111 1111 ((( ... ... @@ -1112,7 +1112,7 @@ 1112 1112 * Set UART Parity 1113 1113 ))) 1114 1114 1115 -**AT+PARITY=0** ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity 1163 +**(% style="color:#4472C4" %) AT+PARITY=0** (%%) ~/~/ Option: 0: no parity, 1: odd parity, 2: even parity 1116 1116 1117 1117 1118 1118 ((( ... ... @@ -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 1304 +**~ 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 1313 +**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/]].1568 +(% 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 (((