Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-03 Thread Jan Behrens
13:05:51 +0200 Hans Petter Selasky wrote: > On 2020-07-02 12:37, Jan Behrens wrote: > > On Thu, 2 Jul 2020 12:18:02 +0200 > > Hans Petter Selasky wrote: > > > > Hi Jan, > > >>> I experienced that /dev/usb/2.2.0 and /dev/usb/2.2.1, 2.2.2, 2.2.3, >

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-02 Thread Jan Behrens
On Thu, 2 Jul 2020 12:18:02 +0200 Hans Petter Selasky wrote: > Hi Jan, > > On 2020-07-02 12:06, Jan Behrens wrote: > > On Thu, 2 Jul 2020 11:23:32 +0200 > > Hans Petter Selasky wrote: > > > >> On 2020-07-02 11:15, Jan Behrens wrote: > >>> On

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-02 Thread Jan Behrens
On Thu, 2 Jul 2020 11:23:32 +0200 Hans Petter Selasky wrote: > On 2020-07-02 11:15, Jan Behrens wrote: > > On Thu, 2 Jul 2020 10:54:27 +0200 > > Hans Petter Selasky wrote: > > > >> On 2020-07-02 10:47, Jan Behrens wrote: > >>> But wouldn't both dri

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-02 Thread Jan Behrens
On Thu, 2 Jul 2020 10:54:27 +0200 Hans Petter Selasky wrote: > On 2020-07-02 10:47, Jan Behrens wrote: > > But wouldn't both drivers require access to the entries in /dev ? > > Yes, user-space drivers would require access to /dev, yes, but kernel > drivers not, like mouse,

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-02 Thread Jan Behrens
On Thu, 2 Jul 2020 10:41:42 +0200 Hans Petter Selasky wrote: > On 2020-07-02 10:35, Jan Behrens wrote: > > Thus Linux definitely behaves differently here. My question is: Can > > and/or should FreeBSD be fixed to allow libusb_reset_device() as a user > > or should a dr

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-07-02 Thread Jan Behrens
may also affect other device drivers that run in userspace and might not be limited to the issues with the LimeSDR Mini. The documentation (man page) and return value of libusb_reset_device() does not reflect its (deviant) behavior under FreeBSD (c

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-28 Thread Jan Behrens
On Sat, 27 Jun 2020 17:36:04 +0200 Jan Behrens wrote: > On Sat, 27 Jun 2020 16:12:45 +0200 > Tomasz CEDRO wrote: > > > I guess the FreeBSD's LibUSB implementation should be one-to-one > > compatible with the GNU LibUSB. Unless GNU LibUSB behaves wrong, in which case the

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-27 Thread Jan Behrens
On Sat, 27 Jun 2020 16:12:45 +0200 Tomasz CEDRO wrote: > I guess the FreeBSD's LibUSB implementation should be one-to-one > compatible with the GNU LibUSB. I would try to test and compare it > with Linux and MacOS implementation and see the difference: > > 1. If the problem exists on FreeBSD,

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-27 Thread Jan Behrens
On Fri, 26 Jun 2020 17:56:14 +0200 Tomasz CEDRO wrote: > pt., 26 cze 2020, 17:28 użytkownik Jan Behrens > napisał: > > > Does this mean that depending on the device, it will either be a > > no-operation or a re-enumeration, and in the latter case, root > > privile

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-26 Thread Jan Behrens
On Fri, 26 Jun 2020 14:47:13 +0200 Hans Petter Selasky wrote: > Hi, > > On 2020-06-26 13:51, Jan Behrens wrote: > > I made the discovery that running the library as root works just fine! > > The libusb_reset_device() function needs root permissions! This is > expe

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-26 Thread Jan Behrens
.org Forum, with a full error output: https://discourse.myriadrf.org/t/limesdr-mini-with-freebsd/6230 Regards, Jan Behrens ___ freebsd-usb@freebsd.org mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to "freebsd-usb-unsubscr...@freebsd.org"

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-26 Thread Jan Behrens
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 wrote: > On Thu, 25 Jun 2

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-25 Thread Jan Behrens
On Thu, 25 Jun 2020 22:25:30 +0200 CeDeROM wrote: > How about usbconfig and power off then power on.. or reset via usbconfig? > > -- > CeDeROM, SQ7MHZ, http://www.tomek.cedro.info Do you mean I should test how the device behaves? Reset via usbconfig (as root) doesn't seem to have any effect,

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-25 Thread Jan Behrens
On Thu, 25 Jun 2020 20:16:14 +0200 Hans Petter Selasky 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_devic

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-25 Thread Jan Behrens
On Thu, 25 Jun 2020 14:31:21 +0200 CeDeROM wrote: > Hello Jan :-) > > Are you sure you have the correct permissions to read/write /dev/usb* devices? Yes, I manually gave me access by using chown after plugging the device in. > > Assuming you are already in the operator group: > >

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-25 Thread Jan Behrens
On Thu, 25 Jun 2020 12:23:37 +0200 Hans Petter Selasky wrote: > On 2020-06-25 12:10, Jan Behrens wrote: > > Any help on this would be appreciated. Is there any way to increase > > verbosity of libusb or figure out why the USB initialization fails? > > What is printed

Re: USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-25 Thread Jan Behrens
On Thu, 25 Jun 2020 12:10:52 +0200 Jan Behrens 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

USB reset fails when using a LimeSDR Mini on FreeBSD

2020-06-25 Thread Jan Behrens
tried to get help on the myriadrf.org Forum here, where I also posted more detailed error output: https://discourse.myriadrf.org/t/limesdr-mini-with-freebsd/6230 I used FreeBSD 12.1-RELEASE-p6. Any help on this would be appreciated. Is there any way to increase verbosity of libusb or figure out why t