xmos / lib_device_control

xCORE device control library
Other
2 stars 16 forks source link

host_usb uses wrong PRODUCT_ID #17

Closed ThomasGmeinder closed 8 years ago

ThomasGmeinder commented 8 years ago

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

./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

xross commented 8 years ago

Issues appears to be in wrong repo? Pid was updated here: https://github.com/xmos/lib_xvsm_support/commit/3e7f87c03986272ceca73881673e4bd0556fdf27