<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
A bus-off condition is potentially more significant than an
occasional RX overflow.<br>
<br>
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.<br>
<br>
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.<br>
<br>
But we shouldn't jump to conclusions here, let's first try to
determine which of the buses actually causes the issue.<br>
<br>
Regarding logs, please consider logging to SD card, to gather as
many as possible.<br>
<br>
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.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 23.01.25 um 18:50 schrieb Chris Box:<br>
</div>
<blockquote type="cite"
cite="mid:010b0194944914d0-a13c87a0-3a45-4373-8a90-d069279aaf56-000000@eu-west-2.amazonses.com">
<div><span style="font-family: verdana, geneva, sans-serif;">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. </span></div>
<div> </div>
<div><span style="font-family: 'courier new', courier, monospace;">2025-01-23
16:37:06.464 GMT E (31051994) esp32can: can1 stuck bus-off
error state (errflags=0x00040c00) detected - resetting bus</span></div>
<p><span style="font-family: verdana, geneva, sans-serif;">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.</span></p>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Am Rahmen 5 * D-58313 Herdecke
Fon 02330 9104094 * Handy 0176 20698926</pre>
</body>
</html>