- usb_modeswitch, usb_modeswitch-data
- libusb1
- libusb-devel(Fedora), libusb-dev(Debian based)
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 two values using the following command (while the dongle is plugged in): As an elevated user:
# lsusb | grep Huawei
-
Now look exactly for
12d1:1f01
- not overlooking a single character mismatch. If all good, proceed. -
Using your favourite editor, with elevated privileges, 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.
Just a quick update for everyone still strugling. E8372 works in Hilink mode by default.
usb_modeswitch -e
, I have 2.5.2) can switch it back to ttyUSB mode. So update it first if you're on an older version.gen-rules.tcl
to install (might require to doapt install tcl
first).Voila. Now you have /dev/ttyUSB*
UPDATE: I also created a full blown manual - https://gist.github.com/ethaniel/d7f9c3192041c64c89d2c5b49527d0e2