hid4java
hid4java copied to clipboard
HID write always fails with 64bit OS running under Raspberry PI 4
Describe the bug The HID device attaches and opens successfully. But the following code always fails and returns -1:
private static final byte[] message; static { message = new byte[] { 0x10, 0x00, 0x00, 0x00, 0x00, 0x00, (byte) 0xff, (byte) 0x80, 0x00, 0x67, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 }; } int bytesWritten = hidDevice.write( message, 16, 0);
To Reproduce Steps to reproduce the behavior:
- Fails under 32 & 64 bit Raspbian OS on Raspberry PI 4B.
- Runs OK under 32 bit Raspbian OS on Raspberry PI 3B
Expected behavior The number of bytes send successfully (17) should be returned.