You are not logged in.

#1 2012-05-03 17:03:50

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Huawei E220

OK, I have this modem and I cannot make it work unless I remove the usb_storage module. I suppose that I have a problem with usb_modeswitch, but I do not know what it might be.

$ lsusb
Bus 002 Device 011: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem

Seems to show that it is set up as a modem, so I am not sure what is wrong and how to proceed.

I notice that when I plug the modem in the module usb_storage is reloaded.

Any help would be appreciated

Andrew

Offline

#2 2012-05-03 21:13:29

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Huawei E220

Wow, a bit dated in parts, but there is a wiki on that dongle https://wiki.archlinux.org/index.php/Huawei_E220
Also https://wiki.archlinux.org/index.php/USB_3G_Modem
Did you read those?

Offline

#3 2012-05-04 06:59:54

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Huawei E220

Thanks for the reply.

Yes I did read those and some others. Mostly out of date unfortunately.

Any other ideas? I cannot see that removing usb_storage is the right way to go.

Andrew

Offline

#4 2012-05-04 16:39:35

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Huawei E220

No removing should be necessary, no. A call of usb_modeswitch at the most (usually it should work automatically).

But please specify your problem again more clearly. You have to rmmod something for the E220 to work as 3G modem?

How (which method) do you connect with it to the network?

Offline

#5 2012-05-04 17:09:14

tydell
Member
From: actually: Hannover, DE
Registered: 2009-07-26
Posts: 109
Website

Re: Huawei E220

Did your modem uses option driver ? It should be some info in dmesg after plug in modem.
Show dmesg after plug in modem. Is it attached to /dev/ttyUSB0 or something similar ?

Also check (lsusb) is device ID of this modem is the same when you plug in modem when usb_modeswitch is installed and when usb_modeswitch is not installed. I have Huawei E173 and lsusb output was different after install usb_modeswitch. Because of that modem didn't work properly. The correct device ID was when I didn't have usb_modeswitch installed.
Then after install usb_modeswitch I had to create rule for this and modem was discovered correctly.

Offline

#6 2012-05-05 12:05:07

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Huawei E220

I removed usb_modeswitch and there is no change to the device vendor/product id shown in lsusb, modemmanager in networkmanager now shows the Mobile Broadband tab with the modem connection (which I created when the usb_storage module was removed before) but there is no Mobile Broadband listed under Interfaces. The module usb_storage is still installed. wvdialconf does NOT find the modem although /dev/ttyUSB0 and /dev/ttyUSB1 have been created. Removing usb_storage allows wvdialconf to find the modem at /dev/ttyUSB0 and shows Mobile Broadband in the Interfaces list.

After reinstalling usb_modeswitch, the findings are exactly the same.

Here is all the information I have:

I have installed networkmanager 0.9.4.0-4 modemmanager 0.5.2.0-2 usb_modeswitch 1.2.3-1 and wvdial 1.61-4

If I plug in the modem I see:

$ lsusb
Bus 002 Device 009: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem

which, to me, says that it has been recognised and switched to a modem.

In network manager the Mobile Broadband tab remained greyed out until I rmmod'ed usb_storage and filled inthe details, now it exists but the Modem is not listed under Interfaces.

For wvdial I get, variously:

$ wvdial vodafone
--> WvDial: Internet dialer version 1.61
--> Cannot open /dev/ttyUSB0: No such device
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory

$ wvdial vodafone
--> WvDial: Internet dialer version 1.61
--> Cannot open /dev/ttyUSB0: Input/output error
--> Cannot open /dev/ttyUSB0: No such file or directory
--> Cannot open /dev/ttyUSB0: No such file or directory

$ wvdial vodafone
--> WvDial: Internet dialer version 1.61
--> Cannot open /dev/ttyUSB0: Permission denied
--> Cannot open /dev/ttyUSB0: Permission denied
--> Cannot open /dev/ttyUSB0: Permission denied

$ ls -l /dev/ttyUSB0
crw-rw---- 1 root uucp 188,  0 May  1 14:48 /dev/ttyUSB0

$ groups
lp uucp games clamav avahi video audio power users vboxusers

The message log shows:

