When I first tried using the dht11 overlay a while back, I had some difficulty getting it to work with a DHT22. I needed to set up some temperature sensors and so thought I would try again and it appears to work OK now with a DHT22. I am having one issue and that is what I think are conflicts with the system writes to the data storage location and my software's reads. I get two different error messages back from a cat of the storage location or the sensor value:
[email protected]:/sys/bus/iio/devices/iio:device0 $ cat in_temp_input
cat: in_temp_input: Input/output error
[email protected] ocalhost:/sys/bus/iio/devices/iio:device0 $ cat in_temp_input
cat: in_temp_input: Connection timed out
[email protected]:/sys/bus/iio/devices/iio:device0 $ cat in_temp_input
27000
[email protected]:/sys/bus/iio/devices/iio:device0 $ cat in_temp_input
27000
Is there some sort of file locking mechanism or do I just have to put up with the occasional failed read?
I have hunted around for documentation and code for the overlay but have not found anything. Is the code for the overlay public? There must be some more documentation somewhere because I had the location of the data in my notes from long ago but I can't find it anywhere other than in forum posts now.
Thanks