Post by peterV on Oct 8, 2021 4:37:34 GMT -8
Hello
I bought a suncontrol card, a Grove Base Hat (seeed) and use a Raspberry Pi Zero W.
No LiPo yet, just installing an checking. Have the SC-boar with USB mini. power LED is red and Charge LED is green.
I made an adaption is programs ... Pin_USBControlControl =27 and Pin_WatchDog_Done = 17,(instead of 21 and 13) since my Grovehat does not support pin
my problem is the testprogs gone error message and I seem to be blocked somehow.
my question is: can anyone see what could be the cause of this problem.
sudo python testwatchdog gives:
Traceback (most recent call last):
File "testWatchDog.py", line 43, in <module>
sunControl = SDL_Pi_SunControl.SDL_Pi_SunControl(WatchDog_Done=Pin_WatchDog_Done, WatchDog_Wake=Pin_WatchDog_Wake)
File "/home/pi/SDL_Pi_SunControl/SDL_Pi_SunControl.py", line 75, in __init__
self._ina3221 = SDL_Pi_INA3221.SDL_Pi_INA3221(addr=self._INA3221Address)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 91, in __init__
self._write_register_little_endian(INA3221_REG_CONFIG, config)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 123, in _write_register_little_endian
self._bus.write_word_data(self._addr, register, switchdata)
IOError: [Errno 121] Remote I/O error
sudo python testSuncontrol.py gives:
Traceback (most recent call last):
File "testWatchDog.py", line 43, in <module>
sunControl = SDL_Pi_SunControl.SDL_Pi_SunControl(WatchDog_Done=Pin_WatchDog_Done, WatchDog_Wake=Pin_WatchDog_Wake)
File "/home/pi/SDL_Pi_SunControl/SDL_Pi_SunControl.py", line 75, in __init__
self._ina3221 = SDL_Pi_INA3221.SDL_Pi_INA3221(addr=self._INA3221Address)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 91, in __init__
self._write_register_little_endian(INA3221_REG_CONFIG, config)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 123, in _write_register_little_endian
self._bus.write_word_data(self._addr, register, switchdata)
IOError: [Errno 121] Remote I/O error
sudo python SDL_Pi_SunControl.py.....nothing special
sudo nano testSDL_Pi_INA3221.py gives:
Traceback (most recent call last):
File "testSDL_Pi_INA3221.py", line 30, in <module>
ina3221 = SDL_Pi_INA3221.SDL_Pi_INA3221(addr=0x40)
File "/home/pi/SDL_Pi_SunControl/SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 91, in __init__
self._write_register_little_endian(INA3221_REG_CONFIG, config)
File "/home/pi/SDL_Pi_SunControl/SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 123, in _write_register_little_endian
self._bus.write_word_data(self._addr, register, switchdata)
IOError: [Errno 121] Remote I/O erro
[email protected]:~/SDL_Pi_SunControl/SDL_Pi_INA3221 $ sudo python SDL_Pi_INA3221.py:....nothing special
[email protected]:~/SDL_Pi_SunControl $ lsmod | grep i2c_
i2c_bcm2835 16384 0
i2c_dev 16384 0
[email protected]:~/SDL_Pi_SunControl $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- 08 -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
raspberrypi:/ $ sudo modprobe....nothing
please, can anyone give me a clue how to solve this problem?
Thanks
I bought a suncontrol card, a Grove Base Hat (seeed) and use a Raspberry Pi Zero W.
No LiPo yet, just installing an checking. Have the SC-boar with USB mini. power LED is red and Charge LED is green.
I made an adaption is programs ... Pin_USBControlControl =27 and Pin_WatchDog_Done = 17,(instead of 21 and 13) since my Grovehat does not support pin
my problem is the testprogs gone error message and I seem to be blocked somehow.
my question is: can anyone see what could be the cause of this problem.
sudo python testwatchdog gives:
Traceback (most recent call last):
File "testWatchDog.py", line 43, in <module>
sunControl = SDL_Pi_SunControl.SDL_Pi_SunControl(WatchDog_Done=Pin_WatchDog_Done, WatchDog_Wake=Pin_WatchDog_Wake)
File "/home/pi/SDL_Pi_SunControl/SDL_Pi_SunControl.py", line 75, in __init__
self._ina3221 = SDL_Pi_INA3221.SDL_Pi_INA3221(addr=self._INA3221Address)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 91, in __init__
self._write_register_little_endian(INA3221_REG_CONFIG, config)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 123, in _write_register_little_endian
self._bus.write_word_data(self._addr, register, switchdata)
IOError: [Errno 121] Remote I/O error
sudo python testSuncontrol.py gives:
Traceback (most recent call last):
File "testWatchDog.py", line 43, in <module>
sunControl = SDL_Pi_SunControl.SDL_Pi_SunControl(WatchDog_Done=Pin_WatchDog_Done, WatchDog_Wake=Pin_WatchDog_Wake)
File "/home/pi/SDL_Pi_SunControl/SDL_Pi_SunControl.py", line 75, in __init__
self._ina3221 = SDL_Pi_INA3221.SDL_Pi_INA3221(addr=self._INA3221Address)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 91, in __init__
self._write_register_little_endian(INA3221_REG_CONFIG, config)
File "./SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 123, in _write_register_little_endian
self._bus.write_word_data(self._addr, register, switchdata)
IOError: [Errno 121] Remote I/O error
sudo python SDL_Pi_SunControl.py.....nothing special
sudo nano testSDL_Pi_INA3221.py gives:
Traceback (most recent call last):
File "testSDL_Pi_INA3221.py", line 30, in <module>
ina3221 = SDL_Pi_INA3221.SDL_Pi_INA3221(addr=0x40)
File "/home/pi/SDL_Pi_SunControl/SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 91, in __init__
self._write_register_little_endian(INA3221_REG_CONFIG, config)
File "/home/pi/SDL_Pi_SunControl/SDL_Pi_INA3221/SDL_Pi_INA3221.py", line 123, in _write_register_little_endian
self._bus.write_word_data(self._addr, register, switchdata)
IOError: [Errno 121] Remote I/O erro
[email protected]:~/SDL_Pi_SunControl/SDL_Pi_INA3221 $ sudo python SDL_Pi_INA3221.py:....nothing special
[email protected]:~/SDL_Pi_SunControl $ lsmod | grep i2c_
i2c_bcm2835 16384 0
i2c_dev 16384 0
[email protected]:~/SDL_Pi_SunControl $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- 08 -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
raspberrypi:/ $ sudo modprobe....nothing
please, can anyone give me a clue how to solve this problem?
Thanks