Just Configuring Another PC Suite

Allah is almighty creator.

Always He does the works that is

best for us.

Today I am highly glad. Because now I am able to use GPRS grameen phone internet connection via my nokia 3500c and KONKA D165 mobile at my Ubuntu 8.04 (Hardy heron ).

I am tried to do it for many days and finally able to do it with the help of various online forums, blog sites and web sites.

To do it first I connect my Nokia mobile phone with DKE-2 USB cable. Then I test whether Ubuntu recognize my phone as modem.

To test it I open the terminal and write lsusb

Now I get the following output

khaled@perilous:~$ lsusb

Bus 002 Device 001: ID 0000:0000

Bus 001 Device 004: ID 0421:0061 Nokia Mobile Phones

Bus 001 Device 002: ID 0000:0000

Bus 001 Device 001: ID 0000:0000

khaled@perilous:~$

This is on my computer, may vary with PC to PC…

Now I note the line in which NOkia Mobile Phones is written…it has two number one is 0421 & other is 0061…I take these numbers as 0x421 & 0x061

0421 is the Vendor ID & 0061 is the Product ID

Now I enter this comand.

sudo /sbin/modprobe usbserial vendor=0x(vid) product=0x(pid)

eg, in my case::: sudo /sbin/modprobe usbserial vendor=0×421 product=0×061

Now enter this command

wvdialconf create

I got a long output which was

Scanning your serial ports for a modem.

Port Scan: S0 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

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″

NOw.. notice the output says that there is a modem at /dev/ttyACM0 & max speed is 460800

now enter this command

sudo wvdialconf

now enter this command

sudo gedit /etc/wvdial.conf

A file will open in text editor. Now delete all the content of the file and paste the following in it, save it and close the file.

[Dialer Defaults]

Modem = /dev/ttyACM0

Init1 = ATZ

Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Init3=AT+CGDCONT=1,”IP”,”gpinternet”

Stupid Mode = 1

Modem Type = USB Modem

Phone = *99#

ISDN = 0

Username = gp

Password = gp

Baud = 460800

Or you can do it by changing the following data without deleting all the contents-
1. Modem=Modem’s address that you get by entering the command wvdialconf create (eg. /dev/ttyACM0)

2. Modem type= type of your modem that you get by entering the commandwvdialconf create (eg. USB Modem)

3. Baud= maximum speed of your modem that you get by entering the commandwvdialconf create (eg. 460800)

Now enter the command

wvdial

If any problem with the above command then enter the following command

sudo wvdial

Now you are connected with the internet. To disconnected press ctrl+c.

warning: You must opened the terminal when you are in the internet. If you close the terminal then line connection will be disconnected.

Note: I test this for Nokia 3500c and KONKA D165 with Ubuntu 8.04 hardy heron for Grameen phone service. You may able to use this for other mobile phones that has built in modem.

For other service providers you can get help from-

http://lavluda.blogspot.com/2006/03/edgegprs-in-linux_26.html#links

If you want to synchronize your mobile or miss Nokia pc suite then you can download kmobile tools from the following url. This is a very usefull Open source software that has various tools to working with your mobile phone. It also support dialing from your pc to mobile.

http://www.kmobiletools.org/

If you face any problem to install KmobileTools from the above site then you can install it directly by entering the following command in the terminal-

sudo apt-get install kmobiletools


If you wish to use any graphical tools for dialing then you can use ‘Gnome PPP’ or ‘kppp’.

Leave a comment