Serial Modem Configuration for Dial-Up in linux

this is the old stuff that I found in my drawer.
Wavecom Modem GPRS class II. hee…

ok, here I’ll tell you the steps to dialing up the modem
until you got an DNS from your ISP.

checking & setting modem:
1. plug in & power up your modem to serial com
2. goin to your favorite serial terminal.(minicom, gtkterm etc…)
3. example in minicom.
#minicom -s
the terminal will show you the choices and then pick portsetting
the default baudrate of wavecom is 115200
4. setting some modem parameters
in minicom that connected to your modem just enter(without double quote) :
if correct, modem should answer
then disable echo.
setting baud
saving configurations

ok, now exit minicom(ALT-Z-X)

these are the steps of dialing up:

1. make sure that you have wvdial installed, otherwise you have to install it
just enter this command at terminal :

# apt-get install wvdial

2. after you got the wvdial installed, now edit the /etc/wvdial.conf

# vim /etc/wvdial.conf

because I’m using three operator(ISP) this is the configuration
*please suit to your preferred ISP.

[Dialer Defaults]
Init1 = ATZ
Init2 = AT+CGDCONT=1,”IP”,”3gprs”
Modem Type = Analog Modem
ISDN = 0
Phone = *99***1#
Modem = /dev/ttyS0
Username = 3gprs
Password = 3gprs
Baud = 115200

save and exit from editor.

3. now for dialing up, just enter wvdial in your terminal(make sure that you’re root)

# wvdial

if success you’ll get dns and ip from your ISP.
this is the example of my success connection :

tommy@tommy-home:~$ sudo wvdial
–> WvDial: Internet dialer version 1.60
–> Initializing modem.
–> Sending: ATZ
–> Sending: AT+CGDCONT=1,”IP”,”3gprs”
–> Modem initialized.
–> Sending: ATDT*99***1#
–> Waiting for carrier.
CONNECT 115200
~[7f]}#@!}!}!} }6}!}$}%\}”}&} } } } }’}”}(}”}#}$@#&4~
–> Carrier detected. Waiting for prompt.
~[7f]}#@!}!}!} }6}!}$}%\}”}&} } } } }’}”}(}”}#}$@#&4~
–> PPP negotiation detected.
–> Starting pppd at Sat Jan 7 03:17:29 2012
–> Pid of pppd: 2036
–> Using interface ppp0
–> pppd: p�r ��r
–> pppd: p�r ��r
–> pppd: p�r ��r
–> pppd: p�r ��r
–> pppd: p�r ��r
–> local IP address
–> pppd: p�r ��r
–> remote IP address
–> pppd: p�r ��r
–> primary DNS address
–> pppd: p�r ��r
–> secondary DNS address
–> pppd: p�r ��r

OK, tengkyu and goodnite 🙂

Serial Modem Configuration for Dial-Up in linux

One thought on “Serial Modem Configuration for Dial-Up in linux

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s