Senin, 11 Agustus 2008

Instalasi Modem ZTE MG880 on Ubuntu...

1. Plugin the usb modem
2. Open Konsole, login as root, type this command : dmesg
3. If the output like this :

[ 1283.461718] usb 4-1: new full speed USB device using uhci_hcd and address 2
[ 1283.502575] usb 4-1: device descriptor read/64, error -71
[ 1283.524630] usb 4-1: device descriptor read/64, error -71
[ 1283.544280] usb 4-1: new full speed USB device using uhci_hcd and address 3
[ 1283.559188] usb 4-1: device descriptor read/64, error -71
[ 1283.578433] usb 4-1: device descriptor read/64, error -71
[ 1283.594320] usb 4-1: new full speed USB device using uhci_hcd and address 4
[ 1283.645426] usb 4-1: device not accepting address 4, error -71
[ 1283.659564] usb 4-1: new full speed USB device using uhci_hcd and address 5
[ 1283.707925] usb 4-1: device not accepting address 5, error -71
[ 1283.784129] usb 4-1: new full speed USB device using uhci_hcd and address 6
[ 1283.804206] usb 4-1: configuration #1 chosen from 1 choice

4. Type this command to find vendorid and productid: lsusb -v
5. The output for ZTE MG880:

Bus 004 Device 006: ID 19d2:fffd
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 1.01
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 16
idVendor 0x19d2
idProduct 0xfffd
bcdDevice 0.00
iManufacturer 1 ZTE, Incorporated
iProduct 2 ZTE CDMA Tech
iSerial 0
bNumConfigurations 1

6. Run modprobe to create ttyUSB* devices

command : modprobe usbserial vendor=0x19d2 product=0xfffd

7. Do "dmesg"

8. The output:

[ 1390.511632] usbcore: registered new interface driver usbserial
[ 1390.511663] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[ 1390.511697] usbserial_generic 4-1:1.0: generic converter detected
[ 1390.511829] usb 4-1: generic converter now attached to ttyUSB0
[ 1390.511843] usbserial_generic 4-1:1.1: generic converter detected
[ 1390.511930] usb 4-1: generic converter now attached to ttyUSB1
[ 1390.511943] usbserial_generic 4-1:1.2: generic converter detected
[ 1390.512027] usb 4-1: generic converter now attached to ttyUSB2
[ 1390.512043] usbcore: registered new interface driver usbserial_generic
[ 1390.512047] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial Driver core

9. Create wvdial.conf, command : vi /etc/wvdial.conf

[Dialer Defaults]
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Password = indosat
Phone = #777
Modem Type = Analog Modem
Stupid Mode = 1
SetVolume = 0
Baud = 9600
New PPPD = yes
Modem = /dev/ttyUSB0
ISDN = 0
Username = starone
Carrier Check = no
FlowControl = Hardware(CRTSCTS)

10. Run wvdial

11. The output should be like below:

--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATZ
ATZ
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
OK
--> Modem initialized.
--> Sending: ATDT#777
--> Waiting for carrier.
ATDT#777
CONNECT
--> Carrier detected. Starting PPP immediately.
--> Starting pppd at Tue Aug 12 12:54:00 2008
--> Pid of pppd: 8016
--> Using interface ppp0
--> local IP address 10.242.97.124
--> remote IP address 10.64.64.64
--> primary DNS address 202.152.165.36
--> secondary DNS address 202.93.40.174

12. If you want to disconnect just do: CTRL+c

13. Now you can connect to web...Happy Browsing..

Tidak ada komentar: