Connect to internet by USB modem Huawei E3372

Asked by Vladimir Vojta

I installed Ubuntu 14.04 in the new Lenovo notebook IP B50-80 , the installation was no problem, but I just found out that you can not connect a USB modem Huawei E3372 (T-Mobile Czech Republic- service provide name). Notebook modem recognizes, but only as a CD drive.

http://consumer.huawei.com/en/mobile-broadband/dongles/features/e3372.htm

Thank you!

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Vladimir Vojta
Solved:
Last query:
Last reply:
Revision history for this message
Manfred Hampl (m-hampl) said :
#1

The usb_modeswitch package should handle the switch from the CD mode into modem mode of such Huawei USB devices.

To get some diagnostic information please perform the following steps:

unplug the device, wait half a minute, re-insert the device, wait half a minute again and issue the following commands in a terminal window:

uname -a
lsb_release -crid
dpkg -l | grep modeswitch
lsusb
dmesg | tail

Revision history for this message
Vladimir Vojta (vladimir-vojta) said :
#2

Every time when I joined Huawei USB modem appeared window with information:
Error mounting /dev/sr1 at /media/lenovo/HUAWEI: Command-line `mount -t "iso9660" -o "uhelper=udisks2,nodev,nosuid,uid=1000,gid=1000,iocharset=utf8,mode=0400,dmode=0500" "/dev/sr1" "/media/lenovo/HUAWEI"' exited with non-zero exit status 32: mount: block device /dev/sr1 is write-protected, mounting read-only
mount: special device /dev/sr1 does not exist

Here is a list of desired commands from the terminal:

lenovo@Lenovo-B50-80:~$ uname -a
Linux Lenovo-B50-80 3.16.0-46-generic #62~14.04.1-Ubuntu SMP Tue Aug 11 16:27:16 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

lenovo@Lenovo-B50-80:~$ lsb_release -crid
Distributor ID: Ubuntu
Description: Ubuntu 14.04.3 LTS
Release: 14.04
Codename: trusty

lenovo@Lenovo-B50-80:~$ dpkg -l | grep modeswitch
ii usb-modeswitch 2.1.1+repack0-1ubuntu1 amd64 mode switching tool for controlling "flip flop" USB devices
ii usb-modeswitch-data 20140327-1 all mode switching data for usb-modeswitch

lenovo@Lenovo-B50-80:~$ lsusb
Bus 001 Device 002: ID 8087:8001 Intel Corp.
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 002 Device 004: ID 138a:0011 Validity Sensors, Inc. VFS5011 Fingerprint Reader
Bus 002 Device 005: ID 0cf3:3004 Atheros Communications, Inc.
Bus 002 Device 002: ID 5986:0652 Acer, Inc
Bus 002 Device 008: ID 12d1:1506 Huawei Technologies Co., Ltd. E398 LTE/UMTS/GSM Modem/Networkcard
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

lenovo@Lenovo-B50-80:~$ dmesg | tail
[ 2319.508411] usbcore: registered new interface driver huawei_cdc_ncm
[ 2320.331176] scsi 5:0:0:0: Direct-Access HUAWEI TF CARD Storage 2.31 PQ: 0 ANSI: 2
[ 2320.331204] scsi 4:0:0:0: CD-ROM HUAWEI Mass Storage 2.31 PQ: 0 ANSI: 2
[ 2320.334536] sr1: scsi-1 drive
[ 2320.334668] sr 4:0:0:0: Attached scsi CD-ROM sr1
[ 2320.334736] sr 4:0:0:0: Attached scsi generic sg2 type 5
[ 2320.335024] sd 5:0:0:0: Attached scsi generic sg3 type 0
[ 2320.339256] sd 5:0:0:0: [sdb] Attached SCSI removable disk
[ 2320.492194] ISO 9660 Extensions: Microsoft Joliet Level 3
[ 2320.514730] ISOFS: changing to secondary root
lenovo@Lenovo-B50-80:~$

Thank you for help. :-)

Revision history for this message
Manfred Hampl (m-hampl) said :
#3

Two items:

1. you seem to have an entry in your /etc/fstab configuration file that instructs the system to mount any CD that it can find, and this interferes with the programs to handle the Huawei modem.

What is the output of

cat -n /etc/fstab

2. according to the output of lsusb ("... 12d1:1506 ...") the usb_modeswitch program has already switched the Huawei device from CD mode into modem mode.

what is the output of

ls -l /dev/ttyu* /dev/ttyU*

If this still doesn't work, you could try manually installing the latest usb-modeswitch and usb-modeswitch-data packages. There is some change for the Huawei E3372 in the latest version.

Revision history for this message
Vladimir Vojta (vladimir-vojta) said :
#4

Hello, there are outputs of commands:

lenovo@Lenovo-B50-80:~$ cat -n /etc/fstab
     1 # /etc/fstab: static file system information.
     2 #
     3 # Use 'blkid' to print the universally unique identifier for a
     4 # device; this may be used with UUID= as a more robust way to name devices
     5 # that works even if disks are added and removed. See fstab(5).
     6 #
     7 # <file system> <mount point> <type> <options> <dump> <pass>
     8 # / was on /dev/sda2 during installation
     9 UUID=36dd88fd-871e-4226-a6f6-f56943d8f4e9 / ext4 errors=remount-ro 0 1
    10 # /boot/efi was on /dev/sda1 during installation
    11 UUID=D3F4-5616 /boot/efi vfat defaults 0 1
    12 # swap was on /dev/sda3 during installation
    13 UUID=b5184f22-35a4-417e-8845-fc4b24a8e895 none swap sw 0 0

lenovo@Lenovo-B50-80:~$ ls -l /dev/ttyu* /dev/ttyU*
ls: nelze přistoupit k /dev/ttyu*: Adresář nebo soubor neexistuje
ls: nelze přistoupit k /dev/ttyU*: Adresář nebo soubor neexistuje

Translations of czech informations in output:
nelze přistoupit k - You can not proceed to the
Adresář nebo soubor neexistuje - No such file or directory

Thank you for help. :-)

Revision history for this message
Manfred Hampl (m-hampl) said :
#5

Apparently there are some problems / bugs with the newest Huawei modems in older versions of usb-modeswitch. The newest version of the software which is available for wily has already got some changes that hopefully will help.

It should be possible to install that newest version also on your trusty system.

Try the following:

open a terminal and issue the commands

wget http://launchpadlibrarian.net/211042156/usb-modeswitch_2.2.3%2Brepack0-1ubuntu1_amd64.deb
wget http://launchpadlibrarian.net/210294938/usb-modeswitch-data_20150627-1_all.deb
sudo dpkg -i usb-modeswitch_2.2.3%2Brepack0-1ubuntu1_amd64.deb usb-modeswitch-data_20150627-1_all.deb

Then reboot, try using your Huawei modem and report the outcome.
If you get any error message please provide its full text.

Revision history for this message
Vladimir Vojta (vladimir-vojta) said :
#6

Hello,
I send the whole list of orders that I had done.

lenovo@Lenovo-B50-80:~$ wget http://launchpadlibrarian.net/211042156/usb-modeswitch_2.2.3%2Brepack0-1ubuntu1_amd64.deb
--2015-09-02 19:48:14-- http://launchpadlibrarian.net/211042156/usb-modeswitch_2.2.3%2Brepack0-1ubuntu1_amd64.deb
Překládám launchpadlibrarian.net (launchpadlibrarian.net)… 91.189.89.228, 91.189.89.229
Navazuje se spojení s launchpadlibrarian.net (launchpadlibrarian.net)|91.189.89.228|:80… spojeno.
HTTP požadavek odeslán, program čeká na odpověď… 200 OK
Délka: 51622 (50K) [application/x-debian-package]
Ukládám do: „usb-modeswitch_2.2.3+repack0-1ubuntu1_amd64.deb“

100%[======================================>] 51 622 118KB/s za 0,4s

2015-09-02 19:48:18 (118 KB/s) – „usb-modeswitch_2.2.3+repack0-1ubuntu1_amd64.deb“ uloženo [51622/51622]

lenovo@Lenovo-B50-80:~$ wget http://launchpadlibrarian.net/210294938/usb-modeswitch-data_20150627-1_all.deb
--2015-09-02 19:48:50-- http://launchpadlibrarian.net/210294938/usb-modeswitch-data_20150627-1_all.deb
Překládám launchpadlibrarian.net (launchpadlibrarian.net)… 91.189.89.228, 91.189.89.229
Navazuje se spojení s launchpadlibrarian.net (launchpadlibrarian.net)|91.189.89.228|:80… spojeno.
HTTP požadavek odeslán, program čeká na odpověď… 200 OK
Délka: 32066 (31K) [application/x-debian-package]
Ukládám do: „usb-modeswitch-data_20150627-1_all.deb“

100%[======================================>] 32 066 29,8KB/s za 1,1s

2015-09-02 19:48:54 (29,8 KB/s) – „usb-modeswitch-data_20150627-1_all.deb“ uloženo [32066/32066]

lenovo@Lenovo-B50-80:~$ sudo dpkg -i usb-modeswitch_2.2.3%2Brepack0-1ubuntu1_amd64.deb usb-modeswitch-data_20150627-1_all.deb
[sudo] password for lenovo:
dpkg: error processing archive usb-modeswitch_2.2.3%2Brepack0-1ubuntu1_amd64.deb (--install):
nelze přistoupit k archivu: Adresář nebo soubor neexistuje
dpkg: ohledně usb-modeswitch-data_20150627-1_all.deb obsahující balík usb-modeswitch-data:
usb-modeswitch-data porušuje usb-modeswitch (<< 2.2.2)
usb-modeswitch (verze 2.1.1+repack0-1ubuntu1) je přítomný a nainstalován.

dpkg: error processing archive usb-modeswitch-data_20150627-1_all.deb (--install):
instalace balíku usb-modeswitch-data by porušila balík usb-modeswitch a
dekonfigurace není povolena (mohlo by pomoci --auto-deconfigure)
Při zpracování nastaly chyby:
usb-modeswitch_2.2.3%2Brepack0-1ubuntu1_amd64.deb
usb-modeswitch-data_20150627-1_all.deb

********
Here is a translation error messages dpkg command:

dpkg: error processing archive usb-modeswitch_2.2.3% 2Brepack0-1ubuntu1_amd64.deb (--install):
can not access archive: No such file or directory
dpkg: regarding usb-modeswitch data_20150627-1_all.deb-containing package usb-modeswitch-date:
modeswitch-usb-usb-data breaches modeswitch (<< 2.2.2)
usb-modeswitch (version 2.1.1 + repack0-1ubuntu1) is present and installed.

dpkg: error processing archive usb-modeswitch-data_20150627-1_all.deb (--install):
installation package usb-modeswitch-data would violate the package usb-modeswitch and
deconfiguration is not permitted (this could help --auto-deconfigure)
Errors were encountered while processing:
usb-modeswitch_2.2.3% 2Brepack0-1ubuntu1_amd64.deb
usb-modeswitch-data_20150627-1_all.deb
********

Then I reboot notebook, I tried to used my USB Huawei modem and I connect my notebook without any errors to internet. :-)
USB modem Huawei is still in the launcher shown as CD drive.
I do not know what happened, because commands dpkg most likely not implemented, but the connection to the internet works.

Thank you for help. :-)

Revision history for this message
Manfred Hampl (m-hampl) said :
#7

It seems that wget has changed the file name.

The correct command would have been

dpkg -i usb-modeswitch_2.2.3+repack0-1ubuntu1_amd64.deb usb-modeswitch-data_20150627-1_all.deb

But if everything is working well, you need not try that.

Revision history for this message
Vladimir Vojta (vladimir-vojta) said :
#8

Manfred Hampl thank you for help! :-)