Labels

new blog 2.0

2007/06/28

HUAWEI E220 Statistics interface

184 comments:

Anonymous said...

Have installed on Fedora 7 plus latest package updates - E220 stats window displays but the are no details in it e.g. no details in TX, RX Mode etc.

....

OOZIE said...

1. No other tool/program (e.g. minicom) shoud be reading /dev/ttyUSB1 during xhe220stat operation. Otherwise it may fool the output.

2. Sometimes the modem starts sending information about the connection after some time, basically right after you ping 10.64.64.64 (there will be no ping response from 10.64.64.64)

3. This program is hardcoded for pointing to /dev/ttyUSB1 as statistics device. It is possible that your device responsible for that got noded to /dev/ttyUSB2 (unlikely however)

To check this edit he220ui.h file and change the following line:
#define UIDEVICE "/dev/ttyUSB1"
to this one:
#define UIDEVICE "/dev/ttyUSB2"

and run make again. Check the output with ./he220stat. If it works - "make install"

Thanks for downloading!

Anonymous said...

Thanks for feedback oozie, no minicom(from ps -ef) running. Have also tried USB2 but to no avail....

Thanks

OOZIE said...

Problem fixed! Thanks for your patience.

g1ul10 said...

Hi,
I've tried your statistics interface on gentoo, but it does not work. I can only see this

HUAWEI E220 Statistics [q]uit

Uptime :
SpeedUp :
(no data) SpeedDn :
TX :
RX :

STRENGTH Mode: HSDPA

without any stat. Plus, pressing q does not kill the program. I have to use ctrl-c instead.

OOZIE said...

Dear g1ul10,

I also use Gentoo, and both lower- and uppercase Q work for me here (you sometimes need to wait up to 2 secs until the program gets closed). Please note, that at the beginning there won't be any statistics, unless you start surfing, downloading something or simply ping 10.64.64.64 (your ppp gateway). Check again please and if there is no change, drop me an e-mail and I will be happy to help you.
Latest md5sum for he220stat.tar.bz2: 4f2a4da2590cfcf15c007ffd6ae6d694

Thanks for downloading!

raca said...

Hi
When I connect the modem I can't see 3 tty but only and it's the one I can use with the minicom.
I use a program that send command to through usb and then the tty show up.
Do you a nicer way to do this?

OOZIE said...

If you have a kernel prior to 2.6.20 you can use the udev rule from here.

If you use some later version (>=2.6.20) you may try to turn the power on when the modem is ALREADY connected or do such a trick afterwards:

modprobe -r usb_storage
modprobe -r option usbserial
modprobe -r ahci_hcd uhci_hcd ehci_hcd
modprobe ahci_hcd uhci_hcd ehci_hcd
modprobe usbserial vendor=0x12d1 \
product=0x1003

After that all three /dev/ttyUSB* devices should be available in your /dev directory.

Anonymous said...

on feisty (2.6.20-16) when I did 'make':
gcc -Wall -lncurses init_ncurses.c main.c flowreport.c rssi.c modechange.c -o he220stat
In file included from init_ncurses.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
[...]

OOZIE said...

Hi!

error: ncurses.h: No such file or directory

This error message tells you you dont have appropriate header files installed.

You need to install ncurses-devel packge from your distribution.

sudo apt-get install ncurses-devel
this should do the trick in Ubuntu.

Good luck!

Anonymous said...

I installed it, but when I try sudo xhe220stat, then a little window shortly appears and in the next moment it disapperas ... do you have any ideas?

OOZIE said...

Hallo! Try to do the following
make clean
./configure
make

and try to run ./he220stat (not xhe220stat) and let me know if you get anything. If not, please drop me an e-mail with some details (exact output), then we can try to rule out this issue together! Find my e-mail in README

Carlos said...

Hi. Is it possible to use he220stat to see the statisctics when you connect using other modem?
I am using a Novatel Merlin U630. Thanx

OOZIE said...

I belive not, but you can give it a go. The output from /dev/ttyUSB1 is probably specific for HUAWEI modems. Unfortunately I'm not in possession of modem type.

Anonymous said...

hi, you wrote: "Hallo! Try to do the following
make clean
./configure
make
and try to run ./he220stat (not xhe220stat)" - I also postet this problem in ubuntuusers.de forum. you also helped me there. it solved the problem. but now I have the same problem as g1ul10 (and I also postet it at ubuntuusers forum. the problem: "I can only see this

HUAWEI E220 Statistics [q]uit

Uptime :
SpeedUp :
(no data) SpeedDn :
TX :
RX :

STRENGTH Mode: HSDPA

without any stat." I use ubuntu 7.04! It would be nice, if you could helb me ...

FraGezeichen said...

Dear oozie, thx a lot for this program, although no programmer, I tried to understand your piece of code, and I think I got it! Thx a lot!

greets from austria,
FraGe

OOZIE said...

@FraGe: Thanks for the nice words!
@Neugier-lux: Let's carry on this topic on the forum. I hope we find a workaround!

Anonymous said...

Thank you, thank you, thank you!!
If I knew what sex you were I might even kiss you!!
For 9 months now I have been wrestling with this modem on Linux and have never been able to solve it until now.
Like some others here I cant get the Stats program to show any stats, but that is small beer compared to getting the modem to work.

OOZIE said...

Yo! Appreciate your offer, but maybe some other time ;) If you have problems with compiling he220stat then take a look at the last question in my Huawei FAQ. Highly probably you only need to install header files (devels), as the rest should be installed by default.

Anonymous said...

Good work under Linux, Actually I am looking how to run it on my PFsense router (FreeBSD).
If you have any ideas please post them.

Regards,

Samer.

Kurgan said...

I have also tried E220stats and I also get an empty screen (only the title). I suppose that for some reason the stat program does not receive any data. How does stats collection work? Do you send some AT command to the modem to make it start sending statistical data? My ttyUSB1 interface works (I can type AT commands in it), the modem is connected and I am using the link, so packets do flow through the modem. Maybe you have a different firmware than me, or I have a different modem setup. Is there somewhere a command reference for this modem? I think that it should help me a lot.

kurgan (obfuscated email AT) kurgan (DOT) org

OOZIE said...

Hi! Thanks for your entry. I got myself another Huawei E220 modem from Vodafone and guess what... he220stat is not working there. I share your opinion that it has something to do with the firmware. I will try to resolve this issue and I let you know when I'm done with it!

Anonymous said...

Also works with the Huawei E800 Expresscard.

max said...

hi oozie ... I have installed on ubuntu 7.04 desktop edition but when i plug in the E220 don't happen nothing...I came from italy and I don't have tre italy but vodafone...is this the problem? how I can configure the APN for vodafone?

Anonymous said...

Many thanks for your time in setting up your site.
I get the following error:

Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

when trying to use stats.
Any help would be greatly appreciated

pawel said...

It works with E620 on Ubuntu Feisty. Just had to switch to /dev/ttyUSB2. Thanks!

Anonymous said...

It works with E220 on Mandriva spring. many thanks!

Anonymous said...

hello I've been trying to get the huawei e220 to work on mandriva 2007,0 for the past few weeks with some varying results. i've finally got it to work, but i've found that i have to do the rmmod usb-serial thingy... plus the other instructions every time i plug the modem into the usb port. Is this normal... who cares it works for me.. The interest feature with oozie's huawei file is that in order to get it working under mandriva 2007 i used the make insall_suse., as for some reason the make mandriva command did not work. it compiled returning no error messages. anyway thanks for creating the file. I very much appreaicate your time

Anonymous said...

Install ncurses on xubuntu feisty
$ sudo apt-get install ncurses-base ncurses-bin ncurses-dev libncurses5 libncurses5-dev

then install works fine

$ tar xjvf he220stat.tar.bz2
$ cd he220stat*
$ ./configure
$ make
# make install
# xhe220stat

I put it in the panel:
gksu xhe220stat
and start it after gnome-ppp

Thanks for the nice little program to oozie

Anonymous said...

Have Suse 10.2 and Huawei modem from Tele2 Sweden. Te tool shows correctly all data in the right column and the strength after some time, but mode is (?) - actually it is WCDMA.

Carlos

Anonymous said...

I get:
harald@Harald-Ubuntu:/he220stat-0x03$ ./configure
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

this is probably quite basic
sorry i am a newbie to Linux...
can you help?

OOZIE said...

You need compilers in order to compile stuff.

toni said...

I used it in debian etch and it worked very well following your instructions and after a rebiit! thanks!!

magnus said...

Works perfect on Ubuntu 7.10
Thanks!!

carnac tour said...
This comment has been removed by a blog administrator.
dada mobile free ringtones said...

Thanks to author.

Anonymous said...

Hi oozie. Great app, exactly what i was looking for. I am actually using a newer modem (E272) and wondered if you know where i might get some additional information (there are modes that are not supported in your modechange function, e.g. mode 2) and i would like to modify your software to display the relevant information for the E272.

That said, great piece of software. many many thanks.

rancherr said...

I want to make huawei e220 on Debian.
after first step:
$ tar xjvf huawei.tar.bz2
$ cd huawei
$ su
# make info

I made make generic_install and I received:
cp files/99-huawei.rules /etc/udev/rules.d/
cp files/huawei-mobile.sh /lib/udev/
udevcontrol reload_rules

Go ahead and replug your HUAWEI modem.
--
what does it mean?
next I did:
$ tar xjvf he220stat.tar.bz2
$ cd he220stat*
$ ./configure
$ make
an error ocured:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
modechange.c: In function ‘modechange’:
modechange.c:21: warning: implicit declaration of function ‘wprintw’
modechange.c:21: error: ‘mode’ undeclared (first use in this function)
modechange.c:21: error: (Each undeclared identifier is reported only once
modechange.c:21: error: for each function it appears in.)
modechange.c:29: warning: implicit declaration of function ‘wrefresh’
make: *** [all] Error 1
Dell:/home/rancherr/Desktop/he220stat-0x03#

--
please help me I need the Internet and I completely can't deal with that :/

Cs_P said...

hi oozie,
your great wvdial stuff works with ubuntu 7.04+gnomeppp. After upgrade 7.10, successful connect:1, much glitch.

Regards,
Cs_P

Jammer said...

Hi oozie

Thanks for such a great tool, it is very useful.

One question though, I am running SuSE 10.3 with the E220 and the xhe220stat Mode is displayed as:

Mode: (?)

Is there a reason why the mode might not be identified correctly?

Thanks

Anonymous said...

When I install it in OpenSuse 10.2, I faced such errors, Could you help me:
MISL1:~/Desktop/he220stat-0x03 # ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for strchr... yes
configure: creating ./config.status
config.status: creating Makefile
MISL1:~/Desktop/he220stat-0x03 # make
gcc -Wall -lncurses init_ncurses.c main.c flowreport.c rssi.c modechange.c -o he220stat
In file included from init_ncurses.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from init_ncurses.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
init_ncurses.c: In function ‘init_ncurses’:
init_ncurses.c:20: warning: implicit declaration of function ‘initscr’
init_ncurses.c:21: warning: implicit declaration of function ‘noecho’
init_ncurses.c:22: warning: implicit declaration of function ‘halfdelay’
init_ncurses.c:23: warning: implicit declaration of function ‘curs_set’
init_ncurses.c:25: warning: implicit declaration of function ‘getmaxyx’
init_ncurses.c:25: error: ‘stdscr’ undeclared (first use in this function)
init_ncurses.c:25: error: (Each undeclared identifier is reported only once
init_ncurses.c:25: error: for each function it appears in.)
init_ncurses.c:27: error: ‘rssi_’ undeclared (first use in this function)
init_ncurses.c:27: warning: implicit declaration of function ‘newwin’
init_ncurses.c:28: warning: implicit declaration of function ‘wclear’
init_ncurses.c:29: warning: implicit declaration of function ‘wprintw’
init_ncurses.c:31: error: ‘rssi_hide’ undeclared (first use in this function)
init_ncurses.c:33: error: ‘stats’ undeclared (first use in this function)
init_ncurses.c:34: error: ‘mode’ undeclared (first use in this function)
In file included from main.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from main.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c: In function ‘main’:
main.c:49: warning: implicit declaration of function ‘printw’
main.c:53: warning: implicit declaration of function ‘getch’
main.c:53: error: ‘ERR’ undeclared (first use in this function)
main.c:53: error: (Each undeclared identifier is reported only once
main.c:53: error: for each function it appears in.)
main.c:70: warning: implicit declaration of function ‘wrefresh’
main.c:70: error: ‘rssi_’ undeclared (first use in this function)
main.c:71: error: ‘rssi_hide’ undeclared (first use in this function)
main.c:72: error: ‘stats’ undeclared (first use in this function)
main.c:73: error: ‘mode’ undeclared (first use in this function)
main.c:79: warning: implicit declaration of function ‘endwin’
In file included from flowreport.c:14:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from flowreport.c:14:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
flowreport.c: In function ‘flowreport’:
flowreport.c:30: warning: implicit declaration of function ‘wclear’
flowreport.c:30: error: ‘stats’ undeclared (first use in this function)
flowreport.c:30: error: (Each undeclared identifier is reported only once
flowreport.c:30: error: for each function it appears in.)
flowreport.c:31: warning: implicit declaration of function ‘wprintw’
flowreport.c:34: warning: implicit declaration of function ‘wrefresh’
In file included from rssi.c:14:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from rssi.c:14:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
rssi.c: In function ‘rssi’:
rssi.c:24: warning: implicit declaration of function ‘delwin’
rssi.c:24: error: ‘rssi_hide’ undeclared (first use in this function)
rssi.c:24: error: (Each undeclared identifier is reported only once
rssi.c:24: error: for each function it appears in.)
rssi.c:25: warning: implicit declaration of function ‘wclear’
rssi.c:25: error: ‘rssi_’ undeclared (first use in this function)
rssi.c:26: warning: implicit declaration of function ‘wprintw’
rssi.c:27: warning: implicit declaration of function ‘newwin’
In file included from modechange.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from modechange.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
modechange.c: In function ‘modechange’:
modechange.c:21: warning: implicit declaration of function ‘wprintw’
modechange.c:21: error: ‘mode’ undeclared (first use in this function)
modechange.c:21: error: (Each undeclared identifier is reported only once
modechange.c:21: error: for each function it appears in.)
modechange.c:29: warning: implicit declaration of function ‘wrefresh’
make: *** [all] Error 1

Anonymous said...

Great site and info. Used your patch for Ubuntu 6.06 LTS no probs. Now Im using 7.1 and have to reboot everytime I dialup.

