![]() |
fetcher 0.0.0
A command line utility for reading sensor data over I2C and providing it over stdout.
|
A process for fetching data from sensors using the I2C protocol.
See the help documentation with the command: use fetcher.
The output of fetcher looks like:
Sensor data output can either be printed in plain-text, or it can be read from the named message queue fetcher/sensors.
Messages on the message queue start with a one-byte type specifier which is one of the following:
Followed by data representing the measurement.
Temperature, pressure, humidity and altitude are floats. Time is a 32 bit integer. Linear acceleration and angular velocity are 3D vectors (vec3d_t) of 3 floats.
In order for fetcher to recognize the sensors on the board, the EEPROM must encode the ID in this format:
Fields:
<board name>: The name of the board. Ex: Sensor boardREV <x>: The revision of the board. Ex: REV B<sensor id>: The identifier of the sensor. Ex: MS5611<address>: The 7 bit I2C address of the sensor in hexadecimal (without the leading 0x). Ex: 77