Re: USB logic analyzer problem

From: Hans Petter Selasky <hps_at_selasky.org>
Date: Wed, 21 Dec 2022 08:52:47 UTC
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