PDA

View Full Version : 10.04 - USB Huawei 3 Modem fails to be detected



cyborg_jim
May 1st, 2010, 03:54 PM
Hello, I've been trying out the netbook remix of 10.04 but I've been having some issues getting my Huawei modem to work. It detects the install cd and usb storage but it does not discover the modem. Any ideas?

This is the dmesg output after connecting the device:



> [10540.912126] usb 1-4: new high speed USB device using ehci_hcd and address 9
> [10541.055850] usb 1-4: configuration #1 chosen from 1 choice
> [10541.060834] scsi12 : SCSI emulation for USB Mass Storage devices
> [10541.061799] usb-storage: device found at 9
> [10541.061813] usb-storage: waiting for device to settle before scanning
> [10541.062015] scsi13 : SCSI emulation for USB Mass Storage devices
> [10541.062697] usb-storage: device found at 9
> [10541.062711] usb-storage: waiting for device to settle before scanning
> [10546.062021] usb-storage: device scan complete
> [10546.064003] scsi 12:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
> [10546.064079] usb-storage: device scan complete
> [10546.066815] scsi 13:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
> [10546.089533] sr0: scsi-1 drive
> [10546.090654] sr 12:0:0:0: Attached scsi CD-ROM sr0
> [10546.098450] sr 12:0:0:0: Attached scsi generic sg2 type 5
> [10546.104513] sd 13:0:0:0: Attached scsi generic sg3 type 0
> [10546.122283] sd 13:0:0:0: [sdc] Attached SCSI removable disk
> [10552.291544] sd 13:0:0:0: [sdc] 3964928 512-byte logical blocks: (2.03 GB/1.89 GiB)
> [10552.294543] sd 13:0:0:0: [sdc] Assuming drive cache: write through
> [10552.304536] sd 13:0:0:0: [sdc] Assuming drive cache: write through
> [10552.304555] sdc: sdc1
> [10560.925655] ISO 9660 Extensions: Microsoft Joliet Level 1
> [10560.928942] ISOFS: changing to secondary root
This is what I get on a 9.10 machine where it works:



> [ 3340.140175] usb 1-3: new high speed USB device using ehci_hcd and address 42
> [ 3340.283611] usb 1-3: configuration #1 chosen from 1 choice
> [ 3340.290046] scsi9 : SCSI emulation for USB Mass Storage devices
> [ 3340.290259] usb-storage: device found at 42
> [ 3340.290264] usb-storage: waiting for device to settle before scanning
> [ 3340.290495] scsi10 : SCSI emulation for USB Mass Storage devices
> [ 3340.290686] usb-storage: device found at 42
> [ 3340.290690] usb-storage: waiting for device to settle before scanning
> [ 3345.290926] usb-storage: device scan complete
> [ 3345.292881] scsi 10:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
> [ 3345.293936] sd 10:0:0:0: Attached scsi generic sg2 type 0
> [ 3345.305259] sd 10:0:0:0: [sdb] Attached SCSI removable disk
> [ 3346.371923] usb 1-3: USB disconnect, address 42
> [ 3352.776128] usb 1-3: new high speed USB device using ehci_hcd and address 43
> [ 3352.919518] usb 1-3: configuration #1 chosen from 1 choice
> [ 3352.937257] option 1-3:1.0: GSM modem (1-port) converter detected
> [ 3352.937466] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB0
> [ 3352.941848] option 1-3:1.1: GSM modem (1-port) converter detected
> [ 3352.941999] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB1
> [ 3352.945692] option 1-3:1.2: GSM modem (1-port) converter detected
> [ 3352.945795] usb 1-3: GSM modem (1-port) converter now attached to ttyUSB2
> [ 3352.951068] scsi14 : SCSI emulation for USB Mass Storage devices
> [ 3352.952071] usb-storage: device found at 43
> [ 3352.952074] usb-storage: waiting for device to settle before scanning
> [ 3352.952992] scsi15 : SCSI emulation for USB Mass Storage devices
> [ 3352.961317] usb-storage: device found at 43
> [ 3352.961320] usb-storage: waiting for device to settle before scanning
> [ 3357.953570] usb-storage: device scan complete
> [ 3357.955704] scsi 14:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
> [ 3357.964742] usb-storage: device scan complete
> [ 3357.966988] scsi 15:0:0:0: Direct-Access HUAWEI MMC Storage 2.31 PQ: 0 ANSI: 2
> [ 3357.979640] sr1: scsi-1 drive
> [ 3357.979881] sr 14:0:0:0: Attached scsi CD-ROM sr1
> [ 3357.980016] sr 14:0:0:0: Attached scsi generic sg2 type 5
> [ 3357.980321] sd 15:0:0:0: Attached scsi generic sg3 type 0
> [ 3358.012881] sd 15:0:0:0: [sdb] Attached SCSI removable disk
> [ 3364.657310] sd 15:0:0:0: [sdb] 3964928 512-byte logical blocks: (2.03 GB/1.89 GiB)
> [ 3364.661849] sd 15:0:0:0: [sdb] Assuming drive cache: write through
> [ 3364.674989] sd 15:0:0:0: [sdb] Assuming drive cache: write through
> [ 3364.675002] sdb: sdb1
> [ 3369.037631] ISO 9660 Extensions: Microsoft Joliet Level 1
> [ 3369.040480] ISOFS: changing to secondary root
> [ 3373.348077] tifm_core: MMC/SD card detected in socket 0:1
> [ 3373.677698] mmc0: new SDHC card at address 8fe4
> [ 3373.677897] mmcblk0: mmc0:8fe4 SD32G 29.7 GiB
> [ 3373.677987] mmcblk0: p1
And this is the hardware detail:



