Automatic Activation, Hotplug and UDEV, Configuration
Post Reply
piashaw
Posts: 3
Joined: 31 May 2014, 20:27

CHanging configuration file for modem setup

Post by piashaw » 31 May 2014, 23:01

Hi I am using modeswitch 1.2.3 in a Pi environment with a Huawei E303 modem.

Had many issues but ultimately by using the following (not certain exactly what all the flags do), it works.
sudo usb_modeswitch -b2 -v 0x12d1 -p 0x1f01 -n -I -W -M 55534243123456780000000000000011060000000000000000000000000000

How do I change the config file (or override it), to use the above as opposed to it's default for the device id on start up automatically.

THe default for this id puts it into ethernet mode which I don't want. I need ppp mode to enable port forwarding.

Thanks

Peter

Just to add that without using options such as -I and -W it didn't work

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

Re: CHanging configuration file for modem setup

Post by LOM » 01 Jun 2014, 15:57

Start with reading http://www.draisberghof.de/usb_modeswitch/ , it will tell you what the different usb_modeswitch components are and where they are located.

You only need to modify the device config file 12d1:1f01, ie change the switch message and add the 2 lines:
InquireDevice=0 (which equals the -I cmd line switch)
and
NeedResponse=1 (which equals the -n cmd line switch)

-W has no effect on the device switching, it is verbose mode.
-b2 is most likely wrong and should anyway not be needed.

piashaw
Posts: 3
Joined: 31 May 2014, 20:27

Re: CHanging configuration file for modem setup

Post by piashaw » 01 Jun 2014, 19:26

Thanks

Post Reply