Page 1 of 1

Automatic switch for Huawei E3131 not working

Posted: Thu Oct 08, 2015 3:20 pm
by mrzo
Hi,
trying to setup sms notifications for monitoring server, and cant get it work automaticaly.
- GSM modem is Huawei E3131 with idVendor=12d1, idProduct=14fe
- server Debian 8 Jessie with usb_modeswitch v 2.2.0 (latest in debian repo)
- works with usb_modeswitch -v 12d1 -p 14fe -J command

What I tried:

Add device to /lib/udev/rules.d/40-usb_modeswitch.rules

Code: Select all

# Huawei E3131 (Orange SK)
ATTRS{idVendor}=="12d1", ATTRS{idProduct}=="14fe", RUN+="usb_modeswitch '%b/%k'"
Creat/modify config file /usr/share/usb_modeswitch/12d1:14fe

Code: Select all

# Huawei E3131 (Orange SK variant)
TargetVendor=0x12d1
TargetProductList="1506"
HuaweiNewMode=1
Not sure what to do next - can I ask for some advice? Thanks.

Re: Automatic switch for Huawei E3131 not working

Posted: Thu Oct 08, 2015 3:49 pm
by LOM
usb_modeswitch 2.2.5 is the latest version and it will solve your problems.
It is from what I can see available from debian as usb_modeswitch 2.2.5+repack0-1.

Re: Automatic switch for Huawei E3131 not working

Posted: Fri Oct 09, 2015 6:49 am
by mrzo
2.2.0 is latest for stable release:

jessie (stable) (comm):
2.2.0+repack0-2+b1: s390x
2.2.0+repack0-2: amd64 arm64 armel armhf i386 mips mipsel powerpc ppc64el
stretch (testing)
2.2.5+repack0-1: amd64 arm64 armel armhf i386 mips mipsel powerpc ppc64el s390x

But I try install it, did not catch that there was newer version for debian, thanks.

Re: Automatic switch for Huawei E3131 not working

Posted: Fri Oct 09, 2015 7:48 am
by Josh
The deb package of usb-modeswitch has very few dependencies to other packages, as far as I know. If version 2.2.0 runs without complaining or crashing, 2.2.5 will as well.

If you run "usb_modeswitch_dispatcher" and it complains about "libjim", then just update that package too. However, I don't think that will happen. 2.2.5 contains a load of bugfixes against 2.2.0, so it's worth the try.

Re: Automatic switch for Huawei E3131 not working

Posted: Fri Oct 09, 2015 8:06 am
by mrzo
Installed usb-modeswitch 2.2.5 from debian testing repo, seems working. Thanks!