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) :
“AT”
if correct, modem should answer
“OK”
then disable echo.
“ATE0″
setting baud
“AT+IPR=115200″
saving configurations
“AT&W”
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
OK
–> Sending: AT+CGDCONT=1,”IP”,”3gprs”
OK
–> 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 10.25.146.98
–> pppd: p�r ��r
–> remote IP address 192.168.111.111
–> pppd: p�r ��r
–> primary DNS address 10.0.18.54
–> pppd: p�r ��r
–> secondary DNS address 10.0.28.3
–> pppd: p�r ��r
OK, tengkyu and goodnite
Like this:
This entry was posted on January 7, 2012 at 3:52 am and is filed under Embedded . You can follow any responses to this entry through the RSS 2.0 feed You can leave a response, or trackback from your own site.