From nobody Wed Dec 21 07:44:23 2022 X-Original-To: freebsd-usb@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with UTF8SMTP id 4NcQSg6Jj7z1HJH5 for ; Wed, 21 Dec 2022 07:44:35 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Received: from cm0.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with UTF8SMTPS id 4NcQSf52LJz4dPk for ; Wed, 21 Dec 2022 07:44:34 +0000 (UTC) (envelope-from freebsd-usb@dino.sk) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of freebsd-usb@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-usb@dino.sk; dmarc=none Received: from zeta.dino.sk ([84.245.95.254]) (AUTH: LOGIN milan, TLS: TLSv1.3,256bits,TLS_AES_256_GCM_SHA384) by cm0.netlabit.sk with ESMTPSA id 00000000029B6A12.0000000063A2B958.00004D4A; Wed, 21 Dec 2022 08:44:24 +0100 Date: Wed, 21 Dec 2022 08:44:23 +0100 From: Milan Obuch To: freebsd-usb@freebsd.org Subject: USB logic analyzer problem Message-ID: <20221221084423.71de3559@zeta.dino.sk> X-Mailer: Claws Mail 3.19.1 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) List-Id: FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-usb List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-usb@freebsd.org X-BeenThere: freebsd-usb@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-3.29 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.989]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-usb@freebsd.org]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; DMARC_NA(0.00)[dino.sk]; ARC_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; TO_DN_NONE(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4NcQSf52LJz4dPk X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N 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: at usbus0 ugen0.y: 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