<
From version < 43.1 >
edited by Xiaoling
on 2022/06/02 16:53
To version < 44.3 >
edited by Xiaoling
on 2022/06/02 16:59
>
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -585,7 +585,6 @@
585 585  **AT+PAYVER: Set PAYVER field = 1**
586 586  )))
587 587  
588 -
589 589  * **Downlink Payload:**
590 590  
591 591  **0xAE 01**  ~-~-> Set PAYVER field =  0x01
... ... @@ -596,9 +596,9 @@
596 596  
597 597  ==== **Set RS485 Sampling Commands** ====
598 598  
599 -AT+COMMANDx, AT+DATACUTx and AT+SEARCHx
598 +AT+COMMANDx or AT+DATACUTx
600 600  
601 -These three commands are used to configure how the RS485-BL polling data from Modbus device. Detail of usage please see : [[polling RS485 device>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]].
600 +These three commands are used to configure how the RS485-LN polling data from Modbus device. Detail of usage please see : [[polling RS485 device>>||anchor="H3.3.3Configurereadcommandsforeachsampling"]].
602 602  
603 603  
604 604  * **AT Command:**
... ... @@ -613,12 +613,7 @@
613 613  **AT+DATACUTx: Configure how to handle return from RS485 devices.**
614 614  )))
615 615  
616 -(% class="box infomessage" %)
617 -(((
618 -**AT+SEARCHx: Configure search command**
619 -)))
620 620  
621 -
622 622  * **Downlink Payload:**
623 623  
624 624  **0xAF** downlink command can be used to set AT+COMMANDx or AT+DATACUTx.
... ... @@ -633,7 +633,7 @@
633 633  * NN:  0: no CRC; 1: add CRC-16/MODBUS ; 2: set the AT+DATACUT value.
634 634  * LL:  The length of AT+COMMAND or AT+DATACUT command
635 635  * XX XX XX XX: AT+COMMAND or AT+DATACUT command
636 -* YY:  If YY=0, RS485-BL will execute the downlink command without uplink; if YY=1, RS485-BL will execute an uplink after got this command.
630 +* YY:  If YY=0, RS485-BL will execute the downlink command without uplink; if YY=1, RS485-LN will execute an uplink after got this command.
637 637  
638 638  **Example:**
639 639  
... ... @@ -644,17 +644,7 @@
644 644  (% style="color:#037691" %)**AF 03 02 06 **(% style="color:orange" %)**0B**(% style="color:red" %)** 02 **(% style="color:green" %)**05 07 08 0A **(% style="color:#037691" %)**00**(%%): Same as AT+DATACUT3=(% style="color:orange" %)**11**(%%),(% style="color:red" %)**2**(%%),(% style="color:green" %)**5~~7+8~~10**
645 645  
646 646  
647 -**0xAB** downlink command can be used for set AT+SEARCHx
648 648  
649 -**Example:** **AB aa 01 03 xx xx xx** (03 here means there are total 3 bytes after 03) So
650 -
651 -* AB aa 01 03 xx xx xx  same as AT+SEARCHaa=1,xx xx xx
652 -* AB aa 02 03 xx xx xx 02 yy yy(03 means there are 3 bytes after 03, they are xx xx xx;02 means there are 2 bytes after 02, they are yy yy) so the commands
653 -
654 -**AB aa 02 03 xx xx xx 02 yy yy**  same as **AT+SEARCHaa=2,xx xx xx+yy yy**
655 -
656 -
657 -
658 658  ==== **Fast command to handle MODBUS device** ====
659 659  
660 660  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]].
... ... @@ -661,45 +661,32 @@
661 661  
662 662  This command is valid since v1.3 firmware version
663 663  
648 +AT+MBFUN can auto read the Modbus function code: 01, 02, 03 or 04. AT+MBFUN has lower priority vs AT+DATACUT command. If AT+DATACUT command is configured, AT+MBFUN will be ignore.
664 664  
665 -**AT+MBFUN has only two value:**
666 666  
667 -* **AT+MBFUN=1**: Enable Modbus reading. And get response base on the MODBUS return
668 -
669 -AT+MBFUN=1, device can auto read the Modbus function code: 01, 02, 03 or 04. AT+MBFUN has lower priority vs AT+DATACUT command. If AT+DATACUT command is configured, AT+MBFUN will be ignore.
670 -
671 -* **AT+MBFUN=0**: Disable Modbus fast reading.
672 -
673 673  **Example:**
674 674  
675 -* AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0).
653 +* AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). So RS485-LN.
676 676  * AT+COMMAND1= 01 03 00 10 00 08,1 ~-~-> read slave address 01 , function code 03, start address 00 01, quantity of registers 00 08.
677 677  * AT+COMMAND2= 01 02 00 40 00 10,1 ~-~-> read slave address 01 , function code 02, start address 00 40, quantity of inputs 00 10.
678 678  
679 -[[image:1654133913295-597.png]]
657 +[[image:image-20220602165351-6.png]]
680 680  
659 +[[image:image-20220602165351-7.png]]
681 681  
682 -[[image:1654133954153-643.png]]
683 683  
684 684  
685 -* **Downlink Commands:**
686 -
687 -**A9 aa** ~-~-> Same as AT+MBFUN=aa
688 -
689 -
690 -
691 691  ==== **RS485 command timeout** ====
692 692  
693 -Some Modbus device has slow action to send replies. This command is used to configure the RS485-BL to use longer time to wait for their action.
665 +Some Modbus device has slow action to send replies. This command is used to configure the RS485-LN to use longer time to wait for their action.
694 694  
695 -Default value: 0, range:  0 ~~ 5 seconds
667 +Default value: 0, range:  0 ~~ 65 seconds
696 696  
697 -
698 698  * **AT Command:**
699 699  
700 700  (% class="box infomessage" %)
701 701  (((
702 -**AT+CMDDLaa=hex(bb cc)**
673 +**AT+CMDDLaa=hex(bb cc)*1000**
703 703  )))
704 704  
705 705  **Example:**
... ... @@ -709,13 +709,13 @@
709 709  
710 710  * **Downlink Payload:**
711 711  
712 -0x AA aa bb cc
683 +**0x AA aa bb cc**
713 713  
714 -Same as: AT+CMDDLaa=hex(bb cc)
685 +Same as: AT+CMDDLaa=hex(bb cc)*1000
715 715  
716 716   **Example:**
717 717  
718 - **0xAA 01 03 E8**  ~-~-> Same as **AT+CMDDL1=1000 ms**
689 + 0xAA 01 00 01  ~-~-> Same as **AT+CMDDL1=1000 ms**
719 719  
720 720  
721 721  
image-20220602165351-7.png
Author
... ... @@ -1,0 +1,1 @@
1 +XWiki.Xiaoling
Size
... ... @@ -1,0 +1,1 @@
1 +19.3 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0