Connect Huawei Modem Linux - USB Modeswitch

When you connect a USB modem to a Linux system, it often identifies the modem as a USB storage device. As a result, you may not be able to access the internet through the modem. To resolve this issue, you need to change the device's identification mode using the usb-modeswitch package. If your system already has internet access, you can easily install this package.

First, you should check whether usb-modeswitch is already installed on your system. To do this, open the Terminal and type the following command:
sudo usb_modeswitch
If the package is installed, you will see output confirming its presence on your system.


If usb-modeswitch is not installed on your system, you will encounter the following error message:

bash: usb_modeswitch: command not found

To install usb-modeswitch, you can use the following commands:


sudo apt-get update
sudo apt-get install usb-modeswitch

If your system currently lacks internet access, you can download the usb-modeswitch package from the links provided below.

Ubuntu/Lubuntu/Kubuntu (ubuntu base)

lucid
http://packages.ubuntu.com/lucid/usb-modeswitch

precise
http://packages.ubuntu.com/precise/usb-modeswitch

trusty 
http://packages.ubuntu.com/trusty/usb-modeswitch

utopic 
http://packages.ubuntu.com/utopic/usb-modeswitch

Debian 

wheezy 
https://packages.debian.org/wheezy/comm/usb-modeswitch

sid 
https://packages.debian.org/sid/usb-modeswitch

For RPM Base Systems  

http://rpm.pbone.net/index.php3?stat=3&search=usb_modeswitch&srodzaj=3 

Install it through your package manager 


eg - Debian 
dpkg -i usb_modeswitch.deb

Let's discuss how to connect Huawei USB modems. First, you should check if the kernel has already detected the USB modem. To do this, type the following command:

bash
Type lsusb .

If your output includes a 3G/LTE/UMTS/GSM Modem/Network card, then your modem has already been detected.

Even though the modem has been detected, you may still encounter issues connecting via the network manager. If this is the case, you can watch the following YouTube video for assistance:

http://youtu.be/izy8IfwjP8o?list=PLYfMMo969k2T8v-cm2DQIwWo22zLM3KOA

The first four hexadecimal digits represent the Vendor ID, and the last four hexadecimal digits represent the Device ID.

For Huawei modems, you can use the following command:

lsusb

The 4 first hexadecimal digits are the Vendor ID.
The 4 last hexadecimal digits are the Device ID.

Huawei{

sudo usb_modeswitch -H -v vender -p product

eg -

sudo usb_modeswitch -H -v 12d1 -p 1506

}

If your modem has been detected but you still cannot connect via the network manager, please refer to the YouTube video linked above.

http://youtu.be/izy8IfwjP8o?list=PLYfMMo969k2T8v-cm2DQIwWo22zLM3KOA

Comments

Popular posts from this blog

Department for Persons Registration of Sri Lanka

Java Byte Code, Interpreter and JIT