Sunday, September 24, 2017

libusb device name other than ugen

Hi,I have a software (openocd) that needs to serially communicate with a board, but it can't because libusb throws LIBUSB_ERROR_NOT_SUPPORTED.
To access a usb device using libusb, libusb provides a function returning a list of devices. But this function fills a field of the device structure only if the device pathname starts with "ugen", otherwise the field is set to NULL.But a NULL field leads to the _sync_gen_transfer to return "LIBUSB_ERROR_NOT_SUPPORTED".
But my device is bound to cuaU1, and not to any ugen.
This assumption of a "ugen" name is also in _access_endpoint.

Do I need to patch libusb, or is it simply a mistake of mine ?Thanksfully

No comments:

Post a Comment