Hello, I have an issue with my SmartPlantPi. When it run for a while, the moisture value freeze and if the value is below the threshold, the system will keep watering the plan for ever. When I kill the script and I restart it, the moisture value gets updated correctly and everything is back to normal. Do you have any idea how to troubleshoot this? I am thinking trying to get the value from the IC2 port while the value is freezing see if the issue is with the moisture sensor but I am not sure how to do that.
Post by dougstrickland on Jul 20, 2017 5:22:42 GMT -8
I've had the same problem. It's hard to exactly reproduce, but it seems that if it triggers a watering more than once in a row it freezes the script. My dashboard gets stuck reading "Sampling" and hangs. it completely drains the water container, watering every 15 minutes until empty. Doug
Post by dougstrickland on Jul 20, 2017 18:42:25 GMT -8
Yep. I have the same issue as Romain. The OLED freezes, though the actual SmartPlantPi.py script continues to run. I have a similar output as well. Freeboard stops being updated, continually displaying 'Sampling', with no other updates being pushed to it.
Great Information! I'll take a look (actually John will - we suspect a resource 'locking' problem and he is magic at the sort of stuff. He's king of the embedded systems) at this as soon as we get the AM2315 reliability test running. We finished Bug Week July 2017 a bit early, so we can take another one.
Again, thanks for the logs. We just checked and the sensor is being read even in your log. However, when something locks, it no longer passes the new value to the check and water subroutine. the plot thickens.
Well we have figured out what has happened but not why yet. The state in SmartPlantPi (SPP_State) gets locked in Sampling and so it never updates again!
So, now we can go fix it. Sounds like we have made an error in the controlling software state machine. We now don't believe that it is a "Locking" problem with the OLED, the state machine is screwed up somewhere.