Iseng coba-coba pas ada client yang berbaik hati minjemin USB modem 3G GlobeSurfer
Setelah googling dan ketemu beberapa website yang membahas hal ini, aku coba-coba sendiri dan ternyata gak susah-susah amat.
Aku pakai laptop P4 dengan Ubuntu Dapper Drake (kernel 2.4.15-28) dan software icon_switch.c yang bisa didownload dari website ini.
Buka file tersebut dengan text editor. Cari dan ganti product id yang ada dalam file tersebut dari 6600 menjadi 6901.
Untuk meng-compile icon_switch.c, diperlukan libusb
#apt-get libusb-dev libusb++-dev
Compile dengan perintah
cc -l usb -o icon_switch icon_switch.c
Proses compile tersebut akan menghasilkan file binary yang bernama icon_switch, pindahkan file tersebut ke direktori /usr/sbin.
Buat file yang berisi beberapa aturan yang dibutuhkan untuk men-switch mode device menjadi mode modem
$ sudo gedit /etc/udev/rules.d/10-local.rules
Isinya :
BUS==”usb”, SYSFS{idProduct}==”1000″, SYSFS{idVendor}==”05c6″, RUN+=”/usr/sbin/icon_switch”
BUS==”usb”, SYSFS{idProduct}==”6901″, SYSFS{idVendor}==”0af0″, RUN+=”/sbin/modprobe usbserial vendor=0×0af0 product=0×6901″
Check ulang apakah GlobeSurfer sudah dalam mode modem dengan menjalankan perintah :
# icon_switch
* icon_switch: tool for changing USB mode of Option Icon 3G+ box
* (C) Josua Dietze 2006
* Works with libusb 0.1.12 and probably other versionsLooking for Option Icon USB 3G+ box …
Found box in modem mode. Switching not necessary. Bye
Jika sudah ada keluaran seperti itu berarti sudah sukses switching mode-nya.
Walaupun device GlobeSurfer sudah berjalan pada mode modem, tetapi belum terdefinisikan memakai port mana sehingga mesin Linux Anda harus di reboot dulu. INGAT : jangan membiarkan device GlobeSurfer masih terkoneksi ke port USB pada saat sedang proses reboot.
Setelah mesin linux Anda sudah kembali berjalan, koneksikan lagi modem tersebut ke salah satu port USB. Check dengan perintah :
# lsusb
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 007: ID 0af0:6901 Option
Bus 002 Device 001: ID 0000:0000
Lalu check juga pada syslog, harus ada keluaran log yang menunjukkan modem tersebut memakai port mana :
Sep 1 10:57:35 localhost kernel: [17180542.916000] usb 2-1: new full speed USB device using ohci_hcd and address 6
Sep 1 10:57:35 localhost kernel: [17180543.132000] scsi2 : SCSI emulation for USB Mass Storage devices
Sep 1 10:57:35 localhost kernel: [17180543.132000] usb-storage: device found at 6
Sep 1 10:57:35 localhost kernel: [17180543.132000] usb-storage: waiting for device to settle before scanning
Sep 1 10:57:36 localhost kernel: [17180543.872000] usb 2-1: USB disconnect, address 6
Sep 1 10:57:37 localhost kernel: [17180545.184000] usb 2-1: new full speed USB device using ohci_hcd and address 7
Sep 1 10:57:38 localhost kernel: [17180545.400000] usbserial_generic 2-1:1.0: generic converter detected
Sep 1 10:57:38 localhost kernel: [17180545.400000] usb 2-1: generic converter now attached to ttyUSB0
Sep 1 10:57:38 localhost kernel: [17180545.404000] usbserial_generic 2-1:1.1: generic converter detected
Sep 1 10:57:38 localhost kernel: [17180545.404000] usb 2-1: generic converter now attached to ttyUSB1
Sep 1 10:57:38 localhost kernel: [17180545.408000] usbserial_generic 2-1:1.2: generic converter detected
Sep 1 10:57:38 localhost kernel: [17180545.408000] usb 2-1: generic converter now attached to ttyUSB2
Disini dapat dilihat bahwa port ttyUSB0 s/d 2 semua dipakai oleh modem ini.
Deteksi Modem sudah OK
Tinggal bikin script ppp atau wvdial-nya, tergantung mau pakai yang mana ![]()
Contoh script ppp (untuk operator lain tinggal sesuaikan APN, login name dan password-nya saja) :
# vi /etc/ppp/peers/im3
noauth
connect “usr/sbin/chat -v -f /etc/chatscripts/im3-connect”
/dev/ttyUSB0
115200
defaultroute
user “gprs”
password “im3″
usepeerdns
Contoh isi file /etc/chatscripts/im3-connect :
TIMEOUT 60
ABORT ERROR
ABORT BUSY
ABORT VOICE
ABORT “NO CARRIER”
ABORT “NO DIALTONE”
ABORT “NO DIAL TONE”
ABORT “NO ANSWER”
“” “ATZ”
“” “AT&FH0M0″
OK-AT-OK “ATDT*99#”
TIMEOUT 75
CONNECT
Untuk melakukan koneksi dengan menggunakan metode ppp, ketikkan perintah
pon im3
Untuk mengakhirinya ketikkan
poff im3
Contoh script wvdial.conf :
# vi /etc/wvdial.conf
[Dialer im3gprs]
Init1 = ATZ
Init2 = AT+CGDCONT=1,”IP”,”www.indosat-m3.net”
Phone = *99#
Modem = /dev/ttyUSB0
Username = gprs
Password = im3
Baud = 115200
Flow Control = CRTSCTS
Stupid Mode = on
Dial Command = ATDT
Auto DNS = 1
Untuk melakukan koneksi menggunakan wvdial, ketikkan perintah :
wvdial im3gprs
Untuk mengakhiri koneksi menggunakan metode wvdial, tekan Ctrl+C pada terminal window.
Well….akhir kata, happy surfing










i’ve been looking for this.
thanks a lot
-adi-