From d46840c9cd0e52dd7d133bbd64805fb9b8aa2aac Mon Sep 17 00:00:00 2001 From: Bui Nguyen Quoc Thanh Date: Fri, 21 Feb 2020 16:59:19 +0700 Subject: gateway: Support infinite loop of retry - In order to enable endless retry of reconnection, "Timeout" in dlt_gateway.conf must be set to 0. - In case of "Timeout" is an integer A and A is greater than 0, so after A times of retry, the connection to passive Node will be marked as DISABLED. There won't be any retry afterward. Signed-off-by: Bui Nguyen Quoc Thanh --- src/gateway/dlt_gateway.conf | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/gateway/dlt_gateway.conf') diff --git a/src/gateway/dlt_gateway.conf b/src/gateway/dlt_gateway.conf index c7ef3a8..3f475e6 100644 --- a/src/gateway/dlt_gateway.conf +++ b/src/gateway/dlt_gateway.conf @@ -10,8 +10,13 @@ IPaddress=192.168.2.11 EcuID=ECU2 ; Try connect to passive Node on DLT Daemon startup. Default OnStartup if not specified. ; Connect=OnStartup + ; Stop connecting to passive node, if not successful after 10 retries. +; After of retries, the connection to passive Node is marked as DISABLED. +; It means there is no any retry anymore. +; Set to 0 for endless retry. Timeout=10 + ; Send following control messages after connection is established ; SendControl=0x03,0x04,0x13 ; Send Serial Header with control messages. Value in dlt.conf is used as default if not specified. -- cgit v1.2.1