Lompat ke isi

Menggunakan Modem USB 3G Advan DT-8 di Ubuntu Linux

April 16, 2010

Advan DT-8 merupakan modem 3G USB, biasanya terdapat di pasaran dalam bentuk paket bundling bersama telkomsel. simpati max  Harganya yang relatif murah menjadi daya tarik tersendiri. Sayangnya, modem ini tidak dikenali dengan baik oleh kernel linux, karena akan terdeteksi sebagai usb-storage (penyimpan data) dan bukan sebagai modem. Hal ini lumrah pada beberapa jenis modem tertentu yang sudah disertai dengan software bawaan di dalamnya. Modem jenis ini ketika kita mencobanya di Windows awalnya terdeteksi sebagai mass-storage, kemudian modem akan menginstalasi driver dan software secara otomatis karena memiliki fungsi penyimpan data. Fitur ini dikenal dengan istilah “zero CD”. Nah, Untuk menggunakannya di linux diperlukan semacam switch agar mode usb-storage menjadi usbserial. Hal ini dapat dilakukan dengan menginstall paket usb-modeswitch.

berikut langkah – langkahnya. Saya menggunakan Ubuntu 9.10 karmic dengan kernel 2.6.31.14 dan kartu telkomsel simpati max yang sudah diaktivasi untuk 3G.

1. tentukan vendor dan product ID modem
caranya di terminal ketik lsusb. Bandingkan hasilnya antara sebelum dan sesudah dicolokkan modem.
sebelum modem dipasang, lsusb sepert ini

yu5uv@yu5uv-desktop:~$ lsusb
Bus 002 Device 003: ID 15d9:0a41 Unknown
Bus 002 Device 002: ID 058f:9254 Alcor Micro Corp. 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 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

setelah  modem dipasang :

yu5uv@yu5uv-desktop:~$ lsusb
Bus 002 Device 003: ID 15d9:0a41 Unknown
Bus 002 Device 002: ID 058f:9254 Alcor Micro Corp. 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 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 002: ID 1c9e:6061
Bus 005 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 ini maka vendor = 1c9e dan product = 6061

2. install paket usb-modeswitch
sebelumnya pastikan paket wvdial telah terinstall karena secara default ubuntu 9.10 sudah tidak menyediakan paket wvdial lagi.Untuk pengguna ubuntu silahkan cari dan download file deb paket ini di http://packages.ubuntu.com. Untuk kompilasi dari source code bisa  cari di sini http://www.draisberghof.de/usb_modeswitch/

3. edit file usb_modeswitch.conf,
di terminal ketik sudo gedit /etc/usb_modeswitch.conf.
temukan di file ini data vendor dan product yang sesuai dengan lsusb. Biar lebih cepat tekan ‘ctrl F’ dan ketik ‘1c9e‘.

# Alcatel One Touch X020 (aka OT-X020, aka MBD-100HU, aka Nuton 3.5G), works with Emobile D11LC
# Alcatel One Touch X030 (aka OT-X030, aka Nuton NT36HD)
#
# Contributor: Aleksandar Samardzic, Marcelo Fernandez

;DefaultVendor=  0x1c9e
;DefaultProduct= 0×1001

;TargetVendor=   0x1c9e
;TargetProduct=  0×6061

# only for reference
# MessageEndpoint=0×05

hapus tanda ” ; ” dan “ # ” pada baris informasi vendor, product dan message end point hingga menjadi seperti ini :

# Alcatel One Touch X020 (aka OT-X020, aka MBD-100HU, aka Nuton 3.5G), works with Emobile D11LC
# Alcatel One Touch X030 (aka OT-X030, aka Nuton NT36HD)
#
# Contributor: Aleksandar Samardzic, Marcelo Fernandez

DefaultVendor=  0x1c9e
DefaultProduct= 0×1001

TargetVendor=   0x1c9e
TargetProduct=  0×6061

# only for reference
MessageEndpoint=0×05

MessageContent=”55534243123456780000000000000606f50402527000000000000000000000″

simpan file

4.buka terminal, ketik sudo modprobe usbserial vendor=0x1c9e product=0×6061. Tujuannya untuk me-load driver modem ke dalam kernel

5.Masih di terminal ketik sudo usb_modeswitch

yu5uv@yu5uv-desktop:~$ sudo usb_modeswitch
[sudo] password for yu5uv:

* usb_modeswitch: tool for controlling “flip flop” mode USB devices
* Version 1.0.2 (C) Josua Dietze 2009
* Works with libusb 0.1.12 and probably other versions

