rss
logo

I provide consulting and custom development for Natural Language Processing, Information Extraction and Search solutions.Self Picture


 learn more   get in touch 

Logo - I Build Search
Jun 07
2008

GPRS over linux digg

This is how I configured my laptop to connect to the internet over GPRS. I own a nokia E51 and I used the supplied USB cable to connect it to my laptop.

  1. On connecting my phone to the laptop via the USB cable, the phone prompts for mode. Pick PC Suite
  2. Run dmesg | tail to see if your phone has been detected.
    pravin@pravin-pc:~$ dmesg |tail
    [ 7295.313526] usb 1-1: new full speed USB device using uhci_hcd and address 3
    [ 7295.539647] usb 1-1: configuration #1 chosen from 1 choice
    [ 7295.552653] cdc_acm 1-1:1.10: ttyACM0: USB ACM device
  3. Run wvdialconf as root
  4. Modify /etc/wvdial.conf. For MTNL Mumbai GPRS service, my wvdial.conf looks like,
    wvdial.conf
    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Modem Type = USB Modem
    ISDN = 0
    Modem = /dev/ttyACM0
    Baud = 460800
    Phone = *99#
    Username = mtnl
    Password = mtnl123
  5. To connect to GPRS via the phone,
    pravin@pravin-pc:~$ sudo wvdial
    --> WvDial: Internet dialer version 1.60
    --> Cannot get information for serial port.
    --> Initializing modem.
    --> Sending: ATZ
    ATZ
    OK
    --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK
    --> Modem initialized.
    --> Sending: ATDT*99#
    --> Waiting for carrier.
    ATDT*99#
    CONNECT
    ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
    --> Carrier detected.  Waiting for prompt.
    ~[7f]}#@!}!} } }2}#}$@#}!}$}%\}"}&} }*} } g}%~
    --> PPP negotiation detected.
    --> Starting pppd at Sat Jun  7 11:03:33 2008
    --> Pid of pppd: 3000
    --> Using interface ppp0
    --> pppd: `?[06][08]0?[06][08]
    --> pppd: `?[06][08]0?[06][08]
    --> pppd: `?[06][08]0?[06][08]
    --> pppd: `?[06][08]0?[06][08]
    --> pppd: `?[06][08]0?[06][08]
    --> local  IP address 202.159.246.204
    --> pppd: `?[06][08]0?[06][08]
    --> remote IP address 10.6.6.6
    --> pppd: `?[06][08]0?[06][08]
    --> primary   DNS address 203.94.227.70
    --> pppd: `?[06][08]0?[06][08]
    --> secondary DNS address 203.94.243.70
    --> pppd: `?[06][08]0?[06][08]

One Response (rss) (trackback)

#1

Alok Singh Mahor

April 24th, 2010 at 11:47 pm

thanks for posing nice tutorial.
I am using MTNL prepaid in Delhi on Samsung C5212, but I am unable to connect internet on my laptop running Ubuntu 9.10 via mobile which has MTNL connection. in mobile I am able to use internet.
I tried your /etc/wvdial.conf but I am not able to connect, PPP daemon used to get died.
here I am posting the output of sudo wvdial

alok@alok:~$ sudo wvdial
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#
CONNECT
–> Carrier detected. Waiting for prompt.
–> Don’t know what to do! Starting pppd and hoping for the best.
–> Starting pppd at Sun Apr 25 03:55:02 2010
–> Pid of pppd: 21224
–> Using interface ppp0
–> pppd: (�M[08]@�M[08]
–> pppd: (�M[08]@�M[08]
–> pppd: (�M[08]@�M[08]
–> pppd: (�M[08]@�M[08]
–> pppd: (�M[08]@�M[08]
–> local IP address 59.179.137.98
–> pppd: (�M[08]@�M[08]
–> remote IP address 192.200.1.21
–> pppd: (�M[08]@�M[08]
–> primary DNS address 203.94.243.70
–> pppd: (�M[08]@�M[08]
–> secondary DNS address 59.179.243.7
–> pppd: (�M[08]@�M[08]
–> pppd: (�M[08]@�M[08]
–> Connect time 0.1 minutes.
–> pppd: (�M[08]@�M[08]
–> pppd: (�M[08]@�M[08]
–> pppd: (�M[08]@�M[08]
–> pppd: (�M[08]@�M[08]
–> Disconnecting at Sun Apr 25 03:55:10 2010
–> The PPP daemon has died: A modem hung up the phone (exit code = 16)
–> man pppd explains pppd error codes in more detail.
–> Try again and look into /var/log/messages and the wvdial and pppd man pages for more information.
–> Auto Reconnect will be attempted in 5 seconds
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATH
NO CARRIER
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: ATZ
ATZ
OK
–> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
–> Modem initialized.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#
–> Timed out while dialing. Trying again.
–> Sending: ATDT*99#
–> Waiting for carrier.
ATDT*99#

so could you please suggest what wrong from my side?
thanks in advance

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="">

Latest Articles

Apr
07

Palindromic sub-sequences in python

This bit of python code returns all palindromic subsequences in the input string.

[Read More]
Feb
19

Join a list of integers in Python

How do you run a string join on a list of integers in Python? After googling for about 10 mins, I gave up and did this. I am sure there is a better way of doing it!

[Read More]

Featured Projects

NLP classes for PHP

NLP classes for PHP

This is an ongoing project to develop a set of classes for Natural Language Processing. Some code would be ported from the NLTK project.

[Read More]

Document Tagger

Document Tagger

DocTagger lets you automatically classify text documents. Use this as a starting point to write apps that can sort through volumes of unorganized data.

[Read More]

This page and its contents are copyright © 2010, Pravin Paratey.