May  1 15:53:05 hp-dm1 kernel: [17846.484912] usb 2-1: new high-speed USB device number 12 using ehci_hcd
May  1 15:53:05 hp-dm1 kernel: [17846.623673] scsi602 : usb-storage 2-1:1.0
May  1 15:53:05 hp-dm1 kernel: [17846.624305] usb 2-1: USB disconnect, device number 12
May  1 15:53:12 hp-dm1 kernel: [17854.074930] usb 2-1: new high-speed USB device number 13 using ehci_hcd
May  1 15:53:12 hp-dm1 kernel: [17854.214219] option 2-1:1.0: GSM modem (1-port) converter detected
May  1 15:53:12 hp-dm1 kernel: [17854.214398] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
May  1 15:53:12 hp-dm1 kernel: [17854.214638] option 2-1:1.1: GSM modem (1-port) converter detected
May  1 15:53:12 hp-dm1 kernel: [17854.214765] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
May  1 15:53:12 hp-dm1 kernel: [17854.216449] scsi605 : usb-storage 2-1:1.2
May  1 15:53:12 hp-dm1 kernel: [17854.220592] scsi606 : usb-storage 2-1:1.3
May  1 15:53:12 hp-dm1 modem-manager[982]: <info>  (ttyUSB0) opening serial port...
May  1 15:53:13 hp-dm1 kernel: [17855.223696] scsi 605:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
May  1 15:53:13 hp-dm1 kernel: [17855.229049] scsi 606:0:0:0: Direct-Access     HUAWEI   MMC Storage      2.31 PQ: 0 ANSI: 2
May  1 15:53:13 hp-dm1 kernel: [17855.236561] sr0: scsi-1 drive
May  1 15:53:13 hp-dm1 kernel: [17855.245063] sd 606:0:0:0: [sdb] Attached SCSI removable disk
May  1 15:53:14 hp-dm1 modem-manager[982]: <info>  (ttyUSB0) closing serial port...
May  1 15:53:14 hp-dm1 modem-manager[982]: <info>  (ttyUSB0) serial port closed
May  1 15:53:14 hp-dm1 modem-manager[982]: <info>  (ttyUSB0) opening serial port...
May  1 15:53:14 hp-dm1 modem-manager[982]: <info>  (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1 claimed port ttyUSB0
May  1 15:53:15 hp-dm1 modem-manager[982]: <info>  (ttyUSB0) closing serial port...
May  1 15:53:15 hp-dm1 modem-manager[982]: <info>  (ttyUSB0) serial port closed
May  1 15:53:15 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) opening serial port...
May  1 15:53:19 hp-dm1 kernel: [17860.758663] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
May  1 15:53:19 hp-dm1 kernel: [17860.758695] option 2-1:1.0: device disconnected
May  1 15:53:25 hp-dm1 modem-manager[982]: <warn>  (Huawei) ttyUSB1: couldn't open serial port: (0) Could not lock serial device ttyUSB1: Input/output error
May  1 15:53:25 hp-dm1 modem-manager[982]: <info>  (tty/ttyUSB0): released by modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1
May  1 15:53:25 hp-dm1 kernel: [17867.305206] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
May  1 15:53:25 hp-dm1 kernel: [17867.305228] option 2-1:1.1: device disconnected
May  1 15:53:25 hp-dm1 NetworkManager[871]: <warn> could not get device type: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
May  1 15:53:25 hp-dm1 kernel: [17867.411633] usb 2-1: reset high-speed USB device number 13 using ehci_hcd
May  1 15:53:26 hp-dm1 kernel: [17867.540452] option 2-1:1.1: GSM modem (1-port) converter detected
May  1 15:53:26 hp-dm1 kernel: [17867.540742] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
May  1 15:53:26 hp-dm1 kernel: [17867.541412] option 2-1:1.0: GSM modem (1-port) converter detected
May  1 15:53:26 hp-dm1 kernel: [17867.542000] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
May  1 15:53:26 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) opening serial port...
May  1 15:53:26 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) closing serial port...
May  1 15:53:26 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) serial port closed
May  1 15:53:26 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) opening serial port...
May  1 15:53:26 hp-dm1 modem-manager[982]: <info>  (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1 claimed port ttyUSB1
May  1 15:53:27 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) closing serial port...
May  1 15:53:27 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) serial port closed
May  1 15:53:29 hp-dm1 modem-manager[982]: <info>  (ttyUSB0) opening serial port...
May  1 15:53:33 hp-dm1 kernel: [17874.838735] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
May  1 15:53:33 hp-dm1 kernel: [17874.838768] option 2-1:1.0: device disconnected
May  1 15:53:39 hp-dm1 modem-manager[982]: <warn>  (Huawei) ttyUSB0: couldn't open serial port: (0) Could not lock serial device ttyUSB0: Input/output error
May  1 15:53:39 hp-dm1 modem-manager[982]: <info>  (tty/ttyUSB1): released by modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1
May  1 15:53:39 hp-dm1 kernel: [17880.592264] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
May  1 15:53:39 hp-dm1 kernel: [17880.592286] option 2-1:1.1: device disconnected
May  1 15:53:39 hp-dm1 NetworkManager[871]: <warn> could not get device type: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
May  1 15:53:39 hp-dm1 kernel: [17880.698311] usb 2-1: reset high-speed USB device number 13 using ehci_hcd
May  1 15:53:39 hp-dm1 kernel: [17880.827185] option 2-1:1.1: GSM modem (1-port) converter detected
May  1 15:53:39 hp-dm1 kernel: [17880.827590] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
May  1 15:53:39 hp-dm1 kernel: [17880.827856] option 2-1:1.0: GSM modem (1-port) converter detected
May  1 15:53:39 hp-dm1 kernel: [17880.829368] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
May  1 15:53:39 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) opening serial port...
May  1 15:53:40 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) closing serial port...
May  1 15:53:40 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) serial port closed
May  1 15:53:40 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) opening serial port...
May  1 15:53:40 hp-dm1 modem-manager[982]: <info>  (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1 claimed port ttyUSB1
May  1 15:53:40 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) closing serial port...
May  1 15:53:40 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) serial port closed
May  1 15:53:42 hp-dm1 modem-manager[982]: <info>  (ttyUSB0) opening serial port...
May  1 15:53:46 hp-dm1 kernel: [17888.065262] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
May  1 15:53:46 hp-dm1 kernel: [17888.065297] option 2-1:1.0: device disconnected
May  1 15:53:52 hp-dm1 modem-manager[982]: <warn>  (Huawei) ttyUSB0: couldn't open serial port: (0) Could not lock serial device ttyUSB0: Input/output error
May  1 15:53:52 hp-dm1 modem-manager[982]: <info>  (tty/ttyUSB1): released by modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1
May  1 15:53:52 hp-dm1 kernel: [17893.868546] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
May  1 15:53:52 hp-dm1 kernel: [17893.868566] option 2-1:1.1: device disconnected
May  1 15:53:52 hp-dm1 NetworkManager[871]: <warn> could not get device type: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist
May  1 15:53:52 hp-dm1 kernel: [17893.974975] usb 2-1: reset high-speed USB device number 13 using ehci_hcd
May  1 15:53:52 hp-dm1 kernel: [17894.103809] option 2-1:1.1: GSM modem (1-port) converter detected
May  1 15:53:52 hp-dm1 kernel: [17894.104115] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB0
May  1 15:53:52 hp-dm1 kernel: [17894.104783] option 2-1:1.0: GSM modem (1-port) converter detected
May  1 15:53:52 hp-dm1 kernel: [17894.105773] usb 2-1: GSM modem (1-port) converter now attached to ttyUSB1
May  1 15:53:52 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) opening serial port...
May  1 15:53:53 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) closing serial port...
May  1 15:53:53 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) serial port closed
May  1 15:53:53 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) opening serial port...
May  1 15:53:53 hp-dm1 modem-manager[982]: <info>  (Huawei): GSM modem /sys/devices/pci0000:00/0000:00:1d.7/usb2/2-1 claimed port ttyUSB1
May  1 15:53:53 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) closing serial port...
May  1 15:53:53 hp-dm1 modem-manager[982]: <info>  (ttyUSB1) serial port closed
May  1 15:53:55 hp-dm1 modem-manager[982]: <info>  (ttyUSB0) opening serial port...

