Huawei E1762 USB modem on Fedora 12

Installing Huawei E1762 USB mobile broadband modem in Fedora Linux is not easy. The problem arises because Fedora Linux detected this E1762 as a storage device instead of a modem.

Plug the E1762 into the USB port, run lsusb -vvv | less command and scroll down to the Huawei Device Descriptor, check its “Interface Descriptor” sections, you’ll will see the entry of “bInterfaceClass” showing “Mass Storage”.

I tried out quite couple of ways to make it work, and finally success.

Step 1: How to switch from storage mode to modem mode?
You need the usb_modeswitch utility, to make it switch from storage to modem mode. Install usb_modeswitch using yum.

yum install usb_modeswitch

After usb_modeswitch is installed, vi the file /etc/usb_modeswitch.conf and add the following:

#Huawei E1762
#####################
;DefaultVendor= 0x12d1
;DefaultProduct= 0×1446

MessageEndpoint = 0×01
MessageContent = “55534243000000000000000000000011060000000000000000000000000000″
#####################

Now, try to switch to the modem mode manually

usb_modeswitch -v 0x12d1 -p 0×1446 -H -s 5 -c /etc/usb_modeswitch.conf

Run the command: lsusb, to see the USB device has changed.

Bus 001 Device 011: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E270 HSDPA/HSUPA Modem

You can verify using lsusb -vvv | less command, the entry of “bInterfaceClass” should not show as Mass Storage now.

Step 2: Configure auto switch to modem mode
Now is to setup auto switching to modem mode whenever the Huawei E1762 modem is plug-in.

Add a udev rule that will trigger usb_modeswitch, open the file /etc/udev/rules.d/70-persistent-cd.rules and append the following lines:

SUBSYSTEM==”usb”, SYSFS{idProduct}==”1446″, SYSFS{idVendor}==”12d1″, RUN+=”/usr/sbin/usb_modeswitch -v 0x12d1 -p 0×1446 -H -s 5 -c /etc/usb_modeswitch.conf”

Reload the internal state of the running udev daemon

udevadm control –reload-rules

Lastly, use NetworkManager Applet to add new Mobile Broadband connection.

Popularity: 11% [?]

This entry was posted in Linux and tagged , . Bookmark the permalink.

One Response to Huawei E1762 USB modem on Fedora 12

  1. Pingback: Weekly Twitter on 2010-04-11 « 韩言蔫语

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>