From owner-freebsd-usb@FreeBSD.ORG Thu Oct 16 06:31:44 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AEA23115 for ; Thu, 16 Oct 2014 06:31:44 +0000 (UTC) Received: from mail.turbocat.net (mail.turbocat.net [IPv6:2a01:4f8:d16:4514::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 719A8EE7 for ; Thu, 16 Oct 2014 06:31:44 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id 927F31FE022; Thu, 16 Oct 2014 08:31:41 +0200 (CEST) Message-ID: <543F664F.4010003@selasky.org> Date: Thu, 16 Oct 2014 08:31:43 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.1.2 MIME-Version: 1.0 To: gabor@zahemszky.hu, freebsd-usb@freebsd.org Subject: Re: u3g and Vodafone k3772 (not k3772z) References: In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 16 Oct 2014 06:31:44 -0000 Hi, On 10/15/14 22:33, gabor@zahemszky.hu wrote: > Hi! > > I borrowed a Vodafone - Huawei K3772 Mobile stick for some days. It's a > bit disappointing, that I could not use it under FreeBSD. > This 3g modem is made by Huawei (the K3772z is made by ZTE) with > vendorID: 0x12d1 and productID: 0x1526. > > # usbconfig -d 4.3 dump_device_desc > ugen4.3: at usbus4, > cfg=255 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) > > bLength = 0x0012 > bDescriptorType = 0x0001 > bcdUSB = 0x0200 > bDeviceClass = 0x0000 > bDeviceSubClass = 0x0000 > bDeviceProtocol = 0x0000 > bMaxPacketSize0 = 0x0040 > idVendor = 0x12d1 > idProduct = 0x1526 > bcdDevice = 0x0102 > iManufacturer = 0x0002 > iProduct = 0x0001 > iSerialNumber = 0x0000 > bNumConfigurations = 0x0001 > > I tried to switch it to USB-modem mode, but none of the usb_quirks > worked. And with EJECT_HUAWEI, I got an error, too. > > # usbconfig -d ugen4.3 add_quirk UQ_MSC_EJECT_HUAWEI > Adding quirk 'UQ_MSC_EJECT_HUAWEI' failed, continuing. > # Did you load the u3g and usb_quirk modules first? > > Under Linux, with usb_modeswitch, I could switch it to modem, with the > MessageContent="55534243123456780000000000000011062000000100000000000000000000" > > string, and after it, it will be Vendor=12d1 ProdID=14cf. There are some > interesting information about this modem in this forum thread: > > http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=4&t=1114 > > Is it possible, to use this modem under FreeBSD? And if yes, how? > Modeswitch is available under FreeBSD too. Check the ports collection. Although we prefer putting the quirks into the kernel. --HPS