Difference between revisions of "Instalasi USB Modem ZTE MF620 di Linux Ubuntu"

From OnnoWiki
Jump to navigation Jump to search
Line 2: Line 2:
 
Kalau ada PIN, tolong dibuang, karena PIN akan membuat pusing proses instalasi di Linux.
 
Kalau ada PIN, tolong dibuang, karena PIN akan membuat pusing proses instalasi di Linux.
  
 +
Install usb_modeswitch
  
----
+
  sudo apt-get install usb-modeswitch libusb-0.1-4 libusb-dev
 
 
 
 
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
 
 
 
# apt-get install libusb-0.1-4 libusb-dev
 
# apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
 
 
 
# 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/
 
 
 
  
 +
Pastikan USB modem ZTE MF620 terdeteksi
  
----
+
sudo lsusb
  
 +
akan keluar
  
Masuk sebagai root
+
  Bus 006 Device 002: ID 19d2:2000 ONDA Communication S.p.A.
 
 
  $ sudo su -
 
atau
 
$ su -
 
 
 
 
 
----
 
  
 
Edit file /etc/udev/rules.d/15-zte-mf620.rules
 
Edit file /etc/udev/rules.d/15-zte-mf620.rules
  
  # vi /etc/udev/rules.d/15-zte-mf620.rules
+
  sudo vi /etc/udev/rules.d/15-zte-mf620.rules
  
 
Isi
 
Isi
Line 51: Line 22:
 
  #---------------------------------------------------------------------------------
 
  #---------------------------------------------------------------------------------
 
  ACTION!="add", GOTO="ZTE_End"
 
  ACTION!="add", GOTO="ZTE_End"
 
+
 
  # Is this the ZeroCD device?
 
  # Is this the ZeroCD device?
 
  SUBSYSTEM=="usb", SYSFS{idProduct}=="2000",
 
  SUBSYSTEM=="usb", SYSFS{idProduct}=="2000",
 
  SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"
 
  SYSFS{idVendor}=="19d2", GOTO="ZTE_ZeroCD"
 
+
 
  # Is this the actual modem?
 
  # Is this the actual modem?
 
  SUBSYSTEM=="usb", SYSFS{idProduct}=="0001",
 
  SUBSYSTEM=="usb", SYSFS{idProduct}=="0001",
 
  SYSFS{idVendor}=="19d2", GOTO="ZTE_Modem"
 
  SYSFS{idVendor}=="19d2", GOTO="ZTE_Modem"
 
+
 
  LABEL="ZTE_ZeroCD"
 
  LABEL="ZTE_ZeroCD"
 
  # This is the ZeroCD part of the card, remove
 
  # This is the ZeroCD part of the card, remove
Line 66: Line 37:
 
  RUN+="/sbin/rmmod usb_storage"
 
  RUN+="/sbin/rmmod usb_storage"
 
  RUN+="/sbin/usb_modeswitch -d 1 -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0001"
 
  RUN+="/sbin/usb_modeswitch -d 1 -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0001"
 
+
 
  LABEL="ZTE_Modem"
 
  LABEL="ZTE_Modem"
 
  # This is the Modem part of the card, let's
 
  # This is the Modem part of the card, let's
Line 75: Line 46:
 
  # able to use the usb serial devices.
 
  # able to use the usb serial devices.
 
  MODE="660", GROUP="dialout"
 
  MODE="660", GROUP="dialout"
 
+
 
  LABEL="ZTE_End"
 
  LABEL="ZTE_End"
 
  #------------------------ eof ---------------------------------------
 
  #------------------------ eof ---------------------------------------
Line 185: Line 156:
  
 
  # wvdial xl3g
 
  # wvdial xl3g
 
 
 
  
  
 
==Pranala Menarik==
 
==Pranala Menarik==
  
 +
* [[Instalasi USB mode switch untuk USB Modem yang ada Storage]]
 
* [[Wireless Internet Berbasis Selular]]
 
* [[Wireless Internet Berbasis Selular]]
 
* [[Wireless Internet]]
 
* [[Wireless Internet]]

Revision as of 12:04, 18 January 2010

Pastikan SIM Card yang digunakan tidak ada PIN-nya. Kalau ada PIN, tolong dibuang, karena PIN akan membuat pusing proses instalasi di Linux.

Install usb_modeswitch

sudo apt-get install usb-modeswitch libusb-0.1-4 libusb-dev

Pastikan USB modem ZTE MF620 terdeteksi

sudo lsusb

akan keluar

Bus 006 Device 002: ID 19d2:2000 ONDA Communication S.p.A. 

Edit file /etc/udev/rules.d/15-zte-mf620.rules

sudo 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 ---------------------------------------




Kalau udev gagal lakukan secara manual

# rmmod usb_storage
# usb_modeswitch -d 1 -v 0x19d2 -p 0x2000 -V 0x19d2 -P 0x0001
# modprobe usbserial vendor=0x19d2 product=0x0001

Lakukan beberapa kali, sambil cabut & masukan USB Modem sampai

# lsusb

keluar

Bus 001 Device 006: ID 19d2:0001

Kemudian jika dilakukan

# ls -la /dev/ttyU*

Harus keluar

crw-rw---- 1 root dialout 188, 0 2008-03-20 09:46 /dev/ttyUSB0
crw-rw---- 1 root dialout 188, 1 2008-03-20 09:43 /dev/ttyUSB1
crw-rw---- 1 root dialout 188, 2 2008-03-20 09:43 /dev/ttyUSB2



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]
Modem = /dev/ttyUSB0
Baud = 3600000
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2
Init3 = AT+CGDCONT=1,"IP","indosat3g"
Area Code =
Phone = *99#
Username =
Password =
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1 

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


Pranala Menarik