In this article I assume you are using ubuntu linux as operating system and Indosat M2 as a GSM card for your modem.
The first thing to do is make sure wvdial program installed in your computer. Wvdial is an intelligent PPP dialer, which means that the faster the modem and start the PPP in order to connect to the Internet. This is something like a chat program, except that use heuristics to guess how to dial and log into your server rather than forcing you to write a login script.1. To ensure wvdial installed (run the following command in the console)
Code:
ediant@ediant:~$ su password : root@ediant:~$ dpkg -l | grep wvdial
to install the program wvdial
Code:
root@ediant:~# apt-get install wvdial
2. The process of setting
a. To initialize the modem
Code:
root@ediant:~# wvdialconf
Output Code:
Editing `/etc/wvdial.conf'. Scanning your serial ports for a modem. Modem Port Scan<*1>: S0 S1 S2 S3 WvModem<*1>: Cannot get information for serial port. ttyUSB0<*1>: ATQ0 V1 E1 -- OK ttyUSB0<*1>: ATQ0 V1 E1 Z -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK ttyUSB0<*1>: Modem Identifier: ATI -- MC8781 ttyUSB0<*1>: Speed 9600: AT -- OK ttyUSB0<*1>: Max speed is 9600; that should be safe. ttyUSB0<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK WvModem<*1>: Cannot get information for serial port. ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud ttyUSB1<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud ttyUSB1<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up. WvModem<*1>: Cannot get information for serial port. ttyUSB2<*1>: ATQ0 V1 E1 -- OK ttyUSB2<*1>: ATQ0 V1 E1 Z -- OK ttyUSB2<*1>: ATQ0 V1 E1 S0=0 -- OK ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 -- OK ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK ttyUSB2<*1>: Modem Identifier: ATI -- Manufacturer: Sierra Wireless, Inc. ttyUSB2<*1>: Speed 9600: AT -- OK ttyUSB2<*1>: Max speed is 9600; that should be safe. ttyUSB2<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK Found a modem on /dev/ttyUSB0. Modem configuration written to /etc/wvdial.conf. ttyUSB0: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" ttyUSB2 : Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
b. Edit file wvdial.conf di /etc/wvdial.conf
Code:
root@ediant:~# nano /etc/wvdial.conf
Output Code:
[Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Baud = 9600 New PPPD = yes Modem = /dev/ttyUSB0 ISDN = 0 ; Phone =; Password = ; Username =
Changed to be like this
Code:
[Dialer Defaults] Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 Init3 = AT+CGDCONT=1,"IP","indosatm2" Baud = 9600 New PPPD = yes Modem = /dev/ttyUSB0 ISDN = 0 Phone = *99# Password = your password Username = your username Stupid Mode = 1
press CTRL + X
press Y ( Enter )
3. Run to connect internet
Code:
root@ediant:~# wvdial


9:24 AM
edidwidayanto

0 Comment:
Post a Comment