<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Simon,<br>
<br>
interrupt counters work different depending on the CAN transceiver
& communication type, CAN2/3 are MCP2515 via SPI, while CAN1 is
ESP32CAN (loosely SJA1000 compatible) via internal bus. There is
generally only a loose connection, as any RX will trigger at least
one interrupt, but not all interrupts are RX related, and an RX
interrupt can cover multiple buffered packets.<br>
<br>
But…<br>
<blockquote type="cite">
<div><font face="monospace">Interrupts: 3036646</font></div>
<div><font face="monospace">Rx pkt: 3044758</font></div>
</blockquote>
<br>
…that's possibly a hint you've frequent packet bursts on that bus,
and that may be the cause you're experiencing the freeze so often.
That would lead to a possible bug in the driver's RX handling for
situations where new packets come in very fast. The MCP2515 isn't
particularly simple to read & control in such situations, our
driver may lack some crucial handling.<br>
<br>
<blockquote type="cite">
<div><font face="monospace">Err flags: 0x01000001</font></div>
</blockquote>
<br>
For the mcp2515 driver, that means…<br>
<ul>
<li>intstat = 0x01 → RX buffer 0 full</li>
<li>errflag = 0x00<br>
</li>
</ul>
<br>
…so no actual error condition. Some development of the error status
is possibly readable from the system log and/or CAN log.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 14.04.22 um 20:58 schrieb Simon
Ehlen:<br>
</div>
<blockquote type="cite"
cite="mid:zarafa.62586eb8.28fd.112338a8132b1f21@lola">
<meta name="Generator" content="Zarafa WebAccess v7.0.8-35178">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>AW: [Ovmsdev] Not processing canbus frames anymore</title>
<style type="text/css">body
{
font-family: Arial, Verdana, Sans-Serif ! important;
font-size: 12px;
padding: 5px 5px 5px 5px;
margin: 0px;
border-style: none;
background-color: #ffffff;
}p, ul, li
{
margin-top: 0px;
margin-bottom: 0px;
}</style>
<p> </p>
<div>My CAN1 bus works without problems, as before only CAN2 and
CAN3 are affected.</div>
<div> </div>
<div>Enclosed is a current excerpt from the status. Both CAN2 and
CAN3 do not provide any new data at the moment, although both
buses are still active. For me it is noticeable that currently
CAN3 has more packets than interrupts. I have observed the same
with CAN2, but never with CAN1.</div>
<div> </div>
<div>Greg D. had indicated that there was a problem with CAN2/CAN3
in the past where the buses went deaf after a while. Has the
problem actually been fixed in the past or is this still the
problem that remains unresolved?</div>
<div> </div>
<div>Is there any other information I could provide to help track
down the problem?</div>
<div> </div>
<div>
<div>CAN: can1</div>
<div>Mode: Active</div>
<div>Speed: 500000</div>
<div>DBC: none</div>
<div> </div>
<div>Interrupts: 14256668</div>
<div>Rx pkt: 14245150</div>
<div>Rx ovrflw: 23</div>
<div>Tx pkt: 0</div>
<div>Tx delays: 0</div>
<div>Tx ovrflw: 0</div>
<div>Tx fails: 0</div>
<div> </div>
<div>Err flags: 0x00000000</div>
<div>Rx err: 0</div>
<div>Tx err: 0</div>
<div>Rx invalid: 0</div>
<div>Wdg Resets: 0</div>
<div>Wdg Timer: 0 sec(s)</div>
<div>Err Resets: 0</div>
<div> </div>
<div>CAN: can2</div>
<div>Mode: Active</div>
<div>Speed: 125000</div>
<div>DBC: none</div>
<div> </div>
<div>Interrupts: 101488</div>
<div>Rx pkt: 101483</div>
<div>Rx ovrflw: 0</div>
<div>Tx pkt: 0</div>
<div>Tx delays: 0</div>
<div>Tx ovrflw: 0</div>
<div>Tx fails: 0</div>
<div> </div>
<div>Err flags: 0x01000001</div>
<div>Rx err: 0</div>
<div>Tx err: 0</div>
<div>Rx invalid: 0</div>
<div>Wdg Resets: 0</div>
<div>Wdg Timer: 9 sec(s)</div>
<div>Err Resets: 0</div>
<div> </div>
<div>CAN: can3</div>
<div>Mode: Active</div>
<div>Speed: 500000</div>
<div>DBC: none</div>
<div> </div>
<div>Interrupts: 3036646</div>
<div>Rx pkt: 3044758</div>
<div>Rx ovrflw: 0</div>
<div>Tx pkt: 0</div>
<div>Tx delays: 0</div>
<div>Tx ovrflw: 0</div>
<div>Tx fails: 0</div>
<div> </div>
<div>Err flags: 0x01000001</div>
<div>Rx err: 0</div>
<div>Tx err: 0</div>
<div>Rx invalid: 0</div>
<div>Wdg Resets: 0</div>
<div>Wdg Timer: 0 sec(s)</div>
<div>Err Resets: 0</div>
<div> </div>
<div>Kind regards,</div>
<div>Simon</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
OvmsDev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:OvmsDev@lists.openvehicles.com">OvmsDev@lists.openvehicles.com</a>
<a class="moz-txt-link-freetext" href="http://lists.openvehicles.com/mailman/listinfo/ovmsdev">http://lists.openvehicles.com/mailman/listinfo/ovmsdev</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Michael Balzer * Helkenberger Weg 9 * D-58256 Ennepetal
Fon 02333 / 833 5735 * Handy 0176 / 206 989 26</pre>
</body>
</html>