codeminders / javahidapi

Java API for HID (Human Interface) Devices
Other
10 stars 7 forks source link

Write function not working on MAC OS X 10.7.5 #57

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Establish connection to HID device
2. Write data to HID Device

What is the expected output? What do you see instead?
Data should be written successfully to device, but instead an IOException 
occures in the Native method write of HIDDevive. Here is the actual exeption

java.io.IOException: 
    at com.codeminders.hidapi.HIDDevice.write(Native Method)

What version of the product are you using? On what operating system?
hidapi-1.1.jar on OS X 10.7.5

Please provide any additional information below.
I have no issues reading data from the device, only the write method that 
throws an exception. I've also tested the same java application on a win7 where 
it could write without throwing an exception.

Original issue reported on code.google.com by lasse.la...@gmail.com on 17 Oct 2013 at 12:52

GoogleCodeExporter commented 9 years ago
Found the Issue!
I was not setting the correct buffer size, forgot that the report number had to 
be included...

Original comment by lasse.la...@gmail.com on 17 Oct 2013 at 4:19