Settings For Airtel GPRS On Ubuntu Via Mobile

Enter this command in terminal

lsusb

It will give :-
mark@ubuntu:~$ lsusb
Bus 002 Device 002: ID 0951:1613 Kingston Technology
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 007: ID 0421:04c4 Nokia Mobile Phones
Bus 001 Device 001: ID 0000:0000
than enter the following command :-

mark@ubuntu:~$ sudo /sbin/modprobe usbserial vendor=0×421 product=0×4c4
[[ Create your wvdial.conf by running the following
sudo wvdialconf /etc/wvdial.conf ]] or …
mark@ubuntu:~$ wvdialconf create
Scanning your serial ports for a modem.
ttyS0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 — OK
ttyACM0<*1>: ATQ0 V1 E1 Z — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0<*1>: Modem Identifier: ATI — Nokia
ttyACM0<*1>: Speed 4800: AT — OK
ttyACM0<*1>: Speed 9600: AT — OK
ttyACM0<*1>: Speed 19200: AT — OK
ttyACM0<*1>: Speed 38400: AT — OK
ttyACM0<*1>: Speed 57600: AT — OK
ttyACM0<*1>: Speed 115200: AT — OK
ttyACM0<*1>: Speed 230400: AT — OK
ttyACM0<*1>: Speed 460800: AT — OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
Found an USB modem on /dev/ttyACM0.
Modem configuration written to create.
ttyACM0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
than edit Wvdial file :-
mark@ubuntu:~$ sudo gedit /etc/wvdial.conf
[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,”IP”,”airtelgprs.com”
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99#
Password = airtel
Username = airtel
Stupid Mode = 1
Save and exit
To connect to internet type the following command :-
siddhartha@ubuntu:~$ wvdial
than this will appear
–> 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*99#
–> Waiting for carrier.
ATDT*99#
CONNECT
~[7f]}#@!}!} } }2}#}$@#}!}$}%\}”}&} }*} } g}%~
–> Carrier detected. Starting PPP immediately.
–> Starting pppd at Sun Jun 15 05:17:27 2008
–> Warning: Could not modify /etc/ppp/pap-secrets: Permission denied
–> –> PAP (Password Authentication Protocol) may be flaky.
–> Warning: Could not modify /etc/ppp/chap-secrets: Permission denied
–> –> CHAP (Challenge Handshake) may be flaky.
–> Pid of pppd: 6401
–> Using interface ppp0
–> pppd: x?[06][08]
–> pppd: x?[06][08]
–> pppd: x?[06][08]
–> pppd: x?[06][08]
–> local IP address 117.98.4.246
–> pppd: x?[06][08]
–> remote IP address 10.6.6.6
–> pppd: x?[06][08]
–> primary DNS address 202.56.230.5
–> pppd: x?[06][08]
–> secondary DNS address 202.56.240.5
–> pppd: x?[06][08]
Connection successful.

Press Ctrl+c to disconnect .