Working with HUAWEI GSM modem on linux

When I connected the Huawei modem I could see only  3 additional sg0 ,sg1, sdb  entries in   /dev  and there are no USBtty0 ,USBtty1,USBtty2 which supposed to be cerated by Huawei modem .

By default linux will detect HUAWEI modem as usb storage /cd drive . we must switch it to USB serial inorder to use it as modem .

you can do this with usb_modswitch .  If you dont find usb_modswitch in /lib/udev you can install it from here.

/lib/udev/usb_modeswitch –vendor 0x12d1 –product 0x1446 –type option-zerocd

You can create config file in /etc/udev/rule.d/15huawei-1773.rules

SUBSYSTEM==”usb”, SYSFS{idProduct}==”1446″, SYSFS{idVendor}==”12d1″, RUN+=”/lib/udev/usb_modeswitch –vendor 0x12d1 –product 0x1446 –type option-zerocd”

Restart the system and check   lsusb -vvvv | less and note down product id and vendor id information .

You can add this information in /etc/modprobe.d/modprobe.conf.

My /etc/modprobe.d/modprobe.conf  has single line like below

options usbserial vendor=0x12d1 product=0x140c

Now load the usb serial with command  modprobe usbserial


Installing usb_modeswitch to connect usb gsm modems on CentOs

I have a  huweai e1732 modem which i want to use as simple smsgateway for my personal use and outgoing voice trunk for asterisk .

As soon as I connect it to usb ,linux detects it as external storage and never shows as ttyUSB in /dev list .

To make it work as serial modem i had to install usb_modeswitch

[root@sriba usb_modeswitch.d]# yum install usb_modeswitch
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
* base:
* epel:
* extras:
* updates:
Setting up Install Process
No package usb_modeswitch available.

This package is in rpm forge

import the dpg key

rpm --import

verify the package download
rpm -K rpmforge-release-0.5.2-2.el6.rf.*.rpm

Instaleld the package
rpm -i rpmforge-release-0.5.2-2.el6.rf.*.rpm