A bus-off condition is potentially more significant than an occasional RX overflow. Bus-off is encountered by the transceiver if it sees too many frame errors on the bus. It normally recovers by itself from that condition, with the exception of transmitting on a switched off bus. That's for example the case on the VW e-Up, where can1 has no process data and only connects to the diag gateway, when the gateway switches off, and the OVMS probes the car status using a poll, it frequently has to reset the bus from this state. The transceiver would see many false frame errors (potentially causing the vehicle issue observed) if the timing is off for the Leaf, so seeing actual bus errors logged just before the event would be a strong indication. But we shouldn't jump to conclusions here, let's first try to determine which of the buses actually causes the issue. Regarding logs, please consider logging to SD card, to gather as many as possible. Also, setting the log level to "warn" will exclude all lower priority log entries. Rather set it to "debug" or even "verbose" for "can", "esp32can" & "mcp2515". If you only set that high level for the components of interest, you probably can keep the general level at "warn" or "info". Btw, level "debug" for "events" will log all non-ticker events, useful to later identify the vehicle state transitions if you don't have any logs from the vehicle / poller. Regards, Michael Am 23.01.25 um 18:50 schrieb Chris Box:
On the transmit side nearly all our activity is on can1. There have been a huge proportion of failures, but this is the only can1 error I can find in the log. 2025-01-23 16:37:06.464 GMT E (31051994) esp32can: can1 stuck bus-off error state (errflags=0x00040c00) detected - resetting bus
It's quite possible there are others from earlier in the day, when I had debug level on. I've now set the level to warn so it should be easy to spot everything significant. I'll update when I have something to report.
-- Michael Balzer * Am Rahmen 5 * D-58313 Herdecke Fon 02330 9104094 * Handy 0176 20698926