...
Server: The controller server watchdog will detect the absence of client watchdog packets within a time period that is the product of the most recently specified (Timer * Ticker) and close the connections specified in the watchdog packet.
Watchdog Packet:
Function | Size | Description |
ID word | 4 bytes | A value of 0x01 identifies this packet as a watchdog request |
Watchdog Timer | 4 bytes | Time interval in milliseconds for watchdog. Zero disables the watchdog |
Watchdog Ticker | 4 bytes | Number of retries per time interval before watchdog times out. |
IP address | 4 bytes | The IP address of the client connections to be guarded |
Port | 4 bytes | The port number of the client Command connection to be guarded |
Fast status port | 4 bytes | The port number of the client fast status connection to be guarded |
Example:
The IP address of the PC is 192.168.10.200 and uses Port 1234. Timer value is set to 2secs, ticker/retry is set to 4. Typically the port number of the PC is assigned dynamically when the connection is made.
Packet: 00 00 00 01 00 00 07 D0 00 00 00 04 C0 A8 0A C8 00 00 04 D2 00 00 00 00
Desc | ID word | Watchdog Timer | Watchdog Ticker | IP address | Port | Fast status port |
Value | 1 | 2000 | 4 | 192.168.10.200 | 1234 | 0 |
Byte Value | 00 00 00 01 | 00 00 07 D0 | 00 00 00 04 | C0 A8 0A C8 | 00 00 04 D2 | 00 00 00 00 |
Note: Commands and replies on Port 5004 are high-ordered byte first.