It’s a shiny express card and it promises Internet free from cables, plugs and sockets but will it work on your pretty Kubuntu laptop? Let’s hope so. This guide worked for me and hopefully it’ll work for you too!
Now before we start let me tell you my setup. I’ve got this working on a Kubuntu based Dell Inspiron using O2 as my network provider. It did not work on a separate Dell Vostro running Ubuntu 7.10 (however I did get it working on a different Kubuntu 7.10 Dell Inspiron laptop). So I’m not sure whether that was a Ubuntu or Vostro thing or just bad luck. Also, note that the below approach worked for me when setting up Huawei’s E220 USB modem too.
In any case, here’s the 6 step plan to happiness
1.) Download the huaweiAktBbo-i386.out file
2.) Create the /etc/chatscripts/huawei-e220.chat file
3.) Create the /etc/ppp/peers/huawei-e220 file
4.) Create the /etc/wvdial-huawei.conf
5.) Edit the /etc/resolv.conf
6.) Create and tailor the /home/username/bin/connectme script (and chmod it!)
7.) Tip of the day – lose the Edge!
1.) Download the huaweiAktBbo-i386.out
This can be done by visiting http://www.kanoistika.sk/bobovsky/archiv/umts/ and downloading the file huaweiAktBbo-i386. If you really want you can also build it from the C source provided (in order to build it you will need to have a C compiler and some basic tools on your system). NB: Copy the huaweiAktBbo-i386.out file to your /home/username/bin directory after downloading. If you don’t have a bin folder under your home directory then create one (‘mkdir /home/username/bin’). Also ensure that it is in your $PATH environment variable. Try echo $PATH and if you don’t see it listed add the following line to your /home/username/.bashrc file
export PATH=$PATH:/home/username/bin
To get this change immediately picked up by your shell run the command ’source ~/.bashrc’. This something I didn’t learn for years!!! D’oh!
2.) Create the following /etc/chatscripts/huawei-e220.chat file
TIMEOUT 3 ABORT BUSY ABORT 'NO CARRIER' ABORT VOICE ABORT 'NO DIALTONE' ABORT 'NO DIAL TONE' ABORT 'NO ANSWER' ABORT DELAYED "" ATZ OK ATQ0V1E1S0=0&C1&D2 OK ATDT*99# CONNECT ""
3.) Create the /etc/ppp/peers/huawei-e220 file
/dev/ttyUSB0 460800 noipdefault defaultroute persist noauth nodetach usepeerdns connect "/usr/sbin/chat -vf /etc/chatscripts/huawei-e220.chat"
4.) Create the /etc/wvdial-huawei.conf
[Dialer Defaults] Modem = /dev/ttyUSB0 #Baud = 3600000 Baud = 7200000 Init1 = ATZ Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 Init3 = Area Code = Phone = *99# Username = ppp Password = ppp Ask Password = 0 Dial Command = ATDT Stupid Mode = 1 Compuserve = 0 Force Address = Idle Seconds = 0 DialMessage1 = DialMessage2 = ISDN = 0 Auto DNS = 1
5.) Edit the /etc/resolv.conf file
Add the following entries at the top of this file (they are O2’s nameservers)
nameserver 62.40.32.33 nameserver 62.40.32.34
6.) Create the and tailor the /home/username/bin/connectme script as follows (and chmod it!)
Note: See step 1 for more instructions if you don’t have a bin folder in your home directory
#!/bin/bash sudo /home/username/bin/huaweiAktBbo-i386.out # CHANGE THIS TO YOUR 'USERNAME' sleep 3 # wait for the USB host to settle down... sudo wvdial --config /etc/wvdial-huawei.conf #/usr/sbin/pppd call provider
Then just do a ‘chmod u+x /home/username/bin/connectme’ from the command line (to allow you to run ‘connectme’ from the command line directly) and hopefully you should be ready to rock! The next step is to insert your E870 into the express slot. You might start to see Linux picking up the the devices and popping dialogs asking you if you want to mount the device (you should select ‘Cancel’ for them all).Wait about 5 seconds for it to steady itself and then run ‘connectme’ from the command line. You should see
Hladam HUAWEI E220 a prepnem na modem - bbo 06 4 set feature request returned 0 Prepnute-OK, Mas ttyUSB0 ttyUSB1 (cez usbserial vendor=0x12d1 product=0x1003) pozri /proc/bus/usb/devices WvDial<*1>: WvDial: Internet dialer version 1.56 WvModem<*1>: Cannot get information for serial port. WvDial<*1>: Initializing modem. WvDial<*1>: Sending: ATZ WvDial Modem<*1>: ATZ WvDial Modem<*1>: OK WvDial<*1>: Sending: ATQ0 V1 E1 S0=0 &C1 &D2 WvDial Modem<*1>: ATQ0 V1 E1 S0=0 &C1 &D2 WvDial Modem<*1>: OK WvDial<*1>: Modem initialized. WvDial<*1>: Sending: ATDT*99# WvDial<*1>: Waiting for carrier. WvDial Modem<*1>: ATDT*99# WvDial Modem<*1>: CONNECT WvDial<*1>: Carrier detected. Starting PPP immediately. WvDial: Starting pppd at Tue Mar 25 21:22:08 2008 WvDial: Pid of pppd: 11465 WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: Using interface ppp0 WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: local IP address 62.40.58.185 WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: remote IP address 10.64.64.64 WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: primary DNS address 62.40.32.33 WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: secondary DNS address 62.40.32.34 WvDial<*1>: pppd: H���h�[06][08]`�[06][08]
If you want to disconnect from the web simply press Ctrl-C twice to kill it off. The first time you press it, it talks of wanting to exit gracefully – but better to press it a second time and exit effectively
You’ll see the following
Caught signal 2: Attempting to exit gracefully... WvDial<*1>: Terminating on signal 15 WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: Connect time 8.6 minutes. WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: pppd: H���h�[06][08]`�[06][08] WvDial<*1>: Disconnecting at Tue Mar 25 21:30:45 2008
7.) Tip of the day – lose the Edge!
Disclaimer: this is just my opinion as to the performance of the Edge network so O2 lawyers keep your knickers on (however Apple iPhone suckers, enjoy the sheer speed of the Edge network, getting dripfeed broadband at 1500 Euros a year!). In stark contrast though, my experience with the HSDPA network have been good. Yes, as you may have already guessed, the Edge network was not really delivering for me. But a friend of mine showed me how to change your O2 broadband Express card (or USB modem) settings so that it not even bother connecting if it can’t get a proper UTMS or HSDPA signal. For this you need a Windows friend. Install the express card on their machine and from the O2 broadband application and select “Tools->Choose Network Type->3G Only”. This setting directly updates the card so even when you switch back to a using it on a Linux box it will go with 3G only. If I don’t do this I’ve found that it will flip flop between Edge (GPRS) and 3G networks and drive you mad in the process. I found it pretty much impossible to even check my email on Edge.
Special thanks to Andy and Paul on the ILUG mailing lists for their help and also to O2, Vodaphone, Three et al. for providing Mobile Internet via hardware that can actually be used on an Open Source platform such as Linux; as we hopefully move from an era of proprietary lock-in and DRM-based crippleware to software that delivers genuine value for businesses and users. Vodafone have gone as far as having their own Open Source website to help along development at Betavine. Enjoy!
The revolution will not be televised! It will be streamed over TCP/IP…
Looks promising, but I haven’t started yet. Are you running knetworkmanager too? I have heard there could be conflicts between such a custom solution and knetworkmanager. Or did you find a way to integrate it?
That’s one thing I forgot to mention. For browsing the internet I had no problems with this solution however kmail (despite being aware that it is online) would never manage to retrieve my pop email.
The solution, that not everyone may like, is to quit knetworkmanager.
Hi Penguin
Any idea what settings I will need to alter for this to work with the Huawei E270 which 02 shipped to me?
Thanks
Neil
Neil: Not a clue on the E270 to be honest. If anyone else is reading this post and has any info on this issue then please post below. Failing that you could try asking on the ILUG mailing list http://www.linux.ie/community/mailinglists.php Maybe someone there might have some experience with the same problem.
Best of luck,
TIP
[...] The Irish Penguin » Blog Archive » Getting the Huawei E870 to work on Kubuntu (and Mobile Internet… [...]
Howdy,
thanks for the resource. I got the E870, this sorted me out on the getting going front, however it didn’t help me all the way.
I needed this initialization string, too:
AT+CGDCONT=1,”IP”,”open.internet”
It basically sets the missing APN, if not already present in the card.
In regards to knetworkmanager, there is a solution:
Forget the wvdial bit.
Create the connection in /etc/network/interfaces like this:
iface ppp0 inet ppp
provider huawei-e220
pre-up /usr/local/bin/huaweiAktBbo-i386.out
Either you reboot the machine after that, or you do a “/etc/init.d/dbus restart” and knetworkmanager or gnome-network-manager should have picked the ppp session up.
And additionally, you can also get udev to load the drivers correctly, but using this:
Create a file called: /etc/udev/rules.d/50-huawei-e220.rules
Content:
SUBSYSTEM==”usb”, SYSFS{idProduct}==”1003″, SYSFS{idVendor}==”12d1″, RUN+=”/usr/local/bin/huaweiAktBbo-i386.out”
SUBSYSTEM==”usb”, SYSFS{idProduct}==”1003″, SYSFS{idVendor}==”12d1″, RUN+=”/bin/sleep 5″
SUBSYSTEM==”usb”, SYSFS{idProduct}==”1003″, SYSFS{idVendor}==”12d1″, RUN+=”/sbin/modprobe usbserial vendor=0×12d1 product=0×1003″
This will load the drivers in the correct order, when the card is inserted.
The source for that was a german site: http://linux.frankenberger.at/Huawei_E220.html
Thanks Marlow. That’s great and it fills in a few more pieces of the Huawei puzzle!
Just want to add:
there are different versions of the Huawei E870 out there.
O2’s model need the huaweiAktBbo-i386, because it has the usb-storage drive build in.
Vodafone’s model doesn’t need it, because they didn’t pay for the storage option.
Which model you have, you can usually identify by the fact, that there is a CD in the package (no storage version) or there’s none (like O2).
This post is interesting to me as I have the E270 USB stick. I cannot get this to work and I was thinking of swaping for an E870 pcmia/Epress card.
Has anyone out there managed to get the USB one working in Hardy Heron Ubuntu ?
Please email wayne@themccances.com with the techie details if you have.
Thanks
hi
i use huawei ets 2258 under linux fedora and i cant make it work
can you help me with this driver please
im losing hope
please email me on theking2005xp@yahoo.com
Hi,
If you are receviing a “Voice line detected, Trying again ” pop the sim into another phone, and deactivate the PIN request (or add AT+CPIN=NNNN where N=a number in your pin) this had me baffled for a while.
Needless to say o2 BB Support dismissed me the moment I mentioned linux. I have this running on Fedora now.
Alan
i do use Huwai ETS 2058 FWT. i want to use it in fedora 9 or el-5.
please help me in this matter..
I am a user of Huwai ETS 2058. I want to configuire it in Ubuntu 9.04.
Please help me in this matter.
i use ETS 2258
my ubuntu 7.04 dont show anything /dev/ttyUSB0
it detect the modem but what next ..
i did exactly mentioned above
i am using ETS-2258 in Ubuntu.
but i can’t use it in rhel4/rhel5 .
while ………/.bin/connectme it shows ….Modem not Responding.
plz ! tell me what to do now ?