I have to use libusb 1.0
to communicate with CDC. It will work on linux but i'm testing on Mac 10.10.3.
r = libusb_claim_interface(dev_handle, connection.usb_interface_index); // returns -3
log:
2015-07-02 23:43:13.901 xctest[66961:4625911] [TRACE ] [ ]: Claiming interface ...
libusb: debug [libusb_claim_interface] interface 1
libusb: error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access
I've google a bit and i found USB device is opened by some system service. So it there any way to disable it or make libusb working somehow? I can't use termios
instead.