From owner-freebsd-questions@freebsd.org Tue Sep 8 11:36:06 2020 Return-Path: Delivered-To: freebsd-questions@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 2491B333E6E for ; Tue, 8 Sep 2020 11:36:06 +0000 (UTC) (envelope-from rustam-m@ukr.net) Received: from frv196.fwdcdn.com (frv196.fwdcdn.com [212.42.77.196]) (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 (2048 bits) client-digest SHA256) (Client CN "*.ukr.net", Issuer "Thawte RSA CA 2018" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Bm34h6tXYz4bhV for ; Tue, 8 Sep 2020 11:36:04 +0000 (UTC) (envelope-from rustam-m@ukr.net) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ukr.net; s=ffe; h=Content-Type:MIME-Version:Message-Id:Cc:To:Subject:From:Date:Sender: Reply-To:Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date :Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post: List-Owner:List-Archive; bh=N3XCzcSvTEQ0vjpA+iTRu6FkezxPv+qV6aI41YtKABg=; b=e wEBXbhIhT7zVgYSs5nVT9jeKh+P2hgMArmp8IYYRfL+9REuCE4u92c0aZZ3UakldH+fRDA0NRHGhs qsBfB99V9B7sdD3N9BGxnXVoXq1XWfvn+ODe1y8a0Om/GZJEVrlTC1kj2E5KQeq1bK6evxDeqtFRH 83YrM7SIaASvD8hU=; Received: from [10.10.80.12] (helo=frv50.fwdcdn.com) by frv196.fwdcdn.com with smtp ID 1kFbum-0009n0-OL for freebsd-questions@freebsd.org; Tue, 08 Sep 2020 14:35:56 +0300 Date: Tue, 08 Sep 2020 14:35:56 +0300 From: Rustam Subject: Can't get working USB modem Huawei E3372h-320 To: freebsd-questions@freebsd.org Cc: Received: from rustam-m@ukr.net by frv50.fwdcdn.com; Tue, 08 Sep 2020 14:35:56 +0300 Message-Id: <1599564061.688364000.y450x494@frv50.fwdcdn.com> X-Mailer: mail.ukr.net 5.0 MIME-Version: 1.0 X-Rspamd-Queue-Id: 4Bm34h6tXYz4bhV X-Spamd-Bar: --- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ukr.net header.s=ffe header.b=e wEBXbh; dmarc=pass (policy=none) header.from=ukr.net; spf=pass (mx1.freebsd.org: domain of rustam-m@ukr.net designates 212.42.77.196 as permitted sender) smtp.mailfrom=rustam-m@ukr.net X-Spamd-Result: default: False [-3.29 / 15.00]; ARC_NA(0.00)[]; RWL_MAILSPIKE_VERYGOOD(0.00)[212.42.77.196:from]; R_DKIM_ALLOW(-0.20)[ukr.net:s=ffe]; NEURAL_HAM_MEDIUM(-0.99)[-0.992]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[ukr.net]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_NONE(0.00)[]; NEURAL_HAM_LONG(-1.02)[-1.024]; MIME_BASE64_TEXT_BOGUS(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; DWL_DNSWL_LOW(-1.00)[ukr.net:dkim]; RCVD_COUNT_THREE(0.00)[3]; R_SPF_ALLOW(-0.20)[+ip4:212.42.77.0/24]; DKIM_TRACE(0.00)[ukr.net:+]; MIME_BASE64_TEXT(0.10)[]; DMARC_POLICY_ALLOW(-0.50)[ukr.net,none]; NEURAL_HAM_SHORT(-0.37)[-0.372]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_ENVFROM(0.00)[ukr.net]; ASN(0.00)[asn:8856, ipnet:212.42.77.0/24, country:UA]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-questions] Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: binary X-Content-Filtered-By: Mailman/MimeDel 2.1.33 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2020 11:36:06 -0000 We use a FreeBSD gateway. Lately we have to change our ISP and chose wireless Internet via modem Huawei E3372h-320 (HiLink). Modem works fine on different Windows PC's (Win7/Win10/USB2.0/USB3.0) - internet available. But when connect to our FreeBSD - modem can't be detected correctly. On console repeatedly appears messages like: ugen7.4: at usbus7 cdce1 on uhub8 cdce1: on usbus7 ue1: on cdce1 ue1: Ethernet address: 00:1e:10:1f:00:00 ugen7.4: at usbus7 (disconnected) cdce1: at uhub8, port 1, addr 4 (disconnected) cdce1: detached usbd_req_re_enumerate: addr=4, set address failed! (USB_ERR_IOERROR, ignored) usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_IOERROR usbd_req_re_enumerate: addr=4, set address failed! (USB_ERR_IOERROR, ignored) usbd_setup_device_desc: getting device descriptor at addr 4 failed, USB_ERR_IOERROR usb_alloc_device: Failure selecting configuration index 0:USB_ERR_IOERROR, port 1, addr 4 (ignored) See photo of the screen: https://picua.org/image/Me2Hvf When executing 'usbconfig' command repeatedly, most of times results shows empty usb ports. But sometime I can see device 'HUAWEIMOBILE HUAWEIMOBILE' for short time (it disappears at next time). When repeatedly execute 'ifconfig -a' sometimes we got an automatically created interface ue0/ue1, which then vanishes. This looks like modem repeatedly connects/disconnects from USB port. First we assume this is because of not enough power from USB. We move HDD with FreeBSD into another PC - the same behavior. Then I solder hand-made USB cable - attach an extra 2 wires in parallel to V+/G wires of factory cable and turn on them into an external 5V USB charger while modem keep connected via factory cable. Got no effect. So, this is not a hardware problem (or am I wrong?). I try increase values of hw.usb.timings.* in 'loader.conf' - no effect. May be someone can point me to another variables? May be I need load/unload/configure some kernel modules? Previously we have another modem Huawei EC315 (VID=0x12d1/PID=0x1f01), which works fine connected to that system (with help of 'usb_modeswitch'). So, my question: does anyone make this modem works on FreeBSD or have similar troubles with other devices? Can you point me in right direction? My system: FreeBSD 12.1-RELEASE-p9 GENERIC  i386 Modem info: H/W version = CL4E3372HM, F/W version = 10.0.3.1(H192SP2C983) 'dmesg' of worked modem EC315 ('ue0' appears after 'usb_modeswitch' by startup script): ugen7.2: at usbus7 umass0 on uhub1 umass0: on usbus7 umass0:  SCSI over Bulk-Only; quirks = 0x0100 umass0:6:0: Attached to scbus6 cd0 at umass-sim0 bus 0 scbus6 target 0 lun 0 cd0: Removable CD-ROM SCSI-2 device cd0: 40.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present cd0: quirks=0x10<10_BYTE_ONLY> umass0: at uhub1, port 1, addr 2 (disconnected) cd0 at umass-sim0 bus 0 scbus6 target 0 lun 0 cd0:  detached (cd0:umass-sim0:0:0:0): Periph destroyed umass0: detached ugen7.2: at usbus7 (disconnected) lo0: link state changed to UP em1: link state changed to UP WARNING: attempt to domain_add(netgraph) after domainfinalize() ipfw2 (+ipv6) initialized, divert loadable, nat loadable, default to deny, logging disabled ugen7.2: at usbus7 cdce0 on uhub1 cdce0: on usbus7 ue0: on cdce0 ue0: Ethernet address: 00:a0:c6:xxxxxx