Date: Fri, 26 Jun 2020 09:37:05 +0200 From: Jan Behrens <jbe-mlist@magnetkern.de> To: freebsd-usb@freebsd.org Subject: Re: USB reset fails when using a LimeSDR Mini on FreeBSD Message-ID: <20200626093705.12d3ac4bfa8d82f0b2ae1dd6@magnetkern.de> In-Reply-To: <20200625195943.a6b32addb3c66c3294ed78ef@magnetkern.de> References: <20200625121052.e9f7e7cbeb68fad264ec80a9@magnetkern.de> <20200625195943.a6b32addb3c66c3294ed78ef@magnetkern.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Dear all, I doubt that it is a coincidence that the LimeSDR Mini had the same problem with macOS's libusb, but I may be wrong. For macOS the problem has been solved, for FreeBSD it hasn't. I am confused what libusb_reset_device() does, but whether I'm having root privileges or not, I doubt it should return an error for a device which runs well under Linux and/or macOS. On the discussion forum on myriadrf.org, the question was rised if there are any special considerations to take when using FreeBSD's libusb. I would like to repeat that question here: 1. Are there (intended or accidental/unwanted) API and/or behaviour differences between Linux/macOS's libusb. Are there certain considerations when building apps that use libusb? Is it wrong to call libusb_reset_device() in a driver? If yes, why? If no, what is the function used for? See also: https://discourse.myriadrf.org/t/limesdr-mini-with-freebsd/6230/2 I also would like to ask: 2. Does the bugfix below, which seemed to fix issues with LimeSDR on macOS, relate to a bug that is existent in FreeBSD's libusb as well? Is it just a coincidence and two unrelated issues? Or is there a problem with libusb that has been fixed for macOS but not for FreeBSD? https://github.com/libusb/libusb/commit/a0b5d27fa7f2bba11965e2b70533f925a5772808 See quoted message below for more links regarding this issue. Any help would appreciated. I understand far too little about libusb to solve the problem on my own. It would be really nice if either the Lime Suite or the libusb could be modified such that the LimeSDR Mini, which is an awesome radio device, works properly on FreeBSD (and I'm not forced to use Linux or Windows for it). Regards, Jan Behrens On Thu, 25 Jun 2020 19:59:43 +0200 Jan Behrens <jbe-mlist@magnetkern.de> wrote: > On Thu, 25 Jun 2020 12:10:52 +0200 > Jan Behrens <jbe-mlist@magnetkern.de> wrote: > > > I'd like to use a software defined radio "LimeSDR Mini" on FreeBSD > > utilizing the "SoapySDR library" with a driver from "Lime Suite", but I > > encounter errors, supposedly in libusb. > > Maybe the same problem occured in MacOS's libusb. Compare the following > posts: > > https://github.com/myriadrf/LimeSuite/issues/253 > > https://discourse.myriadrf.org/t/limesdr-mini-with-freebsd/6230/7 > > In both cases there is an issue when calling the libusb_reset_device() > function. > > The problem on MacOS seems to have been fixed according to this post: > > https://github.com/myriadrf/LimeSuite/issues/253#issuecomment-480263517 > > Look at the following patch: > > https://github.com/libusb/libusb/commit/a0b5d27fa7f2bba11965e2b70533f925a5772808 > > The patch seems to be darwin-specific. Is the same bug affecting > FreeBSD or is this a different issue? Can the problem be solved for > FreeBSD as well? > > > Kind Regards, > Jan Behrens
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20200626093705.12d3ac4bfa8d82f0b2ae1dd6>