Reaching out to others! Free & Open Source Software, Kannada, L10n, L18n Data Science, Cloud Computing & more…

504_master-black-fn185k-50m

At last I’m successfully connected to net via my Motorola Motoming A1200 using Airtel GPRS connection  on Ubuntu (I’m using Ubuntu Jaunty Jackalope ie 9.04 Alpha).

Here is a quick run through for setting up GPRS connection on Ubuntu:

First configure pppd default ip address to which you want the GPRS connection to be binded. This can be done by editing /etc/ppp/options file. Add the following line to it via vi or other file editing tool.

/etc/ppp/options:

:192.168.0.254

Now, make the required changes to /etc/wvdial.conf as mentioned below.

PS: You can get this file generated by connecting the phone via usb and then running sudo wvdialconf /etc/wvdial.conf on console. Ensure that USB mode is set to “Modem

[Dialer Defaults]
Init1 = ATZ
Init2 = AT&FE0V1&C1S0=0
Init3 = AT+CGDCONT=1,”IP”,”airtelgprs.com”
Modem Type = USB Modem
ISDN = 0
Phone = *99***2#
New PPPD = yes
Modem = /dev/ttyACM0
Username = airtel
Password = airtel
Baud = 460800
Idle Seconds = 3000
Auto DNS = 1
Stupid Mode = 1
Dial Command = ATD
Ask Password = 0
FlowControl = NOFLOW

Once all this is done, you’re ready to get online by typing the following command.

sudo wvdial

Now, start browsing the net. Let me know if you get to face any other trouble.

Here is the output:

techfiz:~# wvdial
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: AT&FE0V1&C1S0=0
AT&FE0V1&C1S0=0
OK
–> Sending: AT+CGDCONT=1,”IP”,”airtelgprs.com”
OK
–> Modem initialized.
–> Idle Seconds = 3000, disabling automatic reconnect.
–> Sending: ATD*99***2#
–> Waiting for carrier.
CONNECT
–> Carrier detected.  Starting PPP immediately.
–> Starting pppd at Wed Feb 25 14:01:47 2009
–> Pid of pppd: 8595
–> Using interface ppp0
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> pppd: [08][18]�[08]
–> local  IP address 117.97.93.18
–> pppd: [08][18]�[08]
–> remote IP address 192.168.0.254
–> pppd: [08][18]�[08]
–> primary   DNS address 202.56.250.5
–> pppd: [08][18]�[08]
–> secondary DNS address 202.56.250.6
–> pppd: [08][18]�[08]

Thanks to Dirk Hohndel for pointing me to the right direction.