<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Chris,<br>
<br>
did you take the can status outputs _before_ unplugging the OVMS
when the car wouldn't enter drive ready?<br>
<br>
The poller timing statistics also should best be captured in case of
the event, but any may help.<br>
<br>
Also, did you use the new poller firmware before without issues,
i.e. can you confirm the issue only turns up with the new bus timing
test? That would confirm it's a timing issue, and it would mean the
new timing makes it worse.<br>
<br>
<br>
<blockquote type="cite">How would I look for changes in can error
frequency in the log?</blockquote>
<br>
Basically by counting the error log entries for each bus to see if
they generally increase or decrease, in more detail by also taking
the error types logged into account. Some errors log entries are
normal, may even occur frequently.<br>
<br>
<br>
Generally, it seems we currently have no idea which of the two CAN
buses is actually causing the issue for the Leaf (or the Ford).<br>
<br>
So I suggest first isolating this by selectively putting one bus
into listen mode and testing if the issue then still turns up.<br>
<br>
Use the "can <bus> start" command to switch the mode, e.g.:
can can1 start listen 500000<br>
<br>
The Leaf derives the car & polling state from process data
frames, so should switch state also in listen mode.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 22.01.25 um 23:25 schrieb Chris Box:<br>
</div>
<blockquote type="cite"
cite="mid:010b0194901e7673-ceef8547-7997-4257-8186-6d2af8f56b05-000000@eu-west-2.amazonses.com">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<p>Hi.</p>
<p>I have now experienced some issues with this updated firmware.
I drove the car home just fine, and parked. When I locked the
car it issued a continuous warning tone suggesting I shouldn't
leave the car in that state. All doors were definitely shut. I
turned the car back on, and the dashboard said "When parked
apply parking brake". But the handbrake was firmly on. On
dismissing that, it reported "I-Key system fault". It wouldn't
enter drive ready state.</p>
<p>I turned the car off, unplugged OVMS and turned on again.
Errors still present. It told me to press the brake pedal in
order to turn the car on. I was pressing it, but it didn't seem
to recognise this.</p>
<p>After a while I came back and disconnected the 12V. On starting
up again the I-Key message was still on the dash. I dismissed
it, and then it seemed happy. OVMS is now plugged back in.</p>
<p>I'm guessing these errors are indicative of CAN bus problems,
e.g. preventing communication of brake state?</p>
<p>Some command outputs from very recently (i.e. after the events
described above):</p>
<p>OVMS# can can1 status<br>
CAN: can1<br>
Mode: Active<br>
Speed: 500000<br>
DBC: none</p>
<p>Interrupts: 7299933<br>
Rx pkt: 7299698<br>
Rx ovrflw: 3<br>
Tx pkt: 1371<br>
Tx delays: 50<br>
Tx ovrflw: 0<br>
Tx fails: 108</p>
<p>Err flags: 0x008040d9<br>
Rx err: 0<br>
Tx err: 128<br>
Rx invalid: 0<br>
Wdg Resets: 0<br>
Wdg Timer: 8 sec(s)<br>
Err Resets: 0</p>
<p><br>
OVMS# can can2 status<br>
CAN: can2<br>
Mode: Active<br>
Speed: 500000<br>
DBC: none</p>
<p>Interrupts: 210984<br>
Rx pkt: 211985<br>
Rx ovrflw: 0<br>
Tx pkt: 8<br>
Tx delays: 0<br>
Tx ovrflw: 0<br>
Tx fails: 0</p>
<p>Err flags: 0x01000001<br>
Rx err: 0<br>
Tx err: 0<br>
Rx invalid: 0<br>
Wdg Resets: 0<br>
Wdg Timer: 8 sec(s)<br>
Err Resets: 0</p>
<p><br>
How would I look for changes in can error frequency in the log?<br>
In these numbers perhaps?</p>
<p>2025-01-22 17:28:17.683 GMT E (16789963) can: can2:
intr=9475533 rxpkt=9494723 txpkt=52 errflags=0x22401c02 rxerr=0
txerr=0 rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0
errreset=0<br>
2025-01-22 17:28:17.693 GMT E (16789973) can: can2: intr=9475533
rxpkt=9494724 txpkt=52 errflags=0x23401c01 rxerr=0 txerr=0
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0
errreset=0</p>
<p>2025-01-22 21:40:18.843 GMT E (10075543) can: can2: intr=210249
rxpkt=211242 txpkt=8 errflags=0x22401c02 rxerr=0 txerr=0
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0
errreset=0<br>
2025-01-22 21:40:18.843 GMT E (10075543) can: can2: intr=210249
rxpkt=211243 txpkt=8 errflags=0x23401c01 rxerr=0 txerr=0
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0
errreset=0</p>
<p>I can't see any mentions of can1 in the log, other than
ovms-server-v3 pollstats. The log is set to debug level.</p>
<p>I have poller times and can share those if needed.</p>
<p>Chris</p>
<p><br>
</p>
<p id="reply-intro">On 2025-01-22 16:24, Michael Balzer via
OvmsDev wrote:</p>
<blockquote type="cite"
style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">Chris,<br>
<br>
typically "can can1 status" & "can can2 status" will give
the statistics of the buses, and "poller times on" will enable
poller timing statistics to be then shown by "poller times
status".<br>
<br>
The Leaf uses can2 to query these values:<br>
<span style="font-family: monospace;">// VIN [19]<br>
// QC [2]<br>
// L0/L1/L2 [2]</span><br>
<br>
...but only when the car is on, but not in drive mode. So you
should check if you get these values.<br>
<br>
It also uses can2 for TCU commands, if the model year is >=
2016.<br>
<br>
So you should try commands and see if they work correctly.<br>
<br>
Please also check the log for changes in can error occurence
& frequency.<br>
<br>
Regards,<br>
Michael<br>
<br>
<blockquote type="cite"
style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<p id="v1reply-intro">On 2025-01-21 00:41, Derek Caudwell
via OvmsDev wrote:</p>
<blockquote
style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0;">
<div id="v1replybody1">
<div dir="ltr">Hi Chris
<div> </div>
<div>Here are the required changes, as I
understand them, to be compiled into a new firmware
from this thread: <a
class="v1moz-txt-link-freetext moz-txt-link-freetext"
href="https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/1102/files"
target="_blank" rel="noopener noreferrer"
moz-do-not-send="true">https://github.com/openvehicles/Open-Vehicle-Monitoring-System-3/pull/1102/files</a></div>
<div> </div>
<div>Cheers</div>
<div>Derek</div>
</div>
</div>
</blockquote>
</blockquote>
</div>
</blockquote>
</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>