Anda di halaman 1dari 10

Langkah-langkah konfigurasi 3G modem Huawei E220 pada Linux Cek keberadaan modem menggunakan perintah dmesg rito@rito:~> dmesg

| grep usb
usb 1-2: new full speed USB device using uhci_hcd and address 2 usb 1-2: new device found, idVendor=12d1, idProduct=1003 usb 1-2: new device strings: Mfr=1, Product=2, SerialNumber=0 usb 1-2: Product: HUAWEI Mobile usb 1-2: Manufacturer: HUAWEI Technologies usb 1-2: configuration #1 chosen from 1 choice usb-storage: device found at 2 usb-storage: waiting for device to settle before scanning usbcore: registered new driver usb-storage usb-storage: device scan complete tabel 1. dmesg

Ketika kita grep, modem kita dikenali sebagai : HUAWEI Mobile idVendor=12d1 idProduct=1003 pada opensuse10.2, menggunakan kernel 2.6.18, dimana pada kernel ini, modem juga dianggap sebagai usb-storage. Karenanya, perlu sedikit modifikasi pada bagian kernel (hacking kernel ....) ^_^

Dengan menggunakan root, edit file /etc/modprobe.conf.local Pada informasi di atas kita telah mendapatkan informasi vendor dan product. Kedua informasi ini kita butuhkan untuk konfigurasi lebih lanjut. rito@rito:~> su Password: rito:~ # rito:~ # vi /etc/modprobe.conf.local
# # please add local extensions to this file # #add by rito options usbserial vendor=0x12d1 product=0x1003 options usb_storage delay_use=0 tabel 2. /etc/modprobe.conf.local

Langkah selanjutnya menambahkan parameter usbserial pada kernel rito:~ # vi /etc/sysconfig/kernel


#add by rito MODULES_LOADED_ON_BOOT="usbserial" tabel 3. Kernel akan meload modul ubserial

Agar tidak perlu restart, langkah selanjutnya adalah memanggil modul usbserial rito:~ # modprobe usbserial rito:~ #

Selanjutnya, download file huaweiAktBbo-i386.out di http://www.kanoistika.sk/bobovsky/archiv/umts/ Kemudian, ubah menjadi executable files, lalu copikan file tersebut ke dalam direktory /bin rito:~ # chmod +x /media/e/tools/linux\ util/modem3g/huaweiAktBbo-i386.out rito:~ # cp /media/e/tools/linux\ util/modem3g/huaweiAktBbo-i386.out /bin

Jalankan huaweiAktBbo-i386.out rito:~ # huaweiAktBbo-i386.out Hladam HUAWEI E220 a prepnem na modem - bbo 06 4 set feature request returned 0 Prepnute-OK, Mas ttyUSB0 ttyUSB1 (cez usbserial vendor=0x12d1 product=0x1003) pozri /proc/bus/usb/devices

Langkah selanjutnya adalah menggunakan tool wvial,namun sebelumnya, ada 2 paket yang perlu kita install terlebih dulu, yaitu huawei, dan huawei stat. Download paketnya di : http://oozie.fm.interia.pl/src/huawei.tar.bz2 http://oozie.fm.interia.pl/src/he220stat.tar.bz2 setelah di download lakukan kompilasi, berikut langkah-langkahnya: rito:~ # tar -xvjf /media/e/tools/linux\ util/modem3g/huawei.tar.bz2 huawei/ huawei/conf/ huawei/conf/huawei-e220 huawei/conf/wvdial-huawei.conf huawei/conf/huawei-e220.chat huawei/Makefile huawei/files/ huawei/files/huawei-mobile.sh huawei/files/99-huawei.rules huawei/PROVIDERS huawei/README

huawei/VERSION rito:~ # rito:~ # cd huawei/ rito:~/huawei # rito:~/huawei # make install_suse Installing sample configuration for Linux cp conf/wvdial-huawei.conf /etc/ mkdir -p /etc/chatscripts/ cp conf/huawei-e220.chat /etc/chatscripts/ cp conf/huawei-e220 /etc/ppp/peers/ cp files/99-huawei.rules /etc/udev/rules.d/ cp files/huawei-mobile.sh /lib/udev/ udevcontrol reload_rules Go ahead and replug your HUAWEI modem. rito:~/huawei #

Setelah huawei terinstall, kita akan menginstall paket statistik huawei, rito:~ # tar -xvjf /media/e/tools/linux\ util/modem3g/he220stat.tar.bz2 he220stat-0x02/ he220stat-0x02/flowreport.c he220stat-0x02/init_ncurses.c he220stat-0x02/modechange.c he220stat-0x02/LICENSE he220stat-0x02/rssi.c he220stat-0x02/he220ui.h he220stat-0x02/xhe220stat he220stat-0x02/Makefile.in he220stat-0x02/CHANGELOG he220stat-0x02/configure he220stat-0x02/README he220stat-0x02/main.c rito:~ # rito:~ # cd he220stat-0x02/ rito:~/he220stat-0x02 # Lakukan kompilasi, pastikan C Compiler, serta ncurse-developer telah ada di opensuse10.2 kita rito:~/he220stat-0x02 # rpm -qa | grep gcc gcc41-gij-4.1.2_20061115-7 gcc41-c++-4.1.2_20061115-5 gcc-c++-4.1.3-29 libgcc41-4.1.2_20061115-5 gcc-gij-4.1.3-29 gcc-info-4.1.3-29 gcc41-4.1.2_20061115-5 gcc41-info-4.1.2_20061115-5 gcc-4.1.3-29

gcc41-java-4.1.2_20061115-5 gcc-java-4.1.3-29 rito:~/he220stat-0x02 # rpm -qa | grep ncurse ncurses-5.5-42 ncurses-devel-5.5-42 yast2-ncurses-2.14.4-3 rito:~/he220stat-0x02 # rito:~/he220stat-0x02 # rito:~/he220stat-0x02 # ./configure checking for gcc... gcc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether gcc accepts -g... yes checking for gcc option to accept ISO C89... none needed checking how to run the C preprocessor... gcc -E checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking fcntl.h usability... yes checking fcntl.h presence... yes checking for fcntl.h... yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking termios.h usability... yes checking termios.h presence... yes checking for termios.h... yes checking for unistd.h... (cached) yes checking for stdlib.h... (cached) yes checking for GNU libc compatible malloc... yes configure: creating ./config.status config.status: creating Makefile rito:~/he220stat-0x02 # rito:~/he220stat-0x02 # make

gcc -Wall -lncurses init_ncurses.c main.c flowreport.c rssi.c modechange.c -o he220stat rito:~/he220stat-0x02 # rito:~/he220stat-0x02 # make install chmod +x ./xhe220stat cp *he220stat /usr/local/bin rito:~/he220stat-0x02 #

Done, sampai di sini, ritual instalasi sudah selesai. tahap selanjutnya adalah mengkonfigurasi wvdial. edit file sesuai dengan kebutuhan kita rito:~/he220stat-0x02 # vi /etc/wvdial-huawei.conf [Dialer Defaults] Modem = /dev/ttyUSB0 Baud = 3600000 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 Init3 = Area Code = Phone = *99# Username = rito Password = *** Ask Password = 0 Dial Command = ATDT Stupid Mode = 1 Compuserve = 0 Force Address = Idle Seconds = 0 DialMessage1 = DialMessage2 = ISDN = 0 Auto DNS = 1

Sekarang, tiba saat yang ditunggu-tunggu, yaitu menjalankan modem 3G kita, jika semuanya berjalan normal, maka muncul baris berikut : rito:~/he220stat-0x02 # wvdial --config /etc/wvdial-huawei.conf --> WvDial: Internet dialer version 1.54.0 --> Cannot get information for serial port. --> Initializing modem. --> Sending: ATZ ATZ OK --> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 ATQ0 V1 E1 S0=0 &C1 &D2 OK --> Modem initialized. --> Sending: ATDT*99#

--> Waiting for carrier. ATDT*99# CONNECT --> Carrier detected. Starting PPP immediately. --> Starting pppd at Thu Jul 12 23:04:14 2007 --> pid of pppd: 12531 --> Using interface ppp0 --> local IP address 124.81.146.153 --> remote IP address 10.64.64.64 --> primary DNS address 202.155.0.10 --> secondary DNS address 202.155.0.15 --> Script /etc/ppp/ip-up run successful --> Default route Ok. --> Nameserver (DNS) Ok. --> Connected... Press Ctrl-C to disconnect Cek, apakah kita sudah mendapatkan ip rito@rito:~> /sbin/ifconfig eth0 Link encap:Ethernet HWaddr 00:90:F5:54:23:CC UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 b) TX bytes:0 (0.0 b) Interrupt:169 Base address:0x2000 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 inet6 addr: ::1/128 Scope:Host UP LOOPBACK RUNNING MTU:16436 Metric:1 RX packets:40 errors:0 dropped:0 overruns:0 frame:0 TX packets:40 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 RX bytes:2608 (2.5 Kb) TX bytes:2608 (2.5 Kb) Link encap:Point-to-Point Protocol inet addr:124.81.146.153 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:11 errors:0 dropped:0 overruns:0 frame:0 TX packets:10 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:540 (540.0 b) TX bytes:272 (272.0 b)

ppp0

rito@rito:~> tampak, kita telah mendapatkan ip dari provider Indosatm2, melalui protokol PPP, yaitu 124.81.146.153

Selanjutnya, kita coba menggunakan browser

gambar 1. Membuka detik.com

gambar 2. Hasil tes koneksi 469,5

gambar3. Hasil Koneksi menggunakan speedtest.net Keterangan: pada saat melakukan tes, lampu 3g Modem berwarna seperti ini : tempat melakukan tes kamar kos, di daerah kebagusan 1 Jaksel (^_^) OS yang digunakan adalah : rito:~/he220stat-0x02 # uname -a Linux rito 2.6.18.2-34-default #1 SMP Mon Nov 27 11:46:27 UTC 2006 i686 i686 i386 GNU/Linux rito:~/he220stat-0x02 # OPENSUSE10.2 Kesimpulan 3G modem huawei dapat dijalankan dengan linux opensuse10.2 Untuk melihat statistik 3g modem kita, jalankan perintah #he220stato Tutorial ini juga dapat digunakan pada distro linux yang lain. Saya telah mencoba menginstallnya di fedora.

Karena koneksi menggunakan provider indosatm2, maka sebaiknya dns servernya di set ke 202.155.0.10 dan 202.155.0.15, serta parameter Auto DNS = 1 pada /etc/wvdial-huawei.conf di set menjadi Auto DNS = 0

Anda mungkin juga menyukai