|
Post by SDL on Dec 2, 2018 10:36:16 GMT -8
That is exactly what is happening Doxidad. It is blocking.
I am trying to recreate this problem in the lab and I have been unable to do this so far. I will go in and fix it so the program continues. If you restart the program, does it find the AM2315 without rebooting the Pi?
My current data:
AM2315 Stats: (g,br,bc) (1657, 0, 0) I have not seen this error in days of running. It would really help me if you answered the question above. It would give me the data I'm trying to get myself, with little success.
BP
|
|
|
Post by triggerfish on Dec 2, 2018 10:45:59 GMT -8
That is exactly what is happening Doxidad. It is blocking. I am trying to recreate this problem in the lab and I have been unable to do this so far. I will go in and fix it so the program continues. If you restart the program, does it find the AM2315 without rebooting the Pi? My current data: AM2315 Stats: (g,br,bc) (1657, 0, 0) I have not seen this error in days of running. It would really help me if you answered the question above. It would give me the data I'm trying to get myself, with little success. BP
In my experience, killing the program and restarting it with the rc.local start string works better than rebooting. Sometimes rebooting is just easier for me to accomplish (when I access it through my phone). I still have no specific order in which I can have things work or fail in a predictable way. I wish I found some rhythm in the problem. The only thing I seem to notice is that after the first bad read, the temp reading get's stuck. Usually that happens within the first 15 minutes of the program running.
I could possibly provide access to my pi for you if that would be any help.
|
|
|
Post by SDL on Dec 2, 2018 17:21:27 GMT -8
Peter,
I am really looking for the answers from you and Doxidad to these three questions:
When you get the None error what happens when (and I need the answer to these individually after a bomb):
1) If you stop and restart the program. Is the AM2315 detected?
2) If you reboot the Pi, is the AM2315 detected?
3) If you turn the power off and on to the Pi, is the AM2315 detected?
BP
|
|
|
Post by triggerfish on Dec 3, 2018 0:15:25 GMT -8
Peter, I am really looking for the answers from you and Doxidad to these three questions: Tomorrow I have physical access to my station again (IE "am at home"). I'll step through the questions then.
|
|
|
Post by doxidad on Dec 3, 2018 7:05:57 GMT -8
BP -
1- normally the AM2315 is detected but not always 2- normally the AM2315 is detected but not always 3- the AM2315 is detected.
The lost of the AM2315 usually happens within an a couple of minutes up to 2 hours. I did have one case over the weekend that I got 5 hours before the error occurred.
|
|
|
Post by SDL on Dec 3, 2018 13:50:21 GMT -8
Ah ambiguity. I was worried about the answers to #1 and #2. I'll stick the fixes in for #1 and #2, #3 requires a GrovePowerSave to fix for all times.
#3 essentially simulates powering the AM2315 on and off. I'm pretty sure it isn't the Raspberry Pi as I2C keeps working.
BP
|
|
|
Post by triggerfish on Dec 3, 2018 14:14:19 GMT -8
Peter, I am really looking for the answers from you and Doxidad to these three questions: When you get the None error what happens when (and I need the answer to these individually after a bomb): 1) If you stop and restart the program. Is the AM2315 detected? 2) If you reboot the Pi, is the AM2315 detected? 3) If you turn the power off and on to the Pi, is the AM2315 detected? BP 1) In general it does. In the relative rare case the MA2315 is not detected after booting, stopping and starting the program fixes it most of the time. Sometimes I need to stop and start again. 2) More often it does, than does not. 3) I just shut down the pi and switched it off with the sunair switch. After switching bakc on and booting, the AM2315 is detected. I removed the temp external power supply I use to cope with the lack of sun. I just realized the AM2315 detection problems may have occurred when the stuff shut down because of battery drainage. After getting recharged and staring, the AM2315 gets lost. I'll check on that now. Just wait for the battery to get drained.
|
|
|
Post by SDL on Dec 4, 2018 11:45:27 GMT -8
Thanks to both of you. I think I will try a software fix first. If that doesn't work, I have a hardware fix (the GrovePowerSave) that I KNOW will work.
BP
|
|
|
Post by triggerfish on Dec 4, 2018 23:51:09 GMT -8
Thanks to both of you. I think I will try a software fix first. If that doesn't work, I have a hardware fix (the GrovePowerSave) that I KNOW will work. BP Why would that definitely work?
|
|
|
Post by SDL on Dec 5, 2018 14:47:16 GMT -8
TriggerFish,
Turning power on and off to the AM2315 completely resets the AM2315 circuitry.
BP
|
|
|
Post by triggerfish on Dec 6, 2018 2:42:59 GMT -8
So basically the AM2315 will be switched on before talking a reading and switched off again...
|
|
|
Post by SDL on Dec 6, 2018 11:59:11 GMT -8
Trigger Fish,
Only when it fails. Then we would reset it!
BP
|
|
|
Post by triggerfish on Dec 6, 2018 12:10:30 GMT -8
Trigger Fish, Only when it fails. Then we would reset it! BP OK, got it, but please call me Peter...
|
|
|
Post by doxidad on Dec 18, 2018 13:09:28 GMT -8
Any progress on AM2315 stuff?
|
|
|
Post by triggerfish on Dec 18, 2018 13:11:41 GMT -8
|
|