Ubuntu Forums ubuntu.com - launchpad.net - ubuntu help  

Go Back   Ubuntu Forums > The Ubuntu Forum Community > Forum Archive > Main Support Categories > Networking & Wireless
Register Reset Password Forum Help Forum Council Search Today's Posts Mark Forums Read

Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.

Networking & Wireless
Having problems getting connected to the internet or getting your wireless card to work? Ask here.

 
Thread Tools Display Modes
Old January 12th, 2008   #1
viking777
Way Too Much Ubuntu
 
Join Date: Nov 2006
Location: Stoke-onTrent England
Beans: 213
Hardy Heron (Ubuntu Development)
ZTE USB Modem Help

I decided that I wanted to try out 3 Mobile for mobile internet instead of the Vodafone connection I am using at present as they appear to have better coverage where I live. The modem they supplied my is a ZTE MF622. I thought that I would be able to make it work in the same manner as the Huawei modem I have used up till now, but it doesn't seem to be so easy, the problem is this.

If I plug in the device and perform a cold boot, the device is listed as ID 19d2:0001. If I modprobe this it creates the necessary device nodes and behaves as a proper modem should (at least for a while). However if I perform anything other than a cold boot the device is listed as ID 19d2:2000 and no amount of modprobing that will make any difference, it never creates the necessary device nodes. The problem is further complicted by the fact that if the modem fails to connect for any reason and I have to unplug it the ID changes back to 19d2:2000 and the whole thing becomes useless.

Does anyone know how I can deal with this?

3 mobile give you 3 days to return the modem if you are not satisfied with it which gives me until Monday to get it working or take it back for a refund, so I don't have long to sort this out.

Needless to say the whole thing works perfectly in my wife's windows computer so the modem is not faulty and the connection it gives from her machine appears to be very good, so I would like to get it going if I could, but having to do cold boots every time I mess around with it is not exactly convenient.

Incidentally, the modem comes with a driver cd for a mac. Is there any way I could get that to run on Kubuntu? (I think I can guess the answer!).
__________________
Evesham X86-64 laptop. Core 2 duo T7200. ATI Radeon Mobility X1600 graphics. 2Gb DDR2 RAM. Realtek ALC 883 soundcard. Huawei E220 USB modem (sometimes). Virtualbox (for windows xp pro). Linux Mint. Kubuntu Gutsy. Kubuntu Hardy

Last edited by viking777; January 12th, 2008 at 08:02 AM..
viking777 is offline   Reply With Quote
Old February 3rd, 2008   #2
Llywelyn
First Cup of Ubuntu
 
Join Date: Aug 2006
My beans are hidden!
Re: ZTE USB Modem Help

I can't find anything to confirm whether this ZTE modem works with linux, at least in an easy to do way.

However, don't despair. Three can supply a Huwee E220 USB dongle and this definitely works with Linux and works easily thanks to Vodafone's generous contribution of OSS to the community.

Follow:
http://mybroadband.co.za/vb/showthread.php?t=74067 for the driver and GUI.
Follow:
https://forge.vodafonebetavine.net/f...08&forum_id=20
for information on settings to use with Three's network.

I've tried the setup and it works.

Hope this helps

Llywelyn Owen
Llywelyn is offline   Reply With Quote
Old February 13th, 2008   #3
JimmyI
5 Cups of Ubuntu
 
Join Date: Jan 2008
Beans: 30
Re: ZTE USB Modem Help

Hi,

I've managed to botch a method to get my ZTE MF622 working within ubuntu. Its on the UK 3G network. Only problem is you loose USB based storage device functionality I still havn't found a way to get them working along with the modem! If your still wanting to give it a go let me know and I'll dig up my txt files.
JimmyI is offline   Reply With Quote
Old February 13th, 2008   #4
JimmyI
5 Cups of Ubuntu
 
Join Date: Jan 2008
Beans: 30
Re: ZTE USB Modem Help

Okay scrap the problems, Here is how to do if for people out there (none of this is my doing really, I've just played around with the information out there)

First you need to set up the ZTE MF622 as a modem rather than a usb drive. This is done by inserting the following script.

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+="/usr/src/usb_modeswitch-0.9.2/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"



Make this in gedit and save it in etc/udev/rules.d and make sure the file name ends in .rules e.g. sudo gedit /etc/udev/rules.d/ZTEMF622.rules


Now you need to set up the dialing mechanism. This is done using wvdial, what you need to do is create the following wvdial.conf file if you are using the ZTE in England with Three

[Dialer Defaults]

Init2 = ATZ

Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = 1

Modem Type = Analog Modem

ISDN = 0

Phone = *99#

Modem = /dev/ttyUSB0

Username = user

Dial Command = ATDT

Password = pass

Baud = 460800

That file is saved in etc/wvdial.conf. So you put in the terminal sudo gedit /etc/wvdial.conf then paste the dialer defaults code into that and save.

Then reboot with the modem plugged in form the begging of the reboot. Activate the modem by typing sudo wvdial in the terminal. If all is well you should be on the internet. Note: if the modem light is red then it's not going to work you need to unplug it plug it back in. It should then go green. You will need to reboot in order to get it working again.

Hope that helps

Jim
JimmyI is offline   Reply With Quote
Old April 13th, 2008   #5
ercork
5 Cups of Ubuntu
 
Join Date: Dec 2005
Beans: 27
Re: ZTE USB Modem Help

Hi - I've been trying to get my zte mf622 working all weekend. No success yet. I've copied the instructions exactly but everytime I reboot the 3 modem icon is there on the dektop and the USB drive is mounted. If When I try "sudo wvdial" I get:



satellite@satellite-laptop:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
satellite@satellite-laptop:~$

Any suggestions?
ercork is offline   Reply With Quote
Old April 16th, 2008   #6
ercork
5 Cups of Ubuntu
 
Join Date: Dec 2005
Beans: 27
Re: ZTE USB Modem Help

Problem solved - a reboot didn't work for me. I had to shut down and then bootup again (don't know how this would make a difference).

