From owner-freebsd-usb@freebsd.org Sun Aug 30 21:00:31 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 68AD93CA016 for ; Sun, 30 Aug 2020 21:00:31 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Bfm272HH8z4YHC for ; Sun, 30 Aug 2020 21:00:31 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id 4E5CF3CA093; Sun, 30 Aug 2020 21:00:31 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4E22C3C9569 for ; Sun, 30 Aug 2020 21:00:31 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bfm271RvJz4YHB for ; Sun, 30 Aug 2020 21:00:31 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 150551CC44 for ; Sun, 30 Aug 2020 21:00:31 +0000 (UTC) (envelope-from bugzilla-noreply@FreeBSD.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 07UL0UHr033729 for ; Sun, 30 Aug 2020 21:00:30 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 07UL0UDj033728 for usb@FreeBSD.org; Sun, 30 Aug 2020 21:00:30 GMT (envelope-from bugzilla-noreply@FreeBSD.org) Message-Id: <202008302100.07UL0UDj033728@kenobi.freebsd.org> X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@FreeBSD.org using -f From: bugzilla-noreply@FreeBSD.org To: usb@FreeBSD.org Subject: Problem reports for usb@FreeBSD.org that need special attention Date: Sun, 30 Aug 2020 21:00:30 +0000 MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 30 Aug 2020 21:00:31 -0000 To view an individual PR, use: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=(Bug Id). The following is a listing of current problems submitted by FreeBSD users, which need special attention. These represent problem reports covering all versions including experimental development code and obsolete releases. Status | Bug Id | Description ------------+-----------+--------------------------------------------------- Open | 213877 | xhci reset causes panic on SuperMicro A1SRi-2758F Open | 234578 | Support for Sierra Wireless EM7455 modem Open | 247964 | Low read throughput on Sandisk Extreme external S 3 problems total for which you should take action. From owner-freebsd-usb@freebsd.org Tue Sep 1 12:25:15 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 43CCD3C5AD0 for ; Tue, 1 Sep 2020 12:25:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BgmVg18S5z4Rtb for ; Tue, 1 Sep 2020 12:25:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 2783E3C5CB0; Tue, 1 Sep 2020 12:25:15 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 274EE3C5C7A for ; Tue, 1 Sep 2020 12:25:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BgmVg0Fc3z4RjB for ; Tue, 1 Sep 2020 12:25:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E17DD18F6D for ; Tue, 1 Sep 2020 12:25:14 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 081CPE35089425 for ; Tue, 1 Sep 2020 12:25:14 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 081CPE1n089424 for usb@FreeBSD.org; Tue, 1 Sep 2020 12:25:14 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 249051] uaudio device does not get created anymore Date: Tue, 01 Sep 2020 12:25:14 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tcberner@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter cc Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 12:25:15 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249051 Bug ID: 249051 Summary: uaudio device does not get created anymore Product: Base System Version: Unspecified Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: usb Assignee: usb@FreeBSD.org Reporter: tcberner@freebsd.org CC: hselasky@FreeBSD.org Moin moin I'm using a pair of USB KEF X300A speakers. Which were working perfetly fine [2]. Since a an upgrade of current [1] recently, they fail hover to trigger the creation of an audio device When I plug them in, I get the following message Sep 1 14:20:29 angua kernel: usbd_setup_device_desc: getting device descri= ptor at addr 2 failed, USB_ERR_IOERROR Sep 1 14:20:35 angua syslogd: last message repeated 4 times Sep 1 14:20:35 angua kernel: ugen2.3: at usbus2 (disconnected) Sep 1 14:20:35 angua kernel: uhub_reattach_port: could not allocate new de= vice mfg Tobias [1] FreeBSD angua.firefly 13.0-CURRENT FreeBSD 13.0-CURRENT #77 r364916: Sat Aug 29 21:38:50 CEST 2020=20=20=20=20 Tobias@angua.firefly:/usr/obj/usr/src/amd64.amd64/sys/ANGUA amd64 [2] Testing them on an other system confirmed that they are still working. --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Sep 1 12:55:57 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4CC723C6447 for ; Tue, 1 Sep 2020 12:55:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BgnB51QFxz4T5m for ; Tue, 1 Sep 2020 12:55:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 30A403C68B5; Tue, 1 Sep 2020 12:55:57 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 306DB3C66C6 for ; Tue, 1 Sep 2020 12:55:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BgnB50Xm5z4TPn for ; Tue, 1 Sep 2020 12:55:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id EA42119A07 for ; Tue, 1 Sep 2020 12:55:56 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 081Ctuhr022244 for ; Tue, 1 Sep 2020 12:55:56 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 081CtuRo022243 for usb@FreeBSD.org; Tue, 1 Sep 2020 12:55:56 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 249051] uaudio device does not get created anymore Date: Tue, 01 Sep 2020 12:55:57 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 12:55:57 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249051 --- Comment #1 from Hans Petter Selasky --- Can you try: https://svnweb.freebsd.org/changeset/base/365029 --HPS --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Sep 1 13:34:45 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 258793C880B for ; Tue, 1 Sep 2020 13:34:45 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4Bgp2r6lHpz4Wff for ; Tue, 1 Sep 2020 13:34:44 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.nyi.freebsd.org (Postfix) id E59C73C8809; Tue, 1 Sep 2020 13:34:44 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id E566C3C83AF for ; Tue, 1 Sep 2020 13:34:44 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10G.digiware.nl (smtp.digiware.nl [IPv6:2001:4cb8:90:ffff::3]) (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 ESMTPS id 4Bgp2r05BNz4WqS for ; Tue, 1 Sep 2020 13:34:43 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10g.digiware.nl (localhost.digiware.nl [127.0.0.1]) by router10G.digiware.nl (Postfix) with ESMTP id EA2EF69A0C; Tue, 1 Sep 2020 15:34:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.com Received: from router10G.digiware.nl ([127.0.0.1]) by router10g.digiware.nl (router10g.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id epUJG_GEY1Q6; Tue, 1 Sep 2020 15:34:33 +0200 (CEST) Received: from [192.168.10.67] (opteron [192.168.10.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by router10G.digiware.nl (Postfix) with ESMTPSA id 43BDD69A0B for ; Tue, 1 Sep 2020 15:34:33 +0200 (CEST) To: usb@freebsd.org From: Willem Jan Withagen Subject: USB-dongle modem keeps changing from cuaU0 to cuaU1 and bck Message-ID: Date: Tue, 1 Sep 2020 15:34:31 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.10.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: nl X-Rspamd-Queue-Id: 4Bgp2r05BNz4WqS X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of wjw@digiware.nl designates 2001:4cb8:90:ffff::3 as permitted sender) smtp.mailfrom=wjw@digiware.nl X-Spamd-Result: default: False [-1.02 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; PREVIOUSLY_DELIVERED(0.00)[usb@freebsd.org]; TO_DN_NONE(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; NEURAL_HAM_LONG(-1.03)[-1.035]; RCVD_COUNT_THREE(0.00)[4]; HFILTER_HELO_IP_A(1.00)[router10g.digiware.nl]; NEURAL_HAM_SHORT(-0.12)[-0.115]; HFILTER_HELO_NORES_A_OR_MX(0.30)[router10g.digiware.nl]; NEURAL_HAM_MEDIUM(-0.87)[-0.872]; DMARC_NA(0.00)[digiware.nl]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:28878, ipnet:2001:4cb8::/29, country:NL]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 13:34:45 -0000 Hi, Got bitten by this problem today again. I'm using this GSM-dongle modem as SMS-allerter for Nagios. Bad thing is that we had a DDos (178Gb) today, and allerts weren't sent. So I had to learn from the first calling customer that something was up. I'm using smsd, and your std, telco-GMS modem with sms support. Works like a charm. But again this morning it changed ports again. Normally it is available on /dev/cuaU0.0 and works regularly. But today it changed ports and went to /dev/cuaU1.0. Is there any particular reason for the OS to assign a different port? And can I prevent that from changing? Thanx, --WjW From owner-freebsd-usb@freebsd.org Tue Sep 1 13:37:56 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7ABAA3C836E for ; Tue, 1 Sep 2020 13:37:56 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Bgp6X26BZz4X71 for ; Tue, 1 Sep 2020 13:37:56 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.nyi.freebsd.org (Postfix) id 468BB3C83D6; Tue, 1 Sep 2020 13:37:56 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 465393C8903 for ; Tue, 1 Sep 2020 13:37:56 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 ESMTPS id 4Bgp6W0JV9z4X70 for ; Tue, 1 Sep 2020 13:37:54 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 7BC772601B2; Tue, 1 Sep 2020 15:37:53 +0200 (CEST) Subject: Re: USB-dongle modem keeps changing from cuaU0 to cuaU1 and bck To: Willem Jan Withagen , usb@freebsd.org References: From: Hans Petter Selasky Message-ID: Date: Tue, 1 Sep 2020 15:37:24 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Bgp6W0JV9z4X70 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.73 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_LONG(-1.03)[-1.031]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.38)[-0.383]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.01)[-1.015]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 13:37:56 -0000 On 2020-09-01 15:34, Willem Jan Withagen wrote: > Is there any particular reason for the OS to assign a different port? If the device is always present during boot, then numbers are fixed. > And can I prevent that from changing? You can create a devd rule which matches the creation of /dev/cuaUX, and then there is some more information which allows you to decide which device is which. See also discussion at: https://reviews.freebsd.org/D21886 --HPS From owner-freebsd-usb@freebsd.org Tue Sep 1 13:41:46 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 6A39B3C87ED for ; Tue, 1 Sep 2020 13:41:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BgpBy2Fxcz4XKq for ; Tue, 1 Sep 2020 13:41:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 4BAD03C88B8; Tue, 1 Sep 2020 13:41:46 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4B7153C89A6 for ; Tue, 1 Sep 2020 13:41:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BgpBy1L8Gz4XHZ for ; Tue, 1 Sep 2020 13:41:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1244219FCA for ; Tue, 1 Sep 2020 13:41:46 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 081DfjPI070373 for ; Tue, 1 Sep 2020 13:41:45 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 081DfjYo070372 for usb@FreeBSD.org; Tue, 1 Sep 2020 13:41:45 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 249051] uaudio device does not get created anymore Date: Tue, 01 Sep 2020 13:41:46 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: tcberner@freebsd.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: usb@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 13:41:46 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249051 --- Comment #2 from Tobias C. Berner --- (In reply to Hans Petter Selasky from comment #1) Moin moin=20 Indeed, using r365036 the speakers work again. mfg Tobias --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Sep 1 13:52:25 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id ACABC3C86FB for ; Tue, 1 Sep 2020 13:52:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BgpRF475Xz4XfH for ; Tue, 1 Sep 2020 13:52:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 8DA053C86FA; Tue, 1 Sep 2020 13:52:25 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8D6AC3C86F9 for ; Tue, 1 Sep 2020 13:52:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BgpRF3JXlz4XfG for ; Tue, 1 Sep 2020 13:52:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 553EA1A269 for ; Tue, 1 Sep 2020 13:52:25 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 081DqPaE083884 for ; Tue, 1 Sep 2020 13:52:25 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 081DqPRn083883 for usb@FreeBSD.org; Tue, 1 Sep 2020 13:52:25 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: usb@FreeBSD.org Subject: [Bug 249051] uaudio device does not get created anymore Date: Tue, 01 Sep 2020 13:52:25 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: usb X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: hselasky@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: hselasky@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: assigned_to Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 13:52:25 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D249051 Hans Petter Selasky changed: What |Removed |Added ---------------------------------------------------------------------------- Assignee|usb@FreeBSD.org |hselasky@FreeBSD.org --=20 You are receiving this mail because: You are the assignee for the bug.= From owner-freebsd-usb@freebsd.org Tue Sep 1 13:54:54 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4327C3C8C73 for ; Tue, 1 Sep 2020 13:54:54 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BgpV60TFvz4YFt for ; Tue, 1 Sep 2020 13:54:54 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.nyi.freebsd.org (Postfix) id 103943C8F26; Tue, 1 Sep 2020 13:54:54 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 100113C8CAF for ; Tue, 1 Sep 2020 13:54:54 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10G.digiware.nl (smtp.digiware.nl [IPv6:2001:4cb8:90:ffff::3]) (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 ESMTPS id 4BgpV52CvRz4Y4g for ; Tue, 1 Sep 2020 13:54:52 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10g.digiware.nl (localhost.digiware.nl [127.0.0.1]) by router10G.digiware.nl (Postfix) with ESMTP id 7DBB769A31; Tue, 1 Sep 2020 15:54:50 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.com Received: from router10G.digiware.nl ([127.0.0.1]) by router10g.digiware.nl (router10g.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id lwiEVfdYMLkT; Tue, 1 Sep 2020 15:54:49 +0200 (CEST) Received: from [192.168.10.67] (opteron [192.168.10.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by router10G.digiware.nl (Postfix) with ESMTPSA id CB00B69A30; Tue, 1 Sep 2020 15:54:49 +0200 (CEST) Subject: Re: USB-dongle modem keeps changing from cuaU0 to cuaU1 and bck To: Hans Petter Selasky , usb@freebsd.org References: From: Willem Jan Withagen Message-ID: <8ffb4077-b0cb-ed0c-bd86-9fa164ae140d@digiware.nl> Date: Tue, 1 Sep 2020 15:54:47 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: nl X-Rspamd-Queue-Id: 4BgpV52CvRz4Y4g X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of wjw@digiware.nl designates 2001:4cb8:90:ffff::3 as permitted sender) smtp.mailfrom=wjw@digiware.nl X-Spamd-Result: default: False [-1.64 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.04)[-1.040]; MIME_GOOD(-0.10)[text/plain]; HFILTER_HELO_IP_A(1.00)[router10g.digiware.nl]; HFILTER_HELO_NORES_A_OR_MX(0.30)[router10g.digiware.nl]; DMARC_NA(0.00)[digiware.nl]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.59)[-0.592]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.01)[-1.010]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:28878, ipnet:2001:4cb8::/29, country:NL]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 13:54:54 -0000 On 1-9-2020 15:37, Hans Petter Selasky wrote: > On 2020-09-01 15:34, Willem Jan Withagen wrote: >> Is there any particular reason for the OS to assign a different port? > > If the device is always present during boot, then numbers are fixed. It is, it is in a offsite rackserver where we run Nagios monitoring. Dongle is never removed. Server was not rebooted, but still between yesterday noon en today noon it changed ports. Could it be because the dongle itself crashes? > >> And can I prevent that from changing? > > You can create a devd rule which matches the creation of /dev/cuaUX, > and then there is some more information which allows you to decide > which device is which. > > See also discussion at: > > https://reviews.freebsd.org/D21886 Will check. --WjW From owner-freebsd-usb@freebsd.org Tue Sep 1 14:10:51 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8C2D93C94D2 for ; Tue, 1 Sep 2020 14:10:51 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BgprT5J5yz4YmS for ; Tue, 1 Sep 2020 14:10:49 +0000 (UTC) (envelope-from hps@selasky.org) Received: by mailman.nyi.freebsd.org (Postfix) id B27973C9782; Tue, 1 Sep 2020 14:10:46 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id AC7F53C93C8 for ; Tue, 1 Sep 2020 14:10:46 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (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 ESMTPS id 4BgprP0yNZz4Z3Q for ; Tue, 1 Sep 2020 14:10:44 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2020.home.selasky.org (unknown [178.17.145.105]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 48D772600E7; Tue, 1 Sep 2020 16:10:41 +0200 (CEST) Subject: Re: USB-dongle modem keeps changing from cuaU0 to cuaU1 and bck To: Willem Jan Withagen , usb@freebsd.org References: <8ffb4077-b0cb-ed0c-bd86-9fa164ae140d@digiware.nl> From: Hans Petter Selasky Message-ID: <4007b388-4f62-bcfc-1003-0ad2f079c1d4@selasky.org> Date: Tue, 1 Sep 2020 16:10:14 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <8ffb4077-b0cb-ed0c-bd86-9fa164ae140d@digiware.nl> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4BgprP0yNZz4Z3Q X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of hps@selasky.org designates 2a01:4f8:c17:6c4b::2 as permitted sender) smtp.mailfrom=hps@selasky.org X-Spamd-Result: default: False [-2.76 / 15.00]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+a:mail.turbocat.net:c]; MID_RHS_MATCH_FROM(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[selasky.org]; NEURAL_HAM_LONG(-1.04)[-1.036]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.41)[-0.414]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.01)[-1.015]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:24940, ipnet:2a01:4f8::/29, country:DE]; RCVD_COUNT_TWO(0.00)[2]; MAILMAN_DEST(0.00)[usb] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 14:10:51 -0000 On 2020-09-01 15:54, Willem Jan Withagen wrote: > Could it be because the dongle itself crashes? Yes, if they reboot or there are disturbances on the USB cables, then a new index number may be assigned during re-enumeration. --HPS From owner-freebsd-usb@freebsd.org Tue Sep 1 14:23:23 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1C3253C9DBF for ; Tue, 1 Sep 2020 14:23:23 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Bgq6y6QM8z4b2n for ; Tue, 1 Sep 2020 14:23:22 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.nyi.freebsd.org (Postfix) id DC5353C9DBE; Tue, 1 Sep 2020 14:23:22 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id DC1FB3C9DBD for ; Tue, 1 Sep 2020 14:23:22 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10G.digiware.nl (smtp.digiware.nl [176.74.240.9]) (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 ESMTPS id 4Bgq6x6LGtz4Zs5 for ; Tue, 1 Sep 2020 14:23:21 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10g.digiware.nl (localhost.digiware.nl [127.0.0.1]) by router10G.digiware.nl (Postfix) with ESMTP id 291AF69A87; Tue, 1 Sep 2020 16:23:20 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.com Received: from router10G.digiware.nl ([127.0.0.1]) by router10g.digiware.nl (router10g.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 8Nf5OZJXbKbm; Tue, 1 Sep 2020 16:23:19 +0200 (CEST) Received: from [192.168.10.67] (opteron [192.168.10.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by router10G.digiware.nl (Postfix) with ESMTPSA id 7059F69A86; Tue, 1 Sep 2020 16:23:19 +0200 (CEST) Subject: Re: USB-dongle modem keeps changing from cuaU0 to cuaU1 and bck To: Hans Petter Selasky , usb@freebsd.org References: <8ffb4077-b0cb-ed0c-bd86-9fa164ae140d@digiware.nl> <4007b388-4f62-bcfc-1003-0ad2f079c1d4@selasky.org> From: Willem Jan Withagen Message-ID: <5a58c96d-81f5-cb7d-16c5-c28250aeed7f@digiware.nl> Date: Tue, 1 Sep 2020 16:23:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <4007b388-4f62-bcfc-1003-0ad2f079c1d4@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: nl X-Rspamd-Queue-Id: 4Bgq6x6LGtz4Zs5 X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of wjw@digiware.nl designates 176.74.240.9 as permitted sender) smtp.mailfrom=wjw@digiware.nl X-Spamd-Result: default: False [-1.90 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.04)[-1.038]; MIME_GOOD(-0.10)[text/plain]; HFILTER_HELO_IP_A(1.00)[router10g.digiware.nl]; HFILTER_HELO_NORES_A_OR_MX(0.30)[router10g.digiware.nl]; DMARC_NA(0.00)[digiware.nl]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.77)[-0.769]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:28878, ipnet:176.74.224.0/19, country:NL]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[usb]; RCVD_IN_DNSWL_LOW(-0.10)[176.74.240.9:from] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 14:23:23 -0000 On 1-9-2020 16:10, Hans Petter Selasky wrote: > On 2020-09-01 15:54, Willem Jan Withagen wrote: >> Could it be because the dongle itself crashes? > > Yes, if they reboot or there are disturbances on the USB cables, then > a new index number may be assigned during re-enumeration. There is no hub or something in between, and it is directly connected. So I'm guessing that the modem resets/reboots. Let's see if devd can help. It does not happen very often, but now already twice on a day that it should have worked. 8-( --WjW From owner-freebsd-usb@freebsd.org Tue Sep 1 15:04:52 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 7102E3CB2C2 for ; Tue, 1 Sep 2020 15:04:52 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4Bgr2r2LV2z4dg7 for ; Tue, 1 Sep 2020 15:04:52 +0000 (UTC) (envelope-from ian@freebsd.org) Received: by mailman.nyi.freebsd.org (Postfix) id 5070F3CB2C1; Tue, 1 Sep 2020 15:04:52 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 503AC3CB317 for ; Tue, 1 Sep 2020 15:04:52 +0000 (UTC) (envelope-from ian@freebsd.org) Received: from outbound2k.ore.mailhop.org (outbound2k.ore.mailhop.org [54.148.219.64]) (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 ESMTPS id 4Bgr2q66dgz4f6w for ; Tue, 1 Sep 2020 15:04:51 +0000 (UTC) (envelope-from ian@freebsd.org) ARC-Seal: i=1; a=rsa-sha256; t=1598972690; cv=none; d=outbound.mailhop.org; s=arc-outbound20181012; b=ILvkxouPAxdgVk1LiN5tGfKbvEvSEFhytnU/LlHsdldakWmcf7kERKzOxIcotgFRLJhzQKoZphjZd W7o18Y2BNH8UYYolZEewhhz31L7U9Mz6s6okOUQ7xJbGRDUtr4Af15gQ4Lvf+uXB21BPGWerwGjrDN dxUXD5zZajphMUZtmxilCx4nVGZSO+CPI04XnjNC9cW+q316YQJJYnrsJiVvDSRU14NN7lldZ/v1uJ XiCdjLE8WFn2tq5BfyiabcKxO16vUgPXusEKyCKq6n/C86HgcYpTkWCLT+UlaCZ0/u7PR+FXFTrKES zDawE9gtOOpzLdIyhG9k2AlYYiYjD+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=arc-outbound20181012; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:dkim-signature:from; bh=7W8II7mMCB0AcE6KmUDKhVAMF4aXHQVlXWjPG6axtXs=; b=ZD0IgsQBc5WzBxEwbzTwt+VsU3nGdN3nwGUQpv+bJ4lef7sZPLYEgiRlRZwsuA8tYVhc/FP9MQv+u 8bZJAMb4KMHG9ISwAO3uELrcAov5ZKE340TBcZOzf34qbdTlKgrfgBN5C5wAmRcpU/Ic3dH7vxPRfS OH6yghEyuIqdLVi4A/r/OdfqD5sHOA5kLAENvtpOGCXscXIHv4WfoCcUVJd0AfhF/A8dipKZ8jQMXd NsZtLwPgcYMvzLyj++j77F0nvIZ4eH1BnMZSObiAfilGngVtyjcw+737aPPQCrkQfHlFxihJTZfuiP mtTrfjWMUI9VmdUksp9R2/8eq4IFcKw== ARC-Authentication-Results: i=1; outbound4.ore.mailhop.org; spf=softfail smtp.mailfrom=freebsd.org smtp.remote-ip=67.177.211.60; dmarc=none header.from=freebsd.org; arc=none header.oldest-pass=0; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=outbound.mailhop.org; s=dkim-high; h=content-transfer-encoding:mime-version:content-type:references:in-reply-to: date:to:from:subject:message-id:from; bh=7W8II7mMCB0AcE6KmUDKhVAMF4aXHQVlXWjPG6axtXs=; b=fVXJCBp2HOu3zTiRs5/tlXvlDgHcoVHEl1dhMYQT8pRcMuCbSNa0DXSGac1b790gCkqRaw14ZcavK s7u/rmSHnz8WhSPApaNXu60jJhhw2Y/ZGKiKeETWy/RvLrVTbBd0+0shi0GD8+O9NbAb9l++SrDxtC AygaSNhxUGuyMIc72X5widrUAZvyupy22VyvFOFL/LcDQ47Vh3Xl/2NkhDFTG7bTSiNc0KKydmPt7L Lcwr2fWe2Hr0WC1bhVELtye0IkQr/ZUFFQl+kuEuaNQFChwMlOrTGvH6fVeUmaen+U/bF+02c75HT4 D3FAcEaRSV2aE0slbP32o1yg1n0YdMg== X-MHO-RoutePath: aGlwcGll X-MHO-User: 790388be-ec64-11ea-9e11-df46ed8f892f X-Report-Abuse-To: https://support.duocircle.com/support/solutions/articles/5000540958-duocircle-standard-smtp-abuse-information X-Originating-IP: 67.177.211.60 X-Mail-Handler: DuoCircle Outbound SMTP Received: from ilsoft.org (c-67-177-211-60.hsd1.co.comcast.net [67.177.211.60]) by outbound4.ore.mailhop.org (Halon) with ESMTPSA id 790388be-ec64-11ea-9e11-df46ed8f892f; Tue, 01 Sep 2020 15:04:49 +0000 (UTC) Received: from rev (rev [172.22.42.240]) by ilsoft.org (8.15.2/8.15.2) with ESMTP id 081F4joH041460; Tue, 1 Sep 2020 09:04:45 -0600 (MDT) (envelope-from ian@freebsd.org) Message-ID: <16a7523227a32a4551f4459c06101f1ca0206e9b.camel@freebsd.org> Subject: Re: USB-dongle modem keeps changing from cuaU0 to cuaU1 and bck From: Ian Lepore To: Willem Jan Withagen , Hans Petter Selasky , usb@freebsd.org Date: Tue, 01 Sep 2020 09:04:45 -0600 In-Reply-To: <5a58c96d-81f5-cb7d-16c5-c28250aeed7f@digiware.nl> References: <8ffb4077-b0cb-ed0c-bd86-9fa164ae140d@digiware.nl> <4007b388-4f62-bcfc-1003-0ad2f079c1d4@selasky.org> <5a58c96d-81f5-cb7d-16c5-c28250aeed7f@digiware.nl> Content-Type: text/plain; charset="ASCII" X-Mailer: Evolution 3.28.5 FreeBSD GNOME Team Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4Bgr2q66dgz4f6w X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; ASN(0.00)[asn:16509, ipnet:54.148.0.0/15, country:US] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 15:04:52 -0000 On Tue, 2020-09-01 at 16:23 +0200, Willem Jan Withagen wrote: > On 1-9-2020 16:10, Hans Petter Selasky wrote: > > On 2020-09-01 15:54, Willem Jan Withagen wrote: > > > Could it be because the dongle itself crashes? > > > > Yes, if they reboot or there are disturbances on the USB cables, then > > a new index number may be assigned during re-enumeration. > > There is no hub or something in between, and it is directly connected. > So I'm guessing that the modem resets/reboots. > > Let's see if devd can help. > > It does not happen very often, but now already twice on a day that it > should have worked. > 8-( > > --WjW > A typical scenario when this problem happens is: - cuaU0 is opened by an app. - Something Happens(tm) to make the device disconnect from the bus, but cuaU0 is still open by the app so the devfs node remains. - The transient problems clears, the bus is re-enumerated, but since cuaU0 is still in use by the app, cuaU1 gets assigned. - Eventually the app tries to read from cuaU0 and gets an error return from the read and closes the device, freeing cuaU0 in devfs. If you use devd rules to assign a particular alias based on the device's serial number or bus:hub:port tuples, the same underlying problem is going to be there: the app may still have the old device open and hasn't yet noticed that it has disappeared. If the way the alias is assigned is to create a symlink, and that's done using ln -fs then it may work out. But there may be some need to have the devd rule signal or kill/restart your app that's doing the monitoring. -- Ian From owner-freebsd-usb@freebsd.org Tue Sep 1 16:14:00 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 64C853CDA48 for ; Tue, 1 Sep 2020 16:14:00 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4BgsZc1VjDz3X8g for ; Tue, 1 Sep 2020 16:14:00 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.nyi.freebsd.org (Postfix) id 337983CDA46; Tue, 1 Sep 2020 16:14:00 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 334353CD6F4 for ; Tue, 1 Sep 2020 16:14:00 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10G.digiware.nl (smtp.digiware.nl [176.74.240.9]) (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 ESMTPS id 4BgsZb24fVz3XKl for ; Tue, 1 Sep 2020 16:13:58 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10g.digiware.nl (localhost.digiware.nl [127.0.0.1]) by router10G.digiware.nl (Postfix) with ESMTP id 963D469C46; Tue, 1 Sep 2020 18:13:56 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.com Received: from router10G.digiware.nl ([127.0.0.1]) by router10g.digiware.nl (router10g.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4cYxtlpCipjl; Tue, 1 Sep 2020 18:13:55 +0200 (CEST) Received: from [192.168.10.67] (opteron [192.168.10.67]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by router10G.digiware.nl (Postfix) with ESMTPSA id D87B169C45; Tue, 1 Sep 2020 18:13:55 +0200 (CEST) Subject: Re: USB-dongle modem keeps changing from cuaU0 to cuaU1 and bck To: Hans Petter Selasky , usb@freebsd.org References: <8ffb4077-b0cb-ed0c-bd86-9fa164ae140d@digiware.nl> <4007b388-4f62-bcfc-1003-0ad2f079c1d4@selasky.org> From: Willem Jan Withagen Message-ID: <1d601d61-e620-69b7-a051-4f75344e5cd4@digiware.nl> Date: Tue, 1 Sep 2020 18:13:53 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <4007b388-4f62-bcfc-1003-0ad2f079c1d4@selasky.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: nl X-Rspamd-Queue-Id: 4BgsZb24fVz3XKl X-Spamd-Bar: - Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of wjw@digiware.nl designates 176.74.240.9 as permitted sender) smtp.mailfrom=wjw@digiware.nl X-Spamd-Result: default: False [-1.72 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; NEURAL_HAM_LONG(-1.04)[-1.043]; MIME_GOOD(-0.10)[text/plain]; HFILTER_HELO_IP_A(1.00)[router10g.digiware.nl]; HFILTER_HELO_NORES_A_OR_MX(0.30)[router10g.digiware.nl]; DMARC_NA(0.00)[digiware.nl]; RCVD_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_HAM_SHORT(-0.55)[-0.550]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_MEDIUM(-1.03)[-1.032]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:28878, ipnet:176.74.224.0/19, country:NL]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[usb]; RCVD_IN_DNSWL_LOW(-0.10)[176.74.240.9:from] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Sep 2020 16:14:00 -0000 On 1-9-2020 16:10, Hans Petter Selasky wrote: > On 2020-09-01 15:54, Willem Jan Withagen wrote: >> Could it be because the dongle itself crashes? > > Yes, if they reboot or there are disturbances on the USB cables, then > a new index number may be assigned during re-enumeration. Got it working, except ttyname replacement would not work.... Hence 2 cases.... to select the device. smsd config now connects to /dev/sms-dongle If the device is recreated/swapped, it takes the daemon a few tries to detect that the file-handle no longer works and to reopen it. But thus far it gets it right every time. --WjW # ugen0.2: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (500mA) # #   bLength = 0x0012 #   bDescriptorType = 0x0001 #   bcdUSB = 0x0110 #   bDeviceClass = 0x0000  #   bDeviceSubClass = 0x0000 #   bDeviceProtocol = 0x0000 #   bMaxPacketSize0 = 0x0040 #   idVendor = 0x12d1 #   idProduct = 0x1003 #   bcdDevice = 0x0000 #   iManufacturer = 0x0001  #   iProduct = 0x0002  #   iSerialNumber = 0x0000  #   bNumConfigurations = 0x0001 # #   ugen=ugen0.2 vendor=0x12d1 product=0x1003 ttyname=U1 attach 1001 {         match "vendor"          "0x12d1";         match "product"         "0x1003";         match "ttyname"         "U0";         action "ln -sf /dev/cuaU0.0 /dev/sms-dongle"; }; attach 1001 {         match "vendor"          "0x12d1";         match "product"         "0x1003";         match "ttyname"         "U1";         action "ln -sf /dev/cuaU1.0 /dev/sms-dongle"; }; notify 1001 {         match "system"          "USB";         match "subsystem"       "DEVICE";         match "type"            "DETACH";         match "vendor"          "0x12d1";         match "product"         "0x1003";         action "unlink /dev/sms-dongle"; }; From owner-freebsd-usb@freebsd.org Wed Sep 2 08:22:21 2020 Return-Path: Delivered-To: freebsd-usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 742F73D099C for ; Wed, 2 Sep 2020 08:22:21 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4BhH3x1wdXz4Qnf for ; Wed, 2 Sep 2020 08:22:21 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: by mailman.nyi.freebsd.org (Postfix) id 3F2763D0764; Wed, 2 Sep 2020 08:22:21 +0000 (UTC) Delivered-To: usb@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3EE543D0B03 for ; Wed, 2 Sep 2020 08:22:21 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10G.digiware.nl (smtp.digiware.nl [176.74.240.9]) (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 ESMTPS id 4BhH3w5Csqz4R3Z; Wed, 2 Sep 2020 08:22:20 +0000 (UTC) (envelope-from wjw@digiware.nl) Received: from router10g.digiware.nl (localhost.digiware.nl [127.0.0.1]) by router10G.digiware.nl (Postfix) with ESMTP id C9DA76A50F; Wed, 2 Sep 2020 10:22:16 +0200 (CEST) X-Virus-Scanned: amavisd-new at digiware.com Received: from router10G.digiware.nl ([127.0.0.1]) by router10g.digiware.nl (router10g.digiware.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wEzOYD1snCWA; Wed, 2 Sep 2020 10:22:15 +0200 (CEST) Received: from [192.168.10.9] (vaio [192.168.10.9]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by router10G.digiware.nl (Postfix) with ESMTPSA id D77546A50E; Wed, 2 Sep 2020 10:22:15 +0200 (CEST) Subject: Re: USB-dongle modem keeps changing from cuaU0 to cuaU1 and bck To: Ian Lepore , Hans Petter Selasky , usb@freebsd.org References: <8ffb4077-b0cb-ed0c-bd86-9fa164ae140d@digiware.nl> <4007b388-4f62-bcfc-1003-0ad2f079c1d4@selasky.org> <5a58c96d-81f5-cb7d-16c5-c28250aeed7f@digiware.nl> <16a7523227a32a4551f4459c06101f1ca0206e9b.camel@freebsd.org> From: Willem Jan Withagen Message-ID: Date: Wed, 2 Sep 2020 10:22:15 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Firefox/68.0 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <16a7523227a32a4551f4459c06101f1ca0206e9b.camel@freebsd.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-GB X-Rspamd-Queue-Id: 4BhH3w5Csqz4R3Z X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; ASN(0.00)[asn:28878, ipnet:176.74.224.0/19, country:NL]; REPLY(-4.00)[] X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2020 08:22:21 -0000 On 1-9-2020 17:04, Ian Lepore wrote: > On Tue, 2020-09-01 at 16:23 +0200, Willem Jan Withagen wrote: >> On 1-9-2020 16:10, Hans Petter Selasky wrote: >>> On 2020-09-01 15:54, Willem Jan Withagen wrote: >>>> Could it be because the dongle itself crashes? >>> Yes, if they reboot or there are disturbances on the USB cables, then >>> a new index number may be assigned during re-enumeration. >> There is no hub or something in between, and it is directly connected. >> So I'm guessing that the modem resets/reboots. >> >> Let's see if devd can help. >> >> It does not happen very often, but now already twice on a day that it >> should have worked. >> 8-( >> > A typical scenario when this problem happens is: > > - cuaU0 is opened by an app. > - Something Happens(tm) to make the device disconnect from the bus, > but cuaU0 is still open by the app so the devfs node remains. > - The transient problems clears, the bus is re-enumerated, but since > cuaU0 is still in use by the app, cuaU1 gets assigned. > - Eventually the app tries to read from cuaU0 and gets an error > return from the read and closes the device, freeing cuaU0 in devfs. > > If you use devd rules to assign a particular alias based on the > device's serial number or bus:hub:port tuples, the same underlying > problem is going to be there: the app may still have the old device > open and hasn't yet noticed that it has disappeared. If the way the > alias is assigned is to create a symlink, and that's done using ln -fs > then it may work out. But there may be some need to have the devd rule > signal or kill/restart your app that's doing the monitoring. Thanx for the full explanation of the cause. Nice suggestion to use in devd. The problem is also in the smsd application.... You can specify several ports to start a sub process on. But if after a while that process cannot open a port and get the modem initialized, it terminates. So it will not see a modem appearing on the new/changed port. The process that caught the correct port at start, will try about 10 times when the modem has gone, and then  close/open the port again to see if anything is out there. So creating a alias filename that is stable, and fixes the underlying redirection will also work. Restarting the daemon will work if all possible port gets a configuration, the process will stick onto the available port. --WjW