Diagnosis
Aligned with the SDK DiagSnapshot. The path is /api/diag. All response fields are read-only.
GET /api/diag
GET /api/diag HTTP/1.1
Host: 127.0.0.1:18840
When the station is not up, ok is false; read message, and do not treat it as an exception.
| Field | Note |
|---|---|
| ok | Check if it is readable |
| linkUp | Network Card Link |
| connected | Is the cycle watchdog functioning properly? |
| rxFrames / txFrames | Master Frame for Transmission and Reception |
| rxRtFrames / txRtFrames | RT Cycle Frame |
| droppedFrames / invalidFrames | Discarded / Illegal |
| watchdogTrips | Number of watchdog timeouts |
| stackCycles | Cycle Count |
| stackMissedTicks | Off-Beat |
| stackMaxJitterUs | Maximum jitter (µs) |
| stackAlarmRxCount | Controller Alarms Received |
| errorCode | 0 = None; nonzero = native stack / platform error code (carried when diagnostics are unavailable) |
Compare it with the diagnostic page in the configuration tool.