How can I set up the Huawei E220 vodafone USB box?

Booting, installing, newbie
Post Reply
Message
Author
SFTMartin
Posts: 23
Joined: Thu 31 Aug 2006, 00:15

How can I set up the Huawei E220 vodafone USB box?

#1 Post by SFTMartin »

Hallo,
I have a Huawei E220 Vodafone " Internet Connect Box" This works fine for windows and OSX but I want to use it for my puppy. I found a link
http://the.taoofmac.com/space/Huawei/E220 with some info which I couldn

wescht
Posts: 15
Joined: Thu 18 Jan 2007, 19:07

#2 Post by wescht »

EDIT: totally redone this Post.

The point is, puppy detects an usb-storage (which contains the drivers for windows) and stops detecting. But the device not detected is the actual modem ... so you have to do following:

Code: Select all

rmmod usb-storage
rmmod usbserial
the "rmmod usbserial" SHOULD produce an error,

Code: Select all

ERROR: Module usbserial does not exist in /proc/modules
then, plug in the modem.

type

Code: Select all

cat /proc/bus/usb
this file lists all usb-devices. look for huawei, and notice the line:

Code: Select all

P:  Vendor=12d1 ProdID=1003 Rev= 0.00
now, enter

Code: Select all

modprobe usbserial vendor=0x12d1 product=0x1003
(or you according product number)

/var/log/messages should show something like this:

Code: Select all

Mar  9 21:10:09 (none) user.info kernel: usbcore: registered new driver usbserial
Mar  9 21:10:09 (none) user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
Mar  9 21:10:09 (none) user.info kernel: usbserial_generic 1-1:1.0: generic converter detected
Mar  9 21:10:10 (none) user.info kernel: usb 1-1: generic converter now attached to ttyUSB0
Mar  9 21:10:10 (none) user.info kernel: usbcore: registered new driver usbserial_generic
Mar  9 21:10:10 (none) user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core
yes! The modem is now /dev/usb/ttyUSB0.
Last edited by wescht on Fri 09 Mar 2007, 20:11, edited 1 time in total.

wescht
Posts: 15
Joined: Thu 18 Jan 2007, 19:07

#3 Post by wescht »

playing around for a while, I got it!!!

Code: Select all

Mar  9 19:59:57 (none) user.info kernel: usb 1-2: new full speed USB device using uhci_hcd and address 8
Mar  9 19:59:58 (none) user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
Mar  9 19:59:58 (none) user.info kernel: usbserial_generic 1-2:1.0: generic converter detected
Mar  9 19:59:58 (none) user.info kernel: usb 1-2: generic converter now attached to ttyUSB0
put the wvdial.conf from the first post on http://www.mybroadband.co.za/vb/showthread.php?t=21726 (well ... ok: here is the direct link: http://www.insync.za.net/3g_docs/wvdial.conf ) into /etc e.g. /etc/wvdial.conf

edit the huewei_e220 - section from the wvdial.conf above to:
Modem = /dev/usb/ttyUSB0

it connects to the modem!

Code: Select all

sh-3.00# wvdial huewai_e220
--> WvDial: Internet dialer version 1.42
--> Initializing modem.
--> Sending: ATZ
--> Modem not responding.
--> Cannot open /dev/usb/ttyUSB0: No such device
--> Cannot open /dev/usb/ttyUSB0: No such device
the "Cannot open" lines are because at the same time the following happens:

Code: Select all

Mar  9 20:01:27 (none) user.info kernel: usb 1-2: USB disconnect, address 8
Mar  9 20:01:27 (none) user.info kernel: generic ttyUSB0: generic converter now disconnected from ttyUSB0
Mar  9 20:01:27 (none) user.info kernel: usbserial_generic 1-2:1.0: device disconnected
Mar  9 20:01:47 (none) user.info kernel: usb 1-2: new full speed USB device using uhci_hcd and address 9
Mar  9 20:01:48 (none) user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
Mar  9 20:01:48 (none) user.info kernel: usbserial_generic 1-2:1.0: generic converter detected
Mar  9 20:01:48 (none) user.info kernel: usb 1-2: generic converter now attached to ttyUSB0
so, at the time the wvdial tries to connect, the usb modem disconnects, and reconnects some (usually 10 to 20) seconds later. What could I do?
Last edited by wescht on Fri 09 Mar 2007, 20:15, edited 1 time in total.

wescht
Posts: 15
Joined: Thu 18 Jan 2007, 19:07

#4 Post by wescht »

after trying to connect once, and letting the device reconnect (by itself; it does this after 10-20 seconds after disconnecting), is does not disconnect any more. But it still does not respond:

Code: Select all

