texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 4, 2020 20:08:09 GMT -8
After running for a couple weeks, my RPi Zero has started generating remote IO errors - will not pass the TCA9545 test with the same error. When running SkyWeather.py it simply locked up the process. I've checked all the wiring. My next step is to swap out the RPi Zero unless someone has a better idea.
|
|
smurphy
Full Member
Posts: 169
Raspberry Pi: Yes
Other Device: many ...
|
Post by smurphy on Nov 5, 2020 2:45:01 GMT -8
You have a screenshot or paste of the error? That is not enough info I'm afraid
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 5, 2020 9:05:13 GMT -8
When running SkyWeather.py:
>>>>>>>>>>>>>>>>>>><<<<<<<<<<< TCA9545 I2C Mux Not Present >>>>>>>>>>>>>>>>>>><<<<<<<<<<< ('Pi Camera Revision', u'ov5647') Error accessing 0x48: Check your I2C address Error accessing 0x48: Check your I2C address Type Error I/O error(121): Remote I/O error ('after bme680', False) as3935 start I/O error(121): Remote I/O error I/O error(121): Remote I/O error after SHT30 SkyWeather Weather Station Version 055 - SwitchDoc Labs
Program Started at:2020-11-05 12:03:36
---------------------- I2C Mux - TCA9545: Not Present BME680: Not Present BMP280: Not Present SkyCam: Present DS3231: Not Present HDC1080: Not Present SHT30: Not Present AM2315: Not Present ADS1015: Not Present ADS1115: Not Present AS3935: Not Present OLED: Not Present SunAirPlus/SunControl: Not Present SolarMAX: Not Present SI1145 Sun Sensor: Not Present TSL2591 Sun Sensor: Not Present DustSensor: Present WXLink: Not Present Dual SolarMAX/WXLink: Not Present
UseBlynk: Present UseMySQL: Present Check WLAN: Present WeatherUnderground: Not Present UseWeatherStem: Present ---------------------- sendmail exception raised ----------------- Sample and Display ----------------- ----------------- Weather Sampling ----------------- ----------------- Traceback (most recent call last): File "SkyWeather.py", line 1789, in <module> sampleAndDisplay() File "SkyWeather.py", line 1318, in sampleAndDisplay sampleWeather() File "SkyWeather.py", line 1022, in sampleWeather HTUhumidity = bmp180Humidity UnboundLocalError: local variable 'bmp180Humidity' referenced before assignment root@SkyWeather:/home/pi/SDL_Pi_SkyWeather#
Note I control-C'd out of it.
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 5, 2020 9:06:27 GMT -8
When testing the TCA9545
root@SkyWeather:/home/pi/SDL_Pi_SkyWeather# python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73 Program Started at:2020-11-05 12:05:23
Traceback (most recent call last): File "testSDL_Pi_TCA9545.py", line 51, in <module> tca9545 = SDL_Pi_TCA9545.SDL_Pi_TCA9545(addr=TCA9545_ADDRESS, bus_enable = TCA9545_CONFIG_BUS0) File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 47, in __init__ self._write(TCA9545_REG_CONFIG, config) File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 52, in _write self._bus.write_byte_data(self._addr, register, data) IOError: [Errno 121] Remote I/O error
This terminated without any action on my part.
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 5, 2020 9:16:15 GMT -8
I also get similar results testing the various I2C sensors. Looks like the bus is not there.
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 5, 2020 15:55:08 GMT -8
I did swap to a Pi 3B+ which does work - not sure if there is something failing on the Pi Zero or just the act of unplugging and replugging 'fixed it' The controls engineer in me hates intermittent or mystery problems...
|
|
|
Post by SDL on Nov 6, 2020 10:42:18 GMT -8
Ha! I hear you on intermittent or mystery problems.
I wonder if it is a power supply issue on the Pi Zero? did you use the same power supply?
Did you use the same SD Card for both?
BP
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 7, 2020 15:24:16 GMT -8
I am running on solar power - but have a USB power supply hooked up while troubleshooting. I have had problems with the pi rebooting, on a 60 second period with the power coming from the solar system. I stuck a USB battery between the pi and the solar system which stopped that while trouble shooting the solar system, but it still cycles - and I have checked the wiring several times. I have a new SD card running now, but haven't swapped to a pi zero yet, and I am running on the plug for now.
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 7, 2020 17:26:13 GMT -8
Reloaded a new SD card and a Pi 4 - still getting the following errors:
File "testSDL_Pi_TCA9545.py", line 51, in <module> tca9545 = SDL_Pi_TCA9545.SDL_Pi_TCA9545(addr=TCA9545_ADDRESS, bus_enable = TCA9545_CONFIG_BUS0) File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 47, in __init__ self._write(TCA9545_REG_CONFIG, config) File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 52, in _write self._bus.write_byte_data(self._addr, register, data) IOError: [Errno 121] Remote I/O error
|
|
|
Post by SDL on Nov 9, 2020 10:52:02 GMT -8
Do you have i2c installed?
What happens if you type "sudo i2cdetect -y 1" ?
BP
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 13, 2020 22:15:45 GMT -8
I wound up completely reloading the SD card with a headless version of Buster, reloaded the SDL software and reinstalled everything - it is now running. I do think I have a problem with the watchdog timer, but I intend to run it for a couple days. I lost the information banner on top of the sky camera photos for some reason. I think loading the headless version dropped some process. I haven't looked at the code for the camera, but I am in the process of doing so now. There may have been a loose connection somewhere, but I verified wiring and all the grove connectors properly seated when I rebuilt the SD card.
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 14, 2020 11:42:38 GMT -8
Fixed the banner problem - missing fonts in the headless pi image.
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 14, 2020 18:47:41 GMT -8
Still having problems with resetting the solar power supply - hookups are correct, but it will cycle every minute or two when battery capacity drops below 25% even with power hooked up to the solar card.
|
|
texansooner
New Member
Posts: 15
Raspberry Pi: Yes
Other Device: Many
|
Post by texansooner on Nov 15, 2020 15:31:38 GMT -8
The SunControl card died - had a couple odd symptoms - the battery charge light started blinking at about 1 HZ, and the output went to zero. I turned everything off, pulled the card out, and plugged it into a USB charger with nothing else plugged in - the power available light lit initially. I then unplugged everything and plugged in a lipro battery which was mostly charged - the output lights would not light regardless of the power switch position, and I almost burned myself in the area of the "CURRENT SET" component (a diode?). With the battery plugged in, the only indication on the card is a faint blue "VOLTAGE BOOST ON" led. So, not running on solar power for a few days.
|
|
smurphy
Full Member
Posts: 169
Raspberry Pi: Yes
Other Device: many ...
|
Post by smurphy on Nov 16, 2020 9:47:26 GMT -8
when using the SuncControl card, be very sure toi use a 5.6V Zener diode (10W) to limit the voltage reaching it. I realized that my PI Zer rebooted while in full sunlight and the battery was charged as the voltage went up to 8V and more.
I however had no issues with low battery power.
PS: Can't test anymore, as I stopped using solar power. Over here, only in full summer could I use the anticipated setup. For winter, according to my computations, I'd nee 1m² of solar panel to make sure I can charge the battery during rainy days.
|
|