Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Dec 2022 09:52:47 +0100
From:      Hans Petter Selasky <hps@selasky.org>
To:        Milan Obuch <freebsd-usb@dino.sk>, freebsd-usb@freebsd.org
Subject:   Re: USB logic analyzer problem
Message-ID:  <f2140d0d-ffe5-1444-c706-d8b4b9a51c9e@selasky.org>
In-Reply-To: <20221221084423.71de3559@zeta.dino.sk>
References:  <20221221084423.71de3559@zeta.dino.sk>

next in thread | previous in thread | raw e-mail | index | archive | help
On 12/21/22 08:44, Milan Obuch wrote:
> Hi,
> 
> recently I've got two simple USB logic analyzers (one with analog
> channel as well), and I am trying to get them working under FreeBSD.
> They are
> 
> ugen0.x: <vendor 0x08a9 product 0x0014> at usbus0
> ugen0.y: <vendor 0x0925 product 0x3881> at usbus0
> 
> as seen on plugging in USB port (x, y varies on attempts). These should
> be handled by sigrok and pulseview (science/sigrok* and
> science/pulseview ports). While building and installing ports was
> relatively easy, I did not managed them to work correctly.
> 
> Looking at sigrok wiki, both should work with fx2lafw driver, info at
> 
> https://sigrok.org/wiki/AZDelivery_Logic_Analyzer/Info
> https://sigrok.org/wiki/Noname_LHT00SU1/Info
> 
> At first, I thought problem is access rights, as all devices are
> created with mode crw-------, uid root. I did not succeed to change
> this, trying devd and/or devfs, even manually chmod. As a simple test,
> I started pulseview as root, still, no success - I can see my devices
> listed and selectable for data acquisition, but trying to get data
> yields
> 
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> sr: fx2lafw: resubmit_transfer: LIBUSB_ERROR_NO_DEVICE
> Acquisition took 0.07 s
> 
> at best. So, data set is empty, nothing is captured.
> 
> I am out of ideas. Has anybody any experience with this kind of devices?
> Any idea how to debug this issue?
> 
> Regards,
> Milan
> 

Hi Milan,

If you get a no device error on re-submit, the device has been 
disconnected, but the software side has not yet done the same I believe. 
Can you check that?

--HPS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?f2140d0d-ffe5-1444-c706-d8b4b9a51c9e>