Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
i'm getting lots of "Error: , Remote I/O error" #36
lately i created a set of node-red nodes with your library as basis. And everything works very well most of the time. Except i'm getting "Error: , Remote I/O error" error sometimes.
Not sure where the issue is coming from.
All variants of the Raspberry Pi have an I2C hardware bug which prevents I2C clock stretching from functioning correctly. A symptom of this bug is "remote I/O errors". To avoid this issue do not use I2C devices which stretch the I2C clock with a Raspberry Pi.
Arduino UNOs are not particularly fast and it's relatively easy to implement code that is not fast enough to prevent an Arduino UNO from stretching the I2C clock.
I would imagine that you are seeing this issue here.
The default baudrate on the raspberry Pi is 100000. It can be lowered to 10000 by adding the following line to
Give this a try to see if it helps.
If it does help you could increase the baudrate bit by bit to determine what the max baudrate is that functions correctly.
An alternative would be to catch the error and retry.
If you are having issues communicating with an I2C device connected to a Raspberry Pi and the issues are related to the hardware I2C clock stretching bug consider using software I2C rather than hardware I2C. See Configuring Software I2C on the Raspberry Pi for further details.