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

From OnnoWiki
Jump to navigation Jump to search
Line 130: Line 130:
  
 
  [Dialer indosat3g]
 
  [Dialer indosat3g]
  Phone = *99***1#
+
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 =
 
  Username =
 
  Password =
 
  Password =
 +
Ask Password = 0
 +
Dial Command = ATDT
 
  Stupid Mode = 1
 
  Stupid Mode = 1
  Dial Command = ATDT
+
  Compuserve = 0
  Modem = /dev/ttyUSB0
+
  Force Address =
  Baud = 460800
+
  Idle Seconds = 0
  Init2 = ATZ
+
  DialMessage1 =
  Init3 = ATE0V1&D2&C1S0=0+IFC=2,2
+
  DialMessage2 =
 
  ISDN = 0
 
  ISDN = 0
  Modem Type = Analog Modem
+
  Auto DNS = 1  
Init5 =AT+CGDCONT=1,"IP","indosat3g";
 
 
 
  
 
Dial menggunakan
 
Dial menggunakan

Revision as of 10:25, 20 March 2008

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

# 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/




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




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