Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keepalive response?
#1
Has anyone tried a keepalive protocol between two logic engines? I stuggle to get the Comfort side of my keepalive protocol going.

What I have is a Master Logic engine that sends \"pings\" to a counter every 30s. Comfort then replies to this and clears a flag which I want to use later.

The problem is, I want to keep checking for 2 minutes before I declare the connection broken. What I want to do is to restart a timer every time a ping comes in. As the timer counts down from 2 minutes, and gets to around 1:30, it will get another ping and must set my timer back to 2 minutes. Once the timer reaches 0 it must declare the link down (missed 4 pings). Once pings are being received again, I want to wait 2 minutes before declaring the link up again.

How can I manipulate the timer time, or in other words, retrigger the timer? I can\'t find anything simple in the help file.
Reply

#2
You can simply restart the timer to retrigger it
You can STOP a timer but there is no action to restart it. A stopped timer is disabled until it is started again

I dont see any problems with what you need to do
When the timer counts down to 0, your response can shunt the link
If the timer is started again before it counts to 0, then it will not expire


Reply

#3
Thanks, I was wondering if multiple executions of the same response might have been a problem.
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Powered By MyBB, © 2002-2026 Melroy van den Berg.