and more of the same.

/var/lock is linked to /run/lock

Andrew

Offline

#7 2012-05-05 13:37:14

tydell
Member
From: actually: Hannover, DE
Registered: 2009-07-26
Posts: 109
Website

Re: Huawei E220

Dmesg/message.log is ok.

Tell me what color is your modem blinking when you plug it in ? It should be blinking blue when modem will register in his home network.

Cannot open /dev/ttyUSB0: Permission denied

I had exactly the same output. Then I thought I need to be in proper group to launch wvdial, same as you are in uucp group and wvdial also is uucp group. It didn't work. I have permission denied to use /dev/ttyUSB0. So I needed to run wvdial as root and it worked then. As I can see you run wvdial as normal user. Try to run it as root and then write what you get.

Offline

#8 2012-05-05 14:22:40

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Huawei E220

I re-read that wiki page after your explanations and in fact the quirk you use (unload usb_storage) resembles what is written there: https://wiki.archlinux.org/index.php/Hu … Slow_Start
That seems normal for that modem.

Maybe you have to do a

sudo rc.d restart networkmanager

after rmmod'ing usb_storage. It let's you activate broadband then, right? Then that should be shown under interfaces and enable you to set it up, e.g.

sudo nm-connection-editor

Offline

#9 2012-05-05 15:26:07

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Huawei E220

