hid4java icon indicating copy to clipboard operation
hid4java copied to clipboard

HID write always fails with 64bit OS running under Raspberry PI 4

Open mercierm opened this issue 3 years ago • 0 comments

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:

  1. Fails under 32 & 64 bit Raspbian OS on Raspberry PI 4B.
  2. Runs OK under 32 bit Raspbian OS on Raspberry PI 3B

Expected behavior The number of bytes send successfully (17) should be returned.

mercierm avatar Dec 03 '21 15:12 mercierm