For anybody in Ireland add in the line

Init5 = AT+CGDCONT=1,"IP","3ireland.ie"

after init3 in the instructions above - otherwise everything is the same.
ercork is offline   Reply With Quote
Old April 23rd, 2008   #7
steve_pearce
First Cup of Ubuntu
 
steve_pearce's Avatar
 
Join Date: Apr 2008
Location: Norwich, UK
Beans: 8
Ubuntu 8.10 Intrepid Ibex
Re: ZTE USB Modem Help

Thanks for this thread and JimmyI in particular. My minutes old ZTE-MF622 is now connected and running well under Debian on an Eee.

Using the same process above but with the small addition of adding the wvdial package.

Sadly the coverage where I am is 'so so'. Its good to know it is usable though for when I am on the move again.

Thanks again
steve_pearce is offline   Reply With Quote
Old April 24th, 2008   #8
Marcellus
First Cup of Ubuntu
 
Join Date: Oct 2007
Beans: 5
Re: ZTE USB Modem Help

Quote:
Originally Posted by ercork View Post
When I try "sudo wvdial" I get:

satellite@satellite-laptop:~$ sudo wvdial
--> WvDial: Internet dialer version 1.60
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory
satellite@satellite-laptop:~$

Any suggestions?
which was followed by the note that a cold reboot did the trick.

However, no amount of restarting and (un)plugging devices works for me, and I get exactly the same message (only it says version 1.56 because... well, I don't have internet so I cannot update my system decently). It seems that I'm stuck by my ignorance.

So: any suggestions where I go wrong? It's a standard 7.10 gutsy, updated until Xmas 2007. A complication seemed to be that I put the USB modem in a hub, not directly into the PC, so it kept power during shutdown. However, directly pluggin it in the pc's usb ports didn't make a difference.

All the best & thanks in advance,
M.
Marcellus is offline   Reply With Quote
Old May 1st, 2008   #9
N0_Named_Guy
First Cup of Ubuntu
 
N0_Named_Guy's Avatar
 
Join Date: Feb 2008
Location: Portugal
Beans: 4
Ubuntu 8.04 Hardy Heron
Send a message via MSN to N0_Named_Guy
Re: ZTE USB Modem Help

Hello there...

I am trying to put my MF622 working, but I think gnome doesn't let use the ppp0 interface to access the internet :S

I've done the dial scripts for my area and ISP. In terminal, I run the usbmodeswitch, then gcom and finally wvdial...

In the terminal, after running these commands, it appears that I've been connected to the internet. It says my IP and other stuff...


I run the network tools app, and there it is the ppp0 with all its information... But when I get to firefox, it simply doesn't work...

What can I do??

Best Regards,
David Serrano
__________________
Nice... Thanks for reading
N0_Named_Guy is offline   Reply With Quote
Old May 4th, 2008   #10
collegecotbuc
First Cup of Ubuntu
 
Join Date: May 2008
Beans: 1
Re: ZTE USB Modem Help

Hi Jimmy,
I got my machine dialling out perfectly Linux worked a treat ,I turned the machine off removed the modem ZTEMF ,restarted the machine ,used wvdial in the terminAL got the message can't find ttyUSB0 ,any ideas please



Quote:
Originally Posted by JimmyI View Post
Okay scrap the problems, Here is how to do if for people out there (none of this is my doing really, I've just played around with the information out there)

First you need to set up the ZTE MF622 as a modem rather than a usb drive. This is done by inserting the following script.

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+="/usr/src/usb_modeswitch-0.9.2/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"



Make this in gedit and save it in etc/udev/rules.d and make sure the file name ends in .rules e.g. sudo gedit /etc/udev/rules.d/ZTEMF622.rules


Now you need to set up the dialing mechanism. This is done using wvdial, what you need to do is create the following wvdial.conf file if you are using the ZTE in England with Three

[Dialer Defaults]

Init2 = ATZ

Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0

Stupid Mode = 1

Modem Type = Analog Modem

ISDN = 0

Phone = *99#

Modem = /dev/ttyUSB0

Username = user

Dial Command = ATDT

Password = pass

Baud = 460800

That file is saved in etc/wvdial.conf. So you put in the terminal sudo gedit /etc/wvdial.conf then paste the dialer defaults code into that and save.

Then reboot with the modem plugged in form the begging of the reboot. Activate the modem by typing sudo wvdial in the terminal. If all is well you should be on the internet. Note: if the modem light is red then it's not going to work you need to unplug it plug it back in. It should then go green. You will need to reboot in order to get it working again.

Hope that helps

Jim
collegecotbuc is offline   Reply With Quote

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:37 PM.


vBulletin ©2000 - 2009, Jelsoft Enterprises Ltd. Ubuntu Logo, Ubuntu and Canonical © Canonical Ltd. Tango Icons © Tango Desktop Project. lingonberry