lsusb -v -d 12d1:1001

Bus 001 Device 060: ID 12d1:1001 Huawei Technologies Co., Ltd. E620 USB Modem
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x12d1 Huawei Technologies Co., Ltd.
idProduct 0x1001 E620 USB Modem
bcdDevice 0.00
iManufacturer 2
iProduct 1
iSerial 0
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 131
bNumInterfaces 5
bConfigurationValue 1
iConfiguration 3
bmAttributes 0xe0
Self Powered
Remote Wakeup
MaxPower 500mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 3
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 3
Transfer Type Interrupt
Synch Type None
Usage Type Data
wMaxPacketSize 0x0040 1x 64 bytes
bInterval 5
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x82 EP 2 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 1
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x83 EP 3 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x02 EP 2 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 2
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 255 Vendor Specific Class
bInterfaceSubClass 255 Vendor Specific Subclass
bInterfaceProtocol 255 Vendor Specific Protocol
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x84 EP 4 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x03 EP 3 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 32
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 3
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x85 EP 5 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x04 EP 4 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 4
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk (Zip)
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x05 EP 5 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x86 EP 6 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0

Dict
May 1st, 2010, 08:43 PM
I was in the same problem.

You could reference to these discussions (via forum.ubuntu.org.cn) :


今天 总算 把这个问题解决了
插入USB 网卡 ,打开终端 要用5个命令实现卸载USBcdrom,加载USB网卡
1 lsusb 这个命令是 查看系统加载的USB设备
2 cat /etc /mtab
3 sudo eject /dev/sr1卸载AC581自带的USB驱动光驱
4 lsusb 重新查看系统加载的USB设备找到USB网卡的设备ID
5 sudo modprobe usbserial vendor=0x19d2 product =0x0073 (加载USB网卡)完成后系统就可以识别无线宽带网卡了

然后 在 网络管理器 的移动宽带添加一个CDMA的3G连接端口


http://forum.ubuntu.org.cn/viewtopic.php?f=116&t=264066

cyborg_jim
May 2nd, 2010, 02:01 PM
Well ejecting the zeroconf cd works fine but the modprobe command doesn't seem to achieve anything (I substituted the version information in lsusb and checked dmesg again).

cyborg_jim
May 3rd, 2010, 10:02 PM
Well I am making this post from 10.04. The basic problem is that the mode switching isn't haappening. I used this command:


sudo /lib/udev/modem-modeswitch -d -v 0x12d1 -p 0x1446 -t option-zerocd
[sudo] password for cyborg:
D: Found mass storage device:
D: Endpoints: 2
D: Class: 0x8
D: SubClass: 0x6
D: Protocol: 0x50
D: Found modem mass storage device '005'
D: 005: found already attached driver 'usb-storage'
D: 005: REZERO command sent.


According to bug 401655 on launchpad the problem is a change so that udev no longer automatically does this when plugging the device in. I haven't had any success getting udev to do this automatically when I plug the device in yet but the above command is sufficient for the moment.

cyborg_jim
May 3rd, 2010, 10:05 PM
For completeness here are the suggested udev rules I have tried



#!/bin/sh
# Run as sudo
> /etc/udev/rules.d/15-huawei-e1551.rules <<EOF
ACTION!="add", GOTO="huawei_zerocd_end"

SUBSYSTEM=="usb", ATTR{bDeviceClass}!="ff" ,ENV{DEVTYPE}=="usb_device", GOTO="huawei_zerocd_disable"
SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", GOTO="huawei_zerocd_disable"
GOTO="huawei_zerocd_end"

LABEL="huawei_zerocd_disable"
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1446", RUN+="modem-modeswitch -v 0x%s{idVendor} -p 0x%s{idProduct} -t option-zerocd"

LABEL="huawei_zerocd_end"
EOF


#!/bin/sh
# Run as sudo
> /etc/udev/rules.d/15-huawei-155x.rules <<END
SUBSYSTEM==”usb”,
ATTR{idProduct}==”1446″,
ATTR{idVendor}==”12d1″,
RUN+=”/lib/udev/modem-modeswitch –v 0x$attr{idVendor} –p 0x$attr{idProduct} –t option-zerocd”
END