Sunday, January 12, 2014

Instal WvDial dan USB ModeSwitch di Kubuntu 12.04

Mulai instal lagi paket-paket untuk menjalankan modem Huawei E173 yg menggunakan kartu Axis di Kubuntu 12.04. Paket yang dibutuhkan:

usb-modeswitch
usb-modeswitch-data
wvdial

untuk instal wvdial, jalankan perintah:

sudo apt-get install wvdial

perintah untuk instal usb-modeswitch:

sudo apt-get install usb-modeswitch

perintah untuk instal usb-modeswitch-data:

sudo apt-get install usb-modeswitch-data

fungsi dari usb-modeswitch-data bisa dibaca disini:

https://apps.ubuntu.com/cat/applications/precise/usb-modeswitch-data/



hasil perintah lsusb untuk modem huawei E173:

Bus 002 Device 010: ID 12d1:1436 Huawei Technologies Co., Ltd.


Vendor ID : 12d1

Product ID : 1436


 ternyata catatan USB modem yg disupport oleh usb-modeswitch di Kubuntu 12.04 ada di file ini:

/lib/udev/rules.d/40-usb_modeswitch.rules



 rubah baris kode ini:

# Huawei E173
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1557", RUN+="usb_modeswitch '%b/%k'"

menjadi:

# Huawei E173
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1436", RUN+="usb_modeswitch '%b/%k'"




sekarang reboot system dulu, simpan-simpan dulu referensi modem usb:

http://www.draisberghof.de/usb_modeswitch/

http://www.draisberghof.de/usb_modeswitch/#usage

http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=693

http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=729

http://hodgestar.za.net/blog/?p=82

https://www.google.com/search?client=ubuntu&channel=fs&q=google&ie=utf-8&oe=utf-8#channel=fs&q=%2Flib%2Fudev%2Frules.d%2F40-usb_modeswitch.rules+%2B+edit

http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?t=732

http://askubuntu.com/questions/43805/help-with-implementing-usb-modeswitch

http://www.draisberghof.de/usb_modeswitch/bb/viewtopic.php?f=3&t=1322




mantap , hasil perintah : dmesg :

[ 232.940852] usb 2-1.2: USB disconnect, device number 3
[ 232.941055] option: option_instat_callback: error -108
[ 232.941346] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 232.941388] option 2-1.2:1.0: device disconnected
[ 232.941490] cdc_ether 2-1.2:1.1: wwan0: unregister 'cdc_ether' usb-0000:00:1d.0-1.2, Mobile Broadband Network Device
[ 232.963971] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 232.963987] option 2-1.2:1.3: device disconnected
[ 232.964725] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
[ 232.964741] option 2-1.2:1.4: device disconnected
[ 252.826067] usb 2-1.2: new high-speed USB device number 5 using ehci_hcd
[ 252.922826] scsi13 : usb-storage 2-1.2:1.0
[ 252.923409] scsi14 : usb-storage 2-1.2:1.1
[ 253.923223] scsi 13:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 253.923401] scsi 14:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2
[ 253.929109] sr1: scsi-1 drive
[ 253.929482] sr 13:0:0:0: Attached scsi CD-ROM sr1
[ 253.930581] sr 13:0:0:0: Attached scsi generic sg2 type 5
[ 253.931458] sd 14:0:0:0: Attached scsi generic sg3 type 0
[ 253.935919] sd 14:0:0:0: [sdb] Attached SCSI removable disk
[ 255.183913] usb 2-1.2: USB disconnect, device number 5
[ 258.962044] usb 2-1.2: new high-speed USB device number 6 using ehci_hcd
[ 259.060093] option 2-1.2:1.0: GSM modem (1-port) converter detected
[ 259.060384] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB0
[ 259.063511] cdc_ether 2-1.2:1.1: wwan0: register 'cdc_ether' at usb-0000:00:1d.0-1.2, Mobile Broadband Network Device, 02:50:f3:00:00:00
[ 259.064362] option 2-1.2:1.3: GSM modem (1-port) converter detected
[ 259.064563] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB1
[ 259.064940] option 2-1.2:1.4: GSM modem (1-port) converter detected
[ 259.065122] usb 2-1.2: GSM modem (1-port) converter now attached to ttyUSB2
[ 259.065833] scsi19 : usb-storage 2-1.2:1.5
[ 259.066809] scsi20 : usb-storage 2-1.2:1.6
[ 260.067203] scsi 19:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 260.067657] scsi 20:0:0:0: Direct-Access HUAWEI SD Storage 2.31 PQ: 0 ANSI: 2

udah terdeteksi tuh modem Huawei E173 . saat nya mengkonfigurasi wvdial



  selanjutnya nulis configurasi wvdial pakai perintah:

sudo wvdialconf /etc/wvdial.conf

referensi:

https://help.ubuntu.com/community/DialupModemHowto/SetUpDialer

hasil perintahnya:

Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

Modem Port Scan<*1>: S0 S1 S2 S3 S4 S5 S6 S7
Modem Port Scan<*1>: S8 S9 S10 S11 S12 S13 S14 S15
Modem Port Scan<*1>: S16 S17 S18 S19 S20 S21 S22 S23
Modem Port Scan<*1>: S24 S25 S26 S27 S28 S29 S30 S31
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: huawei
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
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.
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: huawei
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"




 sekarang saatnya lihat-lihat isi file /etc/wvdial.conf . jangan lupa backup dulu ya sebelum di edit

isi asli file itu:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
; Phone = <Target Phone Number>
; Password = <Your Password>
; Username = <Your Login Name>

sekarang tinggal edit-edit dah 




dan hahahaha.... gue terkoneksi lagi ke internet dengan modem GSM Huawei E173 & paket internet Unlimited dari Axis dengan settingan ini di wvdial.conf:

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = USB Modem
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Phone = *99#
Password = 123456
Username = axis
stupid mode = 1

Referensi:

http://en.wikipedia.org/wiki/WvDial

No comments:

Post a Comment

please, write your comment about this article