Sabtu, 03 September 2011

WVDIAL dan Modem Venus VT-18 di Slackware

Pertama kali tancap modem di port usb dan hidupkan komputer :)
check list device yang tertancap di port usb.

# lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 002: ID 03eb:0902 Atmel Corp. 4-Port Hub
Bus 003 Device 005: ID 1d09:aef4 TechFaith Wireless Technology Limited

Disini terlihat dibaris ke 5 vendor id 1d09 dan product id  aef4 itu yang akan kita gunakan nanti.
oke dilanjut dengan perintah

#dmesg

saya edit hasilnya karena terlalu panjang dan supaya lebih mudah di pahami.

usb 3-2.3: reset full speed USB device using ohci_hcd and address 3
sr1: CDROM (ioctl) error, command: cdb[0]=0x46 46 00 00 00 00 00 00 00 2000
sr: Sense Key : 0x4 [current]
sr: ASC=0x0 ASCQ=0x0

Terlihat kernel mencoba mengaktifkan device CDROM di /dev/sr1 tetapi gagal
(catatan:node /dev/sr0 sudah teralokasikan untuk DVD-RW).

usb 3-2.3: reset full speed USB device using ohci_hcd and address 4
scsi 5:0:0:0: Direct-Access     Qualcomm MMC Storage      2.31 PQ: 0 ANSI: 2
sd 5:0:0:0: Attached scsi generic sg3 type 0
sd 5:0:0:0: [sdc] Attached SCSI removable disk

Untuk baris ini proses deteksi MMC storage (catatan:VT-18 sudah build-in MMC Reader)
kenapa hasilnya sdc ? karena di komp saya sudah ada dua hardisk sda dan sdb jadi kemungkinan
hasil ini akan berbeda di setiap komputer.
Baris di atas juga  tidak ada vendor dan product id untuk MMC storage atau CDROM sehingga saya
kesulitan jika ingin menggunakan usb_modeswitch karena perlu default vendor/product beserta
target vendor/product.

Terus gimana dong kl sudah begini? Buntu? OOH TENTU TIDAK.. :)
di eject saja semua device di atas.
#eject /dev/sr1
#eject /dev/sdc

Diteruskan dengan meloading kernel module beserta product dan vendor id ke dalam device modem.
#/sbin/modprobe usbserial vendor=0x1d09 product=0xaef4

hasilnya akan menjadi seperti dibawah ini
usb 3-2.3: USB disconnect, address 4
usb 3-2.3: new full speed USB device using ohci_hcd and address 5
usb 3-2.3: New USB device found, idVendor=1d09, idProduct=aef4
usb 3-2.3: New USB device strings: Mfr=1, Product=2, SerialNumber=4
usb 3-2.3: Product: CDMA 1x/EVDO Rev.A Device
usb 3-2.3: Manufacturer: Co.,Ltd
usbcore: registered new interface driver usbserial
USB Serial support registered for generic
usbserial_generic 3-2.3:1.0: generic converter detected
usb 3-2.3: generic converter now attached to ttyUSB0
usbserial_generic 3-2.3:1.1: generic converter detected
usb 3-2.3: generic converter now attached to ttyUSB1
usbserial_generic 3-2.3:1.2: generic converter detected
usb 3-2.3: generic converter now attached to ttyUSB2
usbcore: registered new interface driver usbserial_generic
usbserial: USB Serial Driver core

Sampai disini modem sudah bisa di pakai tinggal di koneksi pakai wvdial
Berikut contoh wvdial.conf dengan operator smart.

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
AT$QCMDR = 3
Phone = #777
Stupid Mode = 1
Carrier Check = 0
Idle Seconds = 0
Check Def Route = 1
Baud = 921600
Auto DNS = 1
Dial Command = ATDT
Modem = /dev/ttyUSB0
ISDN = 0
Modem Type = USB Modem
Username = smart
Password = smart

# wvdial
--- > WvDial: Internet dialer version 1.61
--- > Cannot get information for serial port.
--- > Initializing modem.
--- > Sending: ATZ
ATZ
OK
--- > Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--- >Modem initialized.
--- > Sending: ATDT#777
--- > Waiting for carrier.
ATDT#777
CONNECT 3100000
--- > Carrier detected.  Starting PPP immediately.
---- > Starting pppd at Mon Apr  4 21:09:43 2011
--- > Pid of pppd: 2058
--- > Using interface ppp0
--- > local  IP address 10.191.166.71
--- > remote IP address 10.17.95.25
--- > primary   DNS address 10.17.3.244
--- > secondary DNS address 10.17.3.252

Unknown

Author & Editor

Has laoreet percipitur ad. Vide interesset in mei, no his legimus verterem. Et nostrum imperdiet appellantur usu, mnesarchum referrentur id vim.

0 komentar:

Posting Komentar