Monday, July 4, 2011

Use your mobile phone to connect to internet

step 1:- sudo apt-get install wvdial

step 2:- find vendor ID & product ID using lsusb command

step 3:- switch to root user and give the command

#/sbin/modprobe usbserial vendor=0x(vendor_id) product=0x(product_id)

step 4:- switch to root user and give the command
#wvdialconf create

step 5:- switch to root user and configure wvdial by adding the following parameters

#vi /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 = AT+CGDCONT=1,"IP","internet"
Modem Type = USB Modem
Baud = 460800
New PPPD = yes
Modem = /dev/ttyACM0
ISDN = 0
Phone = *99#
Password = 1
Username = 9947401042
Stupid Mode = 1


These settings are for my service provider (Idea).you can try similar settings for your service provider

step 5:- switch to root user and add the following to /etc/resolv.conf

#vi /etc/resolv.conf

nameserver 202.56.230.5
nameserver 202.56.240.5

step 6:- After you have finished configuring the above,switch to root user & just run:

#wvdial

This will connect you to the internet , provided you have an active GPRS connection on your mobile


NB:-

Tested in ubuntu 10.04 , with nokia 5800, with GPRS enabled Idea connection


GPRS APN for Idea is "internet" and for Airtel,it is "airtelgprs.com".You can always check it up with your provider.The password for Idea is 1.Clarification:You have to replace *GPRS APN* with internet for Idea and airtelgprs.com for Airtel.

You can also run wvdialconf to make sure your Modem,Baud,Init1 and Init2 settings are best suited to your phone.Just run this command in your terminal
sudo wvdialconf /etc/wvdial.conf


see:- http://www.techenclave.com/mobile-phones/help-setting-up-gprs-connection-ubuntu-168558.html

No comments:

Post a Comment