Thursday, June 28, 2012

Instal Modem Advan DT8-HT di ubuntu

Berikut ini langkah-langkah yang harus di jalankan saat instalasi modem Advan DT8-HT Telkomsel Flash pada Ubuntu anda :
  1. Tancapkan modem Advan anda pada port USB, lalu setelah beberapa detik silakan ketik ini :
     digit@digit-laptop:~$ lsusb
     Bus xxx Device xxx: ID 19f5:9013
    
    Disana anda akan melihat hasilnya seperti ini –> 19f5:9013
    Vendor ID = 0X19f5
    Product ID = 0X9013
  2. Edit file /etc/usb-modeswitch.conf
         digit@digit-laptop:~$ sudo nano /etc/usb-modeswitch.conf
    
    Semua baris di awal di beri tanda #
    Lalu copy paste script di bawah ini :
     ########################################################
     DisableSwitching=0
     EnableLogging=1
    
     # /etc/usb_modeswitch.conf
     #
     # Advan DT8-HT
     #
    
     DefaultVendor = 0X19f5
     DefaultProduct = 0X9013
    
     TargetVendor = 00X19f5
     TargetProduct = 0X9013
    
     MessageContent="5553424312345678c00000008000069f030000000000000000000000000000"
     ########################################################
    
  3. Lalu buat file /etc/udev/rules.d/advan.rules
     digit@digit-laptop:~$ sudo nano /etc/udev/rules.d/advan.rules
    
     ########################################################
     # /etc/udev/rules.d/advan.rules
     #
     # Advan Modem   
     #
     SUBSYSTEM==”usb”, SYSFS{idVendor}==”19f5″,
     SYSFS{idProduct}==”9013″, RUN+="/usr/sbin/usb_modeswitch -default-  vendor 0X19f5 -default-product 0X9013 -message-content  5553424312345678c00000008000069f030000000000000000000000000000"
     ########################################################
    
  4. Buat file /etc/wvdial.conf
    digit@digit-laptop:~$ sudo nano /etc/wvdial.conf
     ########################################################
     [Dialer telkomsel]
     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 = *99#
     Modem = /dev/ttyUSB0
     Baud = 460800
     ########################################################
    
  5. Tes wvdial
     digit@digit-laptop:~$ sudo wvdialconf
    
  6. Agar mudah, kita buat shell script yang otomatis menjalankan perintah-perintah di atash. Buat file dengan nama modem.sh di Desktop anda
     digit@digit-laptop:~$ nano /home/digit/Desktop/modem.sh
    
    Lalu isi file modem.sh seperti ini :
     ########################################################
     #!/bin/bash
     sudo eject /dev/sr1
     sleep 2
     sudo modprobe usbserial vendor=0X19f5 product=0X9013
     sleep 2
     sudo wvdial telkomsel
     ########################################################
    
  7. Beri akses Executable :
     digit@digit-laptop:~/Desktop$ chmod +x modem.sh
    
  8. Jika ingin menjalankan otomatis cukup jalankan file modem.sh tersebut :
     root@digit-laptop:~/Desktop# ./modem.sh
    

No comments:

Post a Comment