Check if you have an entry like this in
/lib/udev/rules.d/40-usb_modeswitch.rules

# Huawei E173s
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1c0b", RUN+="usb_modeswitch '%b/%k'"

--
Hari

On 1 October 2011 19:10, Mike Barnard <[email protected]> wrote:
> Hi,
> I have for a few days now been trying to switch this modem with no avail.
>
> This is what I have (running this in Ubuntu 11.04)
> root@ubuntu:~# lsusb | grep -i huawei
> Bus 001 Device 057: ID 12d1:1c0b Huawei Technologies Co., Ltd.
> root@ubuntu:~# usb_modeswitch -c /etc/usb_modeswitch.d/12d1\:1c0b
>
> Looking for target devices ...
>  No devices in target mode or class found
> Looking for default devices ...
>  Found devices in default mode, class or configuration (1)
> Accessing device 057 on bus 001 ...
> Getting the current device configuration ...
>  OK, got current device configuration (1)
> Using endpoints 0x0f (out) and 0x8f (in)
> Using endpoints 0x0f (out) and 0x8f (in)
> Inquiring device details; driver will be detached ...
> Looking for active driver ...
>  OK, driver found ("usb-storage")
>  OK, driver "usb-storage" detached
>
> SCSI inquiry data (for identification)
> -------------------------
>   Vendor String: HUAWEI
>    Model String: Mass Storage
> Revision String: 2.31
> -------------------------
>
> USB description data (for identification)
> -------------------------
> Manufacturer: HUAWEI
>      Product: HUAWEI Mobile
>   Serial No.: not provided
> -------------------------
> Setting up communication with interface 0 ...
> Using endpoint 0x0f for message sending ...
> Trying to send message 1 to endpoint 0x0f ...
>  OK, message successfully sent
> Resetting response endpoint 0x8f
> Resetting message endpoint 0x0f
>  Error resetting endpoint: -19
>  Device is gone, skipping any further commands
>
> Checking for mode switch (max. 20 times, once per second) ...
>  Searching for target devices ...
>  Searching for target devices ...
>  Searching for target devices ...
>  Searching for target devices ...
>  Searching for target devices ...
>  Searching for target devices ...
>
> Found target device, now opening
> Error: could not get description string "manufacturer"
>  Found correct target device
>
> Mode switch succeeded. Bye.
>
> root@ubuntu:~# lsusb | grep -i huawei
> Bus 001 Device 058: ID 12d1:1c05 Huawei Technologies Co., Ltd
>
> I notice that the Product ID changes from 1c0b to 1c05. I changed my file to
> contain this:
>
> # ########################################################
> # Huawei E173s
>
> DefaultVendor= 0x12d1
> DefaultProduct= 0x1c0b
>
> TargetVendor= 0x12d1
> TargetProduct= 0x1c05
>
> CheckSuccess=20
>
> MessageEndpoint= 0x0f
> #MessageContent="55534243000000000000000000000011060000000100000000000000000000"
> MessageContent="55534243123456780000000000000011062000000100000000000000000000"
> It appears this device is detected as a storage device and not a modem. Any
> pointers on how I can get this switched and working in Ubuntu.
>
>
> --
> Mike
>
> Of course, you might discount this possibility, but remember that one in a
> million chances happen 99% of the time.
> ------------------------------------------------------------
>
> _______________________________________________
> The Uganda Linux User Group: http://linux.or.ug
>
> Send messages to this mailing list by addressing e-mails to: [email protected]
> Mailing list archives: http://www.mail-archive.com/[email protected]/
> Mailing list settings: http://kym.net/mailman/listinfo/lug
> To unsubscribe: http://kym.net/mailman/options/lug
>
> The Uganda LUG mailing list is generously hosted by INFOCOM:
> http://www.infocom.co.ug/
>
> The above comments and data are owned by whoever posted them (including
> attachments if any). The mailing list host is not responsible for them in
> any way.
>
_______________________________________________
The Uganda Linux User Group: http://linux.or.ug

Send messages to this mailing list by addressing e-mails to: [email protected]
Mailing list archives: http://www.mail-archive.com/[email protected]/
Mailing list settings: http://kym.net/mailman/listinfo/lug
To unsubscribe: http://kym.net/mailman/options/lug

The Uganda LUG mailing list is generously hosted by INFOCOM: 
http://www.infocom.co.ug/

The above comments and data are owned by whoever posted them (including 
attachments if any). The mailing list host is not responsible for them in any 
way.

Reply via email to