LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   Huawei E220 (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/huawei-e220-639202/)

danne123 05-01-2008 04:33 PM

Huawei E220
 
AHHHH, NOT AN OTHER PROBLEM!

But here it goes:

After I crashed ubuntu 8.04 (again) I decide to reinstall it (again) and everything went smooth to huawei e220 installation.

Yesterday I succeeded to connect to internet with my Huawei e220 and everything worked perfect. Today I went to school and surfed on the wireless network, no problem there.
But when I got home and tried to connect to internet with my huawei e220 nothing works.

I cant copy anything from the terminal cause it is so many lines and I haven't got a USB-memory stick. But these lines seems important:


ADDRCONF (NETDEV_UP): eth0 link not ready
ath0: no IPv6 routers not present


You can see that the computer finds the modem with dmesg. There it says Huawei modem.


I configured the modem like this:
http://ubuntu-bossieman.blogspot.com...ang-frn-3.html
Sorry the page is in swedish but you see in the pictures what I have done.

danne123 05-02-2008 07:34 AM

I managed to get a USB stick now.

The problem is even worse now!
If I change something in "System->Administration->Network->Point to point connection" it always go back to modem type PPPoE and reset everything else.
I have tried to restart the computer and shutdown the computer nothing works.


I cant understand, which driver e220 has been attached to.

Code:

DMESG
[  477.539854] usb 2-1: configuration #1 chosen from 1 choice
[  190.818699] usb-storage: probe of 2-1:1.0 failed with error -5
[  190.818732] airprime 2-1:1.0: airprime converter detected
[  190.818999] usb 2-1: airprime converter now attached to ttyUSB0
[  190.819072] usb 2-1: airprime converter now attached to ttyUSB1
[  190.819138] usb 2-1: airprime converter now attached to ttyUSB2
[  190.830623] usb-storage: probe of 2-1:1.1 failed with error -5
[  190.830651] airprime 2-1:1.1: airprime converter detected
[  190.830881] usb 2-1: airprime converter now attached to ttyUSB3
[  190.830946] usb 2-1: airprime converter now attached to ttyUSB4
[  190.831015] usb 2-1: airprime converter now attached to ttyUSB5
[  190.850564] scsi5 : SCSI emulation for USB Mass Storage devices
[  190.865678] usb-storage: device found at 3
[  190.865684] usb-storage: waiting for device to settle before scanning
[  191.142383] /build/buildd/linux-2.6.24/drivers/usb/serial/usb-serial.c: USB Serial support registered for GSM modem (1-port)
[  191.143204] usbcore: registered new interface driver option
[  191.143208] /build/buildd/linux-2.6.24/drivers/usb/serial/option.c: USB Driver for GSM modems: v0.7.1
[  194.603088] usb-storage: device scan complete
[  194.606068] scsi 5:0:0:0: CD-ROM            HUAWEI  Mass Storage    2.31 PQ: 0 ANSI: 2
[  194.645972] sr1: scsi-1 drive
[  194.646053] sr 5:0:0:0: Attached scsi CD-ROM sr1
[  194.646105] sr 5:0:0:0: Attached scsi generic sg2 type 5
[  263.036498] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  263.195899] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  265.206281] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  274.041740] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  274.206860] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  276.027312] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  282.252376] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  282.428669] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  284.252517] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  298.605128] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  300.329675] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  321.348445] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  321.583993] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  323.573495] ADDRCONF(NETDEV_UP): eth0: link is not ready
[  822.835710] usb 2-1: USB disconnect, address 3
[  822.836443] airprime ttyUSB0: airprime converter now disconnected from ttyUSB0
[  822.836768] airprime ttyUSB1: airprime converter now disconnected from ttyUSB1
[  822.837086] airprime ttyUSB2: airprime converter now disconnected from ttyUSB2
[  822.837117] airprime 2-1:1.0: device disconnected
[  822.837648] airprime ttyUSB3: airprime converter now disconnected from ttyUSB3
[  822.837968] airprime ttyUSB4: airprime converter now disconnected from ttyUSB4
[  822.838284] airprime ttyUSB5: airprime converter now disconnected from ttyUSB5
[  822.838315] airprime 2-1:1.1: device disconnected
[ 1076.392592] usb 4-4: new high speed USB device using ehci_hcd and address 4
[ 1076.530361] usb 4-4: configuration #1 chosen from 1 choice
[ 1076.544411] scsi6 : SCSI emulation for USB Mass Storage devices
[ 1076.558194] usb-storage: device found at 4
[ 1076.558205] usb-storage: waiting for device to settle before scanning
[  431.571331] usb-storage: device scan complete
[  431.572695] scsi 6:0:0:0: Direct-Access    Corsair  Flash Voyager    1100 PQ: 0 ANSI: 0 CCS
[  431.587765] sd 6:0:0:0: [sdb] 1966080 512-byte hardware sectors (1007 MB)
[  431.588638] sd 6:0:0:0: [sdb] Write Protect is off
[  431.588642] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  431.588645] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[  431.591380] sd 6:0:0:0: [sdb] 1966080 512-byte hardware sectors (1007 MB)
[  431.592256] sd 6:0:0:0: [sdb] Write Protect is off
[  431.592260] sd 6:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  431.592263] sd 6:0:0:0: [sdb] Assuming drive cache: write through
[  431.592268]  sdb: sdb1
[  431.634953] sd 6:0:0:0: [sdb] Attached SCSI removable disk
[  431.635008] sd 6:0:0:0: Attached scsi generic sg2 type 0


