DEBUG_COMMUNICATION is turned on in deviceNodeEthernet2Serial.cpp and
deviceNodeSensor.cpp only. It isn't defined project-wide, which would also
enable the per-byte hex dumps of protocol.cpp and the serial transports.
To turn it off, comment out the #define at the top of the two files.
Gateway I/O thread (tag E2UART):
- "IO: request #n (x B): NO reply in N ms": nothing within the reply
window (E2UART_REPLY_TIMEOUT_MS).
- "IO: request #n: reply x B, first byte N ms, done N ms": replies
slower than 500 ms (E2UART_SLOW_REPLY_MS), or an incomplete packet.
- "IO: late data x B, N ms after request #n": a reply that came after
the window (now given to the parser of that request).
- "IO stats 60 s [host:port]": requests, replies, first-byte avg/max, slow,
without reply, late.
Sensor (tag NODSEN):
- "COMM: reply/NACK WM STG reply N ms": replies slower than 500 ms
(LGS_SLOW_REPLY_MS), NACKs and commands that needed retries, with
the time since the first attempt.
- "COMM: no reply - WM STG attempt k/17 timed out after N ms": each
attempt that timed out.
- "COMM: command failed - ...": details next to "Communication Wait State
TO!".
- "COMM stats 60 s": replies, avg/max reply time, slow, timed-out attempts
(with the wait per attempt), failed commands.
The gateway's per-chunk "Send/Read x bytes" debug lines are replaced by
these per-request lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0139veDo3XyavMuVhdnHcN16