• “DO IT YOU RSELF”. (Linus Torvald).
  • What I doubt rather strongly is that it will ever have the kind of impact that the people involved in virtualization want it to have (Linus Torvald).
  • Microsoft itu ngga jahat kok, mereka cuman bikin sistim operasi yang amburadul aja (Linus Torvald).
  • Saat ini mungkin kebanyakan dari Anda sedang benar-benar bosan di liburan natal. Mau ngga bosen? Silahkan coba kernel 2.6.15-rc7. Semua toko akan tutup, dan benar-benar tidak ada lagi yang lebih indah untuk dilakukan .. (Linus Torvald).

How to install CDMA Modem ZTE MG880 on Ubuntu

Note : Make sure wvdial has been installed

1. Plugin the usb modem
2. Open terminal, 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 vendor id and product id:

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. Edit wvdial.conf, command : vi /etc/wvdial.conf

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

10. Run :
sudo dhclient
sudo 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 xx.xx.xx.xx
--> remote IP address xx.xx.xx.xx
--> primary DNS address xx.xx.xx.xx
--> secondary DNS address xx.xx.xx.xx

12. If you want to disconnect just do:

ctrl+c

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

0 komentar:

Posting Komentar