Judging by my server logs, there are lots of people trying to use the Huawei E1550 with Ubuntu. I posted a howto around this time last year but have been getting a lot of mail on it recently so thought I’d look at it again. I was going to mention it in the system help, under troubleshooting but can’t remember if I pushed a patch or not.
Mode-switching – method one
Thanks to OdyX (who maintains usb-modeswitch) this is the simplest method.
Open a terminal (Applications->Accessories->Terminal) and type:
sudo apt-get install usb-modeswitch usb-modeswitch-data
Mode-switching – method two
On inserting the device, if you open a terminal (Applications->Accessories->Terminal) and type “dmesg” you’ll see something like this:
The device has a small amount of storage space and identifies itself (on Windows) as a mass storage device, installs the driver and away you go. The problem is Ubuntu does what it is told to, it thinks its a mass storage device. The switch is never made in software because the software isn’t for Linux. We need to manually switch it using a little program that has been installed by default for a while now – “modem-modeswitch”. You need to pass it some parameters but we want the system to do this automatically when we insert the device – so we will configure a udev rule instead.
Open a new file to store the rule by typing “gksu gedit /etc/udev/rules.d/15-huawei-e1550.rules” and paste in the following code:
SUBSYSTEM=="usb",SYSFS{idProduct}=="1446",SYSFS{idVendor}=="12d1",RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"
Save the file and close the editor. Remove and re-insert the device. You should notice that service providers icon has popped up on the desktop – don’t worry about it as it is just the storage part of the device being recognised.
Configuring the connection
If you now click on the network-manager icon in the notification area, you’ll see a new option, “New Mobile Broadband (GSM) connection”
Click it and on the splash screen click “Forward” and choose your country and operator. Mine is 3UK so I’ll pick “Britain (UK)”, “3″ and importantly from the next screen choose “Handsets”. Obviously this will require the correct information, so if your network is not listed and you cannot obtain the necessary values the please contact your provider. Click “Apply” and you should see the connection appear.








