Last modified by Xiaoling on 2025/04/23 15:57

From version 30.2
edited by Xiaoling
on 2022/06/02 09:18
Change comment: There is no comment for this version
To version 30.4
edited by Xiaoling
on 2022/06/02 09:23
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -760,9 +760,15 @@
760 760  
761 761  * **AT Command**
762 762  
763 +(% class="box infomessage" %)
764 +(((
763 763  **AT+MOD=1** ~/~/ Set to support RS485-MODBUS type sensors. User can connect multiply RS485 , Modbus sensors to the A / B pins.
766 +)))
764 764  
768 +(% class="box infomessage" %)
769 +(((
765 765  **AT+MOD=2** ~/~/ Set to support TTL Level sensors, User can connect one TTL Sensor to the TXD/RXD/GND pins.
771 +)))
766 766  
767 767  
768 768  * **Downlink Payload**
... ... @@ -777,7 +777,10 @@
777 777  
778 778  * **AT Command**
779 779  
780 -AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m
786 +(% class="box infomessage" %)
787 +(((
788 +**AT+CFGDEV=xx xx xx xx xx xx xx xx xx xx xx xx,m**
789 +)))
781 781  
782 782  m: 0: no CRC; 1: add CRC-16/MODBUS in the end of this command.
783 783  
... ... @@ -793,6 +793,7 @@
793 793  * XX XX XX XX: RS485 command total NN bytes
794 794  * YY: How many bytes will be uplink from the return of this RS485 command, if YY=0, RS485-BL will execute the downlink command without uplink; if YY>0, RS485-BL will uplink total YY bytes from the output of this RS485 command
795 795  
805 +
796 796  **Example 1:**
797 797  
798 798  To connect a Modbus Alarm with below commands.
... ... @@ -818,25 +818,28 @@
818 818  
819 819  
820 820  
831 +==== **Set Payload version** ====
821 821  
822 -==== Set Payload version ====
823 -
824 824  This is the first byte of the uplink payload. RS485-BL can connect to different sensors. User can set the PAYVER field to tell server how to decode the current payload.
825 825  
826 -* AT Command:
835 +* **AT Command:**
827 827  
828 -AT+PAYVER: Set PAYVER field = 1
837 +(% class="box infomessage" %)
838 +(((
839 +**AT+PAYVER: Set PAYVER field = 1**
840 +)))
829 829  
830 830  
831 -* Downlink Payload:
843 +* **Downlink Payload:**
832 832  
833 -0xAE 01   à Set PAYVER field =  0x01
845 +**0xAE 01**  ~-~-> Set PAYVER field =  0x01
834 834  
835 -0xAE 0F   à Set PAYVER field =  0x0F
847 +**0xAE 0F**   ~-~-> Set PAYVER field =  0x0F
836 836  
837 837  
838 -==== Set RS485 Sampling Commands ====
839 839  
851 +==== **Set RS485 Sampling Commands** ====
852 +
840 840  AT+COMMANDx, AT+DATACUTx and AT+SEARCHx
841 841  
842 842  These three commands are used to configure how the RS485-BL polling data from Modbus device. Detail of usage please see : [[polling RS485 device>>path:#polling_485]].