Install Modem Smartfren AC682 di Ubuntu 11.04



setelah kemarin sudah mencicipi amunisi baru, timbul niat buat dijalankan di mesin ubuntu ane ๐Ÿ˜€

saat pertama dicolokan modem ini masih dikenali sebagai CD ROM terlihat dari hasil dmesgnya
~$ dmesg | tail
[ 867.176562] generic ttyUSB1: generic converter now disconnected from ttyUSB1
[ 867.176585] usbserial_generic 5-2:1.1: device disconnected
[ 867.176762] generic ttyUSB2: generic converter now disconnected from ttyUSB2
[ 867.176785] usbserial_generic 5-2:1.2: device disconnected
[ 877.340071] usb 5-2: new full speed USB device using uhci_hcd and address 6
[ 877.514300] scsi8 : usb-storage 5-2:1.0
[ 878.516154] scsi 8:0:0:0: CD-ROM EVDO ReV A 7.00 PQ: 0 ANSI: 2
[ 878.530105] sr1: scsi-1 drive
[ 878.530413] sr 8:0:0:0: Attached scsi CD-ROM sr1
[ 878.533687] sr 8:0:0:0: Attached scsi generic sg2 type 5

karena itu eject aja CDROMnya
~$ sudo eject /dev/sr1

lihat lagi statusnya
~$ dmesg | tail
[ 943.926200] usbserial_generic 5-2:1.0: generic converter detected
[ 943.926378] usb 5-2: generic converter now attached to ttyUSB0
[ 943.928384] usbserial_generic 5-2:1.1: generic converter detected
[ 943.928562] usb 5-2: generic converter now attached to ttyUSB1
[ 943.930198] usbserial_generic 5-2:1.2: generic converter detected
[ 943.930378] usb 5-2: generic converter now attached to ttyUSB2
[ 943.932556] scsi9 : usb-storage 5-2:1.3
[ 944.936159] scsi 9:0:0:0: Direct-Access EVDO ReV A 7.00 PQ: 0 ANSI: 0 CCS
[ 944.937672] sd 9:0:0:0: Attached scsi generic sg2 type 0
[ 944.948148] sd 9:0:0:0: [sdb] Attached SCSI removable disk

yippi, sudah terdeteksi ๐Ÿ˜€
lanjut cek modem via lsusb
:~$ 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 002: ID 15d9:0a4c Trust International B.V.
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 009: ID 19d2:ffdd ONDA Communication S.p.A.
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 004: ID 0bda:8197 Realtek Semiconductor Corp. RTL8187B Wireless Adapter
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 04f2:b120 Chicony Electronics Co., Ltd
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

diketahui status modem
Bus 005 Device 009: ID 19d2:ffdd ONDA Communication S.p.A.

lanjut ke pengaturan
masuk ke
~$ sudo gedit /etc/usb_modeswitch.conf
tambahkan kode ini di baris paling akhir
########################################################
# /etc/usb_modeswitch.conf
#
# Smart ZTE AC682 (EVDO)
#

DefaultVendor = 0x19d2
DefaultProduct = 0xffde

TargetVendor = 0x19d2
TargetProduct = 0xffdd

MessageContent= 5553424312345678c00000008000069f030000000000000000000000000000

masuk lagi ke
~$ sudo /etc/udev/rules.d/99-zte-ac682.rules
isi dengan
########################################################
# /etc/udev/rules.d/99-zte-ac682.rules
#
# Smart ZTE AC682 (EVDO)
#
SUBSYSTEM=="usb", SYSFS{idVendor}=="19d2",
SYSFS{idProduct}=="ffdd", RUN+="/usr/sbin/usb_modeswitch โ€“

sekarang load beberapa parameter yang dibutuhkan ke kernel
~$ sudo modprobe usbserial vendor=0ร—19d2 product=0xffdd

