Post by impactoz on Jul 6, 2019 6:11:09 GMT -8
Been operating for a few days - and then suddenly I noticed it had stopped...
So start it up again - and noticed I was getting an error... Started again - it worked for the first run, then got errors again....
Tried all the tests again - and found where it was faulting... turned the power off to the unit, and restarted the Pi... Did the test - it worked for bus 0 then died... tried it again and it dies on bus 0
From below - the First run of testing TCA9545 got me BUS 0 then notihing else.... and the second execution seconds later would not even return Bus 0 at all....
First run;
pi@malmsbury-farm:~/SDL_Pi_SkyWeather $ sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73
Program Started at:2019-07-07 00:04:18
-----------BUS 0-------------------
tca9545 control register B3-B0 = 0x1
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- 77
-----------------------------------
-----------BUS 1-------------------
Traceback (most recent call last):
File "testSDL_Pi_TCA9545.py", line 77, in <module>
control_register = tca9545.read_control_register()
File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 68, in read_control_register
value = self._read()
File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 57, in _read
returndata = self._bus.read_byte(self._addr)
IOError: [Errno 121] Remote I/O error
2nd Run;
pi@malmsbury-farm:~/SDL_Pi_SkyWeather $ sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73
Program Started at:2019-07-07 00:04:38
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
pi@malmsbury-farm:~/SDL_Pi_SkyWeather $
So start it up again - and noticed I was getting an error... Started again - it worked for the first run, then got errors again....
Tried all the tests again - and found where it was faulting... turned the power off to the unit, and restarted the Pi... Did the test - it worked for bus 0 then died... tried it again and it dies on bus 0
From below - the First run of testing TCA9545 got me BUS 0 then notihing else.... and the second execution seconds later would not even return Bus 0 at all....
First run;
pi@malmsbury-farm:~/SDL_Pi_SkyWeather $ sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73
Program Started at:2019-07-07 00:04:18
-----------BUS 0-------------------
tca9545 control register B3-B0 = 0x1
ignore Interrupts if INT3' - INT0' not connected
tca9545 control register Interrupts = 0x0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- 48 -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- 73 -- -- -- 77
-----------------------------------
-----------BUS 1-------------------
Traceback (most recent call last):
File "testSDL_Pi_TCA9545.py", line 77, in <module>
control_register = tca9545.read_control_register()
File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 68, in read_control_register
value = self._read()
File "./SDL_Pi_TCA9545/SDL_Pi_TCA9545.py", line 57, in _read
returndata = self._bus.read_byte(self._addr)
IOError: [Errno 121] Remote I/O error
2nd Run;
pi@malmsbury-farm:~/SDL_Pi_SkyWeather $ sudo python testSDL_Pi_TCA9545.py
Test SDL_Pi_TCA9545 Version 1.0 - SwitchDoc Labs
Sample uses 0x73
Program Started at:2019-07-07 00:04:38
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
pi@malmsbury-farm:~/SDL_Pi_SkyWeather $