GSM cellphone networks use a protocol called GPRS (General Packet Radio Service) for transmission of data. This is used, for instance, for photo messaging or WAP browsing, though it can also be used to make a regular internet connection.
If you use your cellphone's GPRS service to make an internet connection, your phone service provider is also your internet service provider. You dial a special number that gives you access to their GPRS network, you use their domain name servers, etc.
At this point, I think it's simplest for me to describe what I did to use my mobile phone as a modem.
Before you can do anything, you will need a means to link your phone to your computer, and a copy of wvdial.
---------------------------------------------------------
Nokia N95, N80, N73 or other Nokia Phone as USB modem at
Linux & UBUNTU
This is how to do it…
Connect your phone via data cable
Open terminal & type
lsusb
Now u will get the following output
riyad@riyad-desktop:~$ lsusb
Bus 003 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 001 Device 003: ID 0421:04f0 Nokia Mobile Phones
Bus 001 Device 001: ID 0000:0000
It is on my compter, ur will not be exactly the same…
Now note the line in which Nokia Mobile Phones is written…it has two number one is 0421 & other is 0445…we’ll take these numbers as 0×421 & 0×445
0421 is the Vendor ID (vid) & 04f0 is the Product ID (pid)
Now enter this command.
sudo /sbin/modprobe usbserial vendor=0x(vid) product=0x(pid)
eg, in my case::: sudo /sbin/modprobe usbserial vendor=0×421 product=0×4f0
Now enter this command
wvdialconf create
u’ll get a long output which will be like
riyad@riyad-desktop:~$ sudo /sbin/modprobe usbserial vendor=0×421 product=0×4f0
Password:
riyad@riyad -desktop:~$ wvdialconf creat
Editing `creat’.
Scanning your serial ports for a modem.
ttyS0: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan: S1 S2 S3
WvModem: Cannot get information for serial port.
ttyACM0: ATQ0 V1 E1 — OK
ttyACM0: ATQ0 V1 E1 Z — OK
ttyACM0: ATQ0 V1 E1 S0=0 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0: Modem Identifier: ATI — Nokia
ttyACM0: Speed 4800: AT — OK
ttyACM0: Speed 9600: AT — OK
ttyACM0: Speed 19200: AT — OK
ttyACM0: Speed 38400: AT — OK
ttyACM0: Speed 57600: AT — OK
ttyACM0: Speed 115200: AT — OK
ttyACM0: Speed 230400: AT — OK
ttyACM0: Speed 460800: AT — OK
ttyACM0: Max speed is 460800; that should be safe.
ttyACM0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem: Cannot get information for serial port.
ttyUSB0: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyUSB0: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyUSB0: ATQ0 V1 E1 — and failed too at 115200, giving up.
Found an USB modem on /dev/ttyACM0.
creat: Can’t open ‘creat’ for reading: No such file or directory
creat: …starting with blank configuration.
Modem configuration written to creat.
ttyACM0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0″
Now... notice the output says that there is a modem at /dev/ttyACM0 & max speed is 460800
Now enter this command
sudo gedit /etc/wvdial.conf
A file will open in text editor…
Now delete everything in that file & paste the following there…
[Dialer Defaults]
Modem = Your Modem Name (eg, /dev/ttyACM0 in my case)
Baud = your max speed (460800 in my case)
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = Analog Modem
Phone = *99#
Username = gp
Password = gp
Stupid Mode = 1
Save the file & you are done
Now whenever u need to connect…open terminal & type wvdial,, wait till some sort of IP address is displayed like
pppd: [06][06][08]` [06][08]
primary DNS address 218.248.240.135
pppd: [06][06][08]` [06][08]
secondary DNS address 218.248.240.79
pppd: [06][06][08]` [06][08]
Now you are connected….hit cntrl+c to disconnect…
U can also create a launcher on desktop (application in terminal) & keep the command as wvdial..now double click it & u r connected.
© Mahmudur Rahman
riyad@diu.edu.bd
-----------------------------------------------------------------------------