Hi All,

    IMHO, this patch should be removed... I'll explain the reasons:

    1. Disabling the Virtual CD on that device does not assure that the
device turns the Serial Ports on, witch I believe was the primary
intention for this patch in the first place. One could get even better
results with usb_storage.delay_use=0 but, even with this option set, it
also doesn't work every time.

    2. The Virtual CD doesn't contain only the Windows Drivers. It also
contains:
        - The manual
        - A file named 'SysConfig.dat' that contains, among other
things, the number to dial to, the username and the password.
        - AT Commands used to set up the device accordingly to the ISP,
witch varies among ISP's. These can be found on the .inf windows driver
files.

    3. The correct way to switch this device from one USB-CD to two
ttyUSB's and one USB-CD, IMO, is to use the utility available at:
http://www.kanoistika.sk/bobovsky/archiv/umts/


    If the patch is removed, you could use the device's natural
operation, ending up having two Serial Devices and one USB-CD. The only
thing needed is a line on udev that could resemble something like:
BUS="usb", SYSFS{idVendor}="12d1", SYSFS{idProduct}="1003",
SYSFS{bNumInterfaces}=" 1", RUN+="/usr/local/bin/huaweiAktBbo-i386.out "
    With this process it always worked with all my tests, and I was able
maintain the USB-CD available.

    The ID's on the option driver should be maintained to correctly
detect the two Serial Devices.

    I also attach a patch against kernel 2.6.21-rc3-git7

Does anyone cares to comment on this? Do you agree ? Or not ?

Thanks for your time,
Rui Santos


Johann Wilhelm wrote:
> on my slackware11 the huawei e220 device is detected as mass storage  
> device.. i found a way to prevent the kernel from this by adding it to  
> the unusual_devs.h
>
> the diff to 2.6.18.1:
>
> 1274,1284d1273
> < /* This prevents the kernel from detecting the Huawei-E220  
> USB-UMTS-Modem as mass storage device.
> <    The storage-device is nothing else than a virtual cd-drive with  
> the windows drivers.
> <    modprobe usbserial usbserial vendor=0x12d1 product=0x1003 will  
> bringup the modem-device
> <    <johann.wilhelm(at)student.tugraz.at>
> < */
> < UNUSUAL_DEV( 0x12d1, 0x1003, 0x0000, 0xffff,
> <               "HUAWEI",
> <               "E220 USB-UMTS Install",
> <               US_SC_DEVICE, US_PR_DEVICE, NULL,
> <               US_FL_IGNORE_DEVICE),
> <
>
>
> interesting part of cat /proc/bus/usb/devices:
>
> T:  Bus=03 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  5 Spd=12  MxCh= 0
> D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
> P:  Vendor=12d1 ProdID=1003 Rev= 0.00
> S:  Manufacturer=HUAWEI Technologies
> S:  Product=HUAWEI Mobile
> C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr=500mA
> I:  If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usbserial
> E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms
> E:  Ad=04(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
>
> i'm not deep enought into hotplug :(
> but because i use this device in a router coldplugging is ok for  
> me.... followind in my rc.modules should do:
>
> # Huawei E220 support
> /sbin/modprobe usbserial vendor=0x12d1 product=0x1003
> /usr/bin/mknod /dev/ttyUSB0 c 188 0
> /usr/bin/mknod /dev/ttyUSB1 c 188 1
> /usr/bin/mknod /dev/ttyUSB2 c 188 2
> /usr/bin/ln -sf /dev/ttyUSB0 /dev/modem
>
> this should work (at least a my machine) on slackware 11 with kernel 2.6.18.1
>
> 73 de oe6jwf / Hans
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> linux-usb-devel@lists.sourceforge.net
> To unsubscribe, use the last form field at:
> https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
>
>
>
>   

-- 

Cumprimentos

*Rui Santos*
Dep. Testes

*GrupoPIE Portugal, S.A.*
Tel:   +351 252 290 600
Fax:  +351 252 290 601

Email: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
Web: www.grupopie.com <http://www.grupopie.com/>

/WinREST /EVERYWHERE

--- a/drivers/usb/storage/unusual_devs.h        (2.6.21-rc3-gig7 original)
+++ b/drivers/usb/storage/unusual_devs.h        (new)
@@ -1364,15 +1364,6 @@ UNUSUAL_DEV(  0x1210, 0x0003, 0x0100, 0x
                US_SC_DEVICE, US_PR_DEVICE, NULL,
                US_FL_IGNORE_RESIDUE ),
 
-/* This prevents the kernel from detecting the virtual cd-drive with the
- * Windows drivers.  <[EMAIL PROTECTED]>
-*/
-UNUSUAL_DEV( 0x12d1, 0x1003, 0x0000, 0xffff,
-               "HUAWEI",
-               "E220 USB-UMTS Install",
-               US_SC_DEVICE, US_PR_DEVICE, NULL,
-               US_FL_IGNORE_DEVICE),
-
 /* Reported by Vilius Bilinkevicius <vilisas AT xxx DOT lt) */
 UNUSUAL_DEV(  0x132b, 0x000b, 0x0001, 0x0001,
                "Minolta",

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to