You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and encountered a weird error. When using SMBus or SMBusWrapper, for the first couple of reads, I get the following OSError exception: [Errno 6] No such device or address
But after a half second or so, the reads begin to succeed. I've used the command-line python to try and reproduce but I am getting mixed results: some success, some failures.
But I have come across devices that require a little time to process the last operation you send. For example, if you write/call something that does return a result successfully, the device isn't really ready for the next command right away. Some need time to do a little processing before they can accept a new one. Could that be part of the explanation here, you think? Or that the device need time to power up properly? Or there is some kind of other initialization that's not done right?
It may be that the script is processing faster than the underlying buffer fills, but I am curious if the operations are somewhat non-blocking. Would make things a little more interesting.
Working on an Ubuntu system using the following
and encountered a weird error. When using SMBus or SMBusWrapper, for the first couple of reads, I get the following OSError exception:
[Errno 6] No such device or address
But after a half second or so, the reads begin to succeed. I've used the command-line python to try and reproduce but I am getting mixed results: some success, some failures.
Example code below (should reproduce it):
By sticking it in a retry loop until successful, I'm able to bypass it, but it doesn't feel like a clean solution to me. Any suggestions?
The text was updated successfully, but these errors were encountered: