Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Huawei E8372 Linux Configuration and Setup

Dependencies

  1. usb_modeswitch, usb_modeswitch-data
  2. libusb1
  3. libusb-devel(Fedora), libusb-dev(Debian based)

Configuration

By default, your linux box would register your Huawei E8372 as a Mass Storage device and not (somehow) as a modem. First, make sure you have the exace same device we're talking about. This can be confirmed by looking at 2 values. Give the following command (while the dongle is plugged in):

    sudo su
    lsusb | grep Huawei
  • Now look exactly for 12d1:1f01. Even if one letter is other than this, do not proceed.

  • Using your favourite editor, create a new file called 70-huawei_e8372.rules in /etc/udev/rules.d/ gedit /etc/udev/rules.d/70-huawei_e8372.rules

  • Paste the following piece of code in it, and save it:

    ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1f01 -M '55534243123456780000000000000a11062000000000000100000000000000'" ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="1f01", RUN+="/bin/bash -c 'modprobe option && echo 12d1 14db > /sys/bus/usb-serial/drivers/option1/new_id'"

  • Finally, reload all the udev rules by:

    udevadm control --reload-rules

  • Now restart your PC and you're good to go now. Whenever you plug-in your dongle, you'll have it automatically registered as a modem.

@holywen

This comment has been minimized.

Copy link

commented Jan 15, 2017

After reboot, I got /dev/ttyUSB0 and /dev/ttyUSB1 devices.
What to do next?
thanks!

@mahdi87gh

This comment has been minimized.

Copy link

commented Oct 10, 2017

It's working fine with one modem. I have two of these modems and I want to connect both of them at the same time. but only one of them works right now. How to fix?

@itsme300

This comment has been minimized.

Copy link

commented Oct 15, 2017

This fix worked perfectly. Thanks. Also, I dont see the usb LAN disappear after doing this on ubuntu 16.04.

@pixelatedpic

This comment has been minimized.

Copy link

commented Oct 24, 2017

will this work on ubuntu 16.04?? cause mine did not work.. i hav Huawei E8372

@zxzjim

This comment has been minimized.

Copy link

commented Jan 21, 2018

somehow I can just get the ttyUSB1 at 12d1:14db and I can't get the ttyUSB0 device... I'm using the stick on a Respberry Pi

@kilikyrepito

This comment has been minimized.

Copy link

commented Apr 4, 2018

Hi! Thanks! It's working fine with Debian Squeeze 6.0.10. I Have Huawei E3372. How do ?

@dimmo

This comment has been minimized.

Copy link

commented Apr 12, 2018

Thanks! Worked for me on Ubuntu 16.04.4 LTS.

@advnaser

This comment has been minimized.

Copy link

commented Aug 4, 2018

I am using Xenialpup64-7.5, a fork of Puppy Linux. Xenialpup recognized Huawei E8372 wingle as a mass storage device. I tried the solution given above but it didn't work for some reason. Then I tried the following technique with success.

I replaced the existing code in usr/share/usb_modeswitch/12d1:1f01 with the one given below and restarted the PC.

Huawei E8372

TargetVendor= 0x12d1
TargetProduct= 0x14db

MessageContent="55534243123456780000000000000a11062000000000000100000000000000"
NoDriverLoading=1

@advnaser

This comment has been minimized.

Copy link

commented Aug 4, 2018

Important : Add # before Huawei E8372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.