Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 03 May 2008 15:01:49 +0200
From:      Fredrik Lindberg <fli@shapeshifter.se>
To:        Marcin Cieslak <saper@system.pl>
Cc:        freebsd-usb@freebsd.org
Subject:   Re: sierra wireless compass 597 aircard (Was: Documentation)
Message-ID:  <481C623D.7040902@shapeshifter.se>
In-Reply-To: <fvgbrb$k3u$1@ger.gmane.org>
References:  <481B094F.1090408@netwolves.com>	<200805021534.13848.hselasky@c2i.net>	<481B5095.8080400@netwolves.com> <fvgbrb$k3u$1@ger.gmane.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Marcin Cieslak wrote:
> It maybe a good idea to add 0xFFF to the usbdevs.
> Does the "umass" driver  attach to the 0xFFF device? I would recommend 
> adding this as a quirk to umass.c then.
> 
> There are patches attached (ubsa.c_patch, umass_c.patch, usbdevs.patch) 
> I am using to kill the "zeroconf" CD on the UMTS. They do not always 
> work - i.e. umass_attach does not wait until the device is really 
> detached. But setting USB_DEBUG helps :-)
> 

Since your patches deals with Option cards I'll just let you know that
all(?) Option based devices can be switched perfectly safe from
user land, without patching ubsa, using camcontrol.
The command to switch Option devices is a SCSI REZERO command.

This should be enough to switch the device, given that pass0
is the modem (use camcontrol devlist)

camcontrol cmd pass0 -c “01 00 00 00 00 00″ -i 1 i1

camcontrol might give you an error but the device will be switched.
Note that this is ONLY for Option based devices, I don't know about
the Sierra ones but the linux usb_modeswitch tool might be a good start.

Fredrik




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?481C623D.7040902>