40 responses to “Safaricom, Huawei e220, Linux and you!”

  1. Erdost Ansal

    You are the man Alan! Although I am an avid windows user, I would like to thank you on behalf of the unix community for this great post:) I can see that your unix skills are as sharp as before. Take good care of yourself.

  2. Ben

    Can you write a tutorial for the MAC, please?

  3. Sara

    SNL ;)

  4. bgm

    What’s the browsing experience like. From your about page it says you’re in Tala so the 3G is probably not there yet but have you been able to get the 3.6Mb/s advertised anywhere at all?

  5. bernie

    Looks like a long shot for me….I use Ubuntu and use Vodafone Driver for linux (debian package) as detailed in this very easy tutorial here:
    http://www.howtoforge.com/vodafone_mobile_connect_card_driver_linux

    Mac users can get generic drivers here: http://www.huawei.com/mobileweb/en/doc/list.do?type=-1&id=736

    I’m quite sure you cannot get 3G speeds where you are. It wouldn’t make commercial sense for Safaricom to do so.

  6. punchez

    Cool work man…I have been looking for this information dearly..I’ll apply it to fedora8..keep it up!

  7. Peter Waa

    Hi Allan,

    Many thanks for the script, which I was able to use to connect to the Internet on Safaricom’s GPRS service with my Nokia 6233. However I have tried to connect using the same phone on Safaricom’s 3G service but have not been able to…might you have experienced such a situation before? Can you find a workaround?

    Kind Regards,
    Peter.

  8. KENNETH ORWA

    I bought a new Bamba Net modem of 3G capacity of Safaricom but it keeps on droping each and everytime.Even connecting it is a problem,yet my town of Migori there are limited Internet connectivity yet we need to have one so the only solution left is just the safaricom.
    We just have to use that even if it is not stable coz its the thing we have at hand.

  9. Sheila Ommeh

    Dear Alan,

    Thank you very much for this information which is quite timely. I have a safcom bambanet and I have been tying to get it work in UBUNTU Hardy Heron LTS.

    Now I have the following problem:

    When I use the following configuration
    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Init4 = AT+CGDCONT=1,”IP”,”www.dialogsl.com”
    Password = bar
    Phone = *99***1#
    Modem Type = Analog Modem
    Stupid Mode = yes
    Baud = 9600
    Dial Command = ATDT
    Modem = /dev/ttyUSB0
    ISDN = 0
    Username = foo

    I get connected BUT I am not able to surf the internet i.e. no connection. I tried using your configuration and it was not working.
    What can you advise?

    Regards,
    Sheila

    What

  10. Sheila Ommeh

    Hi Alan,

    I managed to solve the problem by modifying the configuration above as below:

    [Dialer Defaults]
    Init1 = ATZ
    Init2 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Init3 = ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    Init4 = AT+CGDCONT=1,”IP”,”SAFARICOM”
    Password = bar
    Phone = *99***1#
    Modem Type = Analog Modem
    Stupid Mode = yes
    Baud = 9600
    Dial Command = ATDT
    Modem = /dev/ttyUSB0
    ISDN = 0
    Username = foo

    Since I use Mozilla, I also unchecked the work offline mode in the file menu.

    Everything is working fine with internet but I am not able to connect to a remote server :(

    I will post this once sorted out.

    Best regards,
    Sheila

  11. Mubarak

    Hi,
    JUst came across you website and installing the 3G modem on Linux. My Scenario: Asus Eee Netbook running Linux, Huawei e160 3G Modem. Will your solution work on this hardware?
    Many thanks.

  12. Francis

    This is the coolest thing. twas of much help. can surf now

  13. Jason Hopkins

    SWEET!! I’m in Nairobi and the only linux user I know. I use Ubuntu – though I used LFS before. I followed your instructions.

    The modem was plugged in when I booted so I saw the TTY stuff no problem – at least this time.

    I copied your wvdial.conf then changed:
    Modem = /dev/ttyUSB0

    Also, when copy/paste I had to replace the ” with the straight kind. Pretty obvious if you know what your looking at otherwise it may drive you crazy!

    I’m curious, why is this called an analog modem and not a USB modem?

    Thanks for the help. I was worried when I couldn’t get it working in VirtualBox I was going to have to dual boot again!!

    I use Zain for my phone, any idea how to top up without having to put the SIM in my phone?

  14. Jeff

    Hi Alan, I’ve just bought a modem with the 300MB preloaded. Now the literature I’ve seen says that to activate one should send a text to 446. I have a Zain SIM on my phone. Do I send the text from a Safaricom line or do I insert the SIM that came with the Bambanet?

  15. Tony

    the bambanet (Safaricom’s internet access product) is pretty fascinating, though every once in a while it does get its flaws.

    and about it and linux, Ubuntu 8.10 Intrepid is wonderful. it auto-picks the modem and gives u a GUI step-by-step guide to setting it up. :)

    A few pointers to note of, or you’d like to contribute to, check out GotIssuez.com | Bambanet

  16. Tony

    Or you could try out Orange’s Internet Anywhere. Looks pretty good and cheap, even compared to Bambanet – safaricom’s solution.

    I made a short comparison at GotIssuez | Internet Anywhere vs. Bambanet.

    Cheers guys,
    Tony.

  17. Thaths

    What are the costs like for EDGE/3G?

  18. george

    Hello Allan. thanks very much for this post. really helped me alot. however could be by any chance be having the wvdial setting for Yu network.

  19. mike

    hi i know it must be like a gazillion years since you wrote this article, but its still useful since i used it to get the huawei e220 working in my opensuse 11.2 installation. would be nice to note im in an area with 3G and the speed is :)~! , dop dead gorgeous

  20. Linda

    I would really appreciate if you took me on step to step help on how I would use the safaricom modem from when I am at the network preferences and click on network connection to whhere I select my provider and insert my username and password coz what u have given me is doing jerk for me. I just don’t get it. please help.

  21. mac

    my question is,can i use my zain card in a safaricom modem

  22. Carlos

    Hi,

    I am trying to connect to safaricom but I have constant “NO CARRIER”.

    I am using *99# to connect

    Please help!

    1. Carlos

      I’m replying to my own post :-)

      After some extra configuration in Slackware 13 using pppsetup, it worked perfectly.

      Thanks a lot for this blog!

      1. mike

        Alan:
        well its a nice thing he was able to do that, but slackware 13 was the easiest for me along with opensuse 11.2 in connecting the e220 modem, im however having real trouble with fedora 12 and debian lenny. the so called “friendlier” distros

  23. Carlos

    Hi, do anyone have experience connecting to Orange?

    I am able to connect but the IP address that I get seem to be wrong. For example:

    ATZ
    OK
    –> Sending: ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    ATQ0 V1 E1 S0=0 &C1 &D2 +FCLASS=0
    OK
    –> Sending: AT+CGDCONT=1,”IP”,”bew.orange.co.ke”
    AT+CGDCONT=1,”IP”,”bew.orange.co.ke”
    OK
    –> Modem initialized.
    –> Sending: ATDT*99#
    –> Waiting for carrier.
    ATDT*99#
    CONNECT
    –> Carrier detected. Starting PPP immediately.
    –> Starting pppd at Mon Feb 1 14:59:26 2010
    –> Pid of pppd: 15754
    –> Using interface ppp0
    –> pppd: (â[06][08][08]ã[06][08]
    –> pppd: (â[06][08][08]ã[06][08]
    –> pppd: (â[06][08][08]ã[06][08]
    –> pppd: (â[06][08][08]ã[06][08]
    –> pppd: (â[06][08][08]ã[06][08]
    –> pppd: (â[06][08][08]ã[06][08]
    –> local IP address 10.53.0.196
    –> pppd: (â[06][08][08]ã[06][08]
    –> remote IP address 10.64.64.64
    –> pppd: (â[06][08][08]ã[06][08]
    –> primary DNS address 212.49.70.22
    –> pppd: (â[06][08][08]ã[06][08]
    –> secondary DNS address 212.49.70.23
    –> pppd: (â[06][08][08]ã[06][08]

    Now, I am not able to reach any of the DNS, not browse the internet.

    Many thanks.

  24. Chris

    Hi Carlos,
    If I got you right, you have NOT yet figured it out, am I correct? I would also like to use Orange’s CDMA services, as they are much cheaper than Safaricom. The ZTE modem is not picked by Linux (I am running Linux Mint Helena), but their Huawei is. Yet, it does not connect. Any ideas or past experiences? Thanks a lot!

  25. peter

    Mike,
    works fine by me. I’m using Debian Lenny. I installed wvdial, modified /etc/wvdial.conf and voila I was up and running.

  26. Samuel

    Hi allan,
    My sister wants a system like mine, linux mint, because she doesn’t want to deal anymore with windows xp virus. I think of sending her Linux mint isadora (ubuntu 10.04 LTS) but not sure of how it behaves with the safaricon dongle. With Ubuntu 9.04 it worked very well (the last time I was in kenya). What about PClinuxOS 2010, has anyone there tried it on any kenyan usb modem internet providers?

  27. Tony

    Hi
    I am running ubuntu 10.04 on laptop. I copied the wvdial settings that you have posted here to my /etc/wvdial.conf file so as to connect to the net using my safcom Huawei E220 dongle. I got the error ‘bad init string’ after the first run. I then removed the line ” Init4 = AT+CGDCONT=1,”IP”,”SAFARICOM” ” from the /etc/wvdial.conf settings. I am currently getting the error below:

    No Carrier! Trying again.
    –> Sending: ATDT*99#
    –> Waiting for carrier.
    ATDT*99#
    NO CARRIER
    –> No Carrier! Trying again.

    I would really appreciate any help I can get.

  28. Safri Dzal

    Wow, your post was 2008 but it just fit to what I want..Now I’m using LinuxMint11, no problem on connecting, but I cannot send/recieve SMS. Your post was a great help to me..thanks a lot.

Leave a Reply