From owner-freebsd-usb@FreeBSD.ORG Thu Oct 16 06:49:09 2014 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 67F93560 for ; Thu, 16 Oct 2014 06:49:09 +0000 (UTC) Received: from mta05.bitpro.no (mta05.bitpro.no [92.42.64.202]) by mx1.freebsd.org (Postfix) with ESMTP id 1E357FD6 for ; Thu, 16 Oct 2014 06:49:08 +0000 (UTC) Received: from mail.lockless.no (mail.lockless.no [46.29.221.38]) by mta05.bitpro.no (Postfix) with ESMTPS id 64F0F17F860; Thu, 16 Oct 2014 08:31:09 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by mail.lockless.no (Postfix) with ESMTP id D51F0201A7F; Thu, 16 Oct 2014 08:31:50 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.4 (20090625) (Debian) at lockless.no Received: from mail.lockless.no ([127.0.0.1]) by localhost (mail.lockless.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id rVQTRYQdVb2F; Thu, 16 Oct 2014 08:31:49 +0200 (CEST) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) by mail.lockless.no (Postfix) with ESMTPSA id DDD34201A7E; Thu, 16 Oct 2014 08:31:48 +0200 (CEST) Message-ID: <543F662E.2010801@bitfrost.no> Date: Thu, 16 Oct 2014 08:31:10 +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:49:09 -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