Evaluating the CO2-Sensor S8 from SenseAir.
Code for Arduino with some routines to read all register.
There is no standard library aviable now - since the functionality / documentation is poor.
Send a request like {0xFE, 0X04, 0X00, 0X03, 0X00, 0X01, 0XD5, 0XC5} and
wait for the response like {0xFE, 0X04, 0X02, 0X03, 0X88, 0XD5, 0XC5}.
Where byte
byte | example | description |
---|---|---|
0 | FE | any Address |
1 | 04 | function code (03 read hold reg / 04 read inp. register / 06 write) |
2,3 | 00 03 | starting Address |
4,5 | 00 01 | lenght of requested register |
6,7 | D5 C5 | CRC low / high |