|
Post by kbrighton on Feb 3, 2018 6:51:55 GMT -8
I've had similar problems with my AM2315. A few times a day it will either return a CRC of -1, or a temperature value that's a large difference from the last reading. Sometimes the difference is small, like 10 degrees, and sometimes it's hugely different, like -2800 degrees. And sometimes it will run an entire day without any problem whatsoever.
I worked around this by modifying the code in GroveWeatherPi.py to remember the previous temperature and retry if either the CRC is -1, or the temperature difference is more than 5 degrees. I set it up to retry up to 10 times. I'm also syslogging when this happens so I can check on the frequency of the problem. So far it's been running 3 months and has never had to retry more than 7 times.
I've also noticed that the sensor gives reasonable readings when the temperatures are around 0C or above, but at lower temperatures it seems to read up to 5 degrees higher than measured with a digital thermometer. For example at outside temperatures of -20C, it might read -14C.
So far I've just been living with it.
|
|
|
Post by SDL on Feb 4, 2018 19:39:36 GMT -8
Excellent fix. You should definitely ignore it if you get a CRC of -1.
We have this on our February 2018 Bugweek Buglist.
BP
|
|
|
Post by Juliwood on Jul 29, 2018 10:48:45 GMT -8
Hi,
Finally did you find any solution with this bad-data/not present problem?
I having the same issue with my AM2315 sensor. Every 10-20 readings gives a wrong lecture.
I.e. jumps from 29.5 C and 58% Humidity to -17.8 ÂșC.
|
|
|
Post by SDL on Jul 30, 2018 6:51:10 GMT -8
Yes, we redid the software for Arduino, ESP8266 and ESP32 and it is much, much better (1 in 10000 and even that is detected)
Check on GitHub.com/switchdoclabs
What driver are you using?
BP
|
|
|
Post by Juliwood on Aug 11, 2018 11:34:23 GMT -8
|
|
|
Post by SDL on Aug 12, 2018 12:54:15 GMT -8
Juliwood,
We need to get a better idea of what you are doing so we can help you. Please give us a picture of your setup and tell us what software you have installed and what you are running. Give us the screen shots too.
Remote debugging is hard! With more information we can definitely help.
BP
|
|