Hi,
i have a device that runs at 400Khz i2c, when trying the following:
byte[] packet = {0x10,0x03,0x01,0x00,0x00,0x0c};
device.write(packet, 0, packet.length);
i get an exception:
Exception in thread "main" java.io.IOException: Error writing to /dev/i2c-1 at address 0x60. Got -20001.
at com.pi4j.io.i2c.impl.I2CDeviceImpl.write(I2CDeviceImpl.java:90)
at com.test.main.main(main.java:127)
This does not happen at the default 100Khz, however, the device i have does not work with 100Khz.
Any suggestions ?
Regards,
Viorel