You are not logged in.

#1 2008-02-08 17:53:40

Obi-Lan
Member
From: Finland
Registered: 2007-05-23
Posts: 179

Huawei E220 (USB) troubles with hal

I have Huawei E220 3G USB modem which should work on linux (from what I've read). But theres some strange problem, when hal daemon is running:

usb 2-1: new full speed USB device using uhci_hcd and address 10
usb 2-1: configuration #1 chosen from 1 choice
usb-storage: probe of 2-1:1.0 failed with error -5
option 2-1:1.0: GSM modem (1-port) converter detected
usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
usb-storage: probe of 2-1:1.1 failed with error -5
option 2-1:1.1: GSM modem (1-port) converter detected
usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
scsi25 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 10
usb-storage: waiting for device to settle before scanning
usb 2-1: reset full speed USB device using uhci_hcd and address 10
scsi 25:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 25:0:0:0: Attached scsi CD-ROM sr1
sr 25:0:0:0: Attached scsi generic sg2 type 5
usb-storage: device scan complete
usb 2-1: reset full speed USB device using uhci_hcd and address 10
usb 2-1: reset full speed USB device using uhci_hcd and address 10
usb 2-1: device descriptor read/64, error -71
usb 2-1: USB disconnect, address 10
option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
option 2-1:1.0: device disconnected
option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
option 2-1:1.1: device disconnected

And when I stop hal:

usb 2-1: new full speed USB device using uhci_hcd and address 22
usb 2-1: configuration #1 chosen from 1 choice
scsi56 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 22
usb-storage: waiting for device to settle before scanning
usb 2-1: USB disconnect, address 22
usb 2-1: new full speed USB device using uhci_hcd and address 23
usb 2-1: configuration #1 chosen from 1 choice
usb-storage: probe of 2-1:1.0 failed with error -5
option 2-1:1.0: GSM modem (1-port) converter detected
usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
usb-storage: probe of 2-1:1.1 failed with error -5
option 2-1:1.1: GSM modem (1-port) converter detected
usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
scsi59 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 23
usb-storage: waiting for device to settle before scanning
scsi 59:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
sr1: scsi-1 drive
sr 59:0:0:0: Attached scsi CD-ROM sr1
sr 59:0:0:0: Attached scsi generic sg2 type 5
usb-storage: device scan complete

Apparently it has something to do with virtual usb CD-ROM thingy, it uses this virtual CD drive in windows to start Vodafone software automatically when the device is plugged in. I was wondering if I could prevent installation of that cd-rom drive, can I do it with udev rules and how?

Or is this caused by another problem?

EDIT. I tested with hal stopped, I can dialup and access internet so the device itself seems to work.

Last edited by Obi-Lan (2008-02-08 18:04:18)

Offline

#2 2008-02-27 00:50:52

raca
Member
Registered: 2007-06-26
Posts: 11

Re: Huawei E220 (USB) troubles with hal

I have created the rule for hal
/etc/hal/fdi/preprobe/huawei.fdi

<?xml version="1.0" enconding="UTF-8"?>
<deviceinfo version="0.2">
<device>
<match key="usb.vendor_id" int="0x12d1">
<match key="usb.product_id" int="0x1003">
<merge key="info.ignore" type="bool">true</merge>
</match>
</match>
</device>
</deviceinfo>

This should do the trick but It isn't working for me.
So this isn't probably right but I don't know the solution either...
Is there a way to see if the rule is working or not?

Last edited by raca (2008-02-27 00:51:58)

Offline

#3 2008-03-01 16:39:15

raca
Member
Registered: 2007-06-26
Posts: 11

Re: Huawei E220 (USB) troubles with hal

Problem solved big_smile

So the problem seems was the rule and its location.
New rule at /usr/share/hal/fdi/preprobe/20thirdparty/10-huawei-e220.fdi

<?xml version="1.0" encoding="UTF-8"?>

<deviceinfo version="0.2">
  <device>
    <match key="usb.vendor_id" int="0x12d1"> <!-- Huawei -->
      <match key="usb.product_id" int="0x1003"> <!-- E220 -->
        <merge key="info.ignore" type="bool">true</merge>
      </match>
    </match>
  </device>
</deviceinfo>

This way only two USB serial ports are created but the Internet connection works fine.
The vodafone-mobile-connect-card doesn't work with only the two ports.

I'm going to add the information to the wiki http://wiki.archlinux.org/index.php/Huawei_E220

Offline

#4 2009-08-08 18:15:23

Cagnulein
Member
From: Modena, Italy
Registered: 2006-04-03
Posts: 258
Website

Re: Huawei E220 (USB) troubles with hal

it solves an issue against Onda MT512HS too!
Thanks for your work!

Offline

Board footer

Powered by FluxBB