header image

How to set-up or install ZTE MG880 USB Modem in Ubuntu Jaunty 9.04

Posted by: | February 9, 2010 | No Comment |

1. Plug your modem into usb port.

2. To make sure if your modem has been detected by your ubuntu, use this command in your terminal.

standy@ubuntu:~$ lsusb

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 004: ID 04f2:b098 Chicony Electronics Co., Ltd

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 003: ID 19d2:fff5

Bus 003 Device 002: ID 1bcf:0007 Sunplus Innovation Technology Inc.

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

In here, you can see your modem vendor id and product id. 19d2:fff5 is your modem ID as CDROM storage, not as MODEM. ZTE modem has 2 function, as storage (include Windows Driver) or as modem itself. To use this modem, we must change its mode to the Modem mode with use USB_ModeSwitch – Activating Switchable USB Devices on Linux.

3. After that, we must download that software from here : http://www.draisberghof.de/usb_modeswitch/usb_modeswitch-1.0.7.tar.bz2

After you have that file, you must extract its content by using extraction software (right click that file => extract here). The content of that file is included these files :

80-usb_modeswitch.rules

README

usb_modeswitch.d

COPYING

usb_modeswitch

usb_modeswitch.h

Makefile

usb_modeswitch.c

usb_modeswitch.sh

Makefile.integrated

usb_modeswitch.conf

usb_modeswitch.tcl

by using Nautilus (type “sudo nautilus” in terminal), you must copy these files (red color files only) into :

usb_modeswitch => /usr/sbin

usb_modeswitch.conf => /etc

4. Next you must set or edit usb_modeswitch.conf with gedit.

You must search words line contain like this :

########################################################

# ZTE AC8710

# ZTE AC2726

# and others

#

# Many new ZTE devices use this sequence. There are

# several ID combinations; check your default

#

# Contributor: Michael Khurtsiya, Amit Pundir and others

DefaultVendor= 0x19d2

DefaultProduct= 0xfff5

TargetVendor= 0x19d2

TargetProduct= 0xfffe

# No. 2

;DefaultVendor= 0x19d2

;DefaultProduct= 0xfff6

;TargetVendor= 0x19d2

;TargetProduct= 0xfff1

# No. 3

;DefaultVendor= 0x19d2

;DefaultProduct= 0xfff5

;TargetVendor= 0x19d2

;TargetProduct= 0xfff1

# only for reference and 0.x versions

# MessageEndpoint=0x05

MessageContent=”5553424312345678c00000008000069f030000000000000000000000000000″

———————————————————————

You must set yours to be like that. The difference only in red words line, with delete ; symbol.

Save and exit from gedit.

5. Now on terminal you can type :

standy@ubuntu:~$ sudo usb_modeswitch

Looking for target devices …

No devices in target mode or class found

Looking for default devices …

Found default devices (1)

Accessing device 003 on bus 003 …

Using endpoints 0x05 (out) and 0x82 (in)

Inquiring device details; driver will be detached …

Looking for active driver …

No driver found. Either detached before or never attached

SCSI inquiry data (for identification)

————————-

Vendor String: ZTE

Model String: USB Storage FFFE

Revision String: 2.31

————————-

USB description data (for identification)

————————-

Manufacturer: ZTE, Incorporated

Product: USB Storage

Serial No.: 000000000002

————————-

Setting up communication with interface 0 …

Trying to send the message to endpoint 0x05 …

OK, message successfully sent

Device is gone, skipping any further commands

-> Run lsusb to note any changes. Bye.

standy@ubuntu:~$ lsusb

Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 001 Device 004: ID 04f2:b098 Chicony Electronics Co., Ltd

Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

Bus 003 Device 004: ID 19d2:fffe

Bus 003 Device 002: ID 1bcf:0007 Sunplus Innovation Technology Inc.

Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

6. Oke … your modem is a modem now … or in modem mode … In here, you can see your modem vendor id and product id. 19d2:fffe is your modem ID as MODEM.

Next, you must modprobe your modem as usbserial into kernel … (different method with other ubuntu version) with “sudo gedit /boot/grub/menu.lst” in terminal.

Compare, add and edit yours to be like this :

## ## End Default Options ##

title Ubuntu 9.04, kernel 2.6.28-11-generic with usbserial

root ()/ubuntu/disks

kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=EA9CAC679CAC304D loop=/ubuntu/disks/root.disk ro quiet splash

usbserial.vendor=0x19d2 usbserial.product=0xfffe

initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, kernel 2.6.28-11-generic (recovery mode)

root ()/ubuntu/disks

kernel /boot/vmlinuz-2.6.28-11-generic root=UUID=EA9CAC679CAC304D loop=/ubuntu/disks/root.disk ro single

initrd /boot/initrd.img-2.6.28-11-generic

title Ubuntu 9.04, memtest86+

root ()/ubuntu/disks

kernel /boot/memtest86+.bin

———————————————————————

Save and restart now …

7. Now after reboot system … you must check once more with “lsusb” command to ensure if your modem in the modem mode … if not use “sudo usb_modeswitch” again and check again if already in modem mode (19d2:fffe) …

if you have … already success, its time to make a connection … with pppconfig.

Close all terminal. Open new terminal and type

sudo pppconfig

in the new (below) window select Create and give ok…

Type provider name (say reliance) and give ok

Select Dynamic and give ok

Select PAP and give ok

Enter your Reliance Number and give ok

Password is same as your Reliance Number, enter it and give ok

Do not change Modem Speed

Select Tone and give ok

Enter #777 and give ok

Enter yes

Select Manual and give ok

Give your modem port. In my (most of the) case it is /dev/ttyUSB0

Now all set. Ensure Everything is fine. Select Finished then ok

Finally in the last wind select Quit and give ok

Now you have configured your modem successfully and all set to connect.

To establish internet connection type the following command in terminal…

sudo pon reliance

Ensuring connection is established use this command…

ifconfig
Now you should see entry like this…
ppp0 Link encap:Point-to-Point Protocol
inet addr:123.239.41.80 P-t-P:220.224.134.12 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:3429 errors:23 dropped:0 overruns:0 frame:0
TX packets:3683 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:2309338 (2.3 MB) TX bytes:731534 (731.5 KB)

Once the connection is established you can close the terminal.

To disconnect…

sudo poff reliance

Extra
In case if you want to monitor internet speed then install pppstatus package (sudo apt-get install pppstatus) and type sudo pppstatus in the terminal.

That’s all I have to do get Internet running on my laptop.

I think … this tutorial is the first that describe installation of ZTE Modem MG880 in Ubuntu Jaunty 9.04 with complete guide => 100% tested and debugged …

And last, sorry for my bad english … I hope you can understand … 😛


under: Computer Science

Leave a response






Your response:

Time limit is exhausted. Please reload CAPTCHA.

Categories