![]() |
|
Keepalive response? - Printable Version +- Comfort Automation/ Security System Forums (https://www.comfortforums.com) +-- Forum: Products (https://www.comfortforums.com/forum-3.html) +--- Forum: Questions on Using Comfort (https://www.comfortforums.com/forum-159.html) +--- Thread: Keepalive response? (/thread-1135.html) |
- Ingo - 08-03-2008 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. - slychiu - 08-04-2008 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 - Ingo - 08-04-2008 Thanks, I was wondering if multiple executions of the same response might have been a problem. |