Open GoogleCodeExporter opened 8 years ago
Solved my issue. I should have read the instructions better for the hidapi
API. "The first byte of data[] must contain the Report ID. For devices which
only support a single report, this must be set to 0x0." Somewhat in my defense
it worked just fine without that in my OSX 10.7.5 environment. My Arduino
device got the message fine and I was able to process the byte[] array from the
first element byte[0]. However when I ran the .jar on my XP computer the HID
interface was looking for that 0x0 first byte. All I needed to do was change
the code to pass that as the first byte of the buffer and both the Windows and
Mac saw the write request fine.
No custom install needed, all necessary files are in the hidapi-1.1.jar. Just
add it as a Referenced Library and you are good to go.
Original comment by gbarna...@gmail.com
on 18 Dec 2012 at 4:43
Original issue reported on code.google.com by
gbarna...@gmail.com
on 17 Dec 2012 at 5:21