Getting a Huawei EC159 USB Modem working on Ubuntu 11.04

The EC159 just like any USB modem gets detected as a USB mass storage or virtual CD-ROM when connected to Linux boxes. Yes, usb-modeswitch should take care of this and make it available as a GSM Modem. Unfortunately, the usb-modeswitch configuration skips this particular device, and that’s what I felt.

I decided to run usb-modeswitch to manually configure the modem by the following steps:

1. Get the latest release of usb-modeswitch

2. Build and install it.

3. Plug in the modem and run lsusb. Note down the vendor ID and Product ID.

For example:  Bus 002 Device 002: ID 8087:0020 Huawei

The vendor ID is 0x8087 and Product ID 0x0020

4. Run usb_modeswitch -H -v <vendor ID> -p <product ID>

5. Now modeprobe using the same vendor and product ID

sudo modprobe usbserial vendor=<your’s here> product=<your’s here>

6. Your device will start working like a charm!

Do let me know in the comments if you are stuck.

15 thoughts on “Getting a Huawei EC159 USB Modem working on Ubuntu 11.04”

  1. Hi

    i tried same procedure but it did not work .. could u pl help to give some other tips

    Rgds/

    ————————–
    rakesh-desktop-linuxmint rmisra1 # usb_modeswitch -v 0x12d1 -p 0x1505 -H

    Looking for default devices …
    Found devices in default mode, class or configuration (1)
    Accessing device 006 on bus 003 …
    Getting the current device configuration …
    OK, got current device configuration (1)
    Using endpoints 0x08 (out) and 0x87 (in)
    Using endpoints 0x08 (out) and 0x87 (in)
    Inquiring device details; driver will be detached …
    Looking for active driver …
    No driver found. Either detached before or never attached

    SCSI inquiry data (for identification)
    ————————-
    Vendor String: HUAWEI
    Model String: Mass Storage
    Revision String: 2.31
    ————————-

    USB description data (for identification)
    ————————-
    Manufacturer: HUA?WEI TECHNOLOGIES
    Product: HUAWEI Mobile
    Serial No.: ???????????????????
    ————————-
    Sending Huawei control message …
    OK, Huawei control message sent
    -> Run lsusb to note any changes. Bye.

    rakesh-desktop-linuxmint rmisra1 # sudo modprobe usbserial vendor=0x12d1 product=0x1505
    rakesh-desktop-linuxmint rmisra1 #

  2. On running usb_modeswitch -H -v -p
    I get this message.

    Found devices in default mode, class or configuration (1)
    Accessing device 000 on bus 005 …
    Getting the current device configuration …
    Error: getting the current configuration failed (error -1). Aborting.

  3. Hi,
    Was trying to setup the MF192 Huawei USB dongle on linux ubuntu, At first it was just detecting it as a mass storage thing so I used the eject and then it was detected as a mobile broadband device (did not remove the stick from the comp when I selected eject) but it doesn’t want to connect to the internet.
    I tried your commands as above, but at stage 4, it gives an error:
    Error getting the current configuration (error -1). Assuming configuration 1.
    Error: message endpoint not given or found. Aborting.

  4. hi., can anyone tell me how can i unlock my reliance huawei ec159
    is there any way i can use any sim in this modem

  5. can i use any other sim with this device? If that it so what to do for making it to work. device name- HUAWEI EC159

  6. I’m having the very same issue as Fay. I used the “Eject” option and it was detected in the network manager, but it has failed to connect. I’m just hearing of minicom and usb_modeswitch from guys in the net but I have no clue on how to go about it so that my USB modem ZTE 192 becomes a plug and play device just like I’m on Windows. My computer is on Ubuntu 11.10. Thanks in advance.

  7. Hi.
    the modprobe is giving be FATAL out. it says the vendor ID not found.

    I did the usb_modeswitch, and the output was:
    Looking for default devices …
    found matching product ID
    adding device
    Found device in default mode, class or configuration (1)
    Accessing device 013 on bus 001 …
    Getting the current device configuration …
    OK, got current device configuration (1)
    Using first interface: 0x00
    Using endpoints 0x01 (out) and 0x82 (in)
    Not a storage device, skipping SCSI inquiry

    USB description data (for identification)
    ————————-
    Manufacturer: HUAWEI Technology
    Product: HUAWEI Mobile
    Serial No.: not provided
    ————————-
    Sending Huawei control message …
    OK, Huawei control message sent
    -> Run lsusb to note any changes. Bye.

    I did lsusb, and output was:
    Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
    Bus 001 Device 013: ID 12d1:1436 Huawei Technologies Co., Ltd.

    but when I did modprobe, it gives me FATAL error:
    FATAL: Module vendor=0x12d1 not found.

  8. I used everything.
    But I think this is impossible to connect reliance netconnect+ on ubuntu 11.04.
    They are just making fool.

  9. Thanks for your article. It works for me like a charm. I would like to help with some few things.

    If you have this error “Error getting the current configuration (error -1). Assuming configuration 1.
    Error: message endpoint not given or found. Aborting.” please sudo the command and it would work fine.

    Regards.

  10. Hello,
    I tried the steps that you said. Had some progress but was still not able to connect to the net.
    The command was successfully executed. After that I gave the wvdial command.
    Here’s when it gave me the following error.
    – ->Wvdial: Internet dialer version 1.60
    – ->Cannot get information for serial port.
    – ->Initializing modem.
    – ->Sending: ATZ
    – ->Sending: ATQ0
    – ->Re-Sending: ATZ
    – ->Modem not responding

    Is there any other file that needs to be changed or any entries to be added. Have I missed out on something? I think so.
    Please help
    Thx in advance.
    Ayvan

  11. tech@tech-Inspiron-N5010:~$ sudo usb_modeswitch -H -v 20a6 -p f00e

    Looking for default devices …
    found matching product ID
    adding device
    Found device in default mode, class or configuration (1)
    Accessing device 007 on bus 002 …
    Getting the current device configuration …
    OK, got current device configuration (1)
    Using first interface: 0x00
    Using endpoints 0x01 (out) and 0x81 (in)
    Inquiring device details; driver will be detached …
    Looking for active driver …
    No driver found. Either detached before or never attached

    SCSI inquiry data (for identification)
    ————————-
    Vendor String: Modem
    Model String: Disk
    Revision String: 2.31
    ————————-

    USB description data (for identification)
    ————————-
    Manufacturer: Modem
    Product: Modem Device
    Serial No.: 000000000002
    ————————-
    Sending Huawei control message …
    OK, Huawei control message sent
    -> Run lsusb to note any changes. Bye.

    tech@tech-Inspiron-N5010:~$ sudo modprobe usbserial vendor=0x20a6 product=0xf00e

    usb-devices
    T: Bus=02 Lev=02 Prnt=02 Port=01 Cnt=01 Dev#= 7 Spd=480 MxCh= 0
    D: Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs= 1
    P: Vendor=20a6 ProdID=f00e Rev=00.00
    S: Manufacturer=Modem
    S: Product=Modem Device
    S: SerialNumber=000000000002
    C: #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=500mA
    I: If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)

    i have tried this all i am using intex 3.5g modem and have tried to configure rules and modules also but nothing has worked can u tell me wats d real prob,i ll be grateful as i am really hassled by this.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>