<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Turned out this was no hardware issue but a scheduler problem: the
CAN rx and vehicle rx tasks were not scheduled often & fast
enough to consistently keep up with the 10 ms period.<br>
<br>
After assigning the CAN RX task to core 0 and raising the vehicle
task priority to 10, there are no more TX overflows, and my charge
control override works perfectly.<br>
<br>
Geir, I don't know if that helps with your can2 issue, but it's
worth a try.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 31.12.2017 um 19:59 schrieb Michael
Balzer:<br>
</div>
<blockquote type="cite"
cite="mid:12149dec-80b2-c879-cd0c-ec93a08097f5@expeedo.de"><br>
And TX overflows actually do occur quite often, without a
plausible cause:<br>
<br>
<tt>OVMS > can can1 status </tt><tt><br>
</tt><tt>CAN: can1</tt><tt><br>
</tt><tt>Mode: Active</tt><tt><br>
</tt><tt>Speed: 500000</tt><tt><br>
</tt><tt>Rx pkt: 133146</tt><tt><br>
</tt><tt>Rx err: 0</tt><tt><br>
</tt><tt>Rx ovrflw: 0</tt><tt><br>
</tt><tt>Tx pkt: 53238</tt><tt><br>
</tt><tt>Tx err: 95</tt><tt><br>
</tt><tt>Tx ovrflw: <b>498</b></tt><tt><br>
</tt><tt>Err flags: 0x12c00</tt><tt><br>
</tt><br>
In this case, a TX occurs every 10 ms on a 500 kbit bus -- plenty
of time for the buffer to get sent. I'm looking into that.</blockquote>
<br>
<pre class="moz-signature" cols="160">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26
</pre>
</body>
</html>