08-03-2008, 05:07 PM
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.
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.