Skip to content
New issue

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

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

Already on GitHub? # to your account

Add Troubleshooting FAQ #182

Closed
kevinmehall opened this issue May 20, 2017 · 6 comments · Fixed by #611
Closed

Add Troubleshooting FAQ #182

kevinmehall opened this issue May 20, 2017 · 6 comments · Fixed by #611
Assignees

Comments

@kevinmehall
Copy link
Contributor

kevinmehall commented May 20, 2017

Runtime errors

  • LIBUSB_ERROR_BUSY
  • LIBUSB_ERROR_ACCESS
    • macOS: Can't open devices that have a kernel driver, no good workaround. (discussion on LIBUSB_ERROR_ACCESS on OSX as admin user #30)
      • Usually comes up with HID devices -- is there a recommended libhid library?
    • Linux: permissions, udev rules
  • LIBUSB_ERROR_NOT_SUPPORTED
    • Windows: Bind WinUSB driver with libwdi / Zadig
      • Mention WCID for custom devices
  • LIBUSB_ERROR_NO_DEVICE

Install errors

@fatso83
Copy link

fatso83 commented Mar 13, 2018

Some mention of how to enable those access rights without requiring sudo would be nice as well.

@mrbar42
Copy link

mrbar42 commented Apr 3, 2019

After fighting LIBUSB_ERROR_NOT_FOUND on an OSX Mojave for a while i ended up using node-hid which worked effortlessly.
might serve as a workaround for others with HID devices.

@mcuee
Copy link

mcuee commented May 3, 2023

is there a recommended libhid library?

Yes, libusb project recommends HIDAPI for HID device. It supports both USB and Bluetooth HID and even other types of HID devices. There is a active node binding node-hid as well.

hidapi project:
https://github.com/libusb/hidapi

node-hid:
https://github.com/node-hid/node-hid

@mcuee
Copy link

mcuee commented May 3, 2023

macOS: Can't open devices that have a kernel driver, no good workaround

Please refer to this discussion, libusb-1.0.26 adds the support to detach kernel driver with correct entitlement (which is diffcult to get from Apple) but at least you can run as root.

@mcuee
Copy link

mcuee commented May 3, 2023

Please read libusb FAQ here.
https://github.com/libusb/libusb/wiki/FAQ

@fatso83
Copy link

fatso83 commented May 4, 2023

Better late than never 😄

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants