Recently a friend asked me to get his Reliance EC 121 modem working on his laptop running Ubuntu 8.04. It wasn't working out of the box because it would present itself as a USB storage device and would get automounted. After much googling, including reading the thread whose first email is here: http://www.ae.iitm.ac.in/pipermail/ilugc/2008-October/043939.html I got it working, so I thought I'd share the steps in case it is useful to anyone else.
1. Download the program usb_modeswitch from http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.5.tar.bz2 wget http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.5.tar.bz2 2. Extract the binary usb_modeswitch from the tarball and copy it to /usr/sbin 3. Copy the file named usb_modeswitch.conf to /etc tar jxf usb_modeswitch-0.9.5.tar.bz2 cd usb_modeswitch-0.9.5 sudo cp usb_modeswitch /usr/sbin sudo cp usb_modeswitch.conf /etc 4. Add the following lines to /etc/usb_modeswitch.conf DefaultVendor= 0x12d1 DefaultProduct= 0x1411 HuaweiMode=1 Make sure to comment out all other lines starting with DefaultVendor, DefaultProduct, TargetVendor, TargetProduct etc by placing a ';' (semicolon) or '#' (hash) at the beginning of each line. 5. Create the following two files under /etc/udev/rules.d 99-huawei_00.rules ---------------------------- SUBSYSTEM=="block", \ ACTION=="add", \ SYSFS{idVendor}=="12d1", \ SYSFS{idProduct}=="1411", \ OPTIONS="ignore_device" 99-huawei_01.rules --------------------------- SUBSYSTEM=="usb", SYSFS{idProduct}=="1411", SYSFS{idVendor}=="12d1", RUN+="/sbin/mydevice_switch.sh" 6. Create a script named mydevice_switch.sh under /sbin #!/bin/sh /usr/sbin/usb_modeswitch sleep 1 /sbin/modprobe usbserial vendor=0x12d1 product=0x1411 Remember to make it executable. chmod a+x /sbin/mydevice_switch.sh 7. Make sure the following lines are present under /etc/wvdial.conf [Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Password = Your password Phone = #777 Modem Type = Analog Modem Stupid Mode = 1 Baud = 460800 Modem = /dev/ttyUSB0 ISDN = 0 Username = Your username Now typing wvdial should work ok, and the ppp connection should get set up. One problem I could not solve was how to find out the username and password. My friend told me there was no documentation saying what these were. Nor was it any separate file when the modem was loaded in usb storage mode previously. The only way to get that information was to plug the modem into a windows machine and let the executable containing the windows driver run. Once this was done, I had to look in one of the INI files to see the username and password. I don't remember the exact steps since I did all this a while ago. Hope all this is useful to someone. Amartyo _______________________________________________ To unsubscribe, email [email protected] with "unsubscribe <password> <address>" in the subject or body of the message. http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
