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 0×8087 and Product ID 0×0020
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.
by rmisra1
21 Jan 2012 at 20:43
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 0×1505 -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 0×08 (out) and 0×87 (in)
Using endpoints 0×08 (out) and 0×87 (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=0×1505
rakesh-desktop-linuxmint rmisra1 #
by Audrin Lenin
09 Mar 2012 at 12:14
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.
by Sajjad
29 Apr 2012 at 13:10
Audrin,
Not sure what you are missing. Can you tell me the version of usb_modeswitch?
by Fay
22 Apr 2012 at 19:58
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.
by Sajjad
29 Apr 2012 at 13:11
Fay,
Looks like this is the same issue what Audrin is having. Can you please tell me your usb_modeswitch version?
by Akinyele Olubodun
24 Feb 2013 at 20:28
Sudo your the command.
by akhil gopinathan
27 Jun 2012 at 21:40
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
by vijay
16 Jul 2012 at 12:52
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
by Isaa
27 Jul 2012 at 18:33
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.
by Adnan
15 Aug 2012 at 19:27
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: 0×00
Using endpoints 0×01 (out) and 0×82 (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.
by Ravi
24 Oct 2012 at 19:58
I used everything.
But I think this is impossible to connect reliance netconnect+ on ubuntu 11.04.
They are just making fool.
by Sajjad
24 Mar 2013 at 20:36
Uh oh. It didn’t work for you? Which part are you stuck? Have you upgraded to 12.04 or 12.10?
by Akinyele Olubodun
24 Feb 2013 at 20:28
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.
by Ayvan
02 Apr 2013 at 13:18
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