Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Continuous mode OSError: [Errno 121] Remote I/O error #3

Open
Andrejkab opened this issue Dec 23, 2022 · 0 comments
Open

Continuous mode OSError: [Errno 121] Remote I/O error #3

Andrejkab opened this issue Dec 23, 2022 · 0 comments

Comments

@Andrejkab
Copy link

Andrejkab commented Dec 23, 2022

Hello,

Thanks for lib! When I playing with files from examples folder everything works correctly except this Continuous mode (ADS_continuous.py). Got error as following:


Traceback (most recent call last):
  File "/home/pi/examples/ADS_continuous.py", line 38, in <module>
    raw = ADS.getValue()
  File "/usr/local/lib/python3.9/dist-packages/ADS1x15/ADS1x15.py", line 265, in getValue
    value = self.readRegister(self.CONVERSION_REG)
  File "/usr/local/lib/python3.9/dist-packages/ADS1x15/ADS1x15.py", line 100, in readRegister
    registerValue = self.i2c.read_i2c_block_data(self._address, address, 2)
  File "/usr/local/lib/python3.9/dist-packages/smbus2/smbus2.py", line 617, in read_i2c_block_data
    ioctl(self.fd, I2C_SMBUS, msg)
OSError: [Errno 121] Remote I/O error

Many Thanks!

Andrej

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant