Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Huawei E3372

450 views
Skip to first unread message

Hannu Virtanen

unread,
Feb 26, 2015, 2:40:02 AM2/26/15
to
Anybody got Huawei E3372 working with debian?

If got, how to do it?

-hv


--
To UNSUBSCRIBE, email to debian-lap...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1424936295.4839...@web141601.mail.bf1.yahoo.com

Petr Kubánek

unread,
Feb 26, 2015, 4:50:02 AM2/26/15
to
usb_modeswitch -H or usb_modeswitch -J, see usb_modeswitch man page.
Then it is the same as other GPRS modems.

Petr

Hannu Virtanen píše v St 25. 02. 2015 v 23:38 -0800:
> Anybody got Huawei E3372 working with debian?
>
> If got, how to do it?
>
> -hv
>
>



--
To UNSUBSCRIBE, email to debian-lap...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1424942670.2...@kubanek.net

Hannu Virtanen

unread,
Feb 26, 2015, 5:00:04 AM2/26/15
to
If this:

root@gone:/home/hv# usb_modeswitch -H

it says:

No default vendor/product ID given. Aborting.

If this

root@gone:/home/hv# usb_modeswitch -J

it says:

usb_modeswitch: invalid option -- 'J'

--- ---

-hv

--------------------------------------------
On Thu, 2/26/15, Petr Kubánek <pe...@kubanek.net> wrote:

Subject: Re: Huawei E3372
To: "Hannu Virtanen" <hannu_mark...@yahoo.com>
Cc: debian...@lists.debian.org
Date: Thursday, February 26, 2015, 12:24 PM
Archive: https://lists.debian.org/1424944571.1120...@web141605.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 26, 2015, 5:20:03 AM2/26/15
to
if

root@gone:/# lsubs

it says:

'bash: lsubs: komentoa ei löydy'

(in Finnish: 'no such command')

-hv

--------------------------------------------
On Thu, 2/26/15, Petr Kubánek <pe...@kubanek.net> wrote:

Subject: Re: Huawei E3372
To: "Hannu Virtanen" <hannu_mark...@yahoo.com>
Cc: debian...@lists.debian.org
Date: Thursday, February 26, 2015, 1:05 PM

RTFM.

lsubs will get you product ID and vendor ID.

usb_modswitch -H -P 0xxxx -V
0xxxx will then work, you will of course
need to substitute what you get from lsusub.

Petr


Hannu Virtanen píše v Čt 26. 02. 2015 v
01:56 -0800:
Archive: https://lists.debian.org/1424945674.1408...@web141601.mail.bf1.yahoo.com

Petr Kubánek

unread,
Feb 26, 2015, 5:30:02 AM2/26/15
to
RTFM.

lsubs will get you product ID and vendor ID.

usb_modswitch -H -P 0xxxx -V 0xxxx will then work, you will of course
need to substitute what you get from lsusub.

Petr


Hannu Virtanen píše v Čt 26. 02. 2015 v 01:56 -0800:
Archive: https://lists.debian.org/1424945157.2...@kubanek.net

Petr Kubánek

unread,
Feb 26, 2015, 5:40:02 AM2/26/15
to
Sorry, typo: lsusb should work.

Petr

Hannu Virtanen píše v Čt 26. 02. 2015 v 02:14 -0800:
Archive: https://lists.debian.org/1424945995.2...@kubanek.net

Hannu Virtanen

unread,
Feb 26, 2015, 5:40:02 AM2/26/15
to
if

root@gone:/# lsubs

it says:

'bash: lsubs: komentoa ei löydy'

(in Finnish: 'no such command')

-hv

--------------------------------------------
On Thu, 2/26/15, Petr Kubánek <pe...@kubanek.net> wrote:

Subject: Re: Huawei E3372
To: "Hannu Virtanen" <hannu_mark...@yahoo.com>
Cc: debian...@lists.debian.org
Date: Thursday, February 26, 2015, 1:05 PM
Archive: https://lists.debian.org/1424946694.5172...@web141601.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 26, 2015, 5:40:02 AM2/26/15
to
if

root@gone:/# lsubs

it says:

'bash: lsubs: komentoa ei löydy'

(in Finnish: 'no such command')

-hv

--------------------------------------------
On Thu, 2/26/15, Petr Kubánek <pe...@kubanek.net> wrote:

Subject: Re: Huawei E3372
To: "Hannu Virtanen" <hannu_mark...@yahoo.com>
Cc: debian...@lists.debian.org
Date: Thursday, February 26, 2015, 1:05 PM
Archive: https://lists.debian.org/1424946711.8463...@web141603.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 26, 2015, 6:10:02 AM2/26/15
to
OK. (Don't worry)

(I realized a bit later that there was a typo.)

lsusb gives (among others) :

Bus 007 Device 010: ID 12d1:157d Huawei Technologies Co., Ltd.

Now just trying to work out how to use that knowledge in usb_modeswitch, ... reading the man page...

-hv



--------------------------------------------
On Thu, 2/26/15, Petr Kubánek <pe...@kubanek.net> wrote:

Subject: Re: Huawei E3372
To: "Hannu Virtanen" <hannu_mark...@yahoo.com>
Cc: debian...@lists.debian.org
Date: Thursday, February 26, 2015, 1:19 PM
Archive: https://lists.debian.org/1424948815.6381...@web141603.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 26, 2015, 6:50:04 AM2/26/15
to
then doing this:

(it was just *impossible* to find out by reading from the manpage of usb_modeswitch, which number
is the vendor id, which number the product id and that you should put those 0x in the front of them...)

---

usb_modeswitch -H -v 0x12d1 -p 0x157d

Looking for default devices ...
found matching product ID
adding device
Found device in default mode, class or configuration (1)
Accessing device 010 on bus 007 ...
Getting the current device configuration ...
OK, got current device configuration (1)
Using first interface: 0x00
Using endpoints 0x01 (out) and 0x81 (in)
Inquiring device details; driver will be detached ...
Looking for active driver ...
OK, driver found ("usb-storage")
OK, driver "usb-storage" detached

SCSI inquiry data (for identification)
-------------------------
Vendor String: HUAWEI
Model String: Mass Storage
Revision String: 2.31
-------------------------

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI_MOBILE
Product: HUAWEI_MOBILE
Serial No.: 0123456789ABCDEF
-------------------------
Sending Huawei control message ...
OK, Huawei control message sent
-> Run lsusb to note any changes. Bye.

---



Let's see if it had any effect and if working now...

-hv



--------------------------------------------
On Thu, 2/26/15, Hannu Virtanen <hannu_mark...@yahoo.com> wrote:

Subject: Re: Huawei E3372
To: "Petr Kubánek" <pe...@kubanek.net>
Cc: debian...@lists.debian.org
Date: Thursday, February 26, 2015, 2:06 PM
Archive: https://lists.debian.org/1424950816.1207...@web141602.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 26, 2015, 7:10:03 AM2/26/15
to
It had no effect.

It seems that the thing is somewhat working all the time, because the light is on,
but it has no connection with the computer...

-hv

--------------------------------------------
On Thu, 2/26/15, Hannu Virtanen <hannu_mark...@yahoo.com> wrote:

Subject: Re: Huawei E3372
To: "Petr Kubánek" <pe...@kubanek.net>
Cc: debian...@lists.debian.org
Date: Thursday, February 26, 2015, 2:40 PM
Archive: https://lists.debian.org/1424952207.2860...@web141605.mail.bf1.yahoo.com

Petr Kubánek

unread,
Feb 26, 2015, 8:50:03 AM2/26/15
to
You must ask modem to dial..hard way:

http://ernstagn.home.xs4all.nl/GPRS-HOWTO/GPRS-HOWTO-6.html

or if you use NetworkManager, broadband connections should show on..it
all depends on your window manager and parts you have installed.

Ubuntu does recognize modem itself and ask how to connect, including for
PIN.

Petr

Hannu Virtanen píše v Čt 26. 02. 2015 v 04:03 -0800:
Archive: https://lists.debian.org/1424957329.2...@kubanek.net

Hannu Virtanen

unread,
Feb 26, 2015, 9:00:04 AM2/26/15
to
I already a couple of hours ago tried with wvdial, but it cannot find the modem at all... I have used wvdial with several mobile phones earlier with success.

--- ---

root@gone:/etc# wvdialconf
Editing `/etc/wvdial.conf'.

Scanning your serial ports for a modem.

ttyS0<*1>: ATQ0 V1 E1 -- failed with 2400 baud, next try: 9600 baud
ttyS0<*1>: ATQ0 V1 E1 -- failed with 9600 baud, next try: 115200 baud
ttyS0<*1>: ATQ0 V1 E1 -- and failed too at 115200, giving up.
Modem Port Scan<*1>: S1 S2 S3


Sorry, no modem was detected! Is it in use by another program?
Did you configure it properly with setserial?

Please read the FAQ at http://alumnit.ca/wiki/?WvDial

(that page doesn't exist.. ;=))
--- ---


But what should I do with setserial?

I have got the network manager, but it doesn't help... Maybe I should install the one
from Ubuntu..? Using Gnome.

-hv

--------------------------------------------
On Thu, 2/26/15, Petr Kubánek <pe...@kubanek.net> wrote:

Subject: Re: Huawei E3372
To: "Hannu Virtanen" <hannu_mark...@yahoo.com>
Cc: debian...@lists.debian.org
Date: Thursday, February 26, 2015, 4:28 PM
Archive: https://lists.debian.org/1424958705.8011...@web141602.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 26, 2015, 9:10:02 AM2/26/15
to
It was written:

1)
---
Use the -J
option if you want to switch it manually. That's what the default
config will do:

bjorn@nemi:~$ tar zxOvf /usr/share/usb_modeswitch/configPack.tar.gz 12d1:157d

12d1:157d

# Huawei E3331
TargetVendor=0x12d1
TargetProduct=0x14db
HuaweiNewMode=1

---
You mean that that would work? That I have got all the needed packages?
That configPack???

---

2)
---
But as I said: Use the newest usb-modeswitch packages (from jessie).
You need software which is newer than your modem, and this variant is
pretty new.
---

>From where can I get that one?
I'll try that first.


-hv


--------------------------------------------
On Thu, 2/26/15, Bjørn Mork <bj...@mork.no> wrote:

Subject: Re: Huawei E3372
To: "Hannu Virtanen" <hannu_mark...@yahoo.com>
Cc: "Petr Kubánek" <pe...@kubanek.net>, debian...@lists.debian.org
Date: Thursday, February 26, 2015, 4:36 PM

Hannu Virtanen <hannu_mark...@yahoo.com>
writes:

> usb_modeswitch
-H -v 0x12d1 -p 0x157d

Which usb_modeswitch version do you have? 
This device is supported by
default since
usb-modeswitch-data version 20140327-1, and should be
automatically switch when it is discovered.

In any case, the -H option
won't work for this new device.  Use the -J
option if you want to switch it manually. 
That's what the default
config will
do:

bjorn@nemi:~$ tar zxOvf
/usr/share/usb_modeswitch/configPack.tar.gz 12d1:157d

12d1:157d
# Huawei E3331
TargetVendor=0x12d1

TargetProduct=0x14db
HuaweiNewMode=1


But as I
said:  Use the newest usb-modeswitch packages (from
jessie).
You need software which is newer
than your modem, and this variant is
pretty
new.


Bjørn


--
To UNSUBSCRIBE, email to debian-lap...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1424959262.8280...@web141602.mail.bf1.yahoo.com

Bjørn Mork

unread,
Feb 26, 2015, 9:10:03 AM2/26/15
to
Hannu Virtanen <hannu_mark...@yahoo.com> writes:

> usb_modeswitch -H -v 0x12d1 -p 0x157d

Which usb_modeswitch version do you have? This device is supported by
default since usb-modeswitch-data version 20140327-1, and should be
automatically switch when it is discovered.

In any case, the -H option won't work for this new device. Use the -J
option if you want to switch it manually. That's what the default
config will do:

bjorn@nemi:~$ tar zxOvf /usr/share/usb_modeswitch/configPack.tar.gz 12d1:157d
12d1:157d
# Huawei E3331
TargetVendor=0x12d1
TargetProduct=0x14db
HuaweiNewMode=1


But as I said: Use the newest usb-modeswitch packages (from jessie).
You need software which is newer than your modem, and this variant is
pretty new.


Bjørn


--
To UNSUBSCRIBE, email to debian-lap...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/877fv4y...@nemi.mork.no

Hannu Virtanen

unread,
Feb 26, 2015, 9:50:03 AM2/26/15
to

I didn't manage to get from Jessie because there were so many dependencies. I should have installed
so many other packages that my system would have been almost 'Jessie'...

and then giving:

--- ---

# usb_modeswitch -J -v 0x12d1 -p 0x157d
Look for default devices ...
product ID matched
Found devices in default mode (1)
Access device 006 on bus 007
Current configuration number is 1
Use interface number 0
Use endpoints 0x01 (out) and 0x81 (in)

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI_MOBILE
Product: HUAWEI_MOBILE
Serial No.: 0123456789ABCDEF
-------------------------
Using standard Huawei switching message
Looking for active driver ...
OK, driver detached
Set up interface 0
Use endpoint 0x01 for message sending ...
Trying to send message 1 to endpoint 0x01 ...
OK, message successfully sent
Reset response endpoint 0x81

--- ---

And now it is working(!)

Actually I don't know if everything started working only because of with that - J option,
because I tried it already once earlier. I have isntalled one firmware from Huawei too during this
work...

-hv


--------------------------------------------
On Thu, 2/26/15, Hannu Virtanen <hannu_mark...@yahoo.com> wrote:

Subject: Re: Huawei E3372
To: "Bjørn Mork" <bj...@mork.no>
Date: Thursday, February 26, 2015, 5:01 PM
Archive: https://lists.debian.org/1424961612.4172...@web141601.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 26, 2015, 11:10:04 AM2/26/15
to

1)
I stopped the computer, removed the Huawei device from the computer,
started again and installed another usb device there in the same slot.

2)
Started the computer again.
And Huawei stopped working.

3)
And when giving again the command
# usb_modeswitch -J -v 0x12d1 -p 0x157d

It started working.

4)
What should I do to get it permanently working?

-hv



--------------------------------------------
On Thu, 2/26/15, Hannu Virtanen <hannu_mark...@yahoo.com> wrote:

Subject: Re: Huawei E3372: Success (!)
To: "Bjørn Mork" <bj...@mork.no>
Cc: "Petr Kubánek" <pe...@kubanek.net>, debian...@lists.debian.org
Date: Thursday, February 26, 2015, 5:40 PM
--
To UNSUBSCRIBE, email to debian-lap...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1424966754.1952...@web141603.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 27, 2015, 5:00:05 AM2/27/15
to
It seems that

1)
I need to have usb_modeswitch from the later 'jessie' disribution and

2)
I need to give the command (as 'root')
# usb_modeswitch -J -v 0x12d1 -p 0x157d

every time after starting the computer, to get the network working.

Does anybody know, why? And how to do it automatically?

---

I'm now looking for a better solution...
I don't need this thing myself, but working for the installation
of E3372 for a friend.

Maybe it could be possible to take all the needed packets from 'Jessie' and ..?
Now my system is a bit broken, because of some missing packets from 'Jessie'.
There are quite many, which would be needed.

I will work with it a bit more today to see.

-hv

--------------------------------------------
On Thu, 2/26/15, Hannu Virtanen <hannu_mark...@yahoo.com> wrote:

Subject: Re: Huawei E3372: still a problem
To: "Bjørn Mork" <bj...@mork.no>
Cc: "Petr Kubánek" <pe...@kubanek.net>, debian...@lists.debian.org
Date: Thursday, February 26, 2015, 7:05 PM
firmware from Huawei, too during this

work...

-hv
 




--
To UNSUBSCRIBE, email to debian-lap...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1425031141.6175...@web141606.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 27, 2015, 6:10:04 AM2/27/15
to
Trying to install more packages from 'jessie'
to get the missing dependencies in order.

It demanded a newer libc6
(which would again lead into installing a newer libgcc1...)
and that in turn led me to this:

--- ---

root@gone:/home/hv/Lataukset# dpkg -i libc6_2.19-13_i386.deb
dpkg: regarding libc6_2.19-13_i386.deb containing libc6:i386:
libc6:i386 breaks libtirpc1 (<< 0.2.3)
libtirpc1:i386 (version 0.2.2-5) is present and installed.

dpkg: error processing libc6_2.19-13_i386.deb (--install):
installing libc6:i386 would break libtirpc1:i386, and
deconfiguration is not permitted (--auto-deconfigure might help)
Errors were encountered while processing:
libc6_2.19-13_i386.deb

--- ---

And I became a bit hesitant.

-----------------------------------------------------------------------
Would '--auto-deconfigure' break the whole system?
------------------------------------------------------------------------

Maybe I should give up..?

-hv


--------------------------------------------
On Fri, 2/27/15, Hannu Virtanen <hannu_mark...@yahoo.com> wrote:

Subject: Re: Huawei E3372: still a problem
To: "Bjørn Mork" <bj...@mork.no>
Cc: "Petr Kubánek" <pe...@kubanek.net>, debian...@lists.debian.org
Date: Friday, February 27, 2015, 12:59 PM
Archive: https://lists.debian.org/1425035336.9776...@web141603.mail.bf1.yahoo.com

Hannu Virtanen

unread,
Feb 27, 2015, 9:30:03 AM2/27/15
to
Hello,

1)
I think that you are right. It seems that a piecemeal installation
from the later debian version
will get too difficult.

2)
I really don't even remember, if that other machine, where that
Huawei will finally go, has got more than one partition;
it was installed by me, but...

And the guy using it, is really quite inexperienced, it would be too much work
for him, to do updating of the testing version all the time...

I might anyway trying with still one more computer
and put there that later distribution,..

3)
I will see, what I will do.

4)
Maybe there is way to get the info from the 'jessie' package for later
Huawei to be written to to the stable version's package...

... so that the package would start working with E3372 ,
but not completely needed to be replaced from the later version???

-hv

--------------------------------------------
On Fri, 2/27/15, Eric S Fraga <e.f...@ucl.ac.uk> wrote:

Subject: Re: Huawei E3372: still a problem
To: "Hannu Virtanen" <hannu_mark...@yahoo.com>
Cc: debian...@lists.debian.org
Date: Friday, February 27, 2015, 2:57 PM

On Friday, 27 Feb 2015 at
03:08, Hannu Virtanen wrote:
> Trying to install more
packages from 'jessie'
> to get
the missing dependencies in order.

From my own experience, trying
to upgrade from one Debian distribution
to a
later one piecemeal doesn't work.  I would suggest
moving
completely to Jessie: update the
sources list and do an 'apt-get
dist-upgrade'...

Or, if you have /home separate, install Jessie
over whatever you have
installed
currently.  This often works best and is one of the main
reasons for having separate disk partitions for
/ and /home.

--
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 24.4.1 + Ma Gnus v0.12 +
evil-git-bdeb602
: BBDB version 3.1.2
(2014-04-27 15:05:20 -0500)



--
To UNSUBSCRIBE, email to debian-lap...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/1425046867.4414...@web141604.mail.bf1.yahoo.com

Eric S Fraga

unread,
Feb 27, 2015, 9:40:03 AM2/27/15
to
On Friday, 27 Feb 2015 at 03:08, Hannu Virtanen wrote:
> Trying to install more packages from 'jessie'
> to get the missing dependencies in order.

>From my own experience, trying to upgrade from one Debian distribution
to a later one piecemeal doesn't work. I would suggest moving
completely to Jessie: update the sources list and do an 'apt-get
dist-upgrade'...

Or, if you have /home separate, install Jessie over whatever you have
installed currently. This often works best and is one of the main
reasons for having separate disk partitions for / and /home.

--
: Eric S Fraga, GnuPG: 0xFFFCF67D
: in Emacs 24.4.1 + Ma Gnus v0.12 + evil-git-bdeb602
: BBDB version 3.1.2 (2014-04-27 15:05:20 -0500)


--
To UNSUBSCRIBE, email to debian-lap...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/87mw3z3...@pinto.chemeng.ucl.ac.uk

Hannu Virtanen

unread,
Mar 2, 2015, 6:10:04 AM3/2/15
to
Installed 'Jessie' using net-install on that other machine. (old HP latop with amd64 cpu).

Can't make Huawei E3372 working.

Somehow it seems that device and it is even maybe a bit working but incredible slowly, impossible to use it for anything...

Something is wrong now with the connection of the device:

---

root@gkone:/home/xxx# usb_modeswitch -J -v 0x12d1 -p 0x157d

Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 005 on bus 001
Current configuration number is 2
Use interface number 0
Error: message endpoint not given or found. Abort

---

What to do???

-hv

Hannu Virtanen

unread,
Mar 2, 2015, 6:20:02 AM3/2/15
to
It seems that there was a mistake with my command, but still there is a problem:

---
root@gkone:/home/xxx# usb_modeswitch - J -v 0x12d1 -p 0x157d

Look for default devices ...
   product ID matched
 Found devices in default mode (1)
Access device 005 on bus 001
Current configuration number is 2
Use interface number 0

USB description data (for identification)
-------------------------
Manufacturer: HUAWEI_MOBILE
     Product: HUAWEI_MOBILE
  Serial No.: 0123456789ABCDEF
-------------------------
Warning: no switching method given. See documentation
-> Run lsusb to note any changes. Bye!
---

What to do with that 'no switching method given' ?

-hv
0 new messages