Here’s the udev script that does the job:
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" 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"
Save this file as /etc/udev.d/15-zte-mf622.rules for example(this path is a good one under (K)Ubuntu).
The next time you plug-in the modem, at first, the usb_storage module get’s removed. After a few seconds, since the modem is not being handled like a storage device, it’ll switch to the modem configuration. At this stage we tell udev to load the usbserial kernel module with the vendor and product id’s and you’ll get 3 ttyUSB devices. The /dev/ttyUSB0 will be the one you should use to make a connection.
You can now point ppp or wvdial to that device a start the connection, or, you might also want to check UMTSmon, this is an application suited for these kind of modems.
Comment by Jim — Jan 15, 2008 10:44:22 PM | # - re
Comment by Patrik Olterman — Jan 25, 2008 10:17:27 PM | # - re
Comment by s0undt3ch — Jan 26, 2008 12:11:28 AM | # - re
Comment by James Hill — Jan 31, 2008 4:46:04 PM | # - re
Comment by Mark — Apr 13, 2008 3:08:51 PM | # - re
Comment by Johnbywr — Feb 4, 2008 3:57:18 PM | # - re
Comment by tamjid — Mar 12, 2008 10:55:45 AM | # - re
Comment by tamjid — Mar 12, 2008 10:56:15 AM | # - re
Comment by Marco — Mar 4, 2008 3:32:52 PM | # - re
Comment by Maciej Szpakowski — Mar 10, 2008 3:55:26 PM | # - re
Comment by Dave — Apr 8, 2008 2:16:37 PM | # - re
Comment by josh — Apr 25, 2008 8:48:07 AM | # - re
[…] Riferimenti: usb_modeswitch Unfinished Sofware’s Blog OpenLinux […]
Pingback by Andrea Boscolo » Onda MT512HS Tim — Mar 13, 2008 8:02:41 AM | # - re
Comment by Paddy — Mar 28, 2008 11:56:19 AM | # - re
Comment by jonsy — Apr 1, 2008 6:45:01 PM | # - re
Comment by Jef Woodhouse — Apr 1, 2008 11:16:39 PM | # - re
Comment by rax — Apr 4, 2008 12:19:51 AM | # - re
[…] file ini berasal dari sini. Intinya rules tersebut menghilangkan fitur usb storage yg dimilik modem ini. di linux, belum adanya fitur usb mode […]
Pingback by Menginstall ZTE MF622 USB Modem di Linux Ubuntu at Adi Setiawan weblog — Apr 20, 2008 11:23:33 AM | # - re
Comment by Hematogenas — Apr 26, 2008 5:47:26 PM | # - re
[…] file ini berasal dari sini. Intinya rules tersebut menghilangkan fitur usb storage yg dimilik modem ini. di linux, belum adanya fitur usb mode […]
Pingback by Instalasi ZTE MF622 USB Modem di Linux Ubuntu 7.10 « NGOprek OnLine — Apr 28, 2008 6:02:14 PM | # - re
Comment by Dorothy Hyde — May 8, 2008 5:18:41 PM | # - re
Comment by Marino Ovidio — Sep 14, 2008 10:47:57 PM | # - re
Comment by Peter C — Oct 13, 2008 1:50:32 AM | # - re
Comment by s0undt3ch — Oct 13, 2008 3:05:41 AM | # - re
Comment by Peter C — Oct 13, 2008 3:17:33 AM | # - re
Comment by s0undt3ch — Oct 13, 2008 3:21:29 AM | # - re
Comment by Peter C — Oct 13, 2008 3:04:04 AM | # - re
Comment by arch(er) — Nov 13, 2008 12:09:25 PM | # - re
[…] Google: ZTE MF622 USB Modem Under Linux — UfSoft.org Blog Por lo que se ve es super facil, pero no tengo uno asi que no puedo probar jaja. Intenta y nos cuentas. Saludos […]
Pingback by instalar modem ZTE MF622 empresa claro - Foros de CHW — Nov 13, 2008 6:17:21 PM | # - re
Comment by s0undt3ch — Nov 22, 2008 1:23:35 PM | # - re
Comment by wilbur@wilburcorncob.com — Nov 22, 2008 1:56:44 AM | # - re
[…] to use them is remove the file and reload the rules. I got the following solution from a comment by Dorothy Hyde to the post i mention in the reference part of this article […]
Pingback by Setup ZTE MF622 USB Modem in Linux « Bits of Wizardry — Dec 2, 2008 8:10:18 PM | # - re
Comment by gentux — Dec 6, 2008 5:27:47 PM | # - re
Comment by 7mefree — Dec 12, 2008 5:46:14 PM | # - re
Comment by Anon — Jan 6, 2009 12:36:07 PM | # - re
thank’s alot bro… but the system have a respond the device /dev/ttyUSB0 is not such directory....
please tell me about this....
thanks one more....
Comment by Bi4kKob4r — Jan 15, 2009 2:10:08 AM | # - re
Can you help me? i have a ZTE, model MF622. but i try tu use your script but.
1 i use mandriva one 2009
2 mandriva mount the modem like a usb storage
3 i cant apper the ttyUSB0 or ttyUSB1 and ttyUSB2
please help me i need use my modem in linux. this modem run great in window but i dont want to use it in window
Comment by rordan — Feb 3, 2009 10:18:29 PM | # - re
please be aware that the udev script here will break aspects of your system (and not work for the ZTE) if you are using usb-storage or usb-serial for anything else (such as a USB pen drive or USB serial port adapter). There is a program “usb-modeswitch” that can flip the ZTE devices over to serial mode without having to forcefully remove or insert modules; however, it seems since at least 2.6.26 the device flips over of it’s own accord without manual intervention (on Debian Lenny at least).
Comment by Jon — Apr 7, 2009 9:10:56 PM | # - re
Yes, you are right, it breaks storage support and at least for me, I now don’t need this script since Kubuntu 8.10 flips my modem, at least, last time I tried it ;)
Comment by s0undt3ch — Apr 24, 2009 4:35:42 PM | # - re
can you tell me how can use usb_modeswitch to change my reliance usb modem AC8710 from storage mode to modem mode. so that i can load the driver to detect the device in /dev/ttyUSB0
Comment by Sarahana T — Jun 4, 2009 5:29:23 AM | # - re
for people, who use Windows i uploaded latest drivers(xp, 2k, vista support). download from answercop servers - answercop.com/ZTE_MF622_Driver_Download_For_Windows_2000_XP_and_Vista
Comment by marko — Jul 11, 2009 8:28:15 PM | # - re
Hi there
ZTE MF636 using Slackware, with kernel 2.6.30.5
This is my zte-mf636-beta.rules (I use the option module which is reputed to use a higher speed)
ACTION!=”add”, GOTO=”ZTE_End”
SUBSYSTEM==”usb”, SYSFS{idProduct}==”2000″,
SYSFS{idVendor}==”19d2”, GOTO=”ZTE_ZeroCD”
SUBSYSTEM==”usb”, SYSFS{idProduct}==”0031″,
SYSFS{idVendor}==”19d2”, GOTO=”ZTE_Modem”
LABEL=”ZTE_ZeroCD”
RUN+=”/usr/bin/eject /dev/sr0”
LABEL=”ZTE_Modem”
MODE=”660″, GROUP=”dialout”
LABEL=”ZTE_End”
Comment by David — Aug 25, 2009 9:40:25 PM | # - re
Hi,
I installed that udev-rule on debian lenny and now I just only get one usb-modem (/dev/ttyUSB0) since I have never used ppp on linux, what do I have to do, to connect to the internet. wvdial is installed, but actually I have no clue how to operate it. does anybody got a hint for me? thanks
heinz
Comment by Heinz — Aug 27, 2009 1:52:59 PM | # - re
working great. Thank you so much.
Comment by koko — Mar 30, 2010 12:33:42 AM | # - re
[…] liesst und zum Modem wird touch /etc/udev/rules.d/75-zte-mf622.rules Folgende Datei wurde von hier “geborgt” blog.ufsoft.org/zte-mf622-usb-modem-under-linux s0undt3c hat es dort schon angegeben wie man das ganze automatisieren kann . Noch ein Hinweis: evtl. kann Deine Vendor […]
Pingback by UMTS Stick Vodafone und Suse 11.2 - Seite 2 - Linux: Linux-Forum — May 14, 2010 5:00:30 PM | # - re