More ghosts lately with the distance sensor errors stranding Carl - (He’s yelling at me!)
First I came home Sunday to:
2019-06-23 15:07|[logMaintenance.py.main]** Carl unable to dismount read_range_continuous_millimeters timeout **
(This one didn’t seem to be specifically distance sensor related:
2019-06-25 09:19|[logMaintenance.py.main]** Found Carl shutdown about 18in from dock **)
Then 9 hours after recharging and cold start:
2019-06-25 18:14|[logMaintenance.py.main]** distance sensor won’t init [Errno 5] Input/output error **
Attempted soft reboot, but:
2019-06-25 18:16|[logMaintenance.py.main]** distance sensor still won’t init **
Total shutdown and cold start seems to have fixed the issue for the time being.
I recently updated (/home/pi/Dexter) as of June 22 12:00 just before these ghosts appeared.
There is only one GoPiGo3 class running in Python3 (instantiated with use_mutex=True) at the time of each error. The program is juicer.py.
Any ideas what could have happened, or how to debug this?
10:23PM Carl just started shouting at me - “Cannot undock” (because the distance sensor crashed again.)
Stupid me, I didn’t do a backup before the update. Could this have something to do with a new way GoPiGo3 is handling I2C communications? Wouldn’t that be consistent with the mystery 180, mystery forward travel, and the distance sensor issue?
I’m shutting Carl down for the night for his own safety. I hope you all have some ideas for me to try tomorrow.
This is the point at which the errors first appeared this time:
********* CARL Basic STATUS *****
2019-06-25 21:08:33 up 2:48, 2 users, load average: 0.09, 0.06, 0.03
Battery Voltage: 11.81
5v Supply: 5.07
Estimated Life Remaining: 7 h 50 m
Processor Temp: 50.5’C
Clock Frequency: 600.0 MHz
throttled=0x0
Distance Sensor: nothing within 90 inches
Juicer Values:
Juicer Run Time 0 days 2h 46m
lastReading 11.864 volts
shortPeakVolts 11.967 volts
shortMeanVolts 11.865 volts
shortMinVolts 9.885 volts
longPeakVolts 13.543 volts
longMeanVolts 11.897 volts
longMinVolts 9.843 volts
Charging Status: Charging
Last Changed: 0 days 1h 13m 46s
Last Change Rule: 120
Docking Status: Docked
Docking Count: 217
Last Docking Change: 1h 14m 27s
chargeConditioning: 0
possibleEarlyTrickleVolts: 0.00
********* CARL Basic STATUS *****
2019-06-25 21:08:44 up 2:48, 2 users, load average: 0.28, 0.11, 0.04
Battery Voltage: 11.70
5v Supply: 5.06
Estimated Life Remaining: 7 h 50 m
Processor Temp: 50.5’C
Clock Frequency: 1.20 GHz
throttled=0x0
[Errno 5] Input/output error
[Errno 5] Input/output error
[Errno 5] Input/output error
Distance Sensor: -0.5 inches
and it continued until his battery was full (began trickle charging) and needed to get off the dock:
(Carl checks that nothing is in front of him that would block getting off the dock)
*** chargingState changed from: Charging to: Trickle Charging ****
*** by Rule: 230
**** Time to get off the pot
[Errno 5] Input/output error
[Errno 5] Input/output error
[Errno 5] Input/output error
** UNABLE TO UNDOCK **
**** Time to get off the pot
[Errno 5] Input/output error
[Errno 5] Input/output error
[Errno 5] Input/output error
**** UNABLE TO UNDOCK ****
********* CARL Basic STATUS *****
2019-06-25 22:23:10 up 4:03, 2 users, load average: 0.12, 0.09, 0.02
Battery Voltage: 10.37
5v Supply: 5.06
Estimated Life Remaining: 7 h 20 m
Processor Temp: 41.9’C
Clock Frequency: 600.0 MHz
throttled=0x0
[Errno 5] Input/output error
[Errno 5] Input/output error
[Errno 5] Input/output error
Distance Sensor: -0.5 inches