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

Automatic switch for Huawei E3131 not working

Post by mrzo » Thu Oct 08, 2015 3:20 pm

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: 1306
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: Automatic switch for Huawei E3131 not working

Post by LOM » Thu Oct 08, 2015 3:49 pm

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: Thu Oct 08, 2015 3:10 pm

Re: Automatic switch for Huawei E3131 not working

Post by mrzo » Fri Oct 09, 2015 6:49 am

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: 6549
Joined: Sat Nov 03, 2007 12:30 am

Re: Automatic switch for Huawei E3131 not working

Post by Josh » Fri Oct 09, 2015 7:48 am

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: Thu Oct 08, 2015 3:10 pm

Re: Automatic switch for Huawei E3131 not working

Post by mrzo » Fri Oct 09, 2015 8:06 am

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

Post Reply