Posted by Akhmad Zaenal Blog's on Kamis, 16 Agustus 2012
Label:
Linux,
Label:
Software,
Label:
Trick Trips
Mulai dari bulan kemarin saya membeli modem SmartFren Connex AC682 ini.
Karena saya liat sendiri teman-teman saya yang pake ini lumayan
'sejahtera' ngenetnya :D
Yaudah, klo di Windows gak ada masalah dalam pemakaiannya. Tapi klo di
Linux, dia awalnya tidak terdetek sebagai usb drive biasa, tidak sebagai
usb modem :( .
war@Net:~$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 004: ID 19d2:ffde ONDA Communication S.p.A.
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 15d9:0a4c Trust International B.V.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 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 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 064e:a103 Suyin Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
war@Net:~$
Yaudah, agar dia terdetek sebagai USB modem,
maka saya tulis seperti ini..
sudo eject /dev/sr1
war@Net:~$ sudo eject /dev/sr1
Yuk coba kita liat hasilnya, dia berubah atau belum..
war@Net:~$ lsusb
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 005: ID 19d2:ffdd ONDA Communication S.p.A.
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 15d9:0a4c Trust International B.V.
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 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 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 064e:a103 Suyin Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
war@Net:~$
Tau perbedaannya? Klo yang pertama itu dia tertulis sebagai "ffde", klo yg kedua "ffdd".
Lalu, selanjutnya apa? Belum konek juga neh. Oke oke..selanjutnya..
sudo modprobe usbserial vendor=0x19d2 product=0xffdd
war@Net:~$ sudo modprobe usbserial vendor=0x19d2 product=0xffdd
sudo wvdialconf
war@Net:~$ sudo wvdialconf
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
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: +GMI: China TeleCom
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: +GMI: China TeleCom
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: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
ttyUSB2: Speed 9600; init "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0"
war@Net:~$
Kalau ada notifikasi belum terinstall, silahkan lihat
panduan instalasi WvDial di postingan yang lalu.
Okeh, disana sudah kedetek ada sebuah modem di /dev/ttyUSB0 dengan
embel-embel "ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0" yang mewajibkan
kita untuk mengedit file config wvdial-nya agar sesuai dengan settingan
SmartFren-nya.
sudo gedit /etc/wvdial.conf
Lalu taro di baris paling pertama
[Dialer smart]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Stupid Mode = 1
Modem Type = Analog Modem
Command Line = ATDT
ISDN = 0
New PPPD = yes
Phone = #777sudo
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800
Okei, setelah langkah diatas sudah tak ada yang tertinggal, langkah
terakhir adalah dial-up agar tersambung ke internet. bismillah..
sudo wvdial smart
war@Net:~$ sudo wvdial smart
--> WvDial: Internet dialer version 1.61
--> 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#777sudo
--> Waiting for carrier.
ATDT#777sudo
CONNECT 3100000
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Mon Aug 29 11:31:07 2011
--> Pid of pppd: 2365
--> Using interface ppp0
--> pppd: P?[10] X?[10] `?[10] Xw[10]
--> pppd: P?[10] X?[10] `?[10] Xw[10]
--> pppd: P?[10] X?[10] `?[10] Xw[10]
--> pppd: P?[10] X?[10] `?[10] Xw[10]
--> local IP address 10.191.38.182
--> pppd: P?[10] X?[10] `?[10] Xw[10]
--> remote IP address 10.17.95.23
--> pppd: P?[10] X?[10] `?[10] Xw[10]
--> primary DNS address 10.17.3.244
--> pppd: P?[10] X?[10] `?[10] Xw[10]
--> secondary DNS address 10.17.3.252
--> pppd: P?[10] X?[10] `?[10] Xw[10]
war@Net:~$
Baru sempet nulis tutorial ini, maaf maaf maaf :D
Yaudah, selamat browsing deh ;)
[
Sumber]