Closed miqi95 closed 5 years ago
That happens only in a single case: if the w1-therm kernel module reports that the sensor is not ready to read. From the kernel module specs:
The first line contains the nine hex bytes read along with a calculated crc value and YES or NO if it matched.
My bet would be that there is something wrong with the wiring, like loose connections or something, so that the CRC doesn't match.
As far as I can tell it's not an issue of this module, so I'm going to close this issue.
If there was a loose connection, how could each sensor provide a measurement even some of the time? There aren't any vibrations in my system that could mess with the CRC while taking measurements. How long does it take a sensor to be ready to read? I'm not sure I fully understand this process. Could I be using wires that are too long and my signal is weak?
I don't know you setup, so will have to talk generically. Each sensor will, if set to defaults, about 750ms and will block the code until it completes. It sends a request, the sensor then gets on with it with it (takes lots of reading and builds up the measurement), then send the result back. Once the is done, your code will then move on to the next sensor.
The data line need to be above a certain voltage at the sensor to generate the 'initial read request' (if I remember it correctly, it on the spec sheet).
On Wed, 24 Apr 2019, 8:05 pm miqi95, notifications@github.com wrote:
If there was a loose connection, how could each sensor provide a measurement even some of the time? There aren't any vibrations in my system that could mess with the CRC while taking measurements. How long does it take a sensor to be ready to read? I'm not sure I fully understand this process. Could I be using wires that are too long and my signal is weak?
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/timofurrer/w1thermsensor/issues/54#issuecomment-486385144, or mute the thread https://github.com/notifications/unsubscribe-auth/ACYAXNZU2VTZ3TOBKVJM5WLPSCVP7ANCNFSM4HH34WVQ .
First of all, great library, it's saved me a lot of time setting up my temperature monitoring system. I'm running this code to read from 12 different DS18B20 sensors every 30 secs and write to a CSV. The first time I ran it, it read about 210 times before throwing this error. Last time, only 2 reads before stopping. What is the problem here?