hid4java
hid4java copied to clipboard
A cross-platform Java Native Access (JNA) wrapper for the libusb/hidapi library. Works out of the box on Windows/Mac/Linux.
I want to send HID URB FUNCTION BULK OR INTERRUPT TRANSFER , but i don't find out the way @gary-rowe
**Describe the bug** A clear and concise description of what the bug is. Recently I developed my owned Java PC tool to send USB HID commands with hid4java-0.7.0.jar library. It...
**Describe the problem** A USB hardware device which can be opened with version 0.7 can't be opened with 0.8. **To Reproduce** 1. Call `open(String path)` from `HidApi.java` https://github.com/gary-rowe/hid4java/blob/abb9c7f17adcb1e8a006d56cecf1b6dfdbf59875/src/main/java/org/hid4java/jna/HidApi.java#L147C1-L147C51 2. It...
I have confirmed that VENDOR_ID and PRODUCT_ID are correct. Found problem in hidDataReceived did not trigger. The reason is that the read function has not read data. Please look at...
**Is your feature request related to a problem? Please describe.** First of all, thanks for creating this; very close to what I am looking for. I just started playing around...
Hi I use Wireshark for reverse engineering the mice's application codes . I tried to send a set report request to the mice by using your lib . I faced...
**Fixes**: [Issue #152](https://github.com/gary-rowe/hid4java/issues/152) **Overview**: The approach here is pretty simple, put the thread sensitive API calls on an internal ThreadExecutor. We can consistently get QZ Tray to crash from this...
Per `hidapi`, macOS HID API calls **MUST** be executed on the same thread to be safe: * https://github.com/libusb/hidapi/issues/45 * https://github.com/libusb/hidapi/issues/666 * https://github.com/trezor/cython-hidapi/issues/148 Currently, separate threads interacting with a HID devices...
While investigating https://github.com/gary-rowe/hid4java/issues/148 I found out that the following code doesn't work for `hid_error()` (spacing should be four bytes instead of two): https://github.com/gary-rowe/hid4java/blob/672f0a7adaeac0ae9ead2cca32548ed0974886c6/src/main/java/org/hid4java/jna/WideStringBuffer.java#L59 System: ``` ... (master*) » lsb_release -a...
**Platform** Knowing the platform greatly narrows down the potential causes of the problem. - Platform `linux-arm32/64`, Raspberry Pi 3/4, amd64 - OS version buster` arm32, `bookworm` arm64=aarch64, Ubuntu 24.04 -...