You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FWIW, the perl script I wrote from this era still functions. The python 2 script does not yet recognize that hidapi was installed by its local pip, so it is not working either. This ruby script was not backward compatible, as we see.
Cheers,
Joe
The text was updated successfully, but these errors were encountered:
I noticed in your script that you are running the setup task immediately before attempting to open the device. The setup task is only meant to be run once to configure the computer. In macOS, you would need to run the setup task and then reset the device by unplugging it or restarting the computer. Otherwise it will remain bound to the builtin HID driver.
As for backwards compatibility. My port was meant to just be an alternative to hid_api.
Okay. Thank you for writing back and clearing up some of my misunderstanding.
I tested the hidapi-testgui from the source C libhidapi library on osx. It just works for hid. No need for the helper kext. No issues opening, writing, or reading. Oops. Now I realize this is a libusb implementation. Fair enough.
So with the issues above addressed, my hello world script for hidapi now fails with #<LIBUSB::ERROR_ACCESS: LIBUSB::ERROR_ACCESS in libusb_claim_interface> (HIDAPI::DeviceOpenFailed) which seems to indicate that libusb cannot get the device. The codeless kext is installed.
Hi Beau,
Dusted off a script from 4 years ago, hello 2016:
https://gist.github.com/jhgorse/a584724153ad75aff3d6fdd81c5c9242/bad6a471a4281fba8a3351f5050cfa907d66dd82
Ported it to the modern hidapi from hid_api.
https://gist.github.com/jhgorse/a584724153ad75aff3d6fdd81c5c9242
The write method appears to have changed as well, breaking what I had hoped would be a timeless and classic way to call a write():
error message:
FWIW, the perl script I wrote from this era still functions. The python 2 script does not yet recognize that hidapi was installed by its local pip, so it is not working either. This ruby script was not backward compatible, as we see.
Cheers,
Joe
The text was updated successfully, but these errors were encountered: