<
From version < 45.3 >
edited by Xiaoling
on 2022/06/02 17:05
To version < 44.1 >
edited by Xiaoling
on 2022/06/02 16:53
>
Change comment: Uploaded new attachment "image-20220602165351-7.png", version {1}

Summary

Details

Page properties
Content
... ... @@ -585,6 +585,7 @@
585 585  **AT+PAYVER: Set PAYVER field = 1**
586 586  )))
587 587  
588 +
588 588  * **Downlink Payload:**
589 589  
590 590  **0xAE 01**  ~-~-> Set PAYVER field =  0x01
... ... @@ -595,9 +595,9 @@
595 595  
596 596  ==== **Set RS485 Sampling Commands** ====
597 597  
598 -AT+COMMANDx or AT+DATACUTx
599 +AT+COMMANDx, AT+DATACUTx and AT+SEARCHx
599 599  
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"]].
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"]].
601 601  
602 602  
603 603  * **AT Command:**
... ... @@ -612,7 +612,12 @@
612 612  **AT+DATACUTx: Configure how to handle return from RS485 devices.**
613 613  )))
614 614  
616 +(% class="box infomessage" %)
617 +(((
618 +**AT+SEARCHx: Configure search command**
619 +)))
615 615  
621 +
616 616  * **Downlink Payload:**
617 617  
618 618  **0xAF** downlink command can be used to set AT+COMMANDx or AT+DATACUTx.
... ... @@ -627,7 +627,7 @@
627 627  * NN:  0: no CRC; 1: add CRC-16/MODBUS ; 2: set the AT+DATACUT value.
628 628  * LL:  The length of AT+COMMAND or AT+DATACUT command
629 629  * XX XX XX XX: AT+COMMAND or AT+DATACUT 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.
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.
631 631  
632 632  **Example:**
633 633  
... ... @@ -638,7 +638,17 @@
638 638  (% 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**
639 639  
640 640  
647 +**0xAB** downlink command can be used for set AT+SEARCHx
641 641  
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 +
642 642  ==== **Fast command to handle MODBUS device** ====
643 643  
644 644  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]].
... ... @@ -645,32 +645,45 @@
645 645  
646 646  This command is valid since v1.3 firmware version
647 647  
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.
649 649  
665 +**AT+MBFUN has only two value:**
650 650  
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 +
651 651  **Example:**
652 652  
653 -* AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0). So RS485-LN.
675 +* AT+MBFUN=1 and AT+DATACUT1/AT+DATACUT2 are not configure (0,0,0).
654 654  * 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.
655 655  * 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.
656 656  
657 -[[image:image-20220602165351-6.png]]
679 +[[image:1654133913295-597.png]]
658 658  
659 -[[image:image-20220602165351-7.png]]
660 660  
682 +[[image:1654133954153-643.png]]
661 661  
662 662  
685 +* **Downlink Commands:**
686 +
687 +**A9 aa** ~-~-> Same as AT+MBFUN=aa
688 +
689 +
690 +
663 663  ==== **RS485 command timeout** ====
664 664  
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.
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.
666 666  
667 -Default value: 0, range:  0 ~~ 65 seconds
695 +Default value: 0, range:  0 ~~ 5 seconds
668 668  
697 +
669 669  * **AT Command:**
670 670  
671 671  (% class="box infomessage" %)
672 672  (((
673 -**AT+CMDDLaa=hex(bb cc)*1000**
702 +**AT+CMDDLaa=hex(bb cc)**
674 674  )))
675 675  
676 676  **Example:**
... ... @@ -680,13 +680,13 @@
680 680  
681 681  * **Downlink Payload:**
682 682  
683 -**0x AA aa bb cc**
712 +0x AA aa bb cc
684 684  
685 -Same as: AT+CMDDLaa=hex(bb cc)*1000
714 +Same as: AT+CMDDLaa=hex(bb cc)
686 686  
687 687   **Example:**
688 688  
689 - 0xAA 01 00 01  ~-~-> Same as **AT+CMDDL1=1000 ms**
718 + **0xAA 01 03 E8**  ~-~-> Same as **AT+CMDDL1=1000 ms**
690 690  
691 691  
692 692  
... ... @@ -721,47 +721,17 @@
721 721  
722 722  Ask device to send an uplink immediately.
723 723  
724 -* **AT Command:**
725 -
726 -No AT Command for this, user can press the [[ACT button>>path:#Button]] for 1 second for the same.
727 -
728 -
729 729  * **Downlink Payload:**
730 730  
731 -**0x08 FF**, RS485-LN will immediately send an uplink.
755 +**0x08 FF**, RS485-BL will immediately send an uplink.
732 732  
733 733  
734 -==== ====
735 735  
736 736  ==== **Clear RS485 Command** ====
737 737  
738 738  The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them.
739 739  
740 -* **AT Command:**
741 741  
742 -**AT+CMDEAR=mm,nn**   mm: start position of erase ,nn: stop position of erase
743 -
744 -Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10
745 -
746 -Example screen shot after clear all RS485 commands.
747 -
748 -
749 -The uplink screen shot is:
750 -
751 -[[image:1654160691922-496.png]][[image:file:///C:/Users/93456/AppData/Local/Temp/msohtmlclip1/01/clip_image001.png]]
752 -
753 -
754 -* **Downlink Payload:**
755 -
756 -**0x09 aa bb** same as AT+CMDEAR=aa,bb
757 -
758 -
759 -
760 -==== **Clear RS485 Command** ====
761 -
762 -The AT+COMMANDx and AT+DATACUTx settings are stored in special location, user can use below command to clear them.
763 -
764 -
765 765  * **AT Command:**
766 766  
767 767  (% style="color:#037691" %)**AT+CMDEAR=mm,nn** (%%) mm: start position of erase ,nn: stop position of erase Etc. AT+CMDEAR=1,10 means erase AT+COMMAND1/AT+DATACUT1 to AT+COMMAND10/AT+DATACUT10
1654160691922-496.png
Author
... ... @@ -1,1 +1,0 @@
1 -XWiki.Xiaoling
Size
... ... @@ -1,1 +1,0 @@
1 -109.3 KB
Content
Copyright ©2010-2024 Dragino Technology Co., LTD. All rights reserved
Dragino Wiki v2.0