USB reset fails when using a LimeSDR Mini on FreeBSD
Jan Behrens
jbe-mlist at magnetkern.de
Thu Jun 25 18:20:11 UTC 2020
On Thu, 25 Jun 2020 20:16:14 +0200
Hans Petter Selasky <hps at selasky.org> wrote:
> Hi,
>
>
> On 2020-06-25 19:59, Jan Behrens wrote:
> > In both cases there is an issue when calling the libusb_reset_device()
> > function.
>
> Unless the device requires it, libusb_reset_device(), will only
> re-enumerate the device. Beware that this only is allowed if you are
> running the application as root. Else libusb_reset_device() will be a
> no-operation.
But in my case, the call causes the program to abort (due to returning
an error status, I assume). This is the context where the SoapySDR
driver calls libusb_reset_device():
https://github.com/myriadrf/LimeSuite/blob/1c1c202f9a6ae4bb34068b6f3f576f7f8e74c7f1/src/ConnectionFTDI/ConnectionFT601.cpp#L212
>
> --HPS
>
Regards,
Jan
More information about the freebsd-usb
mailing list