Hi all,

I am battling with a USB GSM/HSDPA modem (Huawei E220).  I am currently 
using Linux 2.6.18.1 with the two patches applied (one prevents the 
usb-storage driver from detecting the modem as a storage device, and the 
other adds the product id to option.c).

When I initially boot (or connect) the modem, I get the following messages:

Dec 18 12:01:39 carpc kernel: usbcore: registered new driver usbserial
Dec 18 12:01:39 carpc kernel: drivers/usb/serial/usb-serial.c: USB 
Serial support registered for generic
Dec 18 12:01:39 carpc kernel: usbserial_generic 1-1:1.0: generic 
converter detected
Dec 18 12:01:39 carpc kernel: usb 1-1: generic converter now attached to 
ttyUSB0
Dec 18 12:01:39 carpc kernel: usbcore: registered new driver 
usbserial_generic
Dec 18 12:01:39 carpc kernel: drivers/usb/serial/usb-serial.c: USB 
Serial Driver core
Dec 18 12:01:39 carpc kernel: drivers/usb/serial/usb-serial.c: USB 
Serial support registered for GSM modem (1-
port)
Dec 18 12:01:39 carpc kernel: usbcore: registered new driver option
Dec 18 12:01:39 carpc kernel: drivers/usb/serial/option.c: USB Driver 
for GSM modems: v0.7.1

On first trying to use the modem, I get the following messages:
Dec 18 12:01:40 carpc pppd[2808]: pppd 2.4.3 started by root, uid 0
Dec 18 12:01:41 carpc chat[2819]: abort on (NO CARRIER)
Dec 18 12:01:41 carpc chat[2819]: abort on (NO DIALTONE)
Dec 18 12:01:41 carpc chat[2819]: abort on (ERROR)
Dec 18 12:01:41 carpc chat[2819]: abort on (NO ANSWER)
Dec 18 12:01:41 carpc chat[2819]: abort on (BUSY)
Dec 18 12:01:41 carpc chat[2819]: send (atz^M)
Dec 18 12:01:47 carpc kernel: usb 1-1: USB disconnect, address 3
Dec 18 12:01:47 carpc kernel: usbserial_generic 1-1:1.0: device disconnected
Dec 18 12:01:47 carpc chat[2819]:  -- write failed: Input/output error
Dec 18 12:01:47 carpc chat[2819]: Failed
Dec 18 12:01:47 carpc chat[2819]: Can't restore terminal parameters: 
Input/output error
Dec 18 12:01:47 carpc pppd[2808]: Connect script failed
Dec 18 12:01:47 carpc kernel: generic ttyUSB0: generic converter now 
disconnected from ttyUSB0
Dec 18 12:01:58 carpc kernel: usb 1-1: new full speed USB device using 
uhci_hcd and address 4
Dec 18 12:01:58 carpc kernel: usb 1-1: new device found, idVendor=12d1, 
idProduct=1003
Dec 18 12:01:58 carpc kernel: usb 1-1: new device strings: Mfr=1, 
Product=2, SerialNumber=0
Dec 18 12:01:58 carpc kernel: usb 1-1: Product: HUAWEI Mobile
Dec 18 12:01:58 carpc kernel: usb 1-1: Manufacturer: HUAWEI Technologies
Dec 18 12:01:58 carpc kernel: usb 1-1: configuration #1 chosen from 1 choice
Dec 18 12:01:58 carpc kernel: usbserial_generic 1-1:1.0: generic 
converter detected
Dec 18 12:01:58 carpc kernel: usb 1-1: generic converter now attached to 
ttyUSB0

After the first write, the USB device disconnects.  You can also see the 
LED on the modem flashing in the same sequence it does after an initial 
connect, so it seems like it is resetting.  After the device 
re-registers, all further writes block, and I get no response from the 
modem.

If I now halt the machine (USB remains powered on standby power), and 
then restart, I get the following messages and the modem works perfectly:

Dec 18 12:14:12 carpc kernel: usbcore: registered new driver usbserial
Dec 18 12:14:12 carpc kernel: drivers/usb/serial/usb-serial.c: USB 
Serial support registered for generic
Dec 18 12:14:12 carpc kernel: usbserial_generic 1-1:1.0: generic 
converter detected
Dec 18 12:14:12 carpc kernel: usb 1-1: generic converter now attached to 
ttyUSB0
Dec 18 12:14:12 carpc kernel: usbserial_generic 1-1:1.1: generic 
converter detected
Dec 18 12:14:12 carpc kernel: usb 1-1: generic converter now attached to 
ttyUSB1
Dec 18 12:14:12 carpc kernel: usbserial_generic 1-1:1.2: generic 
converter detected
Dec 18 12:14:12 carpc kernel: usb 1-1: generic converter now attached to 
ttyUSB2
Dec 18 12:14:12 carpc kernel: usbcore: registered new driver 
usbserial_generic
Dec 18 12:14:12 carpc kernel: drivers/usb/serial/usb-serial.c: USB 
Serial Driver core
Dec 18 12:14:12 carpc kernel: drivers/usb/serial/usb-serial.c: USB 
Serial support registered for GSM modem (1-
port)
Dec 18 12:14:12 carpc kernel: usbcore: registered new driver option
Dec 18 12:14:12 carpc kernel: drivers/usb/serial/option.c: USB Driver 
for GSM modems: v0.7.1

I have tried this on a number of computers, but the current machine uses 
the uhci-hcd driver, and the following usb controllers:

00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 80)
00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 80)
00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 
Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)

I have also tested it on dual-boot machines (Windows/Linux).  The device 
always works perfectly under windows, but has the same problems under Linux.

Does anybody know what is going wrong here?  Some people have reported 
this problem, and said that they got the modem working reliably using a 
powered USB hub, which makes it seem like a power problem, but why would 
the modem work reliably under Windows if it is indeed a power problem?

Thanks,

Justin



-------------------------------------------------------------------------
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-users@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-users

Reply via email to