<
From version < 42.2 >
edited by Xiaoling
on 2022/06/02 16:44
To version < 41.7 >
edited by Xiaoling
on 2022/06/02 16:37
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -76,6 +76,7 @@
76 76  * Automatic RF Sense and CAD with ultra-fast AFC.
77 77  * Packet engine up to 256 bytes with CRC.
78 78  
79 +
79 79  == 1.3 Features ==
80 80  
81 81  * LoRaWAN Class A & Class C protocol (default Class C)
... ... @@ -87,6 +87,7 @@
87 87  * Support Modbus protocol
88 88  * Support Interrupt uplink (Since hardware version v1.2)
89 89  
91 +
90 90  == 1.4 Applications ==
91 91  
92 92  * Smart Buildings & Home Automation
... ... @@ -96,6 +96,7 @@
96 96  * Smart Cities
97 97  * Smart Factory
98 98  
101 +
99 99  == 1.5 Firmware Change log ==
100 100  
101 101  [[RS485-LN Image files – Download link and Change log>>url:http://www.dragino.com/downloads/index.php?dir=RS485-LN/]]
... ... @@ -283,6 +283,7 @@
283 283  )))
284 284  )))
285 285  
289 +
286 286  === 3.3.2 Configure sensors ===
287 287  
288 288  (((
... ... @@ -301,6 +301,7 @@
301 301  mm: 0: no CRC, 1: add CRC-16/MODBUS in the end of this command
302 302  )))|(% style="width:256px" %)AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
303 303  
308 +
304 304  === 3.3.3 Configure read commands for each sampling ===
305 305  
306 306  (((
... ... @@ -500,6 +500,7 @@
500 500  * (% style="color:#4f81bd" %)**Sensor Related Commands**(%%): These commands are special designed for RS485-LN.  User can see these commands below:
501 501  
502 502  
508 +
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,64 +514,8 @@
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 ===
523 +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 -
577 577  ==== ====
1654159460680-153.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -24.9 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0