Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
mrzo
Posts: 3
Joined: 08 Oct 2015, 15:10

Automatic switch for Huawei E3131 not working

Post by mrzo » 08 Oct 2015, 15:20

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.

LOM
Posts: 1373
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: Automatic switch for Huawei E3131 not working

Post by LOM » 08 Oct 2015, 15:49

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.

mrzo
Posts: 3
Joined: 08 Oct 2015, 15:10

Re: Automatic switch for Huawei E3131 not working

Post by mrzo » 09 Oct 2015, 06:49

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.

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: Automatic switch for Huawei E3131 not working

Post by Josh » 09 Oct 2015, 07:48

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.

mrzo
Posts: 3
Joined: 08 Oct 2015, 15:10

Re: Automatic switch for Huawei E3131 not working

Post by mrzo » 09 Oct 2015, 08:06

Installed usb-modeswitch 2.2.5 from debian testing repo, seems working. Thanks!

Post Reply