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
Re: CHanging configuration file for modem setup
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.
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.