Instalasi USB Modem ZTE MF620 di Linux Ubuntu
Revision as of 09:21, 20 March 2008 by Onnowpurbo (talk | contribs) (New page: Pastikan SIM Card yang digunakan tidak ada PIN-nya. Kalau ada PIN, tolong dibuang, karena PIN akan membuat pusing proses instalasi di Linux. ---- Ambil software untuk melakukan mode sw...)
Pastikan SIM Card yang digunakan tidak ada PIN-nya. Kalau ada PIN, tolong dibuang, karena PIN akan membuat pusing proses instalasi di Linux.
Ambil software untuk melakukan mode switching di
http://www.draisberghof.de/usb_modeswitch/ http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.3.tar.bz2 http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-0.9.4beta2.tar.bz2
Contoh konfigurasi mode switching dapat dilihat di
http://www.draisberghof.de/usb_modeswitch/usb_modeswitch.conf
Compile usb mode switch
# cp -Rf usb_modeswitch-0.9.4beta2.tar.bz2 /usr/local/src/ # cd /usr/local/src # tar jxvf usb_modeswitch-0.9.4beta2.tar.bz2 # cd /usr/local/src/usb_modeswitch-0.9.4beta2 # gcc -l usb -o usb_modeswitch usb_modeswitch.c # cp usb_modeswitch /sbin/ # cp usb_modeswitch.conf /etc/
Masuk sebagai root
$ sudo su -
atau
$ su -
Edit file /etc/udev/rules.d/15-zte-mf620.rules
# vi /etc/udev/rules.d/15-zte-mf620.rules
Isi
#--------------------------------------------------------------------------------- ACTION!="add", GOTO="ZTE_End"
# Is this the ZeroCD device? SUBSYSTEM=="usb", SYSFS{idProduct}=="2000", SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"
# Is this the actual modem? SUBSYSTEM=="usb", SYSFS{idProduct}=="0001", SYSFS{idVendor}=="19d2", GOTO="ZTE_Modem"
LABEL="ZTE_ZeroCD" # This is the ZeroCD part of the card, remove # the usb_storage kernel module so # it does not get treated like a storage device RUN+="/sbin/rmmod usb_storage" RUN+="/sbin/usb_modeswitch -d 1 -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0001"
LABEL="ZTE_Modem" # This is the Modem part of the card, let's # load usbserial with the correct vendor # and product ID's so we get our usb serial devices RUN+="/sbin/modprobe usbserial vendor=0x19d2 product=0x0001", # Make users belonging to the dialout group # able to use the usb serial devices. MODE="660", GROUP="dialout"
LABEL="ZTE_End" #------------------------ eof ---------------------------------------
Install wvdial
# apt-get install wvdial
Siapkan file /etc/wvdial.conf agar dapat menelepon ke provider, bunyinya kira-kira
INDOSAT3G
[Dialer Defaults] Phone = Username = Password = New PPPD = yes
[Dialer indosat3g] Phone = *99***1# Username = Password = Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATE0V1&D2&C1S0=0+IFC=2,2 ISDN = 0 Modem Type = Analog Modem Init5 =AT+CGDCONT=1,"IP","indosat3g";
Dial menggunakan
# wvdial indosat3g
XL3G
[Dialer Defaults] Phone = Username = Password = New PPPD = yes
[Dialer xl3g] Phone = *99***1# Username = xlgprs Password = proxl Stupid Mode = 1 Dial Command = ATDT Modem = /dev/ttyUSB0 Baud = 460800 Init2 = ATZ Init3 = ATE0V1&D2&C1S0=0+IFC=2,2 ISDN = 0 Modem Type = Analog Modem Init5 =AT+CGDCONT=1,"IP","www.xlgprs.net";
Dial menggunakan
# wvdial xl3g