Failed to open i2c port for write - after some time
1896 Views - Created 10/07/2018
When I start my application, everything works as expected, but after approximately 30 hours it stops working. I have tried to debug the application and have found that it actually gives this error message “Failed to open i2c port for write”. The io_write_pin is used in a try-catch block and the program continue, but the ports seems not to be working any longer. After the first error the error continuous so that the application doesn’t work any longer..
Do you have any ideas of why it stops working after running more than a day?
Is it possible to reset the io-ports when the error occur?
The “Failed to open i2c port for write” error normally occurs when the I2C port is blocked by another process. Do you have any other I2C devices on the Raspberry Pi which are being used at the same time as the Expander Pi?
Note: documents in Portable Document Format (PDF) require Adobe Acrobat Reader 5.0 or higher to view, download Adobe Acrobat Reader or other PDF reading software for your computer or mobile device.