deteksi modemnya via wvdial
~$ sudo wvdialconf
maka akan menghasilkan :
Editing `/etc/wvdial.conf'.
Scanning your serial ports for a modem.

Modem Port Scan: S0 S1 S2 S3 S4 S5 S6 S7
Modem Port Scan: S8 S9 S10 S11 S12 S13 S14 S15
Modem Port Scan: S16 S17 S18 S19 S20 S21 S22 S23
Modem Port Scan: S24 S25 S26 S27 S28 S29 S30 S31
WvModem: Cannot get information for serial port.
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: +GMI: China TeleCom
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
WvModem: Cannot get information for serial port.
ttyUSB1: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 -- failed with 9600 baud, next try: 9600 baud
ttyUSB1: ATQ0 V1 E1 -- and failed too at 115200, giving up.
WvModem: Cannot get information for serial port.
ttyUSB2: ATQ0 V1 E1 -- OK
ttyUSB2: ATQ0 V1 E1 Z -- OK
ttyUSB2: ATQ0 V1 E1 S0=0 -- OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 -- OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 -- OK
ttyUSB2: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0 -- OK
ttyUSB2: Modem Identifier: ATI -- Manufacturer: +GMI: China TeleCom
ttyUSB2: Speed 9600: AT -- OK
ttyUSB2: Max speed is 9600; that should be safe.
ttyUSB2: 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"

modem terdeteksi di /dev/ttyUSB0 ๐Ÿ˜€
lanjut ke pengaturan wvdial
masuk ke
~$ sudo gedit /etc/wvdial.conf
tambahkan baris berikut
[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 = #777
Modem = /dev/ttyUSB0
Username = smart
Password = smart
Baud = 460800

langkah terakhir coba koneksi dengan cara
~$sudo wvdial smart

--> WvDial: Internet dialer version 1.60
--> 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. Waiting for prompt.
~[7f]}#@!}!}!} }3}"}&} } } } }#}%B#}%}'}"}(}"W}0~
--> PPP negotiation detected.
--> Starting pppd at Fri Jul 15 06:54:49 2011
--> Pid of pppd: 5113
--> Using interface ppp0
--> local IP address 10.249.99.173
--> remote IP address 10.20.31.6
--> primary DNS address 10.17.3.252
--> secondary DNS address 10.17.3.244

kalau sudah mendapat ip addrees seperti itu harusnya sudah bisa browsing internet hehe

nah sekarang masalahnya, setiap mau konek kita harus eject cd rom, load ke kernel dll, biar ringkas sekalian aja dibikin bash scriptnya hehe
buat file baru, dinamai terserah asal ekstensi terakhir sh klo punya ane smart.sh biar gampang ingatnya.
isi dengan kode berikut

#!/bin/bash

sudo eject /dev/sr1
sleep 2
sudo modprobe usbserial vendor=0x19d2 product=0xffdd
sleep 2
sudo wvdial smart

parameter sleep diatas berfungsi untuk menunggu proses selama 2 detik. Karena kadang2 setiap proses butuh waktu hehe

yuk, lanjut chmod dulu biar bisa dijalankan
~$ sudo chmod +x smart.sh

untuk menjalankan tinggal ketik
~$ ./smart.sh

beresss ๐Ÿ˜€

Iklan

43 pemikiran pada “Install Modem Smartfren AC682 di Ubuntu 11.04

  1. doorknops@ubuntu:~$ sudo chmod a+x smart.sh
    [sudo] password for doorknops:
    chmod: cannot access `smart.sh’: No such file or directory
    doorknops@ubuntu:~$ ./smart
    bash: ./smart: No such file or directory
    doorknops@ubuntu:~$

    trus itu kan ga bisa, biar bisa gimana gan?? confuse nih nyampe sini.

    • “chmod: cannot access `smart.shโ€™: No such file or directory”

      filenya tidak ditemukan gan.
      biar enak file smart.sh disimpan di folder home ๐Ÿ˜€

  2. kenapa yah setiap setelah eject (sudo eject /dev/sr1) komputer saya selalu menjadi hang, dan harus restart secara pakasa. thanks

      • cuma ditunggu doang yah ? wah belom saya coba, abisnya sedikit kesel karena selalu begitu langsung restart, tapi kalo di maverick ga ada hang namun ada satu masalah lagi ketika install paket wvdial-nya kenapa ada error-nya yah
        indraep@indraep-Aspire-4741:~/Desktop/untitled folder$ sudo dpkg -i *.deb
        [sudo] password for indraep:
        Selecting previously deselected package libuniconf4.6.
        (Reading database โ€ฆ 129488 files and directories currently installed.)
        Unpacking libuniconf4.6 (from libuniconf4.6_4.6.1-1ubuntu1_i386.deb) โ€ฆ
        Selecting previously deselected package libwvstreams4.6-base.
        Unpacking libwvstreams4.6-base (from libwvstreams4.6-base_4.6.1-1ubuntu1_i386.deb) โ€ฆ
        Selecting previously deselected package libwvstreams4.6-extras.
        Unpacking libwvstreams4.6-extras (from libwvstreams4.6-extras_4.6.1-1ubuntu1_i386.deb) โ€ฆ
        dpkg-deb (subprocess): short read on buffer copy for failed to write to pipe in copy
        dpkg-deb: error: subprocess paste returned error exit status 2
        dpkg: error processing libwvstreams4.6-extras_4.6.1-1ubuntu1_i386.deb (โ€“install):
        short read on buffer copy for backend dpkg-deb during `./usr/lib/libwvstreams.so.4.6โ€ฒ
        Selecting previously deselected package wvdial.
        Unpacking wvdial (from wvdial_1.61-2_i386.deb) โ€ฆ
        dpkg: dependency problems prevent configuration of libuniconf4.6:
        libuniconf4.6 depends on libwvstreams4.6-extras; however:
        Package libwvstreams4.6-extras is not installed.
        dpkg: error processing libuniconf4.6 (โ€“install):
        dependency problems โ€“ leaving unconfigured
        Setting up libwvstreams4.6-base (4.6.1-1ubuntu1) โ€ฆ
        dpkg: dependency problems prevent configuration of wvdial:
        wvdial depends on libuniconf4.6; however:
        Package libuniconf4.6 is not configured yet.
        wvdial depends on libwvstreams4.6-extras; however:
        Package libwvstreams4.6-extras is not installed.
        dpkg: error processing wvdial (โ€“install):
        dependency problems โ€“ leaving unconfigured
        Processing triggers for man-db โ€ฆ
        Processing triggers for libc-bin โ€ฆ
        ldconfig deferred processing now taking place
        Errors were encountered while processing:
        libwvstreams4.6-extras_4.6.1-1ubuntu1_i386.deb
        libuniconf4.6
        wvdial

      • owh.. install wvdialnya manual ya gan
        “dpkg: dependency problems prevent configuration of libuniconf4.6:”
        ada beberapa file dependency yang bermasalah, kemungkinan tidak cocok atau belum update

  3. Ping balik: [CLBK] Smartfren AC682 (ZTE AC682), Murah Meriah! « Linux, Komputer & IT

  4. Mas…tanya ni…
    saya newwwwwww banget di linux, kmaren aq baca 7sins windows jadi aq coba download linux tapi yang Kubuntu 11.04 bukan Ubuntunya truz aq pengen istall modem smartfren kayak punya mas…bingung masihan mas.., aq coba buka terminal tapi pas masuk ke
    ~$ sudo gedit /etc/usb_modeswitch.conf
    muncul :

    No protocol specified

    (gedit:4413): Gtk-WARNING **: cannot open display: :0

    itu kenapa ya???

    truz aku coba buka manual lewat file manager truz aku buka file usb_modeswitch.conf truz aku tambah code yang diperintahkan, then pas aku save kok gag bisa ??
    muncul tulisan

    “The document could not be saved, as it was not possible to write to /etc/usb_modeswitch.conf.

    Check that you have write access to this file or that enough disk space is available.”

    aq instal Kubuntunya cuma ngasi space 5 giga ???? apa kurang besar???

    tolong pentunjuknya ya…..kalau boleh mas kirim ke email saya, alamatnya hamimtm@gmail.com

    • klo yang ini

      No protocol specified

      (gedit:4413): Gtk-WARNING **: cannot open display: :0

      itu karena di kubuntu gak ada GEDIT gan, pake yang lain, coba sudo nano /etc/usb_modeswitch.conf

      Check that you have write access to this file or that enough disk space is available.โ€

      file usb_modeswitch.conf hanya bisa dirubah oleh root, jadi kalau pake user biasa filenya gak bisa diedit.

  5. mohon bimbingannya mas… masih ada masalah nih.

    setelah eject sr1 nya munculnya malah ada 2. cdrom dan storage nya.

    compaq@compaq-Presario-CQ20:~$ dmesg | tail
    [ 32.593011] Bluetooth: HIDP (Human Interface Emulation) ver 1.2
    [ 34.301348] EXT4-fs (sda9): re-mounted. Opts: errors=remount-ro,commit=0
    [ 35.982865] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
    [ 38.224019] eth0: no IPv6 routers present
    [ 102.544091] usb 8-1: new full speed USB device using uhci_hcd and address 2
    [ 102.711481] scsi5 : usb-storage 8-1:1.0
    [ 103.712259] scsi 5:0:0:0: CD-ROM EVDO ReV A 7.00 PQ: 0 ANSI: 2
    [ 103.724223] sr1: scsi-1 drive
    [ 103.724514] sr 5:0:0:0: Attached scsi CD-ROM sr1
    [ 103.729154] sr 5:0:0:0: Attached scsi generic sg3 type 5

    >>setelah di eject:

    compaq@compaq-Presario-CQ20:~$ sudo eject /dev/sr1
    [sudo] password for compaq:
    compaq@compaq-Presario-CQ20:~$ dmesg | tail
    [ 103.712259] scsi 5:0:0:0: CD-ROM EVDO ReV A 7.00 PQ: 0 ANSI: 2
    [ 103.724223] sr1: scsi-1 drive
    [ 103.724514] sr 5:0:0:0: Attached scsi CD-ROM sr1
    [ 103.729154] sr 5:0:0:0: Attached scsi generic sg3 type 5
    [ 185.924173] usb 8-1: USB disconnect, address 2
    [ 188.408095] usb 8-1: new full speed USB device using uhci_hcd and address 3
    [ 188.638509] scsi6 : usb-storage 8-1:1.3
    [ 189.640271] scsi 6:0:0:0: Direct-Access EVDO ReV A 7.00 PQ: 0 ANSI: 0 CCS
    [ 189.641419] sd 6:0:0:0: Attached scsi generic sg3 type 0
    [ 189.726261] sd 6:0:0:0: [sdc] Attached SCSI removable disk

    dan kalau diteruskan ke modprobe tidak ada perubahan apa-apa.
    tolong ya Gan… ๐Ÿ™‚ terima kasih.

  6. Ping balik: Install Modem Smartfren AC682 di Ubuntu 11.04 « Breakhearts

  7. hmmm, saya kira usb_modeswitch kok relatif tidak dibutuhkan ya? yang diperlukan hanyalah perintah modprobe yang diotomatisasi di rc.local setiap booting , lalu tinggal eject dan wvdial setiap mau konek .
    bahkan kalo tidak ada wvdial bisa menggunakan perintah pon juga , tapi agak beda emang caranya…..ada di blog nya ydotbe kalo ga salah….

  8. mantab gan
    ijinGan ngedit dikit bash nya
    ane soalnya prnah dc sendiri dan ganti port sendiri biar enak ngisi otomatis sndiri wvdial.conf nya hhe
    #!/bin/bash

    sudo eject /dev/sr1
    sleep 2
    sudo modprobe usbserial vendor=0x19d2 product=0xffdd
    sleep 2
    sudo wvdialconf
    sudo wvdial

  9. cursor nya ga mau di geser dari pinggir ke tengah gan di ubuntu 10.11 . laptop saya winxp, saya masukin linux ubuntu juga yg 11.10.. tolong kasih saran biar bisa normal lagi gan cursor nya ๐Ÿ˜ฅ

  10. mo tanya gan !
    pas saya ketik ~$ dmesg | tail
    muncul gk seperti yg agan contohkn !
    munculnya kyk gini :

    [ 19.223121] type=1400 audit(1348898985.881:10): apparmor=”STATUS” operation=”profile_load” name=”/usr/share/gdm/guest-session/Xsession” pid=854 comm=”apparmor_parser”
    [ 19.223134] type=1400 audit(1348898985.881:11): apparmor=”STATUS” operation=”profile_load” name=”/usr/sbin/tcpdump” pid=859 comm=”apparmor_parser”
    [ 19.890303] ppdev: user-space parallel port driver
    [ 20.030629] EXT4-fs (sdb3): re-mounted. Opts: errors=remount-ro,commit=0
    [ 20.796672] EXT4-fs (sdb3): re-mounted. Opts: errors=remount-ro,commit=0
    [ 177.641236] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed… blt ring idle [waiting on 47310, at 47310], missed IRQ?
    [ 357.423692] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed… blt ring idle [waiting on 73536, at 73536], missed IRQ?
    [ 537.218128] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed… blt ring idle [waiting on 102015, at 102015], missed IRQ?
    [ 567.197189] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed… blt ring idle [waiting on 103722, at 103722], missed IRQ?
    [ 627.123344] [drm:i915_hangcheck_ring_idle] *ERROR* Hangcheck timer elapsed… blt ring idle [waiting on 112693, at 112693], missed IRQ?

    klo kyk gtu gmn gan ?
    mohon balasannya !

Tinggalkan Balasan

Isikan data di bawah atau klik salah satu ikon untuk log in:

Logo WordPress.com

You are commenting using your WordPress.com account. Logout / Ubah )

Gambar Twitter

You are commenting using your Twitter account. Logout / Ubah )

Foto Facebook

You are commenting using your Facebook account. Logout / Ubah )

Foto Google+

You are commenting using your Google+ account. Logout / Ubah )

Connecting to %s