http://chankle.org/blog/index.php?/archives/24-Using-Huawei-E180-modem-in-linux-RHEL5.htmlUsing Huawei E180 modem in linux (RHEL5) I had been trying to get my Huawei
E180 wireless modem that came with my Singtel
wireless Broadband plan to work with my linux laptop.
It wasn't easy and I had to search for information on how to do it. I'll thought I'll write something on how I did it. The main concept First you need to get udev to create a device node for the modem at /dev/ttyUSB0. At this point which turns the modem is just like an analog modem. Then you will then use a modem dialer program (such as wvdial) to use the modem dial to the Singtel network. If it works correctly, you'll see a ppp0 link when you do a ifconfig at the console:
Setting up USB_Modeswitch The Huawei E180 is one of those new style devices that comes with Windows device driver stored in them. When first plugged in, it will appear as a pseudo CD-ROM and then Windows will use it install the device drivers for it. This is convinent forWindows users but prevents it from being recongized as a modem when you use in a Linux system. So the first thong to do is to install the USB_ModeSwitch utility (http://www.draisberghof.de/usb_modeswitch/) Get the code, compile and put the binary in your /sbin directory and the usb_modeswitch.conf at /etc/. Then you need to configure it. The utility reads the configuration from /etc/usb_modeswitch.conf. Take a look at the file and uncomment the section for your modem. There is a section for Huawei modems in there. The important thing is to get the Vendor and Product id right, to check do a lsusb like this:
Here the Vendor id for the Huawei E180 modem is 12d1 and the product ID is 1003.
For the Huawei modem, I uncommented the "HuaweiMode=1" line which should detach the CD-ROM mode and turn the modem into a modem. For other modems you may have to experiement a bit. The utility takes in command line arguments which should make it easier to test changes. Creating the /dev/ttyUSB0 node First create a script for udev as /sbin/usb_modeswitch.sh: #!/bin/sh # close these FDs to detach from udev exec 1<&- 2<&- 5<&- 7<&- sh -c "sleep 4; /usr/bin/usb_modeswitch" & exit 0 The exec is a hack for RHEL 5 and UDEV 0.95 which I am using (see http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=11). Then you need to tell the udev process to execute the script when it sense the modem is plugged and after this to load the usb_serial module:
The important thing is to get the vendor and product id, the script and modprobe command correct. Now if everything is ok, when you plug in the modem you should be a /dev/ttyUSB0 node created. Dialing the ISP You can use any modem dialler to do this. I like simpicity and so I prefer wvdial. To do I add the following entry to /etc/wvdial.conf
Then I execute "wvdial singtel-wireless" to starting dialling. If everything works, then a ppp0 link in created and you can start surfing. Trackbacks
Trackback
specific URI for this entry
No Trackbacks
Comments
Display comments as (Linear
| Threaded)
No comments
|
http://chankle.org/blog/index.php?/archives/24-Using-Huawei-E180-modem-in-linux-RHEL5.htmlUsing Huawei E180 modem in linux (RHEL5)Trackbacks
Trackback
specific URI for this entry
No Trackbacks
Comments
Display comments as (Linear
| Threaded)
|