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

Google Groups | Stefan Stefan | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    MCP23008 as Input Errors

    Google Groups | 1 year ago | Stefan Stefan
    java.io.IOException: Error reading from /dev/i2c-1 at address 0x21 to address 0x7. Got -20001.
  2. 0

    Occasional I2C crash

    GitHub | 3 years ago | twyatt
    java.io.IOException: Error reading from /dev/i2c-1 at address 0x48 to address 0x1. Got -1.
  3. 0

    Pi4j I2c Reading Error

    Stack Overflow | 11 months ago | Developer
    java.io.IOException: Error reading from /dev/i2c-1 at address 0x8 to address 0x1. Got -1.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IO Read Error - Dexter Industries

    dexterindustries.com | 10 months ago
    java.io.IOException: Error reading from /dev/i2c-1 at address 0x8 to address 0x1. Got -1.
  6. 0

    IO Exceptions when shutting down sensor and I2C bus. <bus> "has already been closed"

    GitHub | 6 months ago | gjwo
    java.io.IOException: I2CBus '1' ('/dev/i2c-1') has already been closed! A new bus has to be aquired.

    2 unregistered visitors

    Root Cause Analysis

    1. java.io.IOException

      Error reading from /dev/i2c-1 at address 0x21 to address 0x7. Got -20001.

      at com.pi4j.io.i2c.impl.I2CDeviceImpl.read()
    2. com.pi4j.io
      I2CDeviceImpl.read
      1. com.pi4j.io.i2c.impl.I2CDeviceImpl.read(I2CDeviceImpl.java:221)
      1 frame
    3. com.pi4j.gpio
      MCP23008GpioProvider$GpioStateMonitor.run
      1. com.pi4j.gpio.extension.mcp.MCP23008GpioProvider$GpioStateMonitor.run(MCP23008GpioProvider.java:314)
      1 frame