Looking for target devices …
Found devices in target mode or class (1)
Looking for default devices …
No default device found. Is it connected? Bye.

sekilas kelihatannya langkah yang dilakukan tidak berhasil. Namun kenyataannya NetworkManager applet di kanan atas toolbar ubuntu sudah bisa mendeteksi adanya koneksi Mobile Broadband. Akan muncul window baru yang meminta kita untuk mengisi data. Isi dengan APN :telkomsel , Number:*99# kosongkan username dan password. Selanjutnya buka NetworkManager , beri tanda centang pada kotak ‘connect automatically’ di Mobile bRoadband telkomsel dan klik apply. Terakhir, klik kanan pada ikon NetworkManager dan beri centang pada kotak ‘enable networking‘..

Perlu diingat bahwa tiap kali komputer di-boot vendor dan product ID modem harus di-load terlebih dahulu supaya modem bisa digunakan. Untuk itu selalu lakukan ‘sudo modprobe usbserial vendor=0x1c9e product=0×6061′ (langkah 4) setiap menyalakan komputer, dan selanjutnya baru langkah no 5 (sudo usb_modeswitch).

OK, semoga berhasil

NB:
1.jika diskonek dari koneksi dan sulit terhubung lagi, lepaskan modem ,pasang kembali dan sudo usb_modeswitch
2. metode ini tidak terbatas pada modem advan DT-8 namun seharusnya bisa diterapkan pada setiap modem dengan fitur ‘zero CD’ seperti beberapa tipe modem Ivio, venus, bandluxe, speedup ,dll
3. credit goes to:  discuss@linmodems.org

