* Reusable free code: Simple components - MODBUS.Synchronos.connect not returning
@ 2018-08-28 8:04 Karl Müller
2018-08-28 16:03 ` Dmitry A. Kazakov
0 siblings, 1 reply; 4+ messages in thread
From: Karl Müller @ 2018-08-28 8:04 UTC (permalink / raw)
Hello,
it's my first contribution to this sophisticated newsgroup and I hope
I'm not disturbing too much.
Trying the Modbus test programs of the Simple components from Dmitry
Kazakov I made the experience that the MODBUS.Synchronos client is not
returning after calling the connect procedure. When I set the Timeout
value to 5 seconds the Tracer is writing and after that time the program
exits:
127.0.0.1:1502 < --- Stop polling, nothing to send
127.0.0.1:1502 < +++ Resume polling, blocking timeout expired
127.0.0.1:1502 < --- Stop polling, nothing to send
Worker task exiting
raised
GNAT.SOCKETS.CONNECTION_STATE_MACHINE.MODBUS_CLIENT.SYNCHRONOUS.TIMEOUT_ERROR
: Connection timeout expired
To my suprise the MODBUS test program with multiple connections is
working as expected.
Is there anything I'm not aware off when using the MODBUS_CLIENT.SYNCHRONOS?
Regards
Karl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reusable free code: Simple components - MODBUS.Synchronos.connect not returning
2018-08-28 8:04 Reusable free code: Simple components - MODBUS.Synchronos.connect not returning Karl Müller
@ 2018-08-28 16:03 ` Dmitry A. Kazakov
2018-08-28 18:03 ` Karl Müller
0 siblings, 1 reply; 4+ messages in thread
From: Dmitry A. Kazakov @ 2018-08-28 16:03 UTC (permalink / raw)
On 2018-08-28 10:04, Karl Müller wrote:
> Hello,
>
> it's my first contribution to this sophisticated newsgroup and I hope
> I'm not disturbing too much.
>
> Trying the Modbus test programs of the Simple components from Dmitry
> Kazakov I made the experience that the MODBUS.Synchronos client is not
> returning after calling the connect procedure. When I set the Timeout
> value to 5 seconds the Tracer is writing and after that time the program
> exits:
>
> 127.0.0.1:1502 < --- Stop polling, nothing to send
> 127.0.0.1:1502 < +++ Resume polling, blocking timeout expired
> 127.0.0.1:1502 < --- Stop polling, nothing to send
> Worker task exiting
> raised
> GNAT.SOCKETS.CONNECTION_STATE_MACHINE.MODBUS_CLIENT.SYNCHRONOUS.TIMEOUT_ERROR
> : Connection timeout expired
>
> To my suprise the MODBUS test program with multiple connections is
> working as expected.
>
> Is there anything I'm not aware off when using the
> MODBUS_CLIENT.SYNCHRONOS?
A synchronous client blocks on Connect until the server accepts
connection or else the timeout expires. Or do you mean something else?
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reusable free code: Simple components - MODBUS.Synchronos.connect not returning
2018-08-28 16:03 ` Dmitry A. Kazakov
@ 2018-08-28 18:03 ` Karl Müller
2018-08-28 19:25 ` Dmitry A. Kazakov
0 siblings, 1 reply; 4+ messages in thread
From: Karl Müller @ 2018-08-28 18:03 UTC (permalink / raw)
On 28.08.2018 18:03, Dmitry A. Kazakov wrote:
>
> A synchronous client blocks on Connect until the server accepts
> connection or else the timeout expires. Or do you mean something else?
>
Hello Dmitry,
thanks for the quick answer and for the enormous amount of work in your
software giving away for free.
It looks like I have a miss understanding between client and server
particularly on the MODBUS protocol. I will continue testing and using
the MODBUS-Client with the new understanding.
Best regards
Karl
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Reusable free code: Simple components - MODBUS.Synchronos.connect not returning
2018-08-28 18:03 ` Karl Müller
@ 2018-08-28 19:25 ` Dmitry A. Kazakov
0 siblings, 0 replies; 4+ messages in thread
From: Dmitry A. Kazakov @ 2018-08-28 19:25 UTC (permalink / raw)
On 2018-08-28 20:03, Karl Müller wrote:
> On 28.08.2018 18:03, Dmitry A. Kazakov wrote:
>>
>> A synchronous client blocks on Connect until the server accepts
>> connection or else the timeout expires. Or do you mean something else?
>>
>
> Hello Dmitry,
> thanks for the quick answer and for the enormous amount of work in your
> software giving away for free.
>
> It looks like I have a miss understanding between client and server
> particularly on the MODBUS protocol. I will continue testing and using
> the MODBUS-Client with the new understanding.
Let me know if you discover problems or have questions.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2018-08-28 19:25 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-28 8:04 Reusable free code: Simple components - MODBUS.Synchronos.connect not returning Karl Müller
2018-08-28 16:03 ` Dmitry A. Kazakov
2018-08-28 18:03 ` Karl Müller
2018-08-28 19:25 ` Dmitry A. Kazakov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox