Amazon deals

Friday, May 22, 2009

Connect BSNL EVDO card on linux

This procedure can be applied for different datacards such as those of reliance and tata indicom if they are devices of zte type. And guess what you don't have to worry about getting an zte device driver for linux...

Step 1: Login to linux as superuser(root)
Step 2: Connect your device to the USB port
Step 3: open terminal
Step 4: enter the command 'lsusb'.It should give a listing of all USB devices connected. Something similar to this...
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 003: ID 08ff:2580 AuthenTec, Inc. AES2501 Fingerprint Sensor
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 014: ID 19d2:fffe ONDA Communication S.p.A.
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Your device should be listed. Something similar to ONDA Communication or Qualcomm depending on your device.

Step 5: Goto /etc and open wvdial.conf in a text editor.
Step 6: After keeping backup of the file modify it as follows. Please enter your correct user name and password instead of 1111111111

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
ISDN = 0
Phone = #777
Modem = /dev/ttyUSB0
Username = 1111111111
Password = 1111111111
Baud = 460800
Stupid Mode = 1

Step 6: whenever you need to connect to the internet just open the terminal and run the command 'wvdial'

linux-y5au:/home/kiran/lin evdo driver/linux # wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Fri May 22 12:05:59 2009
--> Pid of pppd: 5873
--> Using interface ppp0
--> pppd: ��[06][08][08]�[06][08]
--> pppd: ��[06][08][08]�[06][08]
--> pppd: �[06][08][08]�[06][08]
--> pppd: ��[06][08][08]�[06][08]
--> local IP address 10.4.61.177
--> pppd: ��[06][08][08]�[06][08]
--> remote IP address 192.168.52.12
--> pppd: ��[06][08][08]�[06][08]
--> primary DNS address 208.67.220.220
--> pppd: ��[06][08][08]�[06][08]
--> secondary DNS address 208.67.222.222
--> pppd: ��[06][08][08]�[06][08]
--> Script /etc/ppp/ip-up run successful
--> Default route Ok.
--> Nameserver (DNS) Ok.
--> Connected... Press Ctrl-C to disconnect
--> pppd: ��[06][08][08]�[06][08]

and voila online on linux and lovin it ;)