DCC-EX / CommandStation-EX

EX-CommandStation firmware from DCC-EX. Includes support for WiFi and a standalone WiThrottle server. A complete re-write of the original DCC++.
https://dcc-ex.github.io/
GNU General Public License v3.0
153 stars 103 forks source link

Watchdog on DCC-EX protocol connection #344

Open habazut opened 11 months ago

habazut commented 11 months ago

Need to implement a set watchdog command on the DCC-EX protocol so that throttles can request that this connection is watched for update within a certain hearbeat interval and if the hearbeat does not happen some action (like stop of engine(s)) is taken. The watchdog command should be able to set some timer. To be investigated how or what actions can be specified.

Feeding the dog withing time (with margin) will be then the responsibility of the throttle. (DHCP for example renews 50% before timeout) It is the throttle that knows if the connection is important enough to be watched.