strieflinger / open-cisterna

An Open Source fluid level sensor for cisterns.
Apache License 2.0
1 stars 0 forks source link

Timeout when reading from sensor #7

Open strieflinger opened 6 years ago

strieflinger commented 6 years ago

Basically on every measurement there is a timeout on the serial port. Here is what is logged

ERROR 2018-06-15T21:37:26Z: open_cisterna::maxsonar: Timed out while reading from serial port '/dev/serial0'

Since, we read the measured value in a loop, we nevertheless get a value. However, the current timeout of 100 ms might be too low, since the update frequency of the sensor is ~ 8 Hz in free running mode.