The host_usb example uses 0x1010 as product ID
if (control_init_usb(0x20B1, 0x1010, 3) != CONTROL_SUCCESS) {
Note: I had to add interface number to get it to compile. USB Prober shows interface 3 "Vendor Specific" so guessing 3 is correct.
Using 0x1010 causes
./a.out
could not find device
control init failed
When I change to the expected PID 0x11
if (control_init_usb(0x20B1, 0x0011, 3) != CONTROL_SUCCESS) {
then the device is found but the subsequent write command fails
device found
started
libusb_control_transfer returned -9
control write command failed
I'm trying to use host_usb to control the XVSM parameters configuration: 1i2o2_xvsm2000 USB Audio version: 6.18.1alpha2 http://cognidox.xmos.local/cgi-perl/part-history?type=version&partnum=XM-002775-SM
The host_usb example uses 0x1010 as product ID if (control_init_usb(0x20B1, 0x1010, 3) != CONTROL_SUCCESS) { Note: I had to add interface number to get it to compile. USB Prober shows interface 3 "Vendor Specific" so guessing 3 is correct.
Using 0x1010 causes
When I change to the expected PID 0x11 if (control_init_usb(0x20B1, 0x0011, 3) != CONTROL_SUCCESS) { then the device is found but the subsequent write command fails device found started libusb_control_transfer returned -9 control write command failed