OSError: [Errno 110] ETIMEDOUT?

Discussion related to "under the hood" OpenMV topics.
User avatar
kwiley
Posts: 107
Joined: Fri Dec 21, 2018 5:22 pm

OSError: [Errno 110] ETIMEDOUT?

Postby kwiley » Sun Feb 10, 2019 3:20 am

I occasionally get "OSError: [Errno 110] ETIMEDOUT" when querying a Sparkfun Qwiic keyapad (https://www.sparkfun.com/products/14836). It doesn't correlate with whether a button has actually been pressed. The error is merely associated with querying the line. Any thoughts?
User avatar
kwagyeman
Posts: 3205
Joined: Sun May 24, 2015 2:10 pm

Re: OSError: [Errno 110] ETIMEDOUT?

Postby kwagyeman » Sun Feb 10, 2019 5:26 am

What line of code throws this? I2C? If so, wrap the method in a try except. Unlike C python throws exceptions on errors.
Nyamekye,
User avatar
kwiley
Posts: 107
Joined: Fri Dec 21, 2018 5:22 pm

Re: OSError: [Errno 110] ETIMEDOUT?

Postby kwiley » Sun Feb 10, 2019 5:11 pm

Yeah, I did that, and if it solves the problem, that's fine. I was just curious what causes it and whether it indicates that I'm doing something wrong or can otherwise alleviate it.
User avatar
kwagyeman
Posts: 3205
Joined: Sun May 24, 2015 2:10 pm

Re: OSError: [Errno 110] ETIMEDOUT?

Postby kwagyeman » Sun Feb 10, 2019 8:23 pm

Probably an electrical issue.
Nyamekye,

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 63 guests