Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
nixator
Posts: 1
Joined: 30 Oct 2014, 01:16

Huawei K-5150

Post by nixator » 30 Oct 2014, 01:30

Hello, I spent some time with tunning setup K-5150. In current downloaded version switched mode is mbim that isnt good for me, i need cdc_ether device.

first I change file /lib/udev/rules.d/40-usb_modeswitch.rules :

I addes this:

Code: Select all

# vodafone K5150
ATTR{idVendor}=="12d1", ATTR{idProduct}=="1f16", RUN+="/usr/sbin/usb_modeswitch -v 12d1 -p 1f16 -c /usr/share/usb_modeswitch/12d1:1f16"
and comment this:

Code: Select all

# Generic entry for all Huawei devices
#ATTRS{idVendor}=="12d1", ATTR{bInterfaceNumber}=="00", ATTR{bInterfaceClass}=="08", RUN+="usb_modeswitch '%b/%k'"
second I change file /usr/share/usb_modeswitch/12d1\:1f16

Code: Select all

# Vodafone K5150
TargetVendor=0x12d1
TargetProductList="14f8,1575"
#HuaweiNewMode=1
MessageContent="55534243123456780002000080000a11062000000000000100000000000000"
I could be little dirty but it work for me. If you know how to do it better on raspberry pi, post it here please...

Good luck!

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

Re: Huawei K-5150

Post by LOM » 30 Oct 2014, 06:21

If you don't want cdc_mbim then don't include that module when building your kernel, without this module usb_modeswitch will send the switch message for the dongle to bring it into the alternative mode (cdc_ether for K5150).
Another alternative is to add cdc_mbim to the blacklisting in /etc/modprobe.d/modprobe.conf

Post Reply