I have a composite USB device that I need to use on MAC OSX. On Linux, I can change the product identifier using the usb_modeswitch tool with the following command
usb_modeswitch -v 0x072f -p 0x100d -V 0x072f -P 0x90cc -m 0x2 -M01b0000000000000000000000000000000000000000000000000000000000000 -r 1 -Q
I tried to create the same success with the tool using libusb under OSX 10.9.5, but when I run the app, I get the problems mentioned here
Unable to query the USB-interface with C ++ libusb in the X OS the Mac . The proposed solution does not work for me, because I can not find / dev / entry for my device.
So, I'm trying to report the code indicated here. Working with USB device interfaces using something like
IOUSBDevRequest request;
request.bmRequestType = USBmakebmRequestType(kUSBOut, kUSBVendor, kUSBDevice);
request.bRequest = 0x02;
request.wValue = deviceAddress;
request.wIndex = 0;
request.wLength = length;
request.pData = writeBuffer;
return (*dev)->DeviceRequest(dev, &request);
0xe000404f (, kIOUSBPipeStalled). , , usb_modeswitch.
code
.