sh-3.00# wvdial huewai_e220
--> WvDial: Internet dialer version 1.42
--> Initializing modem.
--> Sending: ATZ
--> Modem not responding.
--> Cannot open /dev/usb/ttyUSB0: No such device
--> Cannot open /dev/usb/ttyUSB0: No such device
sh-3.00# wvdial huewai_e220
--> WvDial: Internet dialer version 1.42
--> Initializing modem.
--> Sending: ATZ
--> Modem not responding.
--> Initializing modem.
--> Sending: ATZ
--> Modem not responding.
--> Initializing modem.
--> Sending: ATZ
--> Modem not responding.
sh-3.00# 

wescht
Posts: 15
Joined: Thu 18 Jan 2007, 19:07

#5 Post by wescht »

try to have the modem connected at the time you boot - this worked for me!

then, create a file "/etc/ppp/peers/wvdial" containing the line "defaultroute" (I don't know if this file can also be empty - just try)

do the above changes (change /dev/ttyUSB0 to /dev/usb/ttyUSB0 in wvdial.conf)

then, "wvdial huewai_e220" - it worked for me! (If it doesn't: make sure the pin is deactivated - can be done using the windows software, or edit the pin in the [pin]-section of wvdial.conf and call "wvdial pin huewai_e220")

kultex
Posts: 39
Joined: Sat 17 Nov 2007, 19:46

#6 Post by kultex »

Hallo,

I am totally new to Puppy. I installed puppy to the harddisk

What I have to do, that the modem is recognized correctly at boot? I do not want to type

modprobe usbserial vendor=0x12d1 product=0x1003 (thats the only thing you have to type)

EDIT: strange - this works only, if you reboot without putting another networkcard in the meantime to the compter - if you do so - you have to type also

rmmod usb-storage
rmmod usbserial

EDIT

again.

If you have the modem work correctly, it is easier to connect through ppp and chat-scripts

there is a very good howto here: http://linux.frankenberger.at/Huawei_E220.html

you only have to change /dev/ttyUSB0 to /dev/usb/ttyUSB0

fargo
Posts: 8
Joined: Thu 10 Jan 2008, 10:37

#7 Post by fargo »

I'm trying to setup 3G USB modem under puppy. wvDial gives "Modem not responding" after trying to send ATZ initializing command.

The system's messagess log file gives me something similar to this:
Mar 9 21:10:09 (none) user.info kernel: usbcore: registered new driver usbserial
Mar 9 21:10:09 (none) user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
Mar 9 21:10:09 (none) user.info kernel: usbserial_generic 1-1:1.0: generic converter detected
Mar 9 21:10:10 (none) user.info kernel: usb 1-1: generic converter now attached to ttyUSB0
Mar 9 21:10:10 (none) user.info kernel: usbcore: registered new driver usbserial_generic
Mar 9 21:10:10 (none) user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core
I have the feeling that the use of "generic serial convertor" is the problem. So, any help on how to move one step farther to have something similar to this:
Mar 9 19:59:57 (none) user.info kernel: usb 1-2: new full speed USB device using uhci_hcd and address 8
Mar 9 19:59:58 (none) user.info kernel: usb 1-2: configuration #1 chosen from 1 choice
Mar 9 19:59:58 (none) user.info kernel: usbserial_generic 1-2:1.0: generic converter detected
Mar 9 19:59:58 (none) user.info kernel: usb 1-2: generic converter now attached to ttyUSB0
Thank you.

goofyas007
Posts: 1
Joined: Fri 25 Jul 2008, 14:31

handy tool for the Huawei E220

#8 Post by goofyas007 »

Guys,

for a nice interface to control the Huawei E220 check this out.
http://umtsmon.sourceforge.net/

I've been using it quit intensive & I think it's a good add on for controlling the Huawei

johnh10000
Posts: 12
Joined: Mon 29 Sep 2008, 09:44

huawei e220 3 usb box

#9 Post by johnh10000 »

fargo wrote:I'm trying to setup 3G USB modem under puppy. wvDial gives "Modem not responding" after trying to send ATZ initializing command.

The system's messagess log file gives me something similar to this:
Mar 9 21:10:09 (none) user.info kernel: usbcore: registered new driver usbserial
Mar 9 21:10:09 (none) user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial support registered for generic
Mar 9 21:10:09 (none) user.info kernel: usbserial_generic 1-1:1.0: generic converter detected
Mar 9 21:10:10 (none) user.info kernel: usb 1-1: generic converter now attached to ttyUSB0
Mar 9 21:10:10 (none) user.info kernel: usbcore: registered new driver usbserial_generic
Mar 9 21:10:10 (none) user.info kernel: drivers/usb/serial/usb-serial.c: USB Serial Driver core
I have the feeling that the use of "generic serial convertor" is the problem. So, any help on how to move one step farther to have something similar to this:

I am using teen pup. and I am getting the same as above.

did anyone find a solution?

Thank you.

User avatar
Aitch
Posts: 6518
Joined: Wed 04 Apr 2007, 15:57
Location: Chatham, Kent, UK

#10 Post by Aitch »


User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#11 Post by technosaurus »

i made a simple bash script and post some instructions to modify it here

http://www.murga-linux.com/puppy/viewtopic.php?t=37793
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply