Java and HID Communication

前端 未结 2 1259
再見小時候
再見小時候 2021-01-07 05:17

I\'m looking to write a Linux/Windows/Mac Java HID controller for a simple wireless HID interface device. I\'ve tinkered around with the USB4Java LibUsb library to no avail,

2条回答
  •  感情败类
    2021-01-07 06:06

    I'm a bit late to answer this question, but I've written a library called hid4java that might solve your problem.

    It's based on Java Native Access (JNA) which is a lot simpler than faffing about with complex JNI incantations.

    I had to write it because javahidapi is out of date and the underlying signal11/hidapi code has moved on considerably. The older versions of the hidapi library had problems on OS X with attach/detach events which have now been fixed so an upgrade is necessary.

    Also I found it impossible to claim a USB HID device through usb4java on OS X so I ended up writing this library to solve that problem.

    Hope it helps.

提交回复
热议问题