Pingback: Huawei E1550 on Ubuntu | Lynx Blog
Thanks for the guide. You’ve done a great service to everyone using this broadband stick.
I take it that the instructions apply to other Huawei models. Or am I mistaken?
Like or Dislike:
0
0
@Barista Uno
Thanks! The instructions are essentially the same but the vendor and product ID may be different (most likely just the product). You can find that from running lsusb in a terminal, for example:
Bus 003 Device 002: ID 0a5c:2151 Broadcom Corp.The first four digits of the ID are the vendor, the ones after the colon are the device. YMMV as I have no other Huawei devices to test with but I think changing them would do it.
Looking at usb-modeswitch, it seems to be similar based around files in /etc/usb_modeswitch.d/vendor-id:device-id
Like or Dislike:
1
0
Thank you! I tried the 2nd method that did not work. Then I applied the additional information provided about the vendor and product ID by using running lsusb in a terminal.
Then It worked perfectly!! Thank you!
Like or Dislike:
0
0
Thank you, Arigato, Matur nuwun….
I’ve done to connect with this stick……
Like or Dislike:
0
0
Hi,
you could also install usb-modeswitch and usb-modeswitch-data, and it
willshould work, for any 3G “modeswitching” device out there.Cheers, OdyX (maintainer of usb-modeswitch
)
Like or Dislike:
0
0
@OdyX
Thanks – oddly enough I use it in Fedora and it worked well, although I haven’t tried it recently. I’ll try it again with usb-modeswitch and post the results. It would be nice to move away from udev rules.
@OdyX
I’ve updated the article. I really wish things like this were more widely publicised!
Like or Dislike:
0
0
Ouh, nice!
As for the publicity, I’m no blogger (yet ?) myself, so it’s hard to “get to the news”. Note that there is a “Recommends chain” that should somehow make sure that usb-modeswitch gets installed on default installs (on Maverick): network-manager > modemmanager > usb-modeswitch >> usb-modeswitch-data. So it should not be an issue, normally.
Like or Dislike:
0
0
Oh OK so it’s been accepted for Maverick?
Like or Dislike:
0
0
Yes. Version 1.1.4 has been accepted. Right now it doesn’t work because of bug #625110, but it should “really soon”.
Like or Dislike:
0
0
@Dougie: Technically, you don’t get rid of them (as usb-modeswitch-data provides the needed ones), but the biggest advantage is that the distribution handles that issue for you. :->
Like or Dislike:
0
0
Yeah I had a bit of a poke about and see what it’s doing. Definitely something that should be obfuscated from users!
Like or Dislike:
0
0
Thanks for your article. its working fine for me.
Like or Dislike:
0
0
First of all great instructions!
Well done.
and importantly from the next screen choose “Handsets”
Curious why is it important to use ‘Handsets’?
I automatically used the instructions from 1 year ago, and without thinking just clicked on ‘Internet’ and it seemed to work fine.
Now you got me curious, why am I better off using ‘Handsets’ than ‘Internet’?
BTW I have since switched to ‘Handsets’.
Thanks
Like or Dislike:
0
0
Thanks – it may not matter which APN now but it did when I first wrote the article. Thanks for mentioning it – I’ll look into it.
Like or Dislike:
0
0
Thanks for excellent guide. I got another problem: after successfully create the script, my netbook Ubuntu Remix 10.04.1 recognizes 3G dongle and can connect to the service provider, but other USB storage disappeared and can not recognized by the system, including SD Card in built-in SD Card Reader, USB 2.0 2GB Flash stick and USB Multicard Reader. The system now can see only storage in USB dongle mini SD card, but none of others.
Should I create udev rules for each USB storage connect to the system?
Thank you
Like or Dislike:
0
0
Which method did you use?
Like or Dislike:
0
0
Thank you
it is very helpful
Like or Dislike:
0
0
I used both methods: installed usb-modeswitch and created script 15-huawei-e1550.rules in /etc/udev/rules.d folder.
Thanks
Like or Dislike:
0
0
I’d suggest asking a question with the package maintainer or filing a bug:
https://answers.launchpad.net/ubuntu/+source/usb-modeswitch
https://bugs.launchpad.net/ubuntu/+source/usb-modeswitch
Like or Dislike:
0
0
I removed file /etc/udev/rules.d/15-huawei-e1550.rules. All USB devices can work normally now.
Like or Dislike:
0
0
I see – you did both methods at the same time.
Like or Dislike:
0
0
hi i have installed ubuntu lucid lynx 10.04 lts i am trying to get my huawei e1550 3g dongle working i have tried various command s in sudo terminal i just cannot seem to get anything working it (dongle works fine on xp ) any help please i just have to have the internet connection no wifi out where i am the usb modeswitch must be in stalled in my version of ubuntu ???
Like or Dislike:
0
0
Method two above doesn’t need you to download anything, just follow the guide.
Like or Dislike:
0
0
hi i followed the guide still nothing no option in the network manager for mobile broadband just nothing happens i think ill have to reload xp just seems too much hassle ubuntu
Like or Dislike:
0
0
Is it the same dongle? Are you running 10.04.1?
Like or Dislike:
0
0
Thanks a lot for this good guide… owned the E1550 stick since last december 09 but now then able to surf net with ubuntu on my laptop!! ha ha…
Like or Dislike:
0
0
yeah its ubuntu 10.04 LTS lucid lynx and huawei e1550 usb stick i must be doing something wrong when i plug it in i get the three icon but i just cant switch it
Like or Dislike:
0
0
The icon sometimes appears when it’s switched correctly – is there a connection in network manager?
If not, with the device plugged in open a terminal and type:
sudo /lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocdThen we can see if the problem is udev or modem-modeswitch. My wife has been ill recently, so I might not get much time to check for a reply just now.
Like or Dislike:
0
0
ok thanks i typed that in and the reply was no device found dont know if this helps but its an acer 3810t the hard drive brokedown so i installed new one and ubuntu os theres no other os onboard also when in network manager theres a wired connx option and wireless connex option but no mobile broadband option
Like or Dislike:
0
0
Again while it’s plugged in, can you open a terminal and type:
lsusb|grep HuaweiIf you post the output here – I want to confirm the vendor and device strings. 3 have started shipping a different version of their software – there might have been a firmware change too.
Like or Dislike:
0
0
Thanks with your guide. I’m even manage to do it at other brand also.
Like or Dislike:
0
0
after doing above steps my e1550 hsdpa usb does not recognize
Like or Dislike:
0
0
Which method and which steps? Are you using the newly released 10.10?
Like or Dislike:
0
0
it worked, thank you
Like or Dislike:
0
0
man thank you very much it now works perfect!
Like or Dislike:
0
0
i have done all that, it has connectde alright but i ncat still log onto facebook. i get the home screen alright but when i input my user id and password this is what comes
This webpage is not available.
The webpage at https://login.facebook.com/login.php?login_attempt=1 might be temporarily down or it may have moved permanently to a new web address.
Here are some suggestions:
Reload this web page later.
More information on this error
Below is the original error message
Error 118 (net::ERR_CONNECTION_TIMED_OUT): The operation timed out.
i need help
Like or Dislike:
0
0
You don’t mention what provider your with or which browser you’re using but there are a few things you can try – try opening a terminal and pinging http://www.google.com then you know if there’s a connection at all. If that doesn’t do anything, try pinging 216.239.51.99 – if that works then you know you’ve a DNS problem.
Are you using Chromium?
Like or Dislike:
0
0
yah am using Chromium and mozilla
Like or Dislike:
0
0
kindly get back to me i get the same for yahoo mail too. so u cant send my reply there, paste it here for me
Like or Dislike:
0
1
I would have posted here anyway mate, I don’t do unpaid direct technical support
Like or Dislike:
1
0
so what do i do now, i cant even connect to skype, i get p2p connection terminated
Like or Dislike:
0
0
Thanks man, it worked SO fine
.
Like or Dislike:
0
0
Method one worked with me like magic
, thank you
Like or Dislike:
0
0
I am trying to educate myself about how to setup a HUAWEI MOBILE BROADBAND E1550 HSDPA USB STICK on Ubuntu 10.04
I am not much computer literate, much less Ubuntu literate, and in two weeks I am bringing this box to a remote African village in Tanzania… I need to make sure I can setup internet from it.
I noticed this posts are from last year. I was wondering if the information still apply.
Thanks
Paola
Like or Dislike:
0
0
As far as I know, yes. I’m just back in an area with Internet access so I’ll update Ubuntu and let you know!
Like or Dislike:
0
0
Paola,
I just tried an E1550 on the latest Ubuntu and it’s working fine. Now it was an upgrade, so you may need to follow the steps in the post too.
Like or Dislike:
1
0
super easy got it to work in 2 minutes
Like or Dislike:
0
0