Connect to Internet using GPRS in Linux

Internet via Mobile GPRS & USB Cable in Ubuntu 7.04 (GNOME)

# sudo wvdialconf /etc/wvdial.conf

You shd get some output like
Output:

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.
ttyS1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS1: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS1: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyS2: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS2: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS2: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyS3: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS3: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS3: ATQ0 V1 E1 — and failed too at 115200, giving up.
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 /etc/wvdial.conf.
ttyACM0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”

This means that it has found a MODEM.. and the basic wvdial.conf has been written..
Now to edit wvdial.conf

Code:

sudo gedit /etc/wvdial.conf

Enter the Dialling number, Username , Passwd etc

My wvdial.conf :

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyACM0
Username = b
Password = a
Baud = 460800

Now to connect

Code:

sudo wvdial

If all has gone right it shd show something like

–> WvDial: Internet dialer version 1.56
–> 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 Fri Apr 27 16:34:47 2007
–> Pid of pppd: 8094
–> Using interface ppp0
–> pppd: p[08][06][08][08]
–> [06][08]
–> pppd: p[08][06][08][08]
–> [06][08]
–> pppd: p[08][06][08][08]
–> [06][08]
–> pppd: p[08][06][08][08]
–> [06][08]
–> local IP address 10.190.237.191
–> pppd: p[08][06][08][08]
–> [06][08]
–> remote IP address 10.6.6.6
–> pppd: p[08][06][08][08]
–> [06][08]
–> primary DNS address 202.56.230.5
–> pppd: p[08][06][08][08]
–> [06][08]
–> secondary DNS address 202.56.240.5
–> pppd: p[08][06][08][08]
–> [06][08]

This means that ur connection is complete… keep that terminal window open and surf..

SOURCE – Thinkdigit Forum

Advertisements

Connect to Internet using GPRS in Linux

Internet via Mobile GPRS & USB Cable in Ubuntu 7.04 (GNOME)

# sudo wvdialconf /etc/wvdial.conf

You shd get some output like
Output:

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.
ttyS1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS1: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS1: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyS2: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS2: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS2: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyS3: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS3: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS3: ATQ0 V1 E1 — and failed too at 115200, giving up.
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 /etc/wvdial.conf.
ttyACM0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”

This means that it has found a MODEM.. and the basic wvdial.conf has been written..
Now to edit wvdial.conf

Code:

sudo gedit /etc/wvdial.conf

Enter the Dialling number, Username , Passwd etc

My wvdial.conf :

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyACM0
Username = b
Password = a
Baud = 460800

Now to connect

Code:

sudo wvdial

If all has gone right it shd show something like

–> WvDial: Internet dialer version 1.56
–> 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 Fri Apr 27 16:34:47 2007
–> Pid of pppd: 8094
–> Using interface ppp0
–> pppd: p[08][06][08][08]
–> [06][08]
–> pppd: p[08][06][08][08]
–> [06][08]
–> pppd: p[08][06][08][08]
–> [06][08]
–> pppd: p[08][06][08][08]
–> [06][08]
–> local IP address 10.190.237.191
–> pppd: p[08][06][08][08]
–> [06][08]
–> remote IP address 10.6.6.6
–> pppd: p[08][06][08][08]
–> [06][08]
–> primary DNS address 202.56.230.5
–> pppd: p[08][06][08][08]
–> [06][08]
–> secondary DNS address 202.56.240.5
–> pppd: p[08][06][08][08]
–> [06][08]

This means that ur connection is complete… keep that terminal window open and surf..

SOURCE – Thinkdigit Forum

Connect to Internet using GPRS in Linux

Internet via Mobile GPRS & USB Cable in Ubuntu 7.04 (GNOME)

# sudo wvdialconf /etc/wvdial.conf

You shd get some output like
Output:

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.
ttyS1: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS1: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS1: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyS2: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS2: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS2: ATQ0 V1 E1 — and failed too at 115200, giving up.
ttyS3: ATQ0 V1 E1 — failed with 2400 baud, next try: 9600 baud
ttyS3: ATQ0 V1 E1 — failed with 9600 baud, next try: 115200 baud
ttyS3: ATQ0 V1 E1 — and failed too at 115200, giving up.
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 /etc/wvdial.conf.
ttyACM0: Speed 460800; init “ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0”

This means that it has found a MODEM.. and the basic wvdial.conf has been written..
Now to edit wvdial.conf

Code:

sudo gedit /etc/wvdial.conf

Enter the Dialling number, Username , Passwd etc

My wvdial.conf :

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
ISDN = 0
New PPPD = yes
Phone = *99#
Modem = /dev/ttyACM0
Username = b
Password = a
Baud = 460800

Now to connect

Code:

sudo wvdial

If all has gone right it shd show something like

–> WvDial: Internet dialer version 1.56
–> 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 Fri Apr 27 16:34:47 2007
–> Pid of pppd: 8094
–> Using interface ppp0
–> pppd: p[08][06][08][08]
–> [06][08]
–> pppd: p[08][06][08][08]
–> [06][08]
–> pppd: p[08][06][08][08]
–> [06][08]
–> pppd: p[08][06][08][08]
–> [06][08]
–> local IP address 10.190.237.191
–> pppd: p[08][06][08][08]
–> [06][08]
–> remote IP address 10.6.6.6
–> pppd: p[08][06][08][08]
–> [06][08]
–> primary DNS address 202.56.230.5
–> pppd: p[08][06][08][08]
–> [06][08]
–> secondary DNS address 202.56.240.5
–> pppd: p[08][06][08][08]
–> [06][08]

This means that ur connection is complete… keep that terminal window open and surf..

SOURCE – Thinkdigit Forum