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)
-
Attachments (0 modified, 1 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) ... ... @@ -500,6 +500,7 @@ 500 500 501 501 * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-LN. User can see these commands below: 502 502 502 + 503 503 === 3.5.1 Common Commands === 504 504 505 505 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]] ... ... @@ -514,8 +514,64 @@ 514 514 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) 515 515 516 516 517 -3.5.3 Sensor related commands 517 +=== 3.5.3 Sensor related commands === 518 518 519 519 ==== ==== 520 520 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 + 521 521 ==== ====
- 1654159460680-153.png
-
- Author
-
... ... @@ -1,0 +1,1 @@ 1 +XWiki.Xiaoling - Size
-
... ... @@ -1,0 +1,1 @@ 1 +24.9 KB - Content