Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

IOError: Errno 110 Connection timed out #14

Open
javiisanchez opened this issue Feb 9, 2017 · 2 comments
Open

IOError: Errno 110 Connection timed out #14

javiisanchez opened this issue Feb 9, 2017 · 2 comments

Comments

@javiisanchez
Copy link

Hi,
I have a sensor in 0x50 adress and work correctly, but when I did a loop for a long time, the error appear (110).
For example, I put a while to see continuosly the data and the error appeared (after half minut), and now the sensor doesn't connected to the I2C bus. (with the comand i2cdetect -y 1 I don't see any sensor, that before, I've saw.
I've had to disconnect and connect to use it again, and when I do a number of reads, come back again the error, You know why?
Can you help me?

Code:

import smbus
while True:
bus = smbus.SMBus(1)
b = bus.read_byte_data(0x50,0)
print b
(with identation)

@VitorHugoAguiar
Copy link

Have you solve this problem?

@bivab
Copy link
Owner

bivab commented Nov 24, 2017

I can only guess what the reason for this is. I think it might be related either to the sensor, that misbehaves after a while or a crashing driver.

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

No branches or pull requests

3 participants