How to use “Universal Sensor Converter”
2024-02-18 05:54:03
In order to access more RS485 sensors, UbiBot has developed the Universal Sensor Converter function, which can be set easily according to the sensor communication protocol. At present, it only supports GS1 series v2.0.7 and above firmware. Before using, please make sure the communication protocol of the sensor meets the following format.
Send/Inquiry Frame
Receive/Answer Frame
The audio cable wiring sequence for the external sensor is shown below. Please confirm the working voltage of the sensor to be connected, if the output voltage of the RS485 interface of the device is not satisfied, you need to supply power to the sensor separately.
Universal Sensor Converter Settings
Click [Data Factory] → [Universal Sensor Converter] → [New]. According to the communication protocol of the sensor to be connected, fill in the sensor name, baud rate, address, function code and sensor information. You can also paste the command string and parse it automatically.
After the setting is completed, enter the device page, click [Settings] → [Data Management]. Scroll down to Universal Sensor and click [Edit]. Then select the corresponding sensor and set the acquisition cycle.
Click [Sensor Display Settings], find the corresponding field and click [Edit] to select the sensor data name of the sensor setting.
Click the unit as shown in the figure and select the corresponding unit or select "External current to RS485 converter" to customize the unit.
Example
For external NH4-N sensor, the sensor address is 0x05, the baud rate is 4800 bit/s, the function code is 03, and the communication protocol and register address are listed in the table below.
Send Frame
Slave Address |
Function Code |
Register Address |
No. of registers |
CRC LSB |
CRC MSB |
1 byte |
1 byte |
2 byte |
2 byte |
1 byte |
1 byte |
Receive Frame
Slave Address |
Function Code |
No. of Bytes |
Data Area 1 |
Data Area 2 |
... |
Data Area n |
CRC LSB |
CRC MSB |
1 byte |
1 byte |
1 byte |
1 byte |
1 byte |
... |
1 byte |
1 byte |
1 byte |
Register Address
Register Address |
Function Code |
Data type |
Description |
0000H |
0x03 |
16-bit unsigned integer |
ammonia nitrogen value (10 *actual value) |
0001H |
0x03 |
16-bit unsigned integer |
PH value (10 *actual value) |
0002H |
0x03 |
16-bit signed integer |
temperature (10 *actual value) |
The new sensor settings are as follows.
