From owner-freebsd-usb@FreeBSD.ORG Thu Oct 16 07:51:17 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 2AF5C3B2 for ; Thu, 16 Oct 2014 07:51:17 +0000 (UTC) Received: from mail-wi0-x233.google.com (mail-wi0-x233.google.com [IPv6:2a00:1450:400c:c05::233]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B53777E0 for ; Thu, 16 Oct 2014 07:51:16 +0000 (UTC) Received: by mail-wi0-f179.google.com with SMTP id d1so3914835wiv.12 for ; Thu, 16 Oct 2014 00:51:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:in-reply-to:references:reply-to :mime-version:content-type:content-transfer-encoding; bh=FEw5uJDErCBVZLgv9TKIQ/eI1+rRHip6/U/BTXPtqes=; b=a2DNcU4nVqgjbrfXFRwteezZnt01fUOwBHcD4ppz4Lky58ywIOmMRk+z0oo8w6pI6R aqZJhP0OUcYO/WLw7csi1fQDvtElS3erxj1/WDzuuLo+C8SpkfKTHfczFnjXGvzX+Im6 zvGNh8euvlx3kQBVy3xZZA/XxbpV6ToPC1ev9je11glSrKJjn17KVhujS7vICuQzQlQ8 nBCXnYxRocPpSFCfCXGKVUl5D9rYFQrQRbrek07Cyzv36/ud3GG1hwxCmtHOs6Y1o5Td E8EWaS2IjR3id12JS689IZgqFXknIsS57nh34rgP4c0FDmcJKisWPkkGVsYz+cBXtWpL SvNQ== X-Received: by 10.180.85.102 with SMTP id g6mr18532404wiz.54.1413445874880; Thu, 16 Oct 2014 00:51:14 -0700 (PDT) Received: from ernst.home (p578E1326.dip0.t-ipconnect.de. [87.142.19.38]) by mx.google.com with ESMTPSA id k10sm26430105wjb.28.2014.10.16.00.51.13 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Thu, 16 Oct 2014 00:51:14 -0700 (PDT) Date: Thu, 16 Oct 2014 09:51:11 +0200 From: Gary Jennejohn To: Hans Petter Selasky Subject: Re: u3g and Vodafone k3772 (not k3772z) Message-ID: <20141016095111.6201afaf@ernst.home> In-Reply-To: <543F757F.3080008@selasky.org> References: <543F662E.2010801@bitfrost.no> <543F757F.3080008@selasky.org> Reply-To: gljennjohn@gmail.com X-Mailer: Claws Mail 3.10.1 (GTK+ 2.24.17; amd64-portbld-freebsd11.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: gabor@zahemszky.hu, freebsd-usb@freebsd.org 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 07:51:17 -0000 On Thu, 16 Oct 2014 09:36:31 +0200 Hans Petter Selasky wrote: > On 10/16/14 08:48, gabor@zahemszky.hu wrote: > >>> 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? > > > > > > Yes. My method was: > > > > - first I plugged in the stick. > > - Found, that nothing know about it. > > - Pulled out > > # kldload u3g > > - plugged it second time > > - nothing > > - pulled out > > # kldload usb_quirk > > # man usb_quirk > > - plugged the stick > > - tried all of the u3g quirks, found in the manual and in the usbconfig > > dump_quirk_names list > > with the command: > > > > usbconfig -d useg4.3 add_quirk UQ_MSC_EJECT_* > > > > one after the other. Actually I've just found, that there is a > > remove_quirk subcommand, too. > > Maybe I need to remove a quirk if it's not the correct one? > > > >>> 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 > > > > > > Hm, I didn't know about it, At the evening, I'll try it. > > > > > >> collection. Although we prefer putting the quirks into the kernel. > > > > Isn't it a good idea to make it possible to add new quirks from userspace? > > Not always, because then the dummy CD-ROMs will enumerate first. > Yeah, but according to usb_quirk(4) that's exactly what that module is supposed to make possible. -- Gary Jennejohn