Closed mitchell-johnson closed 9 years ago
I think there is another driver using the device that needs to be unloaded before using footswitch. I don't have OS X machine but when I google the error, unloading a driver with 'kextunload' seems to be the solution.
http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?p=209#209 http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&t=97700
You have to find which driver is using the device though.
Thanks for the reply. I have explored that option but I believe that the system keyboard driver is the one that has claimed it, thus I am apprehensive about unloading the kext as it may break my normal keyboard as well. I will try this on my home mac when I get a chance. This is a known problem with libusb http://www.libusb.org/ticket/89 and they suggest to use a native driver.
Ok, so is there any way to reprogram pedal through the osx keyboard driver?
I just made the programming work (see pull request: https://github.com/rgerganov/footswitch/pull/14) on my mac. I stuck to libusb and managed to do so not claiming or releasing the device (works just fine i have tested it on the following product from amazon: http://www.amazon.com/gp/product/B00CK1BKZQ?psc=1&redirect=true&ref_=oh_aui_detailpage_o00_s00)
I have switched from libusb to hidapi which supports OSX. Let me know if you find any issues.
Due to limitations with the libusb package on os x footswitch does not seem to work unfortunately. I begun to try to code around it but basically it requires not using the libusb libraries.
Specifically footswitch returns:
libusb: 0.025330 info [darwin_open] device open for access libusb: 0.025748 error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access cannot claim interface, error: LIBUSB_ERROR_ACCESS [init(), footswitch.c:79]
When trying to run any command under footswitch. I have posted a how to for os x users over on the vim clutch page to get a foot pedal working under os x.