Download Print this page

LINOVISION IOT-S300AP Product Manual page 4

Barometric pressure sensor

Advertisement

Note: Access to other addresses is prohibited。
● Modbus RTU command
Supported MODBUS function codes: 0x03, 0x06
03H function code example: read the atmospheric pressure measurement data of the sensor
whose slave address is No. 1.
★Host query command:
Slave Address
Function
Starting Address Hi
Starting Address Lo
No. of Registers Hi
No. of Registers Lo
CRC Check Lo
CRC Check Hi
★Slave response:
Slave Address
Function
Byte Count
Data Hi
Data Lo
CRC Check Lo
CRC Check Hi
06H function code example: modify the baud rate (in this case, modify it to 57600bps)
★Host query command:
01H
Slave address
03H
Function code
00H
The high 8 bits of the start register address
00H
The lower 8 bits of the start register address
00H
The upper 8 bits of the number of registers
01H
The lower 8 bits of the number of registers
84H
CRC check code lower 8 bits
0AH
CRC check code high 8 bits
01H
Slave address
03H
Function code
02H
Length is 2 bytes
03H
Atmospheric pressure: 100.5kPa
EDH
Atmospheric pressure: 100.5kPa
78H
CRC check code lower 8 bits
F9H
CRC check code high 8 bits
4

Advertisement

loading