Making GSM USB modem work

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Making GSM USB modem work

hamza@aeon.pk
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 | Threaded
Open this post in threaded view
|

RE: Making GSM USB modem work

Rene Kluwen

I think the way to go is to get a USB modem that is known to work with usb_modeswitch.

They are not so expensive. So it’s worth the price.

 

From: users [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: maandag 22 juni 2015 22:01
To: kannel users
Subject: Making GSM USB modem work

 

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 | Threaded
Open this post in threaded view
|

Re: Making GSM USB modem work

Alvaro Cornejo
In reply to this post by hamza@aeon.pk
Hi

Have you checked /dev/? several of those usb modems creates several entries on /dev/ You might want to test each to find which is the modem.

You can do an ls -t /dev/ before and after inserting the USB in order to see new entries.

Regards

Alvaro

|-----------------------------------------------------------------------------------------------------------------|
Envíe y Reciba Datos y mensajes de Texto (SMS) hacia y desde cualquier celular y Nextel
en el Perú, México y en mas de 180 paises. Use aplicaciones 2 vias via SMS y GPRS online
              Visitenos en www.perusms.com

On Mon, Jun 22, 2015 at 3:17 PM, Rene Kluwen <[hidden email]> wrote:

I think the way to go is to get a USB modem that is known to work with usb_modeswitch.

They are not so expensive. So it’s worth the price.

 

From: users [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: maandag 22 juni 2015 22:01
To: kannel users
Subject: Making GSM USB modem work

 

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 | Threaded
Open this post in threaded view
|

Re: Making GSM USB modem work

Husnain Taseer
In reply to this post by hamza@aeon.pk
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, [hidden email] 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 | Threaded
Open this post in threaded view
|

Re: Making GSM USB modem work

hamza@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 <[hidden email]> 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, [hidden email] 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 | Threaded
Open this post in threaded view
|

Re: Making GSM USB modem work

Florian Schlums
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 [hidden email]:

> 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 <[hidden email]> 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, [hidden email] 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 | Threaded
Open this post in threaded view
|

Re: Making GSM USB modem work

Frederick Ofosu-Darko
Hello Hamza,

I had a similar issue with my Huawei modem last Friday. OpenSUSE could not find the modem because only storage driver 'usb_storage' was loaded. I solved the issue by upgrading to the latest version.

I suggest you upgrade the current version of usb_modeswitch to the latest version below:


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.2.5 (C) Josua Dietze 2015
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !


and download usb_modeswitch-data package as well.

Could you please state which Linux distro you are using now?

Visit this link if you use a RPM system e.g. CentOS, Fedora or OpenSUSE.

R,



On Mon, Aug 10, 2015 at 1:05 PM, Florian Schlums <[hidden email]> wrote:
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 [hidden email]:
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 <[hidden email]> 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, [hidden email] 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








--
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176



Reply | Threaded
Open this post in threaded view
|

Re: Making GSM USB modem work

Frederick Ofosu-Darko
I mean OpenSUSE 13.2

On Mon, Aug 10, 2015 at 1:21 PM, Frederick Ofosu-Darko <[hidden email]> wrote:
Hello Hamza,

I had a similar issue with my Huawei modem last Friday. OpenSUSE could not find the modem because only storage driver 'usb_storage' was loaded. I solved the issue by upgrading to the latest version.

I suggest you upgrade the current version of usb_modeswitch to the latest version below:


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.2.5 (C) Josua Dietze 2015
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !


and download usb_modeswitch-data package as well.

Could you please state which Linux distro you are using now?

Visit this link if you use a RPM system e.g. CentOS, Fedora or OpenSUSE.

R,



On Mon, Aug 10, 2015 at 1:05 PM, Florian Schlums <[hidden email]> wrote:
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 [hidden email]:
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 <[hidden email]> 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, [hidden email] 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








--
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176






--
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176



Reply | Threaded
Open this post in threaded view
|

Re: Making GSM USB modem work

hamza@aeon.pk
CENTOS 6.5

On Mon, Aug 10, 2015 at 6:23 PM, Frederick Ofosu-Darko <[hidden email]> wrote:
I mean OpenSUSE 13.2

On Mon, Aug 10, 2015 at 1:21 PM, Frederick Ofosu-Darko <[hidden email]> wrote:
Hello Hamza,

I had a similar issue with my Huawei modem last Friday. OpenSUSE could not find the modem because only storage driver 'usb_storage' was loaded. I solved the issue by upgrading to the latest version.

I suggest you upgrade the current version of usb_modeswitch to the latest version below:


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.2.5 (C) Josua Dietze 2015
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !


and download usb_modeswitch-data package as well.

Could you please state which Linux distro you are using now?

Visit this link if you use a RPM system e.g. CentOS, Fedora or OpenSUSE.

R,



On Mon, Aug 10, 2015 at 1:05 PM, Florian Schlums <[hidden email]> wrote:
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 [hidden email]:
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 <[hidden email]> 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, [hidden email] 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








--
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176






--
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176




Reply | Threaded
Open this post in threaded view
|

Re: Making GSM USB modem work

Frederick Ofosu-Darko
Does it work now?

On Wed, Aug 26, 2015 at 2:13 PM, [hidden email] <[hidden email]> wrote:
CENTOS 6.5

On Mon, Aug 10, 2015 at 6:23 PM, Frederick Ofosu-Darko <[hidden email]> wrote:
I mean OpenSUSE 13.2

On Mon, Aug 10, 2015 at 1:21 PM, Frederick Ofosu-Darko <[hidden email]> wrote:
Hello Hamza,

I had a similar issue with my Huawei modem last Friday. OpenSUSE could not find the modem because only storage driver 'usb_storage' was loaded. I solved the issue by upgrading to the latest version.

I suggest you upgrade the current version of usb_modeswitch to the latest version below:


 * usb_modeswitch: handle USB devices with multiple modes
 * Version 2.2.5 (C) Josua Dietze 2015
 * Based on libusb1/libusbx

 ! PLEASE REPORT NEW CONFIGURATIONS !


and download usb_modeswitch-data package as well.

Could you please state which Linux distro you are using now?

Visit this link if you use a RPM system e.g. CentOS, Fedora or OpenSUSE.

R,



On Mon, Aug 10, 2015 at 1:05 PM, Florian Schlums <[hidden email]> wrote:
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 [hidden email]:
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 <[hidden email]> 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, [hidden email] 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








--
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176






--
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176







--
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176



Reply | Threaded
Open this post in threaded view
|

Re: Making GSM USB modem work

Amritesh-2
In reply to this post by hamza@aeon.pk
Hi Hamza,

I am also just trying to configure my huawei e169 modems. Please help me if you were able to fix the issue.
I am trying to use usb-modeswitch+udev rules.
I will be having multiple modems to work with kannel.
Really appreciate if  you can share udev rules and usb_modeswitch configuration steps.

Amritesh 


On Tue, Jun 23, 2015 at 1:31 AM, [hidden email] <[hidden email]> 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