01.12.2012, 03:31, "Pete Batard" <p...@akeo.ie>: > Hi Natalie, > > On 2012.11.30 07:25, Наташа Иванова wrote: > >> Howto call libusb_claim_interfaces on windows for composite USB? >> I can list devices and get basic info (libusb_get_device_list, >> libusb_get_device_descriptor). This functions works fine. >> >> But libusb_claim_interfaces always returns LIBUSB_ERROR_NOT_SUPPORTED. >> This error returns if i call libusb_open before libusb_claim_interfaces too. >> Some time i spent in tracing and code learning. Where composite interfaces >> initialization located on Windows sources? >> >> Function composite_open make interfaces initialization only if them types >> were set earlier. And I can't found place where interface types established. > > I think the part you may be missing is that by default Windows sees > composite devices as 2 (or more) separate independent devices, not just > one device, and that libusbx needs a supported driver installed. > > For libusbx to be able to access either interface, please ensure that > one of the libusbx supported drivers (WinUSB, libusbk or libusb-win32) > has been installed against each interface you want to communicate with. > If this is not the case, you are likely to get > LIBUSB_ERROR_NOT_SUPPORTED when trying to access it. > > Can you confirm that you installed a libusbx supported driver against > one of the interfaces. If needed you can use Zadig [1] to do just that. >
libusbK installed on the system. DeviceManager show me 2 devices: first - for Interface 0 and second - for Interface1, both use libusb0.sys driver, version = 1.2.6.0, provider = libusb-win32.sourceforge.net > I also suggest that you try the libusbx sample program 'xusb' against > your device, by sending us alog of what you get when running: > > xusb -d abcd:1234 > > where abcd:1234 is replaced with the VID:PID of your device. xusb returns error on libusb_lcaim_interface() call > This should help us identify what your problem might be. > > Regards, > > /Pete > > [1] https://sourceforge.net/projects/libwdi/files/zadig/ > > ------------------------------------------------------------------------------ > Keep yourself connected to Go Parallel: > TUNE You got it built. Now make it sing. Tune shows you how. > http://goparallel.sourceforge.net > _______________________________________________ > libusbx-devel mailing list > libusbx-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libusbx-devel -- best regards, Natalie A. Ivanova ------------------------------------------------------------------------------ Keep yourself connected to Go Parallel: BUILD Helping you discover the best ways to construct your parallel projects. http://goparallel.sourceforge.net _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel