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 <[email protected]> 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, [email protected] 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