Archive for April, 2007

Using a GSM Cellphone as a GPRS Modem

hi all,

we know that .. in todays our pals are facing much problem in connecting to internet in Linux using modems.The following will let you learn how to connect to internet using your GSM mobile and the GPRS connectivity.

Before starting i will tell you my system configuration

— Intel 2.66 AM64T on Intel 915 GVW, 512MB RAM, 160 GB HDD

— Ubuntu Edgy 6.10 + Gnome

— Sony Ericsson K320i

So here we goes….

Step 1:

First connect your mobile to your system through the USB connectivity.

And chose the option “phone mode” (If its available)

Step 2:

Now its time to configure your mobile, Open a terminal and login into root account there.

$ sudo su

# wvdialconf

ttyS0<*1>: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 — and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3
WvModem<*1>: Cannot get information for serial port.
ttyACM0<*1>: ATQ0 V1 E1 — OK
ttyACM0<*1>: ATQ0 V1 E1 Z — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0<*1>: Modem Identifier: ATI — Sony Ericsson K320
ttyACM0<*1>: Speed 4800: AT — OK
ttyACM0<*1>: Speed 9600: AT — OK
ttyACM0<*1>: Speed 19200: AT — OK
ttyACM0<*1>: Speed 38400: AT — OK
ttyACM0<*1>: Speed 57600: AT — OK
ttyACM0<*1>: Speed 115200: AT — OK
ttyACM0<*1>: Speed 230400: AT — OK
ttyACM0<*1>: Speed 460800: AT — OK
ttyACM0<*1>: Max speed is 460800; that should be safe.
ttyACM0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
WvModem<*1>: Cannot get information for serial port.
ttyACM1<*1>: ATQ0 V1 E1 — OK
ttyACM1<*1>: ATQ0 V1 E1 Z — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM1<*1>: Modem Identifier: ATI — Sony Ericsson K320
ttyACM1<*1>: Speed 4800: AT — OK
ttyACM1<*1>: Speed 9600: AT — OK
ttyACM1<*1>: Speed 19200: AT — OK
ttyACM1<*1>: Speed 38400: AT — OK
ttyACM1<*1>: Speed 57600: AT — OK
ttyACM1<*1>: Speed 115200: AT — OK
ttyACM1<*1>: Speed 230400: AT — OK
ttyACM1<*1>: Speed 460800: AT — OK
ttyACM1<*1>: Max speed is 460800; that should be safe.
ttyACM1<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyACM0<Info>: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”
ttyACM1<Info>: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”

Step 3:

We will be getting the similar output as above…. when we wvdialconf

So after we need to identify at which port (or the device) the modem is identified. That can be found out by identifying the line

“ttyACM1<*1>: Modem Identifier: ATI — Sony Ericsson K320”

and now open the file /etc/wvdial.conf

# gedit /etc/wvdia.conf

It will be looking like

[Dialer Defaults]
Modem = /dev/ttyACM0
Baud = 460800
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ISDN = 0
Modem Type = USB Modem
; Phone = <Target Phone Number>
; Username = <Your Login Name>
; Password = <Your Password>
New PPPD = yes

So in the above code we need to make some changes as per your mobile. Since the mobile is pointing to modem = /dev/ttyACM0, where as the wvdialconf returned /dev/ttyACM1 as the modem as shown above. So change the line “Modem = /dev/ttyACM0” in the /etc/wvdial.conf to¬† “Modem = /dev/ttyACM1.

And we cant just keep the other fields empty, so just dial your service customer care center and find out the dial up number for your GPRS-Internet connection. And ask for any username and password (if they exists for your GPRS service). Fill that fields in the /etc/wvdial.conf accordingly.

If you are not having any username and passwd … wvdial will not allow you leave those fields empty, so just fill them with your own data like

Username = bob

Password = crank

And be sure to keep the following line, if you are not having any username and password.

Stupid Mode = 1

Once you are sure that you, configured your wvdial fine. You can dial-up your GSM modem by following.


and you will be given your IP address and the server IP address displayed. You can hang the connection by just pressing the CTRL+C.

Hope you got it well.



Worst-cum-best experiance at a Paper Presentation


Huh, when i first heard about this i thought this will be really rocking. But it took lesser than 12 hrs to realize that i have been thinking wrong, not just wrong but bitterly wrong. First lemme come up with the details of paper presentation.

NAME: Interface 2K7

Venue: Deparment of EIE, GITAM, Vizag.

Date: 01-03-2007 and 02-03-2007

From my earliest days of Engineering i had just imagined .. in such a way that it would be the best suitable college for engineering. I once had a cocktail view of gitam when i came to vizag for a tour. And seeing it in the middle of the slopes of the hill, i was really impressed, and from that days i have had few imaginations how the college will be.

When i first stepped in the front gate of the college, again i am bitterly wrong. <LOL> It’s much beyond, to my imagination. I was quiet impressed. And thought this would be my best paper presentation i have ever done. We entered the premises of the college with a lot of joy and enthusiasm. We headed to the registration center to get our names registered. Here we were given the first blow…

We had 3 members i our team and we were asked to fallow the IEEE standards in the submission of a paper. And our members are from different colleges. We were objected, since we are the combination delegates from different colleges. EVER HEARD THIS TYPE OF OBJECTION AT AN IEEE STANDARD PAPER? Its really pityful. And the registration fee is Rs.250/-. Dont think that this fee is for the paper, but this is for an author. What a kind…ok we never bothered in paying quarter a grand, since we will be given .. facilities like that pay only. I wish you should have seen the bag and stationary they have given us for attending the presentation (may be for paying 250 bucks). And some how we have been got in, and we were asked to gather at session hall at 1.30pm and the lunch is at 12.30pm. We have had lunch at 2.00pm and even the session started at 2.45 hardly. Hmm coming to the presentation, a very dull starting, anchoring reflects how careful they are in conducting the event. The very dull anchoring i have ever seen. But i am glad about the event coordinator there. At least they cared a bit for us. Another pitiful thing is about the judge. Generally a national level event will have the judges at least from .. out side the college. But its really disgusting not even from the another department of the same college … but same department .. Asst. Professor is our judge. We are on a bit of shock. Huh.. lemme come worth a sense of irony, he dont even knew what a MAC (Medium Access Control) but he is the judge for CSE category. Its really … (no words to express).

A part from this, from GITAMS  РInterface 2k7 i learned one thing. Never expect any thing due its reputation or .. status .. just believe in how much capable they are. Where i felt .. interface 2k7 is a Damn failure. Though the people there are extraordinary. They really need to understand this.

Hope they would be careful even in the future.

Sorry for bothering, Thanx for your time.