Post by mauriceatkinson on Dec 31, 2022 7:01:41 GMT -8
has anybody come across this error before and know of a solution?
The skyweather system is in a different country from me so hopefully it doesn't require any manual intervention!!
I was in the process of updating the software via Sopwith's script and I get this error when testing
pi@skyweather2:~/SDL_Pi_Skyweather2 $ sudo python3 testBMP280.py
Traceback (most recent call last):
File "/home/pi/SDL_Pi_Skyweather2/bmp280.py", line 162, in setup
chip = self._bmp280.get('CHIP_ID')
File "/usr/local/lib/python3.7/dist-packages/i2cdevice/__init__.py", line 230, in get
self.read_register(register)
File "/usr/local/lib/python3.7/dist-packages/i2cdevice/__init__.py", line 183, in read_register
self.values[register.name] = self._i2c_read(register.address, register.bit_width)
File "/usr/local/lib/python3.7/dist-packages/i2cdevice/__init__.py", line 283, in _i2c_read
for x in self._i2c.read_i2c_block_data(self._i2c_address, register, bit_width // self._bit_width):
File "/usr/local/lib/python3.7/dist-packages/smbus2/smbus2.py", line 596, in read_i2c_block_data
ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "testBMP280.py", line 22, in <module>
print('Temp = {0:0.2f} *C'.format(sensor.get_temperature()))
File "/home/pi/SDL_Pi_Skyweather2/bmp280.py", line 194, in get_temperature
self.update_sensor()
File "/home/pi/SDL_Pi_Skyweather2/bmp280.py", line 180, in update_sensor
self.setup()
File "/home/pi/SDL_Pi_Skyweather2/bmp280.py", line 166, in setup
raise RuntimeError("Unable to find bmp280 on 0x{:02x}, IOError".format(self._i2c_addr))
RuntimeError: Unable to find bmp280 on 0x77, IOError
pi@skyweather2:~/SDL_Pi_Skyweather2 $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@skyweather2:~/SDL_Pi_Skyweather2 $
The skyweather system is in a different country from me so hopefully it doesn't require any manual intervention!!
I was in the process of updating the software via Sopwith's script and I get this error when testing
pi@skyweather2:~/SDL_Pi_Skyweather2 $ sudo python3 testBMP280.py
Traceback (most recent call last):
File "/home/pi/SDL_Pi_Skyweather2/bmp280.py", line 162, in setup
chip = self._bmp280.get('CHIP_ID')
File "/usr/local/lib/python3.7/dist-packages/i2cdevice/__init__.py", line 230, in get
self.read_register(register)
File "/usr/local/lib/python3.7/dist-packages/i2cdevice/__init__.py", line 183, in read_register
self.values[register.name] = self._i2c_read(register.address, register.bit_width)
File "/usr/local/lib/python3.7/dist-packages/i2cdevice/__init__.py", line 283, in _i2c_read
for x in self._i2c.read_i2c_block_data(self._i2c_address, register, bit_width // self._bit_width):
File "/usr/local/lib/python3.7/dist-packages/smbus2/smbus2.py", line 596, in read_i2c_block_data
ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "testBMP280.py", line 22, in <module>
print('Temp = {0:0.2f} *C'.format(sensor.get_temperature()))
File "/home/pi/SDL_Pi_Skyweather2/bmp280.py", line 194, in get_temperature
self.update_sensor()
File "/home/pi/SDL_Pi_Skyweather2/bmp280.py", line 180, in update_sensor
self.setup()
File "/home/pi/SDL_Pi_Skyweather2/bmp280.py", line 166, in setup
raise RuntimeError("Unable to find bmp280 on 0x{:02x}, IOError".format(self._i2c_addr))
RuntimeError: Unable to find bmp280 on 0x77, IOError
pi@skyweather2:~/SDL_Pi_Skyweather2 $ sudo i2cdetect -y 1
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
pi@skyweather2:~/SDL_Pi_Skyweather2 $