Changes for page RS485-LN – RS485 to LoRaWAN Converter User Manual
Last modified by Karry Zhuang on 2025/03/06 16:34
Summary
-
Page properties (1 modified, 0 added, 0 removed)
Details
- Page properties
-
- Content
-
... ... @@ -76,7 +76,6 @@ 76 76 * Automatic RF Sense and CAD with ultra-fast AFC. 77 77 * Packet engine up to 256 bytes with CRC. 78 78 79 - 80 80 == 1.3 Features == 81 81 82 82 * LoRaWAN Class A & Class C protocol (default Class C) ... ... @@ -88,7 +88,6 @@ 88 88 * Support Modbus protocol 89 89 * Support Interrupt uplink (Since hardware version v1.2) 90 90 91 - 92 92 == 1.4 Applications == 93 93 94 94 * Smart Buildings & Home Automation ... ... @@ -98,7 +98,6 @@ 98 98 * Smart Cities 99 99 * Smart Factory 100 100 101 - 102 102 == 1.5 Firmware Change log == 103 103 104 104 [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]] ... ... @@ -286,7 +286,6 @@ 286 286 ))) 287 287 ))) 288 288 289 - 290 290 === 3.3.2 Configure sensors === 291 291 292 292 ((( ... ... @@ -305,7 +305,6 @@ 305 305 mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command 306 306 )))|(% style="width:256px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m 307 307 308 - 309 309 === 3.3.3 Configure read commands for each sampling === 310 310 311 311 ((( ... ... @@ -505,7 +505,6 @@ 505 505 * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-LN. User can see these commands below: 506 506 507 507 508 - 509 509 === 3.5.1 Common Commands === 510 510 511 511 They should be available for each of Dragino Sensors, such as: change uplink interval, reset device. For firmware v1.3, user can find what common commands it supports: [[End Device AT Commands and Downlink Command>>doc:Main.End Device AT Commands and Downlink Command.WebHome]] ... ... @@ -520,8 +520,64 @@ 520 520 The first byte of this package represents whether the configuration is successful, 00 represents failure, 01 represents success. Except for the first byte, the other is the previous downlink. (All commands except A8 type commands are applicable) 521 521 522 522 523 -3.5.3 Sensor related commands 517 +=== 3.5.3 Sensor related commands === 524 524 525 525 ==== ==== 526 526 521 +==== **RS485 Debug Command** ==== 522 + 523 +This command is used to configure the RS485 devices; they won’t be used during sampling. 524 + 525 +* **AT Command** 526 + 527 +(% class="box infomessage" %) 528 +((( 529 +**AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m** 530 +))) 531 + 532 +m: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command 533 + 534 +* **Downlink Payload** 535 + 536 +Format: A8 MM NN XX XX XX XX YY 537 + 538 +Where: 539 + 540 +* MM: 1: add CRC-16/MODBUS ; 0: no CRC 541 +* NN: The length of RS485 command 542 +* XX XX XX XX: RS485 command total NN bytes 543 +* YY: How many bytes will be uplink from the return of this RS485 command, 544 +** if YY=0, RS485-LN will execute the downlink command without uplink; 545 +** if YY>0, RS485-LN will uplink total YY bytes from the output of this RS485 command; Fport=200 546 +** if YY=FF, RS485-LN will uplink RS485 output with the downlink command content; Fport=200. 547 + 548 + 549 +**Example 1** ~-~-> Configure without ask for uplink (YY=0) 550 + 551 +To connect a Modbus Alarm with below commands. 552 + 553 +* The command to active alarm is: 0A 05 00 04 00 01 4C B0. Where 0A 05 00 04 00 01 is the Modbus command to read the register 00 40 where stored the DI status. The 4C B0 is the CRC-16/MODBUS which calculate manually. 554 + 555 +* The command to deactivate alarm is: 0A 05 00 04 00 00 8D 70. Where 0A 05 00 04 00 00 is the Modbus command to read the register 00 40 where stored the DI status. The 8D 70 is the CRC-16/MODBUS which calculate manually. 556 + 557 +So if user want to use downlink command to control to RS485 Alarm, he can use: 558 + 559 +(% style="color:#4f81bd" %)**A8 01 06 0A 05 00 04 00 01 00**(%%): to activate the RS485 Alarm 560 + 561 +(% style="color:#4f81bd" %)**A8 01 06 0A 05 00 04 00 00 00**(%%): to deactivate the RS485 Alarm 562 + 563 +A8 is type code and 01 means add CRC-16/MODBUS at the end, the 3^^rd^^ byte is 06, means the next 6 bytes are the command to be sent to the RS485 network, the final byte 00 means this command don’t need to acquire output. 564 + 565 + 566 +**Example 2** ~-~-> Configure with requesting uplink and original downlink command (**YY=FF**) 567 + 568 +User in IoT server send a downlink command: (% style="color:#4f81bd" %)**A8 01 06 0A 08 00 04 00 01 YY** 569 + 570 + 571 +RS485-LN got this downlink command and send (% style="color:#4f81bd" %)**0A 08 00 04 00 01 **(%%)to Modbus network. One of the RS485 sensor in the network send back Modbus reply **0A 08 00 04 00 00**. RS485-LN get this reply and combine with the original downlink command and uplink. The uplink message is: 572 + 573 + **A8** (% style="color:#4f81bd" %)**0A 08 00 04 00 **(% style="color:red" %)**01 06** ** **(% style="color:green" %)**0A 08 00 04 00 00** 574 + 575 + [[image:1654159460680-153.png]] 576 + 527 527 ==== ====