java.io.IOException: Error reading from /dev/i2c-1 at address 0x21 to address 0x9. Got -20001.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Google Groups by Stefan Stefan, 1 year ago
Error reading from /dev/i2c-1 at address 0x21 to address 0x9. Got -20001.
via Google Groups by Milé Buurmeijer, 5 months ago
Error reading from /dev/i2c-1 at address 0x29 to address 0x1f. Got -20001.
via dexterindustries.com by Unknown author, 1 year ago
Error reading from /dev/i2c-1 at address 0x8 to address 0x1. Got -1.
via Stack Overflow by Developer
, 1 year ago
Error reading from /dev/i2c-1 at address 0x8 to address 0x1. Got -1.
via GitHub by twyatt
, 2 years ago
Error reading from /dev/i2c-1 at address 0x48 to address 0x1. Got -1.
java.io.IOException: Error reading from /dev/i2c-1 at address 0x21 to address 0x9. Got -20001.
at com.pi4j.io.i2c.impl.I2CDeviceImpl.read(I2CDeviceImpl.java:221)
at com.pi4j.gpio.extension.mcp.MCP23008GpioProvider$GpioStateMonitor.run(MCP23008GpioProvider.java:319)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 2 years ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.