Difference between revisions of "Dial menggunakan WvDial"

From OnnoWiki
Jump to navigation Jump to search
 
(5 intermediate revisions by the same user not shown)
Line 7: Line 7:
 
lakukan
 
lakukan
  
  $ wvdialconf
+
  $ sudo wvdialconf
  
 
Akan tampak tampilan sebagai berikut
 
Akan tampak tampilan sebagai berikut
Line 45: Line 45:
 
  Found a modem on /dev/ttyUSB0.
 
  Found a modem on /dev/ttyUSB0.
 
  Modem configuration written to /etc/wvdial.conf.
 
  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"
 
  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"
 
  ttyUSB2<Info>: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
Line 57: Line 55:
  
 
  [Dialer xl3g]
 
  [Dialer xl3g]
  Phone = *99***1#
+
  Phone = *99#
 
  Username = xlgprs
 
  Username = xlgprs
 
  Password = proxl
 
  Password = proxl
Line 70: Line 68:
 
  Init5 =AT+CGDCONT=1,"IP","www.xlgprs.net";
 
  Init5 =AT+CGDCONT=1,"IP","www.xlgprs.net";
  
Dial menggunakan
+
Dial menggunakan '''(harus sebagai SU)'''
 +
 
 +
$ sudo wvdial xl3g
 +
# wvdial xl3g
 +
 
 +
Akan keluar seperti
 +
 
 +
--> WvDial: Internet dialer version 1.60
 +
--> Cannot get information for serial port.
 +
--> Initializing modem.
 +
--> Sending: ATZ
 +
ATZ
 +
OK
 +
+ZUSIMR:2
 +
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
 +
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
 +
OK
 +
--> Sending: AT+CGDCONT=1,"IP","www.xlgprs.net";
 +
AT+CGDCONT=1,"IP","www.xlgprs.net";
 +
OK
 +
--> Modem initialized.
 +
--> Sending: ATDT*99#
 +
--> Waiting for carrier.
 +
ATDT*99#
 +
CONNECT
 +
--> Carrier detected.  Waiting for prompt.
  
$ wvdial xl3g
 
  
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 +
* [[Instalasi USB mode switch untuk USB Modem yang ada Storage]]
 
* [[Instalasi WvDial]]
 
* [[Instalasi WvDial]]
 
* [[Dial menggunakan Modem]]
 
* [[Dial menggunakan Modem]]

Latest revision as of 19:35, 20 January 2010

Setelah WvDial di instalasi. Pastikan modem usb terdeteksi system operasi

lsusb
ls -la /dev/ttyU*

lakukan

$ sudo 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.
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#
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 (harus sebagai SU)

$ sudo wvdial xl3g
# wvdial xl3g

Akan keluar seperti

--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
+ZUSIMR:2
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Sending: AT+CGDCONT=1,"IP","www.xlgprs.net";
AT+CGDCONT=1,"IP","www.xlgprs.net";
OK
--> Modem initialized.
--> Sending: ATDT*99#
--> Waiting for carrier.
ATDT*99#
CONNECT
--> Carrier detected.  Waiting for prompt.


Pranala Menarik