Skip to contentSkip to conversation

Huawei EC321 CDMA PCCARD support broken

DISCUSSION 张韡武 2 participants 6 messages Jan 8, 2008 – Jan 21, 2008 1 message not in the archive

lore
Share & tools
lore

张韡武

author
#0 lore raw

Dear all

A lot of google searches reflect that, the latest kernel supporting Huawei EC321 CDMA PCCARD is 2.6.17. My version (2.6.22-14 on Ubuntu) doesn't work.

I am not sure if I should file a bug somewhere or how to contact the right person. I see another version of this card (Huawei E220) was discussed on this list and so I though this is the right place to post this information. Redirect me to someone else if I posted in wrong place, thank you.

I can give away my card to someone if they can use it to modify driver to add the support back. I can also type some commands and get you the result if you ask me to. What I cannot is describe it technically good enough to show the problem without other's prompt/help. I also cannot debug program or read source code.

I need to emphasize this is a very common model card in China mainland, it's the "default" one, many of my friends has it. So it make sense to get the support back.

dmesg on 2.6.22-14 (that doesn't work):

[ 3802.596000] usb 7-1: new full speed USB device using ohci_hcd and
address 2
[ 3803.756000] usb 7-1: new full speed USB device using ohci_hcd and
address 4
[ 3804.024000] usb 7-1: configuration #1 chosen from 1 choice
[ 3804.132000] usbcore: registered new interface driver usbserial
[ 3804.132000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
[ 3804.132000] usbcore: registered new interface driver
usbserial_generic
[ 3804.132000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial Driver core
[ 3804.140000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303
[ 3804.140000] pl2303 7-1:1.0: pl2303 converter detected
[ 3804.140000] usb 7-1: pl2303 converter now attached to ttyUSB0
[ 3804.140000] pl2303 7-1:1.1: pl2303 converter detected
[ 3804.140000] usb 7-1: pl2303 converter now attached to ttyUSB1
[ 3804.140000] usbcore: registered new interface driver pl2303
[ 3804.140000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/pl2303.c: Prolific PL2303 USB to serial adaptor driver
[ 3804.148000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
[ 3804.148000] usbcore: registered new interface driver option
[ 3804.148000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1

this is how it doesn't work:

pango@Cruella:~$ sudo wvdial
WvDial<*1>: WvDial: Internet dialer version 1.56
WvModem<*1>: Cannot get information for serial port.
WvDial<*1>: Initializing modem.
WvDial<*1>: Sending: ATZ
WvDial Modem<*1>: ATZ
WvDial Modem<*1>: OK
WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
WvDial Modem<*1>: OK
WvDial<*1>: Modem initialized.
WvDial<*1>: Sending: ATDT#777
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT#777
WvDial Modem<*1>: CONNECT 230400
WvDial<*1>: Carrier detected.  Waiting for prompt.
WvDial<Err>: Connected, but carrier signal lost!  Retrying...
WvDial<*1>: Sending: ATDT#777
WvDial<*1>: Waiting for carrier.
WvDial Modem<*1>: ATDT#777
WvDial Modem<*1>: CONNECT 230400
WvDial<*1>: Carrier detected.  Waiting for prompt.
[above repeats...]

dmesg on 2.6.15-23:

$ dmesg
...
[4294705.381000] drivers/usb/serial/usb-serial.c: USB Serial support registered for Option 3G data card
[4294705.382000] option 2-1:1.0: Option 3G data card converter detected
[4294705.382000] usb 2-1: Option 3G data card converter now attached to ttyUSB0
[4294705.382000] option 2-1:1.1: Option 3G data card converter detected
[4294705.383000] usb 2-1: Option 3G data card converter now attached to ttyUSB1
[4294705.383000] usbcore: registered new driver option
[4294705.383000] drivers/usb/serial/option.c: Option Card (PC-Card to) USB to Serial Driver: v0.4

Some other users on the Internet says this is because the device is mis-recognized (should be 3G data card but mis-recognized as GSM modem. I am not sure if this is the case, because I could not find the phase "3G data card" in drivers/usb/serial/option.c in 2.6.22-14 kernel, this phrase existed in 2.6.17 in option.c

For your information, EC321 is a CDMA card, in sales people's words, it's way too different from GSM. I am dumb on this anyway.

Best regards.

Signature · 8 lines
Real Softservice

Huateng Tower, Unit 1788
Jia 302 3rd area of Jinsong, Chao Yang

Tel: +86 (10) 8773 0650 ext 603
Mobile: 135 9950 2413
http://www.realss.com
#1 lore raw

Hi,

Quoted 4 lines

A lot of google searches reflect that, the latest kernel supporting Huawei EC321 CDMA PCCARD is 2.6.17. My version (2.6.22-14 on Ubuntu) doesn't work.

This is probably because ...

Quoted 1 line
[ 3804.140000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303

... the card is in fact recognized by the pl2303 driver instead of the Option driver. This driver may do something stupid.

Please try this (as root):

# rmmod plc2303
# modprobe option

If the card still does not work, type

# lsusb

and send me that.

Signature · 4 lines
Matthias Urlichs   |   {M:U} IT Design @ m-u-it.de   |  [email protected]
Disclaimer: The quote was selected randomly. Really. | http://smurf.noris.de
 - -
Okay, who stopped the payment on my reality check?
author
#2 lore raw
Quoted 7 lines · 在 2008-01-08二的 07:27 +0100,Matthias Urlichs写道:

Hi,

Quoted 4 lines

A lot of google searches reflect that, the latest kernel supporting Huawei EC321 CDMA PCCARD is 2.6.17. My version (2.6.22-14 on Ubuntu) doesn't work.

This is probably because ...

Quoted 8 lines
Quoted 1 line
[ 3804.140000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303

... the card is in fact recognized by the pl2303 driver instead of the Option driver. This driver may do something stupid.

Please try this (as root):

# rmmod plc2303
# modprobe option

I did 'rmmod pl2302' because I could not find plc2303 module. The drect result of above two commands, is /dev/ttyUSB0 disappeared.

WvDial<*1>: WvDial: Internet dialer version 1.56 WvDial<Err>: Cannot open /dev/ttyUSB0: No such file or directory WvDial<Err>: Cannot open /dev/ttyUSB0: No such file or directory WvDial<Err>: Cannot open /dev/ttyUSB0: No such file or directory

Quoted 3 lines

If the card still does not work, type

# lsusb

Bus 008 Device 001: ID 0000:0000
Bus 007 Device 001: ID 0000:0000
Bus 006 Device 004: ID 12d1:1001
Bus 006 Device 001: ID 0000:0000
Bus 005 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 001 Device 004: ID 15d9:0a37
Bus 001 Device 001: ID 0000:0000
Bus 002 Device 001: ID 0000:0000
Bus 003 Device 002: ID 05c6:3100 Qualcomm, Inc. CDMA Wireless Modem/Phone
Bus 003 Device 001: ID 0000:0000

FYI: the product is by Huawei, not by Qualcomm, Inc. Though I am not sure if they rebranded it, but Huawei is one of the biggest manufacturer in China and is likely to have their own product/chips.

author
#3 lore raw
In reply to Matthias Urlichs
Quoted 11 lines · 在 2008-01-08二的 07:27 +0100,Matthias Urlichs写道:

Hi,

Quoted 4 lines

A lot of google searches reflect that, the latest kernel supporting Huawei EC321 CDMA PCCARD is 2.6.17. My version (2.6.22-14 on Ubuntu) doesn't work.

This is probably because ...

Quoted 1 line
[ 3804.140000] /build/buildd/linux-source-2.6.22-2.6.22/drivers/usb/serial/usb-serial.c: USB Serial support registered for pl2303

... the card is in fact recognized by the pl2303 driver instead of the Option driver. This driver may do something stupid.

I am not sure if it's the case. I just managed to compile a kernel in Ubuntu myself, and I used the config file of default Ubuntu kernel, only with a slight twist:

# CONFIG_USB_SERIAL_PL2303 is not set

Using the new kernel, I got:

[  177.916000] ehci_hcd 0000:16:00.2: irq 20, io mem 0x50002000
[  178.016000] usb 6-1: new full speed USB device using ohci_hcd and address 2
[  178.016000] ehci_hcd 0000:16:00.2: USB 2.0 started, EHCI 1.00, driver 10 Dec 2
004
[  178.016000] usb usb8: configuration #1 chosen from 1 choice
[  178.016000] hub 8-0:1.0: USB hub found
[  178.016000] hub 8-0:1.0: 2 ports detected
[  178.888000] usb 6-1: new full speed USB device using ohci_hcd and address 3
[  180.120000] usb 6-1: new full speed USB device using ohci_hcd and address 4
[  180.388000] usb 6-1: configuration #1 chosen from 1 choice
[  180.392000] option 6-1:1.0: GSM modem (1-port) converter detected
[  180.392000] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB0
[  180.396000] option 6-1:1.1: GSM modem (1-port) converter detected
[  180.396000] usb 6-1: GSM modem (1-port) converter now attached to ttyUSB1

Also 'lsmod' told me the module 'pl2303' is not loaded. Do the dialing I got the same problem:

[snip]
WvDial<*1>: Carrier detected. Waiting for prompt. WvDial<Err>: Connected, but carrier signal lost! Retrying...

Later I will try a Ubuntu 6.04 live CD to see if the same hardware works for 6.04 myself (previous i only read that it worked for 6.04).

A message that is not in the archive (sent off-list or not yet received): [email protected]

#5 lore raw
Quoted 2 lines · Daolong Wang

Sigh! I was just going to buy one……

If you found any CDMA PCCARD working for Linux, please also let me know, I am looking for a replacement myself. If you wait a few weeks later, I get a Ubuntu 6.04 live CD from my Beijing office and then I'll let you know if this product really work on older kernel.

For your information, BORA 5188 USB is what my friend's using. It works fine on Ubuntu latest kernel:
http://auction1.taobao.com/auction/0/item_detail-0db2-146885a140b439a1aa469c2c9b3562dc.jhtml
Unfortunately she took the last one available on taobao.com, thus I cannot buy one myself.

Meanwhile it's my wish to call attention on support of EC321 card in kernel list, because, as you are probably in China, you know, it's too popular device.

author
#6 lore raw
In reply to 张韡武
Quoted 5 lines · 在 2008-01-08二的 08:58 +0800,张韡武写道:

Dear all

A lot of google searches reflect that, the latest kernel supporting Huawei EC321 CDMA PCCARD is 2.6.17. My version (2.6.22-14 on Ubuntu) doesn't work.

This is not true, the "google searches" result turns to be of a completely not related issue.

Sorry I made a mistake in my previous posting. The Huawei EC321 CDMA card works just fine with the kernel I am using: 2.6.22

I mis-reported the problem because, unlike the other card I used before (Bora), it seems to me this card have some 'wake-up' time. It start to work several minutes after it's inserted to the slot. I also read other posts on Chinese forums mentioned this delay time.

If user tries to dial right after inserted the card, he would see the behavior I described in previous posts. If he waits longer the connection establish. Here is the wvdial.conf I used to establish a connection (tested working):

[Dialer Defaults]
Phone = #777
Username = CARD
Password = CARD
Modem = /dev/ttyUSB0

Very simple.

I totally looked in the wrong direction (looking for difference in kernel version and option.c). All I had to do is to wait a bit.