Selasa, 19 Juli 2011

Setting USB Modem Smartfren Connex ZTE AC-682 di Ubuntu 10.04

Setelah browsing kesana-kemari nyari tutorial setting modem ini, akhirnya ketemu juga cara praktisnya, berikut langkah-langkahnya..

Langkah 1 :
Hidupkan komputer, masuk ke desktop ubuntu, dan masukan modemnya ke colokan usb, buka terminal

ubuntu@disperindag-laptop:~$ lsusb
Bus 003 Device 002: ID 09da:000a A4 Tech Co., Ltd Port Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 003: ID 19d2:ffde ONDA Communication S.p.A.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Dari hasil tsb di dapatkan vendor id (19d2) dan product id (ffde). Kode ffde berarti modem terdeteksi sebagai storoge device atau CD-ROM.

Langkah 2 :
Sekarang kita eject drive CD-ROM tsb

ubuntu@disperindag-laptop:~$ sudo eject /dev/sr1
Catatan: USB mode switch tidak diperlukan utk modem ini. sr1 di liat dari hasil dmesg

Langkah 3 :
Ketik lsusb untuk mengetahui perubahan produk id dari ffde ke ffdd.

ubuntu@disperindag-laptop:~$ lsusb
Bus 003 Device 002: ID 09da:000a A4 Tech Co., Ltd Port Mouse
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 002 Device 004: ID 19d2:ffdd ONDA Communication S.p.A.
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Catatan: jika tidak terjadi perubahan produk, cabut kemudian colokin lagi modemnya.

Langkah 4 :
Masukan parameter ke kernel

ubuntu@disperindag-laptop:~$ sudo modprobe usbserial vendor=0x19d2 product=0xffdd

Langkah 5 :
Ketik wvdialconf untuk membuat file /etc/wvdial.conf. (kalo belum ada wvdial, download terlebih dahulu beserta dependenciesnya)

ubuntu@disperindag-laptop:~$ sudo wvdialconf
Editing `/etc/wvdial.conf’.
Scanning your serial ports for a modem.
……………………….
………………………..
ttyUSB0: ATQ0 V1 E1 — OK
ttyUSB0: ATQ0 V1 E1 Z — OK
ttyUSB0: ATQ0 V1 E1 S0=0 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 — OK
ttyUSB0: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 — OK
ttyUSB0: Modem Identifier: ATI — Manufacturer: QUALCOMM INCORPORATED
ttyUSB0: Speed 9600: AT — OK
ttyUSB0: Max speed is 9600; that should be safe.
ttyUSB0: 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″

Langkah 6 :
Edit file /etc/wvdial.conf

ubuntu@disperindag-laptop:~$ sudo gedit /etc/wvdial.conf
[Dialer smart]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = smart
Init1 = ATZ
Password = smart
Modem = /dev/ttyUSB0
Baud = 460800
Command Line = ATDT
Stupid Mode = 1
[Dialer mobi]
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Modem Type = Analog Modem
Phone = #777
ISDN = 0
Username = m8
Init1 = ATZ
Password = m8
Modem = /dev/ttyUSB0
Baud = 460800
Command Line = ATDT
Stupid Mode = 1 

Langkah 7 :
Jalankan wvdial smart (jika pake operator smart) wvdial mobi (jika pake mobi

ubuntu@disperindag-laptop:~$ sudo wvdial smart
–> WvDial: Internet dialer version 1.60
–> Cannot get information for serial port.
–> Initializing modem.
–> Sending: 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
–> Carrier detected. Waiting for prompt.
~[7f]}#@!}!} } }=}!}$}%\}”}&} } } } }#}%B#}%}%}&hk#>}’}”}(}” !~
–> PPP negotiation detected.
–> Starting pppd at Fri Dec 3 23:01:31 2010
–> Pid of pppd: 1647
–> Using interface ppp0
–> pppd: ���[08]���[08]
–> pppd: ���[08]���[08]
–> pppd: ���[08]���[08]
–> pppd: ���[08]���[08]
–> pppd: ���[08]���[08]
–> local IP address 10.1.63.194
–> pppd: ���[08]���[08]
–> remote IP address 2.2.2.2
–> pppd: ���[08]���[08]
–> primary DNS address 117.18.224.146
–> pppd: ���[08]���[08]
–> secondary DNS address 117.18.224.147
–> pppd: ���[08]���[08]

Biar otomatis tidak usah melakukan langkah2 tsb berulang-ulang, lakukan langkah berikut:
Masuk terminal, ketik sudo gedit /etc/modules
paste baris berikut
usbserial vendor=0x19d2 product=0xffdd
simpan
modem di colokin sebelum komputer hidup