diff options
author | Kevin O'Connor <kevin@koconnor.net> | 2025-01-14 15:26:29 -0500 |
---|---|---|
committer | Kevin O'Connor <kevin@koconnor.net> | 2025-02-02 18:43:34 -0500 |
commit | 2db2ef82f2c0ba08d7e72fbab355de0846272b3a (patch) | |
tree | 72b11156522886a068ba76fb399656270ad02859 /docs/Status_Reference.md | |
parent | eb0581c2646fde09335615fbed8ed39641b096fc (diff) | |
download | kutter-2db2ef82f2c0ba08d7e72fbab355de0846272b3a.tar.gz kutter-2db2ef82f2c0ba08d7e72fbab355de0846272b3a.tar.xz kutter-2db2ef82f2c0ba08d7e72fbab355de0846272b3a.zip |
canbus_stats: Periodically report canbus interface statistics
Add support for a new get_canbus_status command to canserial.c .
Add new canbus_stats.py module that will periodically query canbus
mcus for connection status information.
Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
Diffstat (limited to 'docs/Status_Reference.md')
-rw-r--r-- | docs/Status_Reference.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/docs/Status_Reference.md b/docs/Status_Reference.md index 66d840d1..ee809902 100644 --- a/docs/Status_Reference.md +++ b/docs/Status_Reference.md @@ -39,6 +39,27 @@ the following strings: "adjust", "fine". - `current_screw`: The index for the current screw being adjusted. - `accepted_screws`: The number of accepted screws. +## canbus_stats + +The following information is available in the `canbus_stats +some_mcu_name` object (this object is automatically available if an +mcu is configured to use canbus): +- `rx_error`: The number of receive errors detected by the + micro-controller canbus hardware. +- `tx_error`: The number of transmit errors detected by the + micro-controller canbus hardware. +- `tx_retries`: The number of transmit attempts that were retried due + to bus contention or errors. +- `bus_state`: The status of the interface (typically "active" for a + bus in normal operation, "warn" for a bus with recent errors, + "passive" for a bus that will no longer transmit canbus error + frames, or "off" for a bus that will no longer transmit or receive + messages). + +Note that only the rp2XXX micro-controllers report a non-zero +`tx_retries` field and the rp2XXX micro-controllers always report +`tx_error` as zero and `bus_state` as "active". + ## configfile The following information is available in the `configfile` object |