<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<div style="font-size: 10pt; font-family: Verdana,Geneva,sans-serif;">
<p id="v1reply-intro">On 2025-01-23 12:11, Developer From Jokela via OvmsDev wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="v1replybody1" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>
<div>E (445282) can: can2: intr=240803 rxpkt=242887 txpkt=6 errflags=0x22401c02 rxerr=0 txerr=0 rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0</div>
<div> </div>
</div>
</div>
</blockquote>
<div id="v1replybody1" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>
<div> </div>
<p>Ok, now putting Developer From Jokela's post together with Michael's I <span style="text-decoration: underline;">think</span> I understand what this is telling us.</p>
<p>First, E means error.</p>
<p>The presence of this line in the log means there has been an error on can bus 2. The values given appear to be the current values of some counters.</p>
<p>The code is in can/src/can.cpp. This has basic deduplication by summing most of the counters and errflags, and only logging if this changes. Interestingly both of us saw can2 errors in pairs: one with errflags=0x23401c01 and one with 0x22401c02. In my case these were either 0 or 10 ms apart.</p>
<p>The flags appear to derive from mcp2515/src/mcp2515.cpp but it's not clear to me what they mean.</p>
<div> </div>
</div>
</div>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="v1replybody1" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div>
<div>OVMS# can can2 status</div>
<div>CAN:       can2</div>
<div>Mode:      Active</div>
<div>Speed:     500000</div>
<div>DBC:       none</div>
<div> </div>
<div>Interrupts:              291197</div>
<div>Rx pkt:                  293642</div>
<div>Rx ovrflw:                    0</div>
<div>Tx pkt:                       6</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>
</div>
</blockquote>
<div id="v1replybody1" style="overflow-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">
<div> </div>
<div>Question: If the log tells us that can2 errors have occurred, why does "can can2 status" report zero values for errors?</div>
</div>
<p>Chris</p>
<div id="v1_rc_sig"></div>
</div>
</body></html>