10 Komentar leave one →
  1. Juli 27, 2010 12:26 am

    bro q dah cobak cara di atas pi g berhasil ni bero ku punyak modem advan dt-8 HT

    setelah nyobak pesanyah kayak gini nih

    root@melengo-laptop:~# sudo modprobe usbserial vendor=0x05c6 product=0×2000
    FATAL: Error inserting usbserial (/lib/modules/2.6.31-22-generic/kernel/drivers/usb/serial/usbserial.ko): Invalid argument
    root@melengo-laptop:~#

    root@melengo-laptop:~# sudo usb_modeswitch

    * usb_modeswitch: tool for controlling “flip flop” mode USB devices
    * Version 1.0.2 (C) Josua Dietze 2009
    * Works with libusb 0.1.12 and probably other versions

    Looking for target devices …
    Found devices in target mode or class (1)
    Looking for default devices …
    Found default devices (1)
    Accessing device 007 on bus 002 …
    Using endpoints 0×05 (out) and 0×87 (in)
    Inquiring device details; driver will be detached …
    Looking for active driver …
    No driver found. Either detached before or never attached
    Could not send INQUIRY message (error -2)
    .
    Device description data (identification)
    ————————-
    Manufacturer: Qualcomm, Incorporated
    Product: BMC CDMA Technologies MSM
    Serial No.: Data Interface
    ————————-
    Looking for active driver …
    OK, driver found (“usbfs”)
    OK, driver “usbfs” detached
    Setting up communication with interface 0 …
    Trying to send the message to endpoint 0×05 …
    Sending the message returned error -2. Trying to continue
    Device is gone, skipping further steps …
    -> Run lsusb to note any changes. Bye.

    root@melengo-laptop:~#

    tolong dong bantuin oe tengkyou.

    • yusuva permalink*
      Juli 27, 2010 9:29 am

      ada saran juga ketika menuliskan ” sudo modprobe usbserial vendor=0x05c6 product=0×2000″ supaya ditulis secara manual dan jangan copy paste..semoga berhasil

    • yusuva permalink*
      Juli 27, 2010 9:45 am

      jika tidak berhasil mungkin paket usbserial belum terinstall..
      bisa coba ini:

      # cd /usr/src/linux-headers-2.6.31-22
      # make xconfig
      USB Support –> USB Serial Converter Support
      pilih USB Generic Serial Driver
      #make all

  2. Juli 29, 2010 2:31 am

    oya modem nih yang versi advan DT8-HT Up to 7.2 . apa g ada solusi lain selain yang di atas tuh….

    lok linux-headers-2.6.31-22 udah ke install pi tetep derivernya g mau di load…?

    ok tengs atas bantuannyah..

  3. Juli 29, 2010 2:43 am

    # cd /usr/src/linux-headers-2.6.31-22
    # make xconfig

    terus kalok yang pakek linux headers tuh pesan nyah kayak gini nih cui…?

    root@melengo-laptop:/usr/src/linux-headers-2.6.31-22# make xconfig

    HOSTCC scripts/basic/fixdep
    HOSTCC scripts/basic/docproc
    HOSTCC scripts/basic/hash
    CHECK qt
    *
    * Unable to find the QT3 installation. Please make sure that
    * the QT3 development package is correctly installed and
    * either install pkg-config or set the QTDIR environment
    * variable to the correct location.
    *
    HOSTCC scripts/kconfig/conf.o
    scripts/kconfig/conf.c: In function ‘conf_askvalue’:
    scripts/kconfig/conf.c:105: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
    scripts/kconfig/conf.c: In function ‘conf_choice’:
    scripts/kconfig/conf.c:307: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
    sed scripts/kconfig/lkc_defs.h ‘s/P(\([^,]*\),.*/#define \1 (\*\1_p)/’
    HOSTCC scripts/kconfig/kconfig_load.o
    HOSTCC scripts/kconfig/kxgettext.o
    SHIPPED scripts/kconfig/zconf.tab.c
    SHIPPED scripts/kconfig/lex.zconf.c
    SHIPPED scripts/kconfig/zconf.hash.c
    HOSTCC scripts/kconfig/zconf.tab.o
    make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck’, needed by `scripts/kconfig/qconf.o’. Stop.
    make: *** [xconfig] Error 2
    root@melengo-laptop:/usr/src/linux-headers-2.6.31-22# make all
    HOSTLD scripts/kconfig/conf
    scripts/kconfig/conf -s arch/x86/Kconfig
    ***
    *** You have not yet configured your kernel!
    *** (missing kernel config file “.config”)
    ***
    *** Please run some configurator (e.g. “make oldconfig” or
    *** “make menuconfig” or “make xconfig”).
    ***
    make[2]: *** [silentoldconfig] Error 1
    make[1]: *** [silentoldconfig] Error 2
    make: *** No rule to make target `include/config/auto.conf’, needed by `include/config/kernel.release’. Stop.
    root@melengo-laptop:/usr/src/linux-headers-2.6.31-22# make xconfig CHECK qt
    *
    * Unable to find the QT3 installation. Please make sure that
    * the QT3 development package is correctly installed and
    * either install pkg-config or set the QTDIR environment
    * variable to the correct location.
    *
    make[1]: *** No rule to make target `scripts/kconfig/.tmp_qtcheck’, needed by `scripts/kconfig/qconf.o’. Stop.
    make: *** [xconfig] Error 2

    root@melengo-laptop:/usr/src/linux-headers-2.6.31-22#

  4. Juli 29, 2010 2:49 am

    pans sekening lsusb nya ginin nih

    root@melengo-laptop:~# lsusb
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 002: ID 04f2:b128 Chicony Electronics Co., Ltd
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 005: ID 05c6:2000 Qualcomm, Inc.
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    root@melengo-laptop:~#

  5. Juli 29, 2010 5:13 pm

    ahirnyah bisa jg mas modem nyan makasih yah ternyata yang paketnya masih kurang di antaranyah

    usb_modeswitch,libwvstreams4.6-base,libwvstreams4.6-extras,libuniconf4.6,wvdial
    tengkyou mas …..?

    and q mau mintak izin tuk mosting di belog gw pi dengan persi sendiri.?
    boleh g hampir mirip ama postingan di sini http://yusuva.wordpress.com/2010/04/16/menggunakan-modem-usb-3g-advan-dt-8-di-ubuntu-linux/

  6. Agustus 24, 2010 6:57 am

    infonya bermanfaat bgts.
    jadi g’ ragu beli modem advan…:)

  7. sam permalink
    Desember 9, 2010 9:30 am

    apakah metode ini bisa juga di aplikasikan pada andriod tab? android 2.1

  8. yusuva permalink*
    Desember 16, 2010 1:32 am

    maaf semuanya, baru ngecek bl0g lagi..:)
    @0zan: ya,ubuntu sejak versi karmic sudah tidak menyediakan paket wvdial lagi secara default.silahkan dibagi ilmunya. glad t0 help :)
    @sam: wah, saya tidak tahu..blum pernah pake andr0id s0alnya.bisa ditanyakan saja k f0rum andr0id-ind0nesia di yah00gr0ups

Tinggalkan Balasan

Fill in your details below or click an icon to log in:

WordPress.com Logo

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

Twitter picture

You are commenting using your Twitter account. Log Out / Ubah )

Facebook photo

You are commenting using your Facebook account. Log Out / Ubah )

Connecting to %s

Ikuti

Get every new post delivered to your Inbox.