romain
New Member
Posts: 12
Raspberry Pi: Yes
|
Post by romain on Jul 19, 2017 17:38:09 GMT -8
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. Thanks for your help, Best Regards, Romain
|
|
|
Post by SDL on Jul 20, 2017 4:26:38 GMT -8
Romain,
How long does it take before it freezes up? It sounds like the software is locking. Does the display keep updating?
BP
|
|
dougstrickland
Junior Member
Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
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 SDL on Jul 20, 2017 5:24:47 GMT -8
Doug,
Now we need to duplicate it. Does the OLED screen hang?
BP
|
|
romain
New Member
Posts: 12
Raspberry Pi: Yes
|
Post by romain on Jul 20, 2017 14:32:50 GMT -8
Hello, It's actually the same symptoms as Doug, it seems to happen when the watering occurs multiple times in a row. The OLED screen seems to hang, yes.
I kept the logs of script execution, see last 2 occurrences:
checkandWater: 68.00 Threshold / 70.03 Current checkandWater: 68.00 Threshold / 70.19 Current checkandWater: 68.00 Threshold / 70.00 Current checkandWater: 68.00 Threshold / 70.09 Current checkandWater: 68.00 Threshold / 69.81 Current checkandWater: 68.00 Threshold / 68.48 Current checkandWater: 68.00 Threshold / 68.30 Current checkandWater: 68.00 Threshold / 68.37 Current checkandWater: 68.00 Threshold / 67.98 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant checkandWater: 68.00 Threshold / 67.85 Current Watering Plant
=>>> RESTART THE SCRIPT checkandWater: 68.00 Threshold / 65.42 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant checkandWater: 68.00 Threshold / 66.50 Current Watering Plant
=>>> RESTART THE SCRIPT checkandWater: 68.00 Threshold / 62.39 Current Watering Plant checkandWater: 65.00 Threshold / 65.54 Current checkandWater: 65.00 Threshold / 66.28 Current checkandWater: 65.00 Threshold / 66.20 Current checkandWater: 65.00 Threshold / 66.33 Current checkandWater: 65.00 Threshold / 66.38 Current checkandWater: 65.00 Threshold / 66.31 Current checkandWater: 65.00 Threshold / 66.68 Current checkandWater: 65.00 Threshold / 66.93 Current
Let me know how can I troubleshoot this.
Thanks & Regards, Romain
|
|
dougstrickland
Junior Member
Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
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.
|
|
|
Post by SDL on Jul 20, 2017 19:22:03 GMT -8
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.
BP
|
|
romain
New Member
Posts: 12
Raspberry Pi: Yes
|
Post by romain on Jul 20, 2017 21:34:58 GMT -8
I have enable the DEBUG logs and reproduced the issue (value stuck to 66.64). See attached logs, I hope it will help.
|
|
|
Post by SDL on Jul 21, 2017 10:54:03 GMT -8
Thanks Romain!
John is just sitting down to look at the problem now. I'm going to lunch! Beer and Pizza. Well, maybe not the beer.
BP
|
|
|
Post by SDL on Jul 21, 2017 14:07:57 GMT -8
Romain,
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.
John
|
|
|
Post by SDL on Jul 22, 2017 8:21:22 GMT -8
Folks, 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! SPP_State=Sampling ROTARY_State=Idle 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. Oh, wait, I designed it. Hmmm. John
|
|
|
Post by SDL on Jul 22, 2017 10:00:43 GMT -8
All better now!
We uploaded Version 015 that fixes the frozen water issue.
Remember to either use conflocal.py or save your config.py if you don't!
John
|
|
romain
New Member
Posts: 12
Raspberry Pi: Yes
|
Post by romain on Jul 23, 2017 23:56:42 GMT -8
Thanks John!!! just downloaded the latest version 015, thanks for fixing it. Will let it run or a while to validate the fix. PS: you left the DEBUG = True
|
|
|
Post by SDL on Jul 24, 2017 8:40:45 GMT -8
ACK! We will go fix that immediately.
Bad John.
BP
|
|
dougstrickland
Junior Member
Posts: 54
Raspberry Pi: Yes
Other Device: Wemos, Arduino...
|
Post by dougstrickland on Jul 24, 2017 8:45:43 GMT -8
Romain - Have you tried any of the buttons - rotary or pushbutton yet? I got locked up as soon as I tried to set the moisture threshold...
|
|