A 2D sensor waited 10 x 100 ms (LGS_DEFAULT_TO_COUNTER) for each reply,
which is a local serial-line value. Through an Ethernet to serial gateway
on a mobile link the round trip is longer at times.
- basicTransport::isNetworkLink() (false by default). deviceETH2UART
returns true.
- deviceNodeSensor::m_nTOCounterBase is the wait per attempt.
device2DSensor sets it when it binds to its port:
LGS_NETWORK_TO_COUNTER (30 = 3 s) for a network link,
LGS_DEFAULT_TO_COUNTER (1 s) for a local serial port, which is unchanged.
All 2D waits use it, including the longer x4 / x16 waits of the
detection profile and mask commands. waitStateFunction() re-arms the
retry with it.
- E2UART_REPLY_TIMEOUT_MS 800 -> 2500 ms, below the sensor's 3 s, so the
gateway's I/O thread waits for the reply before sending the next request.
Tested with the fake device: replies after 300 ms (split), 1200 ms and
2000 ms (split) all reach their own request within the 3 s wait (ASan clean).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16