EasyManua.ls Logo

SENSIRION SCD30 - Get data ready status

SENSIRION SCD30
19 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
www.sensirion.com Version 0.93 – D1 – December 2018 9/19
Modbus
Set measurement interval
Request:
Slave
Addre
ss
Functi
on
Code
Addre
ss
MSB
Addre
ss
LSB
Conte
nt
MSB
Conte
nt
LSB
CRC
LSB
CRC
MSB
0x61
0x06
0x00
0x25
0x00
0x02
0x10
0x60
Response:
Slave
Address
Function
Code
Address
MSB
Address
LSB
Content
MSB
Content
LSB
CRC
LSB
CRC
MSB
0x61
0x06
0x00
0x25
0x00
0x02
0x10
0x60
Get measurement interval
Request
Slave
Address
Function
Code
Address
MSB
Address
LSB
No. of
register
s MSB
No. of
register
s LSB
CRC
LSB
CRC
MSB
0x61
0x03
0x00
0x25
0x00
0x01
0x9C
0x61
Response:
Slave
Address
Function
Code
No. of
Bytes
Content
MSB
Content
LSB
CRC
LSB
CRC
MSB
0x61
0x03
0x02
0x00
0x02
0xB9
0x8D
1.3.4 Get data ready status
Data ready command is used to determine if a measurement can be read from the sensor’s buffer. Whenever there is a
measurement available from the internal buffer this command returns 1 and 0 otherwise. As soon as the measurement has been
read by the return value changes to 0.
It is recommended to use data ready status byte before readout of the measurement values.
Protocol
Address (hex)
Description
I2C
0x0202, no argument needed
Data ready status. Status
equals “1” when a
measurement is available to
be read from the sensor.
Protocol
Function Code
Address
Modbus
3
0x0027
Full sequence examples:
Protocol
Data to write/Read
Description
I2C
Write:
Start
Write
Header
Cmd
MSB
Cmd
LSB
Stop
Start
0xC2
0x02
0x02
Stop
Read:
Start
Read
Header
Data
Ready
MSB
Data
Ready
LSB
CRC
Stop
Start
0xC3
0x00
0x01
0xB0
Stop
Reading Data Ready status
(returning 1)
Modbus
Request
Slave
Address
Function
Code
Address
MSB
Address
LSB
No. of
registers
MSB
No. of
registers
LSB
CRC
LSB
CRC
MSB
0x61
0x03
0x00
0x27
0x00
0x01
0x3D
0xA1
Response:
Slave
Address
Function
Code
No. of
Bytes
Content
MSB
Content
LSB
CRC
LSB
CRC
MSB
0x61
0x03
0x02
0x00
0x01
0xF9
0x8C
I2C: SDA is controlled by the I2C master in clear blocks and by the sensor in dark blocks.