SCOM Serial Communication Protocol  0.5.2
SCOM connectivity checking

The SCOM library API supports automatic connectivity checking. This function allows to check whether the other side of the connection is alive. The idea is to make sure that at least one SCOM packet is exchanged during a predefined period. In case the application does not send any packets for a specified amount of time, an additional PING packet is automatically scheduled to be sent. This packet tests, whether the other side of the connection responds. Such function is very effective in detecting situations such as hardware connection malfunctions, software hangs and unplanned resets.

The SCOM_EnableConnectivityCheck function enables automatic connectivity checking, with a given time specified as the number of ticks of the timing function provided during SCOM initialization (see Initializing SCOM connection).

The SCOM_DisableConnectivityCheck disables this functionality.

If both sides of the connection want to check each other's correct operation, both of them should enable connectivity checking.