Yes, I use tool like Tera Term to connecting via com ports. It works

On 22 Lis, 11:35, Nizam Mohideen <[email protected]> wrote:
> Confirm if you can connect to the specified ports using Hyperterminal.
>
>
>
>
>
>
>
> On Tue, Nov 22, 2011 at 3:57 PM, Karol Pancypir <[email protected]> wrote:
> > Hi,
>
> > i droped idea of dinamically connecting/disconnecting of modems cus it
> > looks like it dosnt work.
>
> > No I try add 3 gateway to service and then starts it. This time it
> > works only with CONCURRENT_GATEWAY_START = false;
> > With CONCURRENT_GATEWAY_START = true; I find in logs following:
>
> > 11:22:01,322 | INFO  | Thread-14 | smslib | GTW: 1: Starting gateway,
> > using Siemens MC35i AT Handler.
> > 11:22:01,322 | INFO  | Thread-14 | smslib | GTW: 1: Opening: COM10
> > @115200
> > 11:22:01,329 | DEBUG | DelayQueueManager | smslib | Running...
> > 11:22:01,329 | DEBUG | DelayQueueManager | smslib | DelayQueueManager
> > running...
> > 11:22:01,333 | INFO  | Thread-13 | smslib | GTW: 0: Starting gateway,
> > using Siemens MC35i AT Handler.
> > 11:22:01,333 | INFO  | Thread-13 | smslib | GTW: 0: Opening: COM9
> > @115200
> > 11:22:01,334 | INFO  | Thread-15 | smslib | GTW: 2: Starting gateway,
> > using Siemens MC35i AT Handler.
> > 11:22:01,334 | INFO  | Thread-15 | smslib | GTW: 2: Opening: COM11
> > @115200
> > 11:22:02,705 | INFO  | Thread-15 | smslib | GTW: 2: Closing: COM11
> > @115200
>
> > ...
>
> > 11:15:26,921 | INFO  | Thread-8 | smslib | GTW: 0: Closing: COM9
> > @115200
> > 11:15:26,921 | INFO  | Thread-8 | smslib | GTW: 0: Gateway stopped.
> > 11:15:26,921 | INFO  | Thread-8 | smslib | GTW: 1: Stopping gateway...
> > 11:15:26,934 | INFO  | Thread-15 | smslib | GTW: 0: Closing: COM9
> > @115200
> > 11:15:26,943 | DEBUG | NotifyQueueManager | smslib | Running...
> > 11:15:26,943 | DEBUG | NotifyQueueManager | smslib |
> > NotifyQueueManager running...
> > 11:15:26,943 | DEBUG | NotifyQueueManager | smslib |
> > NotifyQueueManager end...
> > 11:15:26,987 | INFO  | Thread-8 | smslib | GTW: 1: Closing: COM10
> > @115200
> > 11:15:26,987 | INFO  | Thread-8 | smslib | GTW: 1: Gateway stopped.
> > 11:15:26,987 | INFO  | Thread-16 | smslib | GTW: 1: Closing: COM10
> > @115200
> > 11:15:26,987 | INFO  | Thread-8 | smslib | GTW: 2: Stopping gateway...
> > 11:15:26,987 | INFO  | Thread-8 | smslib | GTW: 2: Closing: COM11
> > @115200
> > 11:15:26,987 | INFO  | Thread-8 | smslib | GTW: 2: Gateway stopped.
>
> > it looks like watchdog close service automatically.
>
> > Can somebody explain it to me?
>
> > G.
>
> > Pancypir
> > On 22 Lis, 08:08, Nizam Mohideen <[email protected]> wrote:
> > > 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.

-- 
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