danne123 05-03-2008 02:29 PM

bump

Help please, need to connect to internet :)

unSpawn 05-03-2008 04:25 PM

It's not the ideal way to handle things, but since I do not own a E220 and I don't want to go through the Betavineforge docs again, what if you delete both school and home profile, remove the wireless card (only if other than your E220), reboot the machine (to be sure nothing sticks) and then set up your home internet profile again?

danne123 05-04-2008 03:19 AM

Is it normal that I donīt get a popup window when Huawei modem is plugged in? If I connect my friends USB memory-stick, then a popup window appears.

ANYWAY I made some progress by reinstalling ubuntu.

And if you look at these lines:

Code:

[  822.835710] usb 2-1: USB disconnect, address 3
[  822.836443] airprime ttyUSB0: airprime converter now disconnected from ttyUSB0
[  822.836768] airprime ttyUSB1: airprime converter now disconnected from ttyUSB1
[  822.837086] airprime ttyUSB2: airprime converter now disconnected from ttyUSB2
[  822.837117] airprime 2-1:1.0: device disconnected
[  822.837648] airprime ttyUSB3: airprime converter now disconnected from ttyUSB3
[  822.837968] airprime ttyUSB4: airprime converter now disconnected from ttyUSB4
[  822.838284] airprime ttyUSB5: airprime converter now disconnected from ttyUSB5

Is this normal?


Code:

[ 1623.463569] scsi 10:0:0:0: CD-ROM            HUAWEI  Mass Storage    2.31 PQ: 0 ANSI: 2
[  648.659856] sr1: scsi-1 drive
[  648.659932] sr 10:0:0:0: Attached scsi CD-ROM sr1
[  648.659985] sr 10:0:0:0: Attached scsi generic sg2 type 5
[ 1717.105050] usb 2-2: USB disconnect, address 4
[ 1717.107240] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
[ 1717.107281] airprime 2-2:1.0: device disconnected
[ 1717.107834] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
[ 1717.107868] airprime 2-2:1.1: device disconnected
[  728.828430] ADDRCONF(NETDEV_UP): eth0: link is not ready

Why does it connect to both ttyUSB0 and ttyUSB1?

unSpawn 05-04-2008 05:17 AM

Quote:

Originally Posted by danne123 (Post 3141917)
Is it normal that I donīt get a popup window when Huawei modem is plugged in? If I connect my friends USB memory-stick, then a popup window appears.

I do not know which application shows you the pop-up, what it triggers on, what the pop-up would read or what you would need to do to get the pop-up if you would want one. I would suggest maximising a terminal window and using sudo to 'tail -f /var/log/messages' just before you plug in the device to see what goes on.


Quote:

Originally Posted by danne123 (Post 3141917)
And if you look at these lines:
Is this normal?

Can't say, to few lines of output. If your system has 'lsusb' or 'lshw', does the device show up after plugging it in and letting it settle?


Quote:

Originally Posted by danne123 (Post 3141917)
In network settings shall I set modem port to sr1?

The Huawei E220 is a HSDPA USB modem, so that would mean you need /dev/ttyUSB.* something. If your kernel ('uname -r') is 2.6.19 or below you'll have problems because the kernels SCSI-emulation thinks it's a SCSI-CDROM device, that's why you're seeing those messages. A workaround could be http://oozie.fm.interia.pl/pro/huawei-e220/. Two more technical (as in non-GUI) explanations of how to get that modem to work are here and here. While they are both for Gentoo, they should show how to check and troubeshoot things so I HTH.

danne123 05-04-2008 07:56 AM

The two last links require a file called "/proc/config.gz". But I havenīt got that file. Any ideas?

When shall you plugin the modem? Before you start the computer or after?

unSpawn 05-05-2008 06:35 AM

Quote:

Originally Posted by danne123 (Post 3142115)
The two last links require a file called "/proc/config.gz". But I havenīt got that file.

