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

hidapi instead of libusb (windows support) #10

Merged
merged 32 commits into from
Aug 27, 2023
Merged

Conversation

carlossless
Copy link
Owner

@carlossless carlossless commented Aug 26, 2023

Using libusb for raw HID communication doesn't seem to be suitable for Windows. The approach would work fine on macOS and Linux, but it was never been tested on Windows.

Changes here replace direct libusb usage with hidapi. Linux would still use the hidapi libusb backend, since the hidraw backend doesn't seem to recognize the ISP device as a regular HID device.

Addresses #8


Testing

  • macOS
    • read
    • write
  • windows
    • read
    • write
  • linux
    • read
    • write

@carlossless carlossless marked this pull request as ready for review August 27, 2023 15:29
@carlossless
Copy link
Owner Author

@WinkelCode, would you mind testing this on the platforms you have access to?

@WinkelCode
Copy link

🎉 I didn't test writing, but reading seems to work on Windows now.

@carlossless carlossless merged commit 0fa7bb5 into master Aug 27, 2023
5 checks passed
@carlossless carlossless deleted the hidapi-win-fix branch August 27, 2023 17:42
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

Successfully merging this pull request may close these issues.

2 participants