Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some HID messages sent by the device are missing on windows #457

Open
GoaSkin opened this issue Apr 30, 2020 · 1 comment
Open

some HID messages sent by the device are missing on windows #457

GoaSkin opened this issue Apr 30, 2020 · 1 comment

Comments

@GoaSkin
Copy link

GoaSkin commented Apr 30, 2020

Hello,

I am writing a tool to configure a MIDI controller via HID with a focus on Linux but I also want to support macOS and Windows.

While everything works well with the libusb backend on Linux and Mac OS, the HID messages the software receives from the device are incomplete on Windows. The device usually sends byte arrays beginning with 0x01 (IDs of pushed buttons if a button is pushed) and 0xaa (knob values)

While hid_read recognizes the "knob value" messages well, the "button push" messages are completely missing. Wireshark also does not recognize any data coming from the device if a button is pushed.

Does anybody know why the behavior is different if using Windows and the usbhid.sys driver and if there are any extra steps to do to make it work under Windows properly?

@Youw
Copy link

Youw commented Apr 30, 2020

please see #373

try https://github.com/libusb/hidapi master, and we can open this conversation again

Megamouse pushed a commit to RPCS3/hidapi that referenced this issue Jan 6, 2023
- When `libusb_submit_transfer` in `read_thread` fails, `read_callback` never gets called and never sets `transfer_loop_finished` to true, causing `read_thread` to loop indefinitely;

- Do not attempt to run a read loop if the initial `libusb_submit_transfer` fails fixes the issue;

Fixes: signal11#456
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants