Re: Making GSM USB modem work

2015-08-10 Thread Frederick Ofosu-Darko
I mean OpenSUSE 13.2

On Mon, Aug 10, 2015 at 1:21 PM, Frederick Ofosu-Darko <
f.ofosu-da...@rancardsolutions.com> 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  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 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  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="5553424312345678061e00"

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

 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
>


>>>
>>>
>>
>>
>
>
> --
> --
>
> Frederick Ofosu-Darko
>
> Service Delivery Analyst
>
>
>
> Excellence. Integrity. Reliability.
>
> Web: www.rancard.com
>
> Email: f.ofosu-da...@rancard.com
>
> Office: +233.289.529.573, +233.0302.258.189
>
> Mobile: +233.245.246.176
>
>
>
>


-- 
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Web: www.rancard.com

Email: f.ofosu-da...@rancard.com

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176


Re: Making GSM USB modem work

2015-08-10 Thread 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  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 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  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="5553424312345678061e00"
>>>
>>> 3.  Now Finally use the following command to switch the mode of your
>>> device:
>>>  sudo usb_modeswitch -v 0x12d1 -p 0x1f01 -M
>>> "5553424312345678061e00"
>>>
>>> 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

>>>
>>>
>>
>>
>
>


-- 
--

Frederick Ofosu-Darko

Service Delivery Analyst



Excellence. Integrity. Reliability.

Web: www.rancard.com

Email: f.ofosu-da...@rancard.com

Office: +233.289.529.573, +233.0302.258.189

Mobile: +233.245.246.176


Re: Making GSM USB modem work

2015-08-10 Thread 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 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  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="5553424312345678061e00"

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

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










SMS redirect with Kannel

2015-08-10 Thread Mickael Marrache
Hi,

I'm a very beginner in the SMS field.

I'm looking for a way to implement a SIP redirect flow using SMPP. So, when
an SMSC sends a DELIVER_SM request to Kannel, I'm looking for a way to send
a special DELIVER_SM reply providing the SMSC some information, but without
trying to forward the SMS.

Until now, I have been able to do it in a very different way. First, Kannel
receives a DELIVER_SM request from the SMSC and directly replies with a
DELIVER_SM response. Then, the bearerbox routes the SMS to the smsbox (I
only have one). The smsbox asks a service for some information. Finally, a
SUBMIT_SM request is sent to the SMSC which replies with a SUBMIT_SM
response. I think this is problematic since I am dealing here with two SMS,
one that is received (MO) and another that is sent back (MT). I was hoping
to find something similar to the SIP 302 reply where the SMSC would send a
DELIVER_SM request to Kannel which then replies with a special SMPP
response indicating the SMSC to redirect the request based on some
information present in the response.

Is there such model with SMPP? If yes, is it possible to implement it with
Kannel?

If not, can you propose an approach more adapted to the SMS world?

Thanks,
Mickael