Hello Hamza
Have a look at the project page: http://www.draisberghof.de/usb_modeswitch/

*/lib/udev/rules.d/40-usb_modeswitch.rules*- the udev rules starting the wrapper if a known device ID (vendor/product) is recognized. To add a trigger for a new modem for which you have a working config file, append a line with its USB ID as seen in the existing entries. If the switched device provides standard serial ports, a second rule calls the wrapper again and adds a symbolic link to the *correct*connection port (see below)

Regards
Florian

Am 25.06.2015 um 16:10 schrieb ha...@aeon.pk:
Husnain,

Thank you. I know this config, but the next-step problem is that this
config does not kick in automatically when system reboots or modem is
plugged-out and in. I have even worked on this as well. But still,
life is much much simpler if a smoother way of working with these
modems could be found.

I came across a post in which there was a method to permanently change
the default mode of these modems. Will try it and tell you if it
works.

Regards,
Hamza

On 6/24/15, Husnain Taseer <husnain.tas...@gmail.com> wrote:
Dear Hamza,
I was working with Huawei GSM Modems and was facing the same issue. You
can use following steps to switch the mode of your modem.

1. Use `lsusb` to list all the connected devices with your system. You
will get the output like this :
         Bus 003 Device 004: ID 12d1:1f01 Huawei Technologies Co., Ltd.
         here *12d1 *is the Vendor Id and *1f01 *is the product id of
this modem. For your case these values could be different.

2.   If you have not installed `usb-modeswitch-data` then please install
it by using `apt-get install usb-modeswitch-data`. After that find the
message content of your device by using:
          tar -xzvf /usr/share/usb_modeswitch/configPack.tar.gz 12d1\:1f01
          cat /usr/share/usb_modeswitch/12d1\:1f01 | grep "MessageContent="
          Output will be like this:
MessageContent="5553424312345678000000000000061e000000000000000000000000000000"

3.  Now Finally use the following command to switch the mode of your
device:
         sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -M
"5553424312345678000000000000061e000000000000000000000000000000"

Hope it will help.

--
Regards,
*Husnain Taseer
* Sr. VAS Engineer


On 6/23/2015 1:01 AM, ha...@aeon.pk wrote:
Hi all,

This is slightly off track, but more relevant here than in any Linux
forum.

A lot of new GSM USB modems coming these days are identified by Linux
as in storage mode (CD Rom or memory storage, since they contain their
own drivers). Anyone has any idea how to switch them to GSM mode, to
enable them to work as a modem with Kannel? I spent a LOT of time with
usb_modeswitch package, but could not figure out a working way, since
it works pretty randomly with different modems.

Any/every piece of help/info would be highly appreciated.

Kind regards,
Hamza





Reply via email to