Use one Service. Add multiple SerialModemGateways (with different ports) to
it. Then start the service.

On Tue, Nov 22, 2011 at 7:37 AM, Karol Pancypir <[email protected]> wrote:

> Hi,
>
> I am completely new in SMSLib, and after few tests I need some help;
>
> I have 3 modems of Siemens MC35i connected over RS232<>USB converter
> to PC. In some loop i start first modem with
> Service.startService(true);
>
> then I stops it with Service.stopService(); I add a next modem and
> start service again. Unfortunately already in second loop i get
> runtime error and in log i see that second modem hangs up on SEND :AT
> +CNMI=?(cr) command while start up.
>
> I try set CONCURRENT_GATEWAY_START = false; but without result.
> Although some constellation (when only 2 modems are connected) I can
> start service. So Im confused now if its hardware/RS232/USB driver or
> something else.
>
> Second thing is the main approach how to use many modems at once; in
> my test application I create for every gateway a separate thread and
> then manage the outgoing messages with some BlockingQueue. It is
> really necessary to create thread for every gateway? If yes, is method
> Service.sendMessage() thread safe?
>
> Regards
> Pancypir
>
> --
> You received this message because you are subscribed to the Google Groups
> "SMSLib Discussion Group" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/smslib?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"SMSLib Discussion Group" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/smslib?hl=en.

Reply via email to