![lsusb apt-get lsusb apt-get](http://wiki-old.pnlug.it/images/Lsusb-listing.png)
thus, I have to first retrieve the config descriptor for libusb-1.0, before I can retrieve number of endpoints and that is where the process dies.Īt this point, I started wondering - how come in this program, config descriptor retrieval fails - while the `lsusb` program can show the number of endpoints properly? r = libusb_get_config_descriptor(dev, 0, &configDesc) while in libusb-1.0 apparently (via ) one has to use:Ĭonst struct libusb_interface_descriptor *interdesc
![lsusb apt-get lsusb apt-get](https://cdn.vdocuments.mx/img/1200x630/reader023/reader/2020111700/5aad5fc47f8b9a8f498e2628/r-1.jpg)
R = libusb_get_active_config_descriptor(dev, &configDesc) config descriptor - instead of specifying one so I thought, maybe better to just ask for 'active' r = libusb_get_config_descriptor(dev, 0x01, &configDesc) this line fails with response -5 (LIBUSB_ERROR_NOT_FOUND) r = libusb_get_config_descriptor(dev, 0x00, &configDesc) this line fails with "error invalid descriptor length 0" Struct libusb_config_descriptor *configDesc Everything seems to function (although didn't check reading in via endpoint) except when one comes to this part in the code, where I was trying to retrieve the config descriptor: So, I thought I'd double check, by rewriting my small application, this time for libusb-1.0. That application was able to connect to device, retrieve configuration settings, and send and retrieve data to and from the device via endpoints - except that the responses I got from the device were wrong (had a correct header, but didn't carry correct data). I first tried to write a small application that includes - that is, which uses libusb 0.1 - based on the example in.
#LSUSB APT GET DRIVER#
The device I'm trying to connect to (an oscilloscope more info follows later) apparently doesn't have a driver for linux. Apologies for a slightly longer mail while I explain.įirst of all, here are some infos on my PC:
![lsusb apt-get lsusb apt-get](http://kll.engineering-news.org/kllfusion01/downloads/RPI3_USB_CAM1.jpg)
I am trying to communicate with a device from Linux, and I'm experiencing a specific problem - with usblib-1.0 unable to retrieve the configuration from a device, while usblib 0.1 is able to do so (on the same computer and OS).