2008
GPRS over linux

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.
- On connecting my phone to the laptop via the USB cable, the phone prompts for mode. Pick PC Suite
- 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
- Run wvdialconf as root
- Modify
/etc/wvdial.conf. For MTNL Mumbai GPRS service, mywvdial.conflooks 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
- 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]



Alok Singh Mahor
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