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

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

Closed
mrusme opened this issue Apr 26, 2019 · 4 comments
Closed

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

mrusme opened this issue Apr 26, 2019 · 4 comments

Comments

@mrusme
Copy link

mrusme commented Apr 26, 2019

When trying to run this example on a Raspberry Pi Zero with EnviroPhat, it successfully starts, runs a couple of seconds but then dies with the following output:

Traceback (most recent call last):
  File "./test.py", line 21, in <module>
    analog_values = analog.read_all()
  File "/usr/local/lib/python3.5/dist-packages/envirophat/ads1015.py", line 89, in read_all
    return tuple([self.read(channel=x) for x in range(4)])
  File "/usr/local/lib/python3.5/dist-packages/envirophat/ads1015.py", line 89, in <listcomp>
    return tuple([self.read(channel=x) for x in range(4)])
  File "/usr/local/lib/python3.5/dist-packages/envirophat/ads1015.py", line 71, in read
    self.i2c_bus.write_i2c_block_data(self.addr, REG_CFG, [(config >> 8) & 0xFF, config & 0xFF])
OSError: [Errno 121] Remote I/O error 3: 0.582
@mrusme
Copy link
Author

mrusme commented Apr 26, 2019

Additional info:

I noticed that Light and RGB appears to be 0 for the first couple of readings. Could that be related to this issue?

➜  ~ python3 ./test.py
--- Enviro pHAT Monitoring ---
Temp: 31.82c
Pressure: 1000.94hPa
Altitude: 103.00m
Light: 0
RGB: 0, 0, 0
Heading: 36.02
Magnetometer: -1485 -3441 5266
Accelerometer: -0.07g -0.07g 1.02g
Analog: 0: 0.567, 1: 0.576, 2: 0.552, 3: 0.561

@Gadgetoid
Copy link
Member

This looks like a signal quality/connection issue- how is Enviro pHAT connected to your Pi Zero?

@mrusme
Copy link
Author

mrusme commented Apr 26, 2019

@Gadgetoid soldered it on the GPIO. Even though my soldering probably won't be the best, the pins look okayish. Any specific pins I should check or try to solder again?

@mrusme
Copy link
Author

mrusme commented Apr 26, 2019

I did check and re-solder a few pins and it turned out this was causing the IO error. Thank you for the hint!

@mrusme mrusme closed this as completed Apr 26, 2019
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

2 participants