Home > Open Source > Connect Airtel-Mobile Office in Ubuntu!!?

Connect Airtel-Mobile Office in Ubuntu!!?

I am using Samsung SGH-L700 and I wanted to use Airtel Mobile Office in Ubuntu. Finally when I am succeeded in configuring it in Ubuntu. I would like to share it with everyone. Here are the steps:

Before proceeding you need to make sure that wvdial package is installed in your machine.

Step1:- Just type wvdial in terminal to check if it is installed. If yes, then proceed otherwise type the following command in terminal to install.

sudo apt-get install wvdial

Step2:- Now follow these commands :

wvdialconf

This will scan and detect the serial ports of the modem which is connected. It will then edit the file called wvdial.conf which is present in /etc/ .The expected output is :

Editing `/etc/wvdial.conf’.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0   S1   S2   S3
ttyACM0<Info>: Device or resource busy
Modem Port Scan<*1>: ACM0
ttyACM1<Info>: Device or resource busy
Modem Port Scan<*1>: ACM1
WvModem<*1>: Cannot get information for serial port.
ttyACM2<*1>: ATQ0 V1 E1 — OK
ttyACM2<*1>: ATQ0 V1 E1 Z — OK
ttyACM2<*1>: ATQ0 V1 E1 S0=0 — OK
ttyACM2<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM2<*1>: Modem Identifier: ATI — SAMSUNG SGH-L700
ttyACM2<*1>: Speed 4800: AT — OK
ttyACM2<*1>: Speed 9600: AT — OK
ttyACM2<*1>: Speed 19200: AT — OK
ttyACM2<*1>: Speed 38400: AT — OK
ttyACM2<*1>: Speed 57600: AT — OK
ttyACM2<*1>: Speed 115200: AT — OK
ttyACM2<*1>: Speed 230400: AT — OK
ttyACM2<*1>: Speed 460800: AT — OK
ttyACM2<*1>: Max speed is 460800; that should be safe.
ttyACM2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK

Found an USB modem on /dev/ttyACM2.
Modem configuration written to /etc/wvdial.conf.
ttyACM2<Info>: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″

Step3:- Now its time to make some necessary changes in your wvdial.conf file in /etc/

sudo gedit /etc/wvdial.conf

Major changes required are Phone, Username & Password. Changes are as follow:


[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99***1#
Modem = /dev/ttyACM2
Username = ‘ ‘
Password = ‘ ‘
Baud = 460800

Dialing phone number for Airtel Mobile Office is ‘*99***1#‘  Username and Password should be left blank.

Save and exit once you are done.

Step4:- Now you are ready to connect. Type the following command:

wvdial

Output expected is as follow:

–> 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***1#
–> Waiting for carrier.
ATDT*99***1#
CONNECT
–> Carrier detected.  Waiting for prompt.
–> Don’t know what to do!  Starting pppd and hoping for the best.
–> Starting pppd at Thu Nov 26 20:05:51 2009
–> Pid of pppd: 28198
–> Using interface ppp0
–> pppd: ��� О�
–> pppd: ��� О�
–> pppd: ��� О�
–> pppd: ��� О�
–> pppd: ��� О�
–> local  IP address 117.97.71.35
–> pppd: ��� О�
–> remote IP address 192.200.1.21
–> pppd: ��� О�
–> primary   DNS address 202.56.230.5
–> pppd: ��� О�
–> secondary DNS address 202.56.250.6
–> pppd: ��� О�

You can follow Step2 and Step4 next time you want to connect to internet… :-)

I hope it helps!!!!

  1. Sukhdeep
    February 9, 2011 at 11:05 pm | #1

    Hi Shobhit
    Your article is very nice. I am also trying the same on my new PC with ubuntu10. Do you use a usb cable to connect your mobile with PC or a usb bluetooth dongle??? Kindly reply

  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.