"/proc/config.gz" is only available in recent 2.6 series kernels. It's the compressed .config that was used when building the kernel. If you built your own kernel without that option you should find the .config file where you built your kernel. On the other hand, if you *know* (since it worked, right?) your kernel included the necessary compile-time options you could probably skip that check.


Quote:

Originally Posted by danne123 (Post 3142115)
When shall you plugin the modem? Before you start the computer or after?

That doesn't matter, as long as you can follow it's trail of messages (probably mostly dealing with USB?) in your syslog.

danne123 05-05-2008 02:05 PM

Does this say anything that could help solve my problem?

Code:

tail -f /var/log/messages
May  5 20:56:48 diablo chat[5657]: expect (OK)
May  5 20:56:48 diablo chat[5657]: ATZ^M^M
May  5 20:56:48 diablo chat[5657]: OK
May  5 20:56:48 diablo chat[5657]:  -- got it
May  5 20:56:48 diablo chat[5657]: send (ATDT*99#W*99#^M)
May  5 20:56:48 diablo chat[5657]: timeout set to 75 seconds
May  5 20:56:48 diablo chat[5657]: expect (CONNECT)
May  5 20:56:48 diablo chat[5657]: ^M
May  5 20:56:48 diablo chat[5657]: ATDT*99#W*99#^M^M
May  5 20:56:48 diablo chat[5657]: COMMAND NOT SUPPORT^M
May  5 20:58:03 diablo chat[5657]: alarm
May  5 20:58:03 diablo chat[5657]: Failed
May  5 20:58:35 diablo chat[6078]: timeout set to 60 seconds
May  5 20:58:35 diablo chat[6078]: abort on (ERROR)
May  5 20:58:35 diablo chat[6078]: abort on (BUSY)
May  5 20:58:35 diablo chat[6078]: abort on (VOICE)
May  5 20:58:35 diablo chat[6078]: abort on (NO CARRIER)
May  5 20:58:35 diablo chat[6078]: abort on (NO DIALTONE)
May  5 20:58:35 diablo chat[6078]: abort on (NO DIAL TONE)
May  5 20:58:35 diablo chat[6078]: abort on (NO ANSWER)
May  5 20:58:35 diablo chat[6078]: send (ATZ^M)
May  5 20:58:35 diablo chat[6078]: send (AT&FH0M0^M)
May  5 20:58:35 diablo chat[6078]: expect (OK)
May  5 20:58:35 diablo chat[6078]: ATZ^M^M
May  5 20:58:35 diablo chat[6078]: OK
May  5 20:58:35 diablo chat[6078]:  -- got it
May  5 20:58:35 diablo chat[6078]: send (ATDT*99#W*99#^M)
May  5 20:58:35 diablo chat[6078]: timeout set to 75 seconds
May  5 20:58:35 diablo chat[6078]: expect (CONNECT)
May  5 20:58:35 diablo chat[6078]: ^M
May  5 20:58:35 diablo chat[6078]: ATDT*99#W*99#^M^M
May  5 20:58:35 diablo chat[6078]: NO CARRIER
May  5 20:58:35 diablo chat[6078]:  -- failed
May  5 20:58:35 diablo chat[6078]: Failed (NO CARRIER)


danne123 05-06-2008 03:12 AM

AHHHHH, I managed to get everything working yesterday! But now, NOTHING again!!!!!

unSpawn 05-06-2008 07:53 AM

Sorry. Doesn't give me any clues. It's not the ideal way to handle things, but since I do not own a E220 and I don't want to go through the Betavineforge docs again, what if you delete both school and home profile, remove the wireless card (only if other than your E220), reboot the machine (to be sure nothing sticks) and then set up your home internet profile again?

danne123 05-07-2008 12:18 AM

Delete school and home profile? How do you do that?

unSpawn 05-07-2008 07:01 AM

Quote:

Originally Posted by danne123 (Post 3145303)
Delete school and home profile? How do you do that?

As your link showed you set up a profile for your connection details in some management interface.

danne123 05-08-2008 04:58 AM

Very strange, if I first start windows XP and start internet connection surf around for a moment and after that reboot the computer to start linux. Then the internet connection actually works? Why is that?

unSpawn 05-08-2008 05:50 AM

Quote:

Originally Posted by danne123 (Post 3146680)
Very strange, if I first start windows XP and start internet connection surf around for a moment and after that reboot the computer to start linux. Then the internet connection actually works?

No, it's not strange, I heard that before. With other hardware though.


Quote:

Originally Posted by danne123 (Post 3146680)
Why is that?

I've never looked into that hardware behaviour so I don't have the knowledge to explain it.
Maybe the old marketoid mantra "Where Do You Want To Go Today?" still works?


All times are GMT -5. The time now is 02:39 PM.