Difference between revisions of "Dial menggunakan WvDial"

From OnnoWiki
Jump to navigation Jump to search
(New page: Setelah WvDial di instalasi, lakukan $ wvdialconf Akan tampak tampilan sebagai berikut ==Pranala Menarik== * Instalasi WvDial * [[Dial menggunakan Modem]...)
 
Line 1: Line 1:
Setelah [[Instalasi WvDial | WvDial di instalasi]], lakukan
+
Setelah [[Instalasi WvDial | WvDial di instalasi]].
 +
Pastikan modem usb terdeteksi [[system operasi]]
 +
 
 +
lsusb
 +
ls -la /dev/ttyU*
 +
 
 +
lakukan
  
 
  $ wvdialconf
 
  $ wvdialconf
Line 5: Line 11:
 
Akan tampak tampilan sebagai berikut
 
Akan tampak tampilan sebagai berikut
  
 +
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 -- Manufacturer: ZTE INCORPORATED
 +
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: ZTE INCORPORATED
 +
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.
 +
/etc/wvdial.conf<Warn>: Can't write '/etc/wvdial.conf.tmp4540': Permission denied
 +
/etc/wvdial.conf<Warn>: Can't write '/etc/wvdial.conf' ('/etc/wvdial.conf'): Bad file descriptor
 +
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
 +
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
 +
 +
Edit wvdial.conf
 +
 +
sudo vi /etc/wvdial.conf
 +
 +
Tambahkan misalnya
 +
 +
[Dialer xl3g]
 +
Phone = *99***1#
 +
Username = xlgprs
 +
Password = proxl
 +
Stupid Mode = 1
 +
Dial Command = ATDT
 +
Modem = /dev/ttyUSB0
 +
Baud = 460800
 +
Init2 = ATZ
 +
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
 +
ISDN = 0
 +
Modem Type = Analog Modem
 +
Init5 =AT+CGDCONT=1,"IP","www.xlgprs.net";
 +
 +
Dial menggunakan
  
 +
$ wvdial xl3g
  
  

Revision as of 12:27, 18 January 2010

Setelah WvDial di instalasi. Pastikan modem usb terdeteksi system operasi

lsusb
ls -la /dev/ttyU*

lakukan

$ wvdialconf

Akan tampak tampilan sebagai berikut

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 -- Manufacturer: ZTE INCORPORATED
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: ZTE INCORPORATED
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.
/etc/wvdial.conf<Warn>: Can't write '/etc/wvdial.conf.tmp4540': Permission denied
/etc/wvdial.conf<Warn>: Can't write '/etc/wvdial.conf' ('/etc/wvdial.conf'): Bad file descriptor
ttyUSB0<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"

Edit wvdial.conf

sudo vi /etc/wvdial.conf 

Tambahkan misalnya

[Dialer xl3g]
Phone = *99***1#
Username = xlgprs
Password = proxl
Stupid Mode = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
Baud = 460800
Init2 = ATZ
Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
ISDN = 0
Modem Type = Analog Modem
Init5 =AT+CGDCONT=1,"IP","www.xlgprs.net";

Dial menggunakan

$ wvdial xl3g


Pranala Menarik