Looks like its the option.ko problem but dont know how to fix it cheers

Craig

Anonymous said...

hi ozzie,

how to put sim pin in wvdial.conf?
any idea will be appreciated.

Jeffrey said...

Hey...

Great piece of software, works very well!

I was wondering, if it was possible to get info on what network, the modem is connected to ?

...

Best Regards
Jeffrey

Anonymous said...

Huawei E270 is not accepting AT+CGDCONT=1,"IP","internet.saunalahti" nor any ATD commands. It always responds ERROR. ATZ, ATS0?, ATI and some other basic commands work, though. The same commands also work on ttyUSB1, but on ttyUSB1 I get some extra status printout e.g. when ATZ command is given from either ttyUSB0 or ttyUSB1.

I tried calling the Huawei modem from another phone, but got "the number cannot be reached", so it seems that Huawei is not online at all. It keeps double-flashing that green light no matter if I have the SIM card in or not.

Any pointers: how should I specify the pin code (seems to be 0000), if that is even needed, and how do I specify the access point (the operator's installation instructions for Windows tell me to internet.saunalahti), as most tutorials seem to omit that?

Anonymous said...

Nevermind, solved that already. I used a regular phone with the SIM card to disable PIN code check. After inserting the SIM back into E270 and rebooting things started working fine.

However, there still is one problem. The /dev/ttyUSB* devices disappear when I unplug the Huawei device and don't appear again after replugging the device. The device only gets detected if plugged in during system boot. All tutorials on this topic assume that things are built as modules, but mine are all built-in (self-compiled kernel).

lucek said...

Witam przykro mi ale nie działa poprawnie. :(. Jestem użytkownikiem Mandriva 2008. Program sie skompilował normalnie uruchamia się lecz nic nie pokazuje.
Życzę Wesołych Świąt Bożego Narodzenia.

zucco said...

just awesome! cheers mate

shacky said...

Hi Oozie!
Could you tell me where I can find the documentation of the statistical interface of the e220 modem?
I have to use it for an application that I'm developing.
Thank you very much for your help!
Bye.

Anonymous said...

Ubuntu 7.04 ppc
make main.c results in error in line 53 due to typecasts

while ((c = (char)getch()) == (char)ERR) {

Compiles okay and both xhe220stat and he220stat work.

Thanks

Adrian

Anonymous said...

Hi Oozie!

Could you tell me where I can find the documentation (AT commands) of the e220 modem?

Thanks for your help and your helpful program.

Best Regards,
Pedro

Anonymous said...

Hi Oozie,

This is an interesting approach. You're obviously using a completely different technique than I'm using for the umtsmon project.

I'd like to discuss some more implementation features with you, please contact me: kvangend at users.sf.net .

Klaas van Gend

nanab said...

Hi i have tried your stats prog on a smoothwall dist whit the e270 modem. It works very good. Only problem is when it goes into the HSUPA mode then the mode text only shows "????" but everything else works.

Nice job.


//Nanab

kaz said...

im quite new to this linux have just purchased a eeepc but can not install this modem.

Anonymous said...

is it work with Huawei E960 modem?
thanks for evrything.

Marji said...

Sucessfuly installed on Centos 5.1
these two packages were required:
# yum install gcc ncurses-devel
Thank you, oozie!
Marji

Anonymous said...

Nice work Oozie. I'm trying to hack a similar ncurses/dialog window for my 3g vodafone card using bash. Where do you find the realtime dataflow? Until now I've only been able to find statics --after!!-- disconnecting by reading /var/log/messages.

Anonymous said...

Found it: ifconfig output does the trick...So simple, sorry!

Anonymous said...

Hi. Thx for all stuff witch help me a lot. I have e220 from iPlus (Poland). After some digging around for some time i discovered that it's behavior is strongly related to firmware version. On my original firmware (11.109.01.01.00)(3.6Mbit) modem was not mounted as pseudo SCSI CDROM so i have to use other udev rules, on UI interaface (/dev/ttyUSB1) was only some ^SVRST and ^MODE reported short after plugging. After updating firmware to (11.116.04.01.00)(7.2Mbit) i have all messages on USB1 interface(BOOT, MODE, DSFLOWRPT etc.) and SCSI storage too. So i think some problems with he220stats and udev rules may became from old firmware (my win app was checking RSSI by AT+CSQ command on ui interface) :>.

Thx again for help.

Anonymous said...

It's worth noting that you have to enable CONFIG_USB_SERIAL_OPTION ("USB driver for GSM and CDMA modems" under "USB Serial Converter support") in kernel config. This option seems not to have been present before 2.6.20 and, thus, isn't activated when doing an "make oldconfig".

Anonymous said...

I tried it with debian etch 4 but unsuccessfully. A lsusb in a shell returned 'bus 001 Device 005: ID 12d1:1003'. I got it configured at /dev/ttyUSB0, it tries to connect but goes idle waiting for response from provider. The pin is inactive ( I did it on my mobile phone before). All package needed by ppp is present( wvdial, make,libwvstreams, db1-1.85-12mdk.i586.deb). My provider parameters are: ID= tmn Number: º99# login:tmn passwd:tmn CHAP.
Had I did something wrong?
Help me please!

Humberto Dias ( stoprinux@gmail.com)

Zymous said...

Hello oozie,

Thanks for writing this tool. I had a minor problem installing this on an EeePC running the default Xandros OS (Debian variant). It turns out that "Package ncurses-dev is a virtual package provided by: libncurses5-dev 5.5-5", but you can't see this if you're lazy like me and tend to use Synaptic. After running

sudo apt-get install ncurses-devel

I got the above warning and was able to install libncurses5-dev

sudo apt-get install libncurses5-dev

Your programme then compiles without a hitch and runs with the

sudo xhe220stat

command.

Thanks again.

--
Zymous

Wogan May said...

Hey

I tried installing the stat meter thingy, but I ran in to a whole lot of errors.

http://pastebin.com/m5bcd895e

When i try launching it, it flashes a small black box for a second, but then vanishes. I don't know where the error is.

I'm running Ubuntu 6.06 LTS, and I installed gcc and build-essentials before I ran "make".

Wogan May said...

UPDATE:

After installing libncurses5-dev, I was able to compile without any errors. However, I'm still getting the problem where it just flashes in and out of existence.

Any ideas?

~ Wogan

Anonymous said...

have installed this on ubuntu 7.10 works fine maythanks keep up the good work. maybe this could be worked into the toolbar like the clock and network monitor.

ram021185 said...

thanks i never thought i was gonna use huawei in my linux box u made my dream come true.thank you.i love windows and linux

jams said...

ubuntu 6.10 with HUAWEI e220 on dell inspiron

had to a few libs like ncurses used

$ sudo apt-get install ncurses-base ncurses-bin ncurses-dev libncurses5 libncurses5-dev

then it worked fine takes a minute to get mode and strength.

nice work

can the e220 be used to make cell calls or sms texts in linux ?

Anonymous said...

I tried to install the Huawei E220 workaround and got a message saying that udevcontoller not found. instead of the expected

"Go ahead and replug your HUAWEI modem". What does that me? Any help would be very much appreciated.

Anonymous said...

Works fine on Debian Etch - only it can't tell my mode is GPRS.

Anonymous said...

i am using a e620 data card - can someone help - no assistance or info from huawei- not working in Freespire

Andreas Henriksson said...

Haven't actually tried the program, but improvement suggestions include:

1. Put something like "/dev/huawei_e220" in the code and use udev to set up a symlink to the correct ttyUSB-device.

2. Used udev to set the permissions on the right ttyUSB-device (Debian and Ubuntu has group "plugdev", don't know about other distros) so the program doesn't need to be run as root.

Luiz said...

Dear ozzy, you already made test of this modem in Slackware 12?

Anonymous said...

i follow the instuction and when i next key in make install....i received this...

nemo@nemo-desktop:~/Desktop/he220stat-0x03$ make install
chmod +x ./xhe220stat
cp *he220stat /usr/local/bin
cp: cannot create regular file `/usr/local/bin/he220stat': Permission denied
cp: cannot create regular file `/usr/local/bin/xhe220stat': Permission denied
make: *** [install] Error 1
nemo@nemo-desktop:~/Desktop/he220stat-0x03$

By the way...i`m using Huawei E220 USB Modem in Ubuntu 7.10. Pls help....thanks

Lennart said...

Hi !

I am a very beginner of Linux, I am using Lineox (a RedHat clone).
Have tried to follow your install instr.
get folling error :
cp conf/wvdial-huawei.conf /etc/
mkdir -p /etc/chatscripts/
cp conf/huawei-e220.chat /etc/chatscripts/
cp conf/huawei-e220 /etc/ppp/peers/
cp files/99-huawei.rules /etc/udev/rules.d/
cp files/huawei-mobile.sh /lib/udev/
cp: kan inte skapa normal fil "/lib/udev/huawei-mobile.sh": Filen eller katalogen finns inte
make: *** [generic_install] Fel 1

----> File do not exist ?

Ian said...

When ./config for stat program on newly upgraded Ububtu Hardy Heron

configure:1705: error: C compiler cannot create executables
See `config.log' for more details.

Any ideas?

Ian said...

Configure:1705: error: C compiler cannot create executables
See `config.log' for more details.

Fixed by apt-getting each of the compier resources at the bottom of the page. Sorry, missed it first time through.

Now everything compiles except I had to use sudo make and sudo to run the app. Stats terminal window pops up but completely freezes the machine if I click on the window. Also when the 3G modem is plugged into the USB the ttyusb files appear but I don't get a connection to the internet. I'm on Ubuntu Hardy Heron.

Nickolback Home said...

I'm brazilian (in Rio de Janeiro) and need help but i using the modem e226 and statics don't show right.

Show nodata and strength mode (?)

Why?
Please...
thanks

Saint said...

Hey Oozie

Cant seem to get the thing to run tried everything that u suggest on this page.

When i run it from the command can see something trying to load for about a slit second and then nothing:(

I'm using Ubuntu Ultimate 7.10

iv tried usb0/1/2

Hope u can help me out as this looks like a really sweeet prog

Anonymous said...

Works perfect on my mandriva 2008.0 and kernel 2.6.22.9.
A good! tool for those who pay every Mb they download, as I do here in Namibia.

what I miss is just a total amount of up-download, even when i shut down the computer.

Thanks

Jorgito said...

Hi. Running Debian 4.0 etch lenny/sid repositories. Compiled and running OK on a Huawei E226 from MOVISTAR Uruguay. All stats and graph show perfect.
Blue LED = WCDMA
Green LED = HSDPA
Greetings from Montevideo, Uruguay.

Superbiji said...

will try this.....
look great

Anonymous said...

I do not even get to see the "Upstream:" text. "HUAWEI E220 Statistics [q]uit" is all that appears. Neither ttyUSB1 or ttyUSB2 have effect, Ctrl-C does not work when strace is used on top of he220stat.

Anonymous said...

Thanks for sharing your drivers
I add then in my ubuntu 6.10 version
But after su command I am asked for a password...
What do I have to do?

Thanks again Vassilis

Ian said...

I have successfully got my E220 running on openSuSe 10.2 with Vodafone UK.

Some tweaks had to be made as the modem hangs up with the config provided. Make a vodafone-uk.conf with these settings:


[Dialer Defaults]
Modem = /dev/ttyUSB0
Baud = 3600000
Init1 = ATZ
Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
Init3 =
Area Code =
Phone = *99***16#
Username = wap
Password = 1234
Ask Password = 0
Dial Command = ATDT
Stupid Mode = 1
Compuserve = 0
Force Address =
Idle Seconds = 0
DialMessage1 =
DialMessage2 =
ISDN = 0
Auto DNS = 1
Modem Type = Analog Modem

then run (under root user)
wvdial --config /etc/vodafone-uk.conf

Should work!

Anonymous said...

hello...

I am using Suse 10.0, so I copied both huawei.tar.bz2 and rules.d.suse-10-1.tar.bz2 into the same directory and did a 'tar -xjvf' on both of them. Then I did a 'make install_suse'

This is the printout i get:

cp: target `/lib/udev/' is not a directory: No such file or directory
make: *** [generic_install] Error 1

I thought this is caused by the 2 tar.bz2 files being extracted and copied into their respective directories. So i copied them into the same directory and did another 'make install_suse'.

I got the same error.

Would appreciate some help and advice on this. Thanks....

Heng
gkheng@yahoo.com

Anonymous said...

:( I need rpm

Anonymous said...

My system is Linpus Linux Lite v1.0.3.E will this software work?

Anonymous said...

Hi,

I have a EC325 and I use Mandriva 2008. Can you suggest me how to configure Huawei on the same.

Thanks,
Abhishek

Anonymous said...

hi

i’ve the huawei hsdpa e220 modem, but don’t know how to install it on ubuntu 8.04. can you help me please with simple instructions.

azooz said...

hi

i’ve the huawei hsdpa e220 modem, but don’t know how to install it on ubuntu 8.04. can you help me please with simple instructions.

Tom Brammar said...

To get it to work on OSX just alter the he220ui.h file and change the following line:
#define UIDEVICE "/dev/ttyUSB1"
to this one:
#define UIDEVICE "/dev/tty.HUAWEIMobile-Pcui"

and run make again.

Then open up X11 on OSX and add a shortcut from the menu to "/usr/local/bin/xhe220stat" . Then just launch X11 and launch the app straight from the menu.

Anonymous said...

Seems to work, but Mode is just "?? 7"
Hoped that there would be "UMTS" or "HSDPA".

Baumi said...

Hmm. and Mode changes between "?? 6" and "?? 7"

Anonymous said...

fedora 6.
stat program works perfectly.. thankyou

had some trouble with wvdial changing config file other that that it just works...
again.. thank you..

Phil

Mr said...
This comment has been removed by the author.
Anonymous said...

HI,I'm working on EC226 which is made by huawei,something like e220.and i use it to work as a 3g router,but it can't work:I use wvdial to do as a dialer.the config is:user/password/phone/baud.
and when i use wvdial xxx, the return is NO carrier.I don't know the reason.the envoment is linux2.4.20-8.
volcano_cui@yahoo.com,thank you for your kindness.

Fuellemann said...

Hi,

you might want to checkout the connection manager for Linux, called launch2net:
http://www.novamedia.de/e_pages/e_produkte_linux_l2n.html

Makes it much easier to setup and connect.

Thank you

Jan Fuellemann

Dércio said...

it worked, the huawei e220 conected easelly but the internet doesn't seem to be working when i open the browser or try to update the system im using ubuntu 8.04 x86 i could use some help.

mintymiller said...

I followed your instructions on an Acer Aspire One running the Linpus Linux Lite OS. After a reboot, I can now see the E220 in the connection manager but I'm unable to configure it in any way. How do I send the APN string?

mintymiller said...

Most of the problems relating to implementation of this (and the Vodafone) workaround on the Acer Aspire One are due to the fact that the version of Linux that the little Acer runs is missing various packages including 'Make' and 'Install' that the workarounds require. It really is a 'Lite' Linux so that it takes up as little room as possible on its tiny SSD. Until Acer or Linpus issue a fix, the files that these utilities automatically install have to be installed manually; no easy feat even for relatively experienced users. My advice is to install the custom Kernel (follow link from AspireOneUser.com) although I suffered audio problems after doing so, or better still, install a full Fedora or Ubuntu distribution (or Windows, heaven forbid)!

Herring said...

Hi,

I'm running Gentoo AMD64 2.6.26-tuxonice

I can see the data rate, but not signal strength or Mode. The LED is currently blue/green which I believe is EDGE?

Cheers.

Herring said...

D'Oh!

Oh, and using an E220!

Darwell said...

hi the modem is runnig but i have some problem with hxestat
when i tru make it gives me back this

make
gcc -Wall -lncurses init_ncurses.c main.c flowreport.c rssi.c modechange.c -o he220stat
In file included from init_ncurses.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from init_ncurses.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
init_ncurses.c: In function ‘init_ncurses’:
init_ncurses.c:20: warning: implicit declaration of function ‘initscr’
init_ncurses.c:21: warning: implicit declaration of function ‘noecho’
init_ncurses.c:22: warning: implicit declaration of function ‘halfdelay’
init_ncurses.c:23: warning: implicit declaration of function ‘curs_set’
init_ncurses.c:25: warning: implicit declaration of function ‘getmaxyx’
init_ncurses.c:25: error: ‘stdscr’ undeclared (first use in this function)
init_ncurses.c:25: error: (Each undeclared identifier is reported only once
init_ncurses.c:25: error: for each function it appears in.)
init_ncurses.c:27: error: ‘rssi_’ undeclared (first use in this function)
init_ncurses.c:27: warning: implicit declaration of function ‘newwin’
init_ncurses.c:28: warning: implicit declaration of function ‘wclear’
init_ncurses.c:29: warning: implicit declaration of function ‘wprintw’
init_ncurses.c:31: error: ‘rssi_hide’ undeclared (first use in this function)
init_ncurses.c:33: error: ‘stats’ undeclared (first use in this function)
init_ncurses.c:34: error: ‘mode’ undeclared (first use in this function)
In file included from main.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from main.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c: In function ‘main’:
main.c:49: warning: implicit declaration of function ‘printw’
main.c:53: warning: implicit declaration of function ‘getch’
main.c:53: error: ‘ERR’ undeclared (first use in this function)
main.c:53: error: (Each undeclared identifier is reported only once
main.c:53: error: for each function it appears in.)
main.c:70: warning: implicit declaration of function ‘wrefresh’
main.c:70: error: ‘rssi_’ undeclared (first use in this function)
main.c:71: error: ‘rssi_hide’ undeclared (first use in this function)
main.c:72: error: ‘stats’ undeclared (first use in this function)
main.c:73: error: ‘mode’ undeclared (first use in this function)
main.c:79: warning: implicit declaration of function ‘endwin’
In file included from flowreport.c:14:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from flowreport.c:14:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
flowreport.c: In function ‘flowreport’:
flowreport.c:30: warning: implicit declaration of function ‘wclear’
flowreport.c:30: error: ‘stats’ undeclared (first use in this function)
flowreport.c:30: error: (Each undeclared identifier is reported only once
flowreport.c:30: error: for each function it appears in.)
flowreport.c:31: warning: implicit declaration of function ‘wprintw’
flowreport.c:34: warning: implicit declaration of function ‘wrefresh’
In file included from rssi.c:14:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from rssi.c:14:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
rssi.c: In function ‘rssi’:
rssi.c:24: warning: implicit declaration of function ‘delwin’
rssi.c:24: error: ‘rssi_hide’ undeclared (first use in this function)
rssi.c:24: error: (Each undeclared identifier is reported only once
rssi.c:24: error: for each function it appears in.)
rssi.c:25: warning: implicit declaration of function ‘wclear’
rssi.c:25: error: ‘rssi_’ undeclared (first use in this function)
rssi.c:26: warning: implicit declaration of function ‘wprintw’
rssi.c:27: warning: implicit declaration of function ‘newwin’
In file included from modechange.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from modechange.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
modechange.c: In function ‘modechange’:
modechange.c:21: warning: implicit declaration of function ‘wprintw’
modechange.c:21: error: ‘mode’ undeclared (first use in this function)
modechange.c:21: error: (Each undeclared identifier is reported only once
modechange.c:21: error: for each function it appears in.)
modechange.c:29: warning: implicit declaration of function ‘wrefresh’
make: *** [all] Error 1

what does it mean??

darwellnet@msn.com
THX!!!

Anonymous said...

First I edited /etc/vwdial.conf

Then I used my mobilephone to turn of pin code control.

When I was finish I tested application by writing sudo su wvdial

I got error "cant read serial"

Tried various solutions. Your package worked. Seems like it was taking the place ttyUSB0 cuz auto mounting image. But with the fix i could see it starting up.

Anonymous said...

Have installed on a mac running OS X 10.5.4 ! Just changed it so I could pass the serial port as an argument, and tried the different ports till I discovered that /dev/cu.HUAWEIMobile-Pcui is the correct one.

Ben... :)

Anonymous said...

I am using openSUSE 11, Kernel 2.6.25.11 and tried to use Huawei E220. The modem is only recoginzed in module hardware information but I could not install it. No new hardware is detected. I did expect that the Kernel is aware of this modem.
I will appreciate any help.

Thanks
Wolfgang Kluge, Labuan, Malaysia

yetiman said...

can t get the huawei to run on Acer One A150 running linux limpus after down load ?? any ideas?

yetiman said...

cant get E220 installed on linux limpus axer one? any ideas? stressed

Pedro Francisco said...

Very good and still kicks ass on newer kernels when for some reason the Huawei E220 isn't detected by KPPP (probably HAL goes haywire).

Thanks for sharing your work!!!

Anonymous said...

I can't seem to get the E220 to run on an Acer Aspire laptop. Do I need to download any programme to fix this

Heine Larsen said...

Thanks, it worked fine for me with:
Thinkpad T61, Debian/etch, kernel 2.6.26 (from backports.org), and the 3G provider 3.dk in Denmark.
I used "make install_ubuntu" with the pppd
option in /root/.huawei-e220

With Debian, the permissions on the devices are:
crw-rw---- root dialout /dev/ttyUSB*
so to use the he220stat programs as an ordinary user, the user should be added to the dialout group.

It does not work well with Network Manager and other network devices connected and automatically configured at the same time.

Anonymous said...

Works for me on fc8 + Huawei E160G.
Numeric strenght output would be nice. Something like 55 out of [0(bad)-100(good)].

Thanks for that piece of sw!

Chris said...

Can you please tell me how to get the E220 up and running? I am new to linux and i dont know where to start. Thanks!

henrique said...

I am using with MAC OS X, and E226 MODEM, is working great, with all features:

| Uptime : 224s
||| SpeedUp : 0kB/s
||||| SpeedDn : 0kB/s
||||||| Trnsfd : 0.1MB
||||||||| Recvd : 0.2MB

STRENGTH Mode: WCDMA

I just crate a link on /dev/:

ln -s /dev/tty.HUAWEIMobile-Pcui /dev/ttyUSB1

This software is very useful!

Ilon said...

Thanks for this tool, the RK / TX works fine, but it dosnt say what kind of like it got (HSDPA / GPRS / whatsoever), and i got no indication on signal strength :(

Iano said...

Hello,
the problem with he220stat only displaying " HUAWEI E220 Statistics [q]uit "
that people have mentioned is beacuase of the following at compile time:-
main.c: In function 'main':
main.c:53: warning: comparison is always false due to limited range of data type

it's this line:
while (c!='q'&&c!='Q')
while ((c=getch())==ERR) {
and easily fixed:
while (c!='q'&&c!='Q'){
c=getch();

Incidently it also works nicely for the E270.

EAI said...

I just have problem login to the internet from my ubuntu pc have work good with Gnome PPP Program with my modem Huawei e220 perfect , and while I have restared pc and login again to the internet , The Gnome PPP Freeze at "Connecting" and have not log to internet, I don't know where problem , Really

And that the log out!!!



Code:
--> Ignoring malformed input line: ";Do NOT edit this file by hand!"
--> WvDial: Internet dialer version 1.60
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATX3
ATX3
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
+CME ERROR: SIM PIN required
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATX3
ATX3
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
+CME ERROR: SIM PIN required
--> Bad init string.
--> Cannot get information for serial port.
--> Initializing modem.
--> Sending: ATX3
ATX3
OK
--> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
+CME ERROR: SIM PIN required
--> Bad init string.

Please replay\ Scart14@gmail.com

Chris said...

I have it running successfully on an EeePC 901 with Ubuntu Eee 8.04 and using a E160G modem. Only problem is the mode is not reported (Mode: (?))

Sorush Nazari said...

Hi dose it work with E160G model?

Create Wealth Yourself said...

Hello, I am sorry to bother you with a very simple question. I have downloaded the workaround file huawei.tar.bz2 but since I am a newbie at linux can you please tell me what to do next? I am trying to install a Huawei E220 modem on my IPCOP Machine with linux kernel 2.4.36. looking forward to you reply. Kind regards
Mario

MDeeks said...

WOW, this just works, I have Mandriva 2007 and have just connected to the internet with it.

Am in UK with a T-Mobile adaptor, on Mandriva 2007 HP 510 laptop. Good work mate :)

Anonymous said...

Just curious if Huawei telemetry have the cell geographic coordinates buil in (I guess cells broadcast this, Google Maps for mobile use it on smartphones for instance ...)

Nice job.

Anonymous said...

HI,
I tried your stat file. i m using Ubuntu 8.04 Hardy.
it did not work for me.
followig is output
root@leena-laptop:/home/leena# tar xjvf he220stat.tar.bz2
he220stat-0x03/
he220stat-0x03/xhe220stat
he220stat-0x03/Makefile
he220stat-0x03/init_ncurses.c
he220stat-0x03/LICENSE
he220stat-0x03/README
he220stat-0x03/configure
he220stat-0x03/configure.in
he220stat-0x03/CHANGELOG
he220stat-0x03/Makefile.in
he220stat-0x03/flowreport.c
he220stat-0x03/main.c
he220stat-0x03/he220ui.h
he220stat-0x03/rssi.c
he220stat-0x03/modechange.c
root@leena-laptop:/home/leena# ls
connAir huawei reliance_setup.sh
Desktop huaweiAktBbo.c smb.conf
disconnAir huaweiAKtBbo.c Templates
Documents huaweiAKtBbo.c~ usb_modeswitch
Examples Music usb_modeswitch-0.9.5
he220stat-0x03 Pictures usb_modeswitch-0.9.5.tar.bz2
he220stat.tar.bz2 Public Videos
root@leena-laptop:/home/leena# cd he220stat-0x03
root@leena-laptop:/home/leena/he220stat-0x03# make

Run ./configure first or read README file.

root@leena-laptop:/home/leena/he220stat-0x03# make install
make: *** No rule to make target `install'. Stop.
root@leena-laptop:/home/leena/he220stat-0x03# ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for strchr... yes
configure: creating ./config.status
config.status: creating Makefile
root@leena-laptop:/home/leena/he220stat-0x03# make install
chmod +x ./xhe220stat
cp *he220stat /usr/local/bin
root@leena-laptop:/home/leena/he220stat-0x03# xhe220stat
Warning: Tried to connect to session manager, Authentication Rejected, reason : None of the authentication protocols specified are supported and host-based authentication failed

MadMan said...

Hi OOZIE,

I have an issue, I've started the connection , I see in E220-stats the signal strength+ the Uptime and after I dial the connection I get
--> local IP address 172.26.7.27
--> pppd: [10][1d]�[08]�[1a]�[08]
--> remote IP address 10.64.64.64
--> pppd: [10][1d]�[08]�[1a]�[08]
--> primary DNS address 193.230.161.3
--> pppd: [10][1d]�[08]�[1a]�[08]
--> secondary DNS address 193.230.161.4
--> pppd: [10][1d]�[08]�[1a]�[08]
but I have no internet connection :(.
I'm a noob in linux and I use Fedora 9.
Thanks for your time and for your software!
All the best!!

Anonymous said...

thnx broo

James said...

Hi,
I have just installed the huawei workaround software because I am using kernel 2.6.16 on SuSE Linux Enterprise Desktop 10 SP2. Unfortunately, when I run wvdial, I get the error; Cannot open /dev/ttyUSB0: No such file or directory.

I have changed to USB1 and USB2 but the same error comes up. I even copied the rules.d files that are recommended for Suse 10 to /dev/.udev/rules.d but still got no positive response.

In /dev/ , I do not see any USB interface whatsoever. How can I go about this?

Thanks in advance
What am I doing wrong?

ejakkk said...

Haiy Oozie... Big hug for you!!!

I couldn't make it work on hardy before, but then i installed ncurses-dev like what you asked and it perfectly works.

Thanx.

ejakkk said...

Haiy Oozie... Big hug for you!!!

I couldn't make it work on hardy before, but then i installed ncurses-dev like what you asked and it perfectly works.

Thanx so much..

Scottp said...

The program works fine with the Huawei E160 as well.

Cheers,
Scott

Anonymous said...

Thanks for this I got it working on intrepid ibex, I've been looking for an applet to monitor my modem for a while now. Once I downloaded the ncurses and build-essential packages the compilation was fairly straight forward. I also had to change the device /dev/ttyUSB2 and it is working now. Thanks again

Anonymous said...

Hi @ll
after a lot of days (and nights) when I tried to make my HuaweiE220on my AA-One with linpus-lite
working and have no accesss anyway,
I found the solution on the site
http://www.mobilebroadbandrocks.com/huawei-e220-firmware-11117090400-available

and it was so simple: updating to the newest firmware and...........
it works with no problems and
have now 7,6 m/bit-Speed (bevor=3,5) Thats on the >ORANGE.Web< AT,
provided that all softwareupdates are done and "Mobile Partner" is installed. Now I'm very happy, because i can travel with my Netbook and launch internet everywhere. Many thanks to you for your first help, I learned a lot of Linux but I'm always a newcomer !
(buggle@kabsi.at)

Anonymous said...

Hello,
My name is érico. I live in Brazil Recently I bought a modem HUWAEI E226. After some googling I made it thru Ubuntu 8.04 systems.
Then I just bought a ACER ASPIRE One 1564. I has Linpus, as follows:
Linux localhost 2.6.23.91w #105 SMP PEEMPT Fri Jun 27 18:56:59 EDT 2008 i686 i686 i386 GNU/Linux
Linux version same as above gcc version 4.1.2 20070925 Red 4.1.2-33 e etc..
I just can not make it work on Linpus. It mounts and recognizes the device as Modem Huwaei 220 (mine is 226). I any of the 3 USB ports it reads /dev/sd0 when using mount command.
I edited wvdial.conf and copy form ubuntu instalatio. It reads device /dev/ttyUSB0 or /dev/sd0 cannot be open. I created with mknod /dev/ttyUSB0 even though it fails with cannot read the .....
I need your help.
My e-mail is ericohg@gmail.com
My skype is ericohg

Best regards

Dima said...

just what I wanted thanx!!

Mathew McBride said...

Working on OS X with the E160 USB 'stick', thanks

Alvaro isaza said...

Hi,

Congratulations, very good work

It works with Huawei E226 in Ubuntu 8.04

Thanks

Alvaro Isaza
alvaro@isaza.homeip.net

chmod000 said...

Hi there!

Tryed to install under Ubuntu 8.10, but unsussessful.

./configure - OK
make failed
make
gcc -Wall -lncurses init_ncurses.c main.c flowreport.c rssi.c modechange.c -o he220stat
In file included from init_ncurses.c:1:
he220ui.h:15:21: error: ncurses.h: Arquivo ou diretório inexistente
In file included from init_ncurses.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token

Anonymous said...

Unsuccessful. See below:

checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking how to run the C preprocessor... gcc -E
checking for egrep... grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking fcntl.h usability... yes
checking fcntl.h presence... yes
checking for fcntl.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking termios.h usability... yes
checking termios.h presence... yes
checking for termios.h... yes
checking for unistd.h... (cached) yes
checking stdio.h usability... yes
checking stdio.h presence... yes
checking for stdio.h... yes
checking stdarg.h usability... yes
checking stdarg.h presence... yes
checking for stdarg.h... yes
checking ncurses.h usability... no
checking ncurses.h presence... no
checking for ncurses.h... no
checking for sys/types.h... (cached) yes
checking for sys/stat.h... (cached) yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for strchr... yes
configure: creating ./config.status
config.status: creating Makefile
[root@cpfc10 he220stat-0x03]# make
gcc -Wall -lncurses init_ncurses.c main.c flowreport.c rssi.c modechange.c -o he220stat
In file included from init_ncurses.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from init_ncurses.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
init_ncurses.c: In function ‘init_ncurses’:
init_ncurses.c:20: warning: implicit declaration of function ‘initscr’
init_ncurses.c:21: warning: implicit declaration of function ‘noecho’
init_ncurses.c:22: warning: implicit declaration of function ‘halfdelay’
init_ncurses.c:23: warning: implicit declaration of function ‘curs_set’
init_ncurses.c:25: warning: implicit declaration of function ‘getmaxyx’
init_ncurses.c:25: error: ‘stdscr’ undeclared (first use in this function)
init_ncurses.c:25: error: (Each undeclared identifier is reported only once
init_ncurses.c:25: error: for each function it appears in.)
init_ncurses.c:27: error: ‘rssi_’ undeclared (first use in this function)
init_ncurses.c:27: warning: implicit declaration of function ‘newwin’
init_ncurses.c:28: warning: implicit declaration of function ‘wclear’
init_ncurses.c:29: warning: implicit declaration of function ‘wprintw’
init_ncurses.c:31: error: ‘rssi_hide’ undeclared (first use in this function)
init_ncurses.c:33: error: ‘stats’ undeclared (first use in this function)
init_ncurses.c:34: error: ‘mode’ undeclared (first use in this function)
In file included from main.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from main.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.c: In function ‘main’:
main.c:49: warning: implicit declaration of function ‘printw’
main.c:53: warning: implicit declaration of function ‘getch’
main.c:53: error: ‘ERR’ undeclared (first use in this function)
main.c:53: error: (Each undeclared identifier is reported only once
main.c:53: error: for each function it appears in.)
main.c:70: warning: implicit declaration of function ‘wrefresh’
main.c:70: error: ‘rssi_’ undeclared (first use in this function)
main.c:71: error: ‘rssi_hide’ undeclared (first use in this function)
main.c:72: error: ‘stats’ undeclared (first use in this function)
main.c:73: error: ‘mode’ undeclared (first use in this function)
main.c:79: warning: implicit declaration of function ‘endwin’
In file included from flowreport.c:14:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from flowreport.c:14:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
flowreport.c: In function ‘flowreport’:
flowreport.c:30: warning: implicit declaration of function ‘wclear’
flowreport.c:30: error: ‘stats’ undeclared (first use in this function)
flowreport.c:30: error: (Each undeclared identifier is reported only once
flowreport.c:30: error: for each function it appears in.)
flowreport.c:31: warning: implicit declaration of function ‘wprintw’
flowreport.c:34: warning: implicit declaration of function ‘wrefresh’
In file included from rssi.c:14:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from rssi.c:14:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
rssi.c: In function ‘rssi’:
rssi.c:24: warning: implicit declaration of function ‘delwin’
rssi.c:24: error: ‘rssi_hide’ undeclared (first use in this function)
rssi.c:24: error: (Each undeclared identifier is reported only once
rssi.c:24: error: for each function it appears in.)
rssi.c:25: warning: implicit declaration of function ‘wclear’
rssi.c:25: error: ‘rssi_’ undeclared (first use in this function)
rssi.c:26: warning: implicit declaration of function ‘wprintw’
rssi.c:27: warning: implicit declaration of function ‘newwin’
In file included from modechange.c:1:
he220ui.h:15:21: error: ncurses.h: No such file or directory
In file included from modechange.c:1:
he220ui.h:46: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
modechange.c: In function ‘modechange’:
modechange.c:21: warning: implicit declaration of function ‘wprintw’
modechange.c:21: error: ‘mode’ undeclared (first use in this function)
modechange.c:21: error: (Each undeclared identifier is reported only once
modechange.c:21: error: for each function it appears in.)
modechange.c:29: warning: implicit declaration of function ‘wrefresh’
make: *** [all] Error 1

Craig said...

Thanks for your tips, I got the e220 going but it sure is pain. Works only if plugged in during boot.

I tried blacklisting the option module and found it would only work after booting with that module and lot of mucking around.

The stat device is pretty cool.

Anonymous said...

I didn't try it, so I dont know if it worked.

Your cool

Egon said...

Hi there!

I installed the package on suse 11 x86_64 and then was trying to start with

linux-piotr:~/.config/enchant # pppd call huawei-e220
speed 3600000 not supported
Connect script failed
speed 3600000 not supported
Connect script failed
speed 3600000 not supported
...

And I cannot get the connection - can you suggest what I have done wrong?

IT said...

Newbie to Linux SUSE 10.1. Did dload file but dont know how to use it. Need help stsp by step.....plsss

dorag76@gmail.com

Anonymous said...

hello, i an not an expert and it workt pefectly for me on my fc10 installation :)
the modem workt out of the box but slow and i had no info on my conection type neither te signal quality, thank you a lot for the nice instrucction ...i an using it whith a e160

sizedin said...

Hello! I'm using the latest v of ubuntu 9.04 dektop. It doesn't recognise my huawei e220 modem. I tried downloading huawei.tar.bz2 and followed the instruction, but after the su cmd, it was asking for password that I don't know. Is my kernel ver ok? Or is there anything I need. Please help.

sizedin

Anonymous said...

Everything works peachy on PCLinuxOS 2009 here.

AndrzejL

Leon RJ Brooks said...

Works with E620 (as ttyUSB2), fired up by wvdial.

The STRENGTH reading often flips to “Mode: ?? 2“

Anonymous said...

Thanks, on fedora 11 everything works OK
huawei e272

nik said...

hi!
i've installed .how i maked work? it's opening but i have no conection.what to do?
thanks !

niknushtiu said...

sorry,my mistake.i've aspected that your program to make the conection to!it whill be verry useful after i figure a way to make thise modem to work on slackware !the big problem it's on my mind....i'm a newbie !
i whill be back after it whill work.
thank you.

Loretta Ilaria said...

darling, you're fantastic!
I'm writing to you from my ubuntu connected to the internet by my huawei E220!
It's working perfectly!
Thank you very much!
The only thing you could improve is the documentation that cannot be clear enough for newbies.
I managed but I was a bit lost at the beginning, I'm not speaking about the procedure to build your package, but about what to do after.
Thank you loads!!!!!!

jwayodi said...

Cool stuff! And thanks a lot! I got it working with a Huawei E160 modem, on Ubuntu 9.04.

Anonymous said...

Nice tool OOZIE
do you have any tool from command line to choose/scan the network operation speed (hsdpa/edge/3G ) ??

thanks
HPUX013

源源 said...

My pc can't find my huawei e220.
Why?If driver installed can solve this problem?

Anonymous said...

not worked with me ubuntu9

Anonymous said...

Hi Oozie,
how to edit the resolve.conf please

Thank you very much

Anonymous said...

Works great on the E160E and an up to date Gentoo Linux. Thanks!

Kilo said...

Above all thank you for the very cool tool. Unfortunately for me doesn't work.
I've followed the suggested steps, even changing the UIDEVICE, but it still doesn't work:
./he220stat: Problem opening /dev/ttyUSB[something]

How can I get out?

Thanks in advance.

P.S.I use wvdial to connect to the net, even I think is not the issue.

egipcio said...

Thanks for your time to solve this problem for us. In fact my E220 was working fine after the instalation of your workaroung. But the operators support asked me to upgrade it's firmware and after this upgrade the connection is successfull only if I boot the computer with the modem pluged in.
The option.ko module is not loaded though. What could be the other cause to this behaviour? My best regards.

Anonymous said...

Thanks so much for this handy piece of code. I have been looking all over for an app to monitor the signal strength.

I have an E160E modem, didn't have to change a thing.

Really appreciated, thanks once again.

Anonymous said...

Hello, I am using Ubuntu 9.10 and I wanted to get my Huawei e 220 working. I have made a firmware update but I have no idea what to do to make it work. I have copied your he220stat-0x03 onto the desktop, but I have no idea how to start that or what to do with it.
I would really appreciate some help to get my other laptop into the internet (Austria -> A1) with Ubuntu at last.
Thanx in advance
Robert

Patrick said...

Runs under Fedora 12 2.6.31 Kernel thanks

Anonymous said...

Works on 8.10 with Huawei 160.
My mode shows only

Mode: ?? 3

Anonymous said...

Works well on gentoo with e230 modem.

kevin said...

I'd love to be able to monitor the UMTS strength via the command line only. I use wvdial or pppd command line with E220.
Obviously once connected I cant poll for CSQ to get the sig strength as /dev/ttyUSB0 is in use. Any ideas ??

kevin said...

Would love to know how to monitor signal strength and up or down rates from the command line only. I use wvdial or pppd, but once connected I don't know how.
Any ideas.
Kev

Anonymous said...

Kev: Yes, for measuring signal strength and while connected use PyHumod.

Anonymous said...

Hi.Are you able to getting the signal strength information from the 3G modem driver? I mean, recording the signal strength information into a file by dB in the time domain?

gabriel said...

NO FUNCIONA EN UBUNTU V9.04

Anonymous said...

how can i connect to the internet with "WIMAX HUAWEI BM323"

my system is ubuntu 10.04

F. Q. said...

Just built and installed on Ubuntu 8.10.
Its a breeze. Great Program! Unfortunately I came to it only after rolling my own parser (in awk), but bygones begones, I'm using your stuff now. Thanks.

nourallah said...

hi i install ubuntu 10.04 and my modem e220 it's work without he220stat
i get it but when i want install he220stat
all time terminal write to me

No such file or directory

how can me install he220stat in ubuntu 10.04

thanx

ravi said...
This comment has been removed by the author.
Anonymous said...

Very useful, he220stat works like a charm with a Huawey EM770 (Asus eee 1000HGo internal 3G modem). I only needed to edit the *.h to change the device from ttyUSB1 to ttyUSB2.

The Fugitive said...

hey. I have gone through the process and didnt get any error. However, I dont know from where to launch it. I have rebooted the system too. Plsea help. Im new on linux. Im using ubuntu 10.0.4

قوي قلبك said...

i have USB huawei -BM325 WIMAX did'nt work How can use it good install
in my laptop hp pavilion dv3

Anonymous said...

Hi!
I don`t know in what language i can write here so let it be english. I`ve got Huawei e1750c and your software runs when i change UIDEVICE in he220ui.h from /dev/ttyUSB1 to /dev/ttyUSB2. I`ll try to rewrite your program with gtk libs or something else (to dock app). If i successfully rewrite (i`m working sometimes 24/7) i`ll sent code to you :)

Thx for spending time for open source.
Tomasz

قوي قلبك said...

thanks

Μιχάλης Μιχαλούδης said...

Very very cool.

1. I changed the code from /dev/ttyUSB0 to /dev/huawei_uidevice

2. Added udev rule for /dev/huawei_uidevice

Adorable, thanks. (slackware-13.0)

egb said...

Works great with Huawei e1762 on Ubuntu 10.04 LTS - the Lucid Lynx Thanks!

jai said...

Hi,

Can i get a driver for HUAWEI EC152 Tata Photon + dongle?

Jerry said...

My Mepis system (Debian) with kernel 26.10 doesn't seem to use udev. Is there a way for your workaround to be used without udev?

Anand George said...

How do we get an USB modem to connect to an Android tablet device running Linux 2.6.32

Anand George said...

How do I get an USB modem to interface with an Android tablet device with Linux 2.6.32 kernel

abhilash said...

hi,

i have Airtel 3G USB data card,
please guide me how to configure it on Ubuntu 64 bit.

My mail ID : abhilashpujari@gmail.com

ostpol said...

Hey,

I've a working 3G-Connection with Huawei E160 (nearly the same as E220). If I run he220stat on my ArchLinux Raspberry Pi, I only get this line: http://d.pr/i/aaBD

Any ideas? Please E-Mail me: hey@tonylehnert.de


Thank you!


Sincerly,
Tony