From nobody Wed Dec 21 10:49:33 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 ESMTP id 4NcVZR060pz1GFrL for ; Wed, 21 Dec 2022 10:49:51 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NcVZQ1KD5z3lmN for ; Wed, 21 Dec 2022 10:49:50 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cedro.info header.s=google header.b=iLLbjSL+; spf=none (mx1.freebsd.org: domain of tomek@cedro.info has no SPF policy when checking 2607:f8b0:4864:20::834) smtp.mailfrom=tomek@cedro.info; dmarc=none Received: by mail-qt1-x834.google.com with SMTP id i20so13299337qtw.9 for ; Wed, 21 Dec 2022 02:49:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=RUg36xH+7BzEP/XSW/yH1m96EzvAMxC0Hvxtk/zgxN0=; b=iLLbjSL+X4FWGf6UkxAKW2QM/ye/dopNtUDP6aWnvlBZJ12CFXYFday88QKMSt6HSH F6gCoGqYggm4mlt4lAEUwf7l7X/uiL61RJ+QZBQBtPAN1euNDSgO4uDMmh8RYZ22Osr9 rprsmoFCyuAILo6HXX4qL8maVwedvxe5uoTCesWBQF0gV21/6vA2clWj7pIy1bCU9jAq kPuf+wc7hdcGmEp0T8cl0XefanjoZtG4LaBhnSXxLcV56OY0/QlSLxBrbFWMQHNjIN9K eVsV1GQBe/OlRT95RQW32Dam/LRCYp+p5wgNLxtao0OdCM6c88jhAta8cRP9VZYcL9ym Iuyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=RUg36xH+7BzEP/XSW/yH1m96EzvAMxC0Hvxtk/zgxN0=; b=R7iIihF9Pp0Rwq8oN2rBEqbGYVhtqR+FAsbbdgG9ipV1A72ShAO5LlaqFaIiIJ9GXH eJruebYPVlFdYtcUVz0mIz+C706fay1RsDmg0nyogrkWhsRUe5mACtv/xhNYsGsqO1D0 At/Ghzub420SrG/wtbNStokfrf3k1m566GFXzljiEFzf4e/WzT9eNkJIkJhTFRS61N5b X0cBl/Yswg+Tf46v/zJf4+22P8hPgQxCFJOktYcek8GYbCcEC+JdgshYEyk5HNJNHsCZ CvbVicSUhbIVWvLfosLGuMHnS1+aCc403/sSkM1b6ncME9XywNkH8wfVy2QBQBb+7HU3 2Ayw== X-Gm-Message-State: AFqh2koX06JXTRgexNSZjzVNHw9a6WsIjwHLCfr8u5xnLbl/7X9Nrepv pDApW820v8Kl5qQTyLJqR6JlMo1T9FMF3HaU X-Google-Smtp-Source: AMrXdXs4fVEjcNJbX6ve5IPFYJDREQ/HprdXBpZYvzrmyyA8eJh3xEP6eqlxAHeRpyaby9KPJ/FP/g== X-Received: by 2002:a05:622a:a0b:b0:3a6:a7f6:701d with SMTP id bv11-20020a05622a0a0b00b003a6a7f6701dmr1564967qtb.36.1671619788499; Wed, 21 Dec 2022 02:49:48 -0800 (PST) Received: from mail-yb1-f174.google.com (mail-yb1-f174.google.com. [209.85.219.174]) by smtp.gmail.com with ESMTPSA id x17-20020a05620a449100b006fc2e2198easm10813723qkp.95.2022.12.21.02.49.47 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 21 Dec 2022 02:49:47 -0800 (PST) Received: by mail-yb1-f174.google.com with SMTP id t15so3940586ybq.4 for ; Wed, 21 Dec 2022 02:49:47 -0800 (PST) X-Received: by 2002:a25:8b82:0:b0:70c:bbcb:3432 with SMTP id j2-20020a258b82000000b0070cbbcb3432mr155064ybl.173.1671619787525; Wed, 21 Dec 2022 02:49:47 -0800 (PST) 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 References: <20221221084423.71de3559@zeta.dino.sk> In-Reply-To: From: Tomek CEDRO Date: Wed, 21 Dec 2022 11:49:33 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: USB logic analyzer problem To: Milan Obuch Cc: freebsd-usb@freebsd.org, Hans HPS Petter Selasky Content-Type: text/plain; charset="UTF-8" X-Spamd-Result: default: False [-3.30 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; R_DKIM_ALLOW(-0.20)[cedro.info:s=google]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::834:from,209.85.219.174:received]; MLMMJ_DEST(0.00)[freebsd-usb@freebsd.org]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[cedro.info:+]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; ARC_NA(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-usb@freebsd.org]; FROM_HAS_DN(0.00)[]; DMARC_NA(0.00)[cedro.info]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4NcVZQ1KD5z3lmN X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Wed, Dec 21, 2022 at 11:29 AM Tomek CEDRO wrote: > 1. # vim /etc/devfs.rules: > [localrules=10] > add path 'ugen*' mode 0660 group operator > add path 'usb/*' mode 0660 group operator > add path 'usb' mode 0770 group operator > > 2. # vim /etc/rc.conf: > devfs_system_ruleset="localrules" > > 3. # pw groupmod operator -m > > 4. # service devfs restart > > 5. logout and login your local user to see if access right are correct now. With the above you should have (as my example Saleae logical analyzer): # ls -al /dev/ugen0.11 lrw-rw---- 1 root operator 10 21 gru 11:40 /dev/ugen0.11 -> usb/0.11.0 # usbconfig -d 0.11 dump_all_desc ugen0.11: at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (100mA) bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ff bDeviceSubClass = 0x00ff bDeviceProtocol = 0x00ff bMaxPacketSize0 = 0x0040 idVendor = 0x0925 idProduct = 0x3881 bcdDevice = 0x0001 iManufacturer = 0x0001 iProduct = 0x0002 iSerialNumber = 0x0003 bNumConfigurations = 0x0001 Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0019 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0000 bmAttributes = 0x0080 bMaxPower = 0x0032 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x00ff bInterfaceProtocol = 0x00ff iInterface = 0x0000 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 bmAttributes = 0x0002 wMaxPacketSize = 0x0200 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 PulseView works out of the box, I do not even have to provide any device hints / parameters. SigRokCli: % sigrok-cli --scan The following devices were found: demo - Demo device with 13 channels: D0 D1 D2 D3 D4 D5 D6 D7 A0 A1 A2 A3 A4 fx2lafw:conn=0.11 - Saleae Logic [S/N: Saleae Logic] with 8 channels: D0 D1 D2 D3 D4 D5 D6 D7 % sigrok-cli -d fx2lafw:conn=0.11 --continuous libsigrok 0.5.2 Acquisition with 8/8 channels at 20 kHz D0:11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 D1:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 D2:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 D3:11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 D4:00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000 D5:11111111 11111111 11111111 11111111 11111111 11111111 11111111 11111111 https://sigrok.org/wiki/Sigrok-cli -- CeDeROM, SQ7MHZ, http://www.tomek.cedro.info