nyholku / purejavahidapi

Other
122 stars 69 forks source link

Can't use getFeatureReport #31

Closed retronicdesign closed 8 years ago

retronicdesign commented 8 years ago

Hello,

I tried to read a getFeatureReport out of my opened HidDevice but I always get -1 (error communicating with device).

I tried with two different devices that have a 5 byte feature report and a 132 bytes feature report.

Do you have a working example of getFeatureReport?

Thank you!

nyholku commented 8 years ago

Sorry, I don't have a device that has feature reports, so this in pretty much untested code. I've blindly followed the signal11 HIDAPI code, maybe you can test your device with that:

https://github.com/signal11/hidapi

if that works then we can try to see what is the difference between PureJavaHidApi and HIDAPI code.

retronicdesign commented 8 years ago

I'll try this. I can send you a module that has all its reports as feature. Works with a commandline in c++ but can't with purejavahidgui. You can communicate with me at info@retronicdesign.com Thanks!

nyholku commented 8 years ago

Contact me in two week, I'm traveling and will not remember this when I get home.

br Kusti

nyholku commented 8 years ago

This now works for me on MacOS and Linux so I'm closing this until some reports problems