@tydell
Yes, it is green, which confirms that it is in the wrong mode I guess. Starting wbdial as root makes no difference.
@Strike0
I missed that bit, although it looks very much out of date, so that may be the reason that I missed it. I will investigate further.

I have has some interesting results. sakis3g, which uses usb_modeswitch, seems to create a connection as long as modemmanager is not running, although the light on the modem stays at solid green. But when it disconnects networkmanager does not reconnect. So it seems that the modem should work.

The usb_modeswitch page says

When dealing with wireless devices, there may be issues with NetworkManager (or its ModemManager component) which up to now may run into touble when trying to auto-detect a proper modem port.

Andrew

Offline

#10 2012-05-05 15:41:16

tydell
Member
From: actually: Hannover, DE
Registered: 2009-07-26
Posts: 109
Website

Re: Huawei E220

When modem is green then it doesn't connect to it's home network even it doesn't "see" home network. When modem is blinking blue then it sign, that it's registered to home network, and when it's constant blue then your modem is connected and you should have access to internet.

Please do

cat /proc/bus/usb/devices 

when modem is plugged in and write it here.

Offline

#11 2012-05-05 18:29:20

kbaegis
Member
Registered: 2011-05-16
Posts: 1

Re: Huawei E220

<not really relevant>

Last edited by kbaegis (2012-05-05 18:43:19)

Offline

#12 2012-05-05 19:17:07

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Huawei E220

fdservices wrote:

@tydell
Yes, it is green, which confirms that it is in the wrong mode I guess. Starting wbdial as root makes no difference.

Some of those Huawei modem's have a green led for GPRS and blue for 3G/UMTS. So it may be green only means you don't have a 3G cell nearby or available but could still connect.
For those the light/connection rate might even change during a connection depending on conn quality and how crowded 3G is.

Offline

#13 2012-05-06 07:22:09

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Huawei E220

$ cat /proc/bus/usb/devices
cat: /proc/bus/usb/devices: No such file or directory

$ lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 007 Device 002: ID 090c:637b Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.)
Bus 002 Device 002: ID 046d:c526 Logitech, Inc. Nano Receiver
Bus 005 Device 002: ID 03f0:2a1d Hewlett-Packard
Bus 007 Device 005: ID 12d1:1003 Huawei Technologies Co., Ltd. E220 HSDPA Modem / E230/E270/E870 HSDPA/HSUPA Modem

Andrew

Offline

#14 2012-05-06 11:36:16

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Huawei E220

@Strike0
I suspect that nm-connection-editor is a part of Gnome, restarting networkmanager makes no difference.

As far as I can see modemmanager does not recognise this modem with usb_storage installed and usb-modeswitch can properly switch the modem, but I have no idea how.
I need usb_storage to load memory sticks, so rmmod'ing that is not a possibilty.


The following appears to work:

Uninstall modemmanager
Install sakis3g from AUR

Create /etc/sakis3g.conf

MODEM="12d1:1003"
CUSTOM_APN="pp.vodafone.co.uk"
APN_USER="web"
APN_PASS="web"

Plug modem
Wait until it settles
Connect with
$ sudo sakis3g connect
Disconnect with
$ sudo sakis3g disconnect
$ sudo rc.d restart networkmanager > /dev/null

I cannot fully test this since I am in France, but I will next week.

Thanks for the help

Andrew

Offline

#15 2012-05-06 15:27:56

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Huawei E220

just a note, fdservices please use code tags for terminal output. Please do not use quote tags for terminal output. Thanks. Good luck with the modem.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#16 2012-05-06 16:44:25

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Huawei E220

Sorry.

I thought twice about whether it was quote or code, and chose the wrong one. Ah well!

Andrew

Offline

#17 2012-05-06 21:33:14

Strike0
Member
From: Germany
Registered: 2011-09-05
Posts: 1,429

Re: Huawei E220

nm-connection-editor is part of the network-manager-applet package, It is the gnome2-style editor. I was not aware you are not using gnome.

edit: this one: http://www.archlinux.org/packages/extra … er-applet/

Last edited by Strike0 (2012-05-06 21:34:06)

Offline

#18 2012-05-07 07:03:37

fdservices
Member
From: France
Registered: 2012-02-06
Posts: 413

Re: Huawei E220

I am using KDE and the kdeplasma-applets-networkmanager package. The connection editor is on a tab in the applet. smile

Andrew

Offline

Board footer

Powered by FluxBB