Home | Blogs | TILs | Papers | Projects | Writings | Books | Astro |
I had done it long back. Forgot to put it in the blog…
Installing the usb modem provided by the Reliance is very easy.
### First, plug-in the modem. Check that the modem has been detected.
cat /proc/bus/usb/devices
It should print something like this..
T: Bus=01 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#= 15 Spd=12 MxCh= 0
D: Ver= 1.01 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=16 #Cfgs= 1
P: Vendor=12d1 ProdID=1001 Rev= 0.00 <—- Required for modprobing
S: Manufacturer=Huawei Technologies <—- It may differ depending on modem
S: Product=Huawei Mobile <—- Its what we want.. !
S: SerialNumber=HUAWEI EC3X1
C:* #Ifs= 2 Cfg#= 1 Atr=e0 MxPwr=100mA
I: If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=81(I) Atr=03(Int.) MxPS= 16 Ivl=128ms
E: Ad=8a(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=0b(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
I: If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E: Ad=83(I) Atr=02(Bulk) MxPS= 64 Ivl=0ms
E: Ad=06(O) Atr=02(Bulk) MxPS= 64 Ivl=0ms
There may be information about other usb devices connected to your system.
### Then, modprobe the driver…
modprobe usbserial vendor=0x12d1 product=0x1001
I think that Debian Etch does all this automatically… you got to just configure the wvdial
### wvdial is the dialer that connects you to the ISP. It can be configured in the following way… (make sure you are root)
vim /etc/wvdial.conf (use your favourite editor)
In the end just add the following…
[ModemReliance]
Modem = /dev/ttyUSB0
Baud = 115200
SetVolume = 0
Dial Command = ATDT
Init1 = ATZ
FlowControl = Hardware (CRTSCTS)
[Dialer myconnection]
Username = You Phone Number Here
Password = Your Password … usually same as your phone number WvDial: Internet dialer version 1.55\u003cbr\> –> Cannot get information for serial port.\u003cbr\> –> Initializing modem.\u003cbr\> –> Sending: ATZ\u003cbr\> ATZ\u003cbr\> OK\u003cbr\> –> Modem initialized.\n\u003cbr\> –> Sending: ATDT#777\u003cbr\> –> Waiting for carrier.\u003cbr\> ATDT#777\u003cbr\> CONNECT 230400\u003cbr\> –> Carrier detected. Starting PPP immediately.\u003cbr\> –> Starting pppd at Mon May 28 12:05:08 2007\n\u003cbr\> –> Pid of pppd: 24559\u003cbr\> –> Using interface ppp0\u003cbr\> –> local IP address \u003ca href\u003d"http://220.226.25.101" target\u003d"_blank" onclick\u003d"return top.js.OpenExtLink(window,event,this)"\>220.226.25.101\u003c/a\>\u003cbr\> –> remote IP address \u003ca href\u003d"http://220.224.135.45" target\u003d"_blank" onclick\u003d"return top.js.OpenExtLink(window,event,this)"\>\n220.224.135.45\u003c/a\>\u003cbr\> –> primary DNS address \u003ca href\u003d"http://202.138.103.100" target\u003d"_blank" onclick\u003d"return top.js.OpenExtLink(window,event,this)"\>202.138.103.100\u003c/a\>\u003cbr\> –> secondary DNS address \u003ca href\u003d"http://202.138.96.2" target\u003d"_blank" onclick\u003d"return top.js.OpenExtLink(window,event,this)"\>202.138.96.2\u003c/a\>\u003cbr\>\u003cbr\> The last 4 lines mean that you are online…. :-)\n\u003cbr\> Do not close the terminal \u003cbr\>\u003cbr\>### Disconnecting is quite easy. Just press ctr + c in the terminal where the wvdial is running. That is just stop the wvdial. You will get the following in the terminal…\n\u003cbr\>\u003cbr\> Caught signal 2: Attempting to exit gracefully…\u003cbr\> –> Terminating on signal 15\u003cbr\> –> Connect time 0.9 minutes.\u003cbr\> –> Disconnecting at Mon May 28 12:06:02 2007\u003cbr\>\u003cbr\>“,1] ); //–>
Phone = #777
Stupid Mode = 1
Inherits = ModemReliance
Save it and quit the editor..
### For connecting to net just run wvdial in the terminal.
wvdial myconnection
You will get the following (It may not be exacty like this…)
–> WvDial: Internet dialer version 1.55
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Modem initialized.
–> Sending: ATDT#777
–> Waiting for carrier.
ATDT#777
CONNECT 230400
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Mon May 28 12:05:08 2007
–> Pid of pppd: 24559
–> Using interface ppp0
–> local IP address 220.226.25.101
–> remote IP address 220.224.135.45
–> primary DNS address 202.138.103.100
–> secondary DNS address 202.138.96.2
The last 4 lines mean that you are online…. :-)
Do not close the terminal
### Disconnecting is quite easy. Just press ctr + c in the terminal where the wvdial is running. That is just stop the wvdial. You will get the following in the terminal…
Caught signal 2: Attempting to exit gracefully…
–> Terminating on signal 15
–> Connect time 0.9 minutes.
–> Disconnecting at Mon May 28 12:06:02 2007
### You may also configure the application launcher Modem Monitor. Add it to the panel. Right click on it and goto its properties.
Phone Number : #777
User Name: Your phone no.
Password : Your password.
Then in modem tab
Modem Port: /dev/ttyUSB0
Dial Type: Tones
I think it will work.