<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Craig,<br>
<br>
your log excerpt shows perfectly normal CAN behaviour for the bus
being turned off by the vehicle.<br>
<br>
The transceiver does 128 retransmission attempts before entering
bus-passive state. Example from the UpMiiGo:<br>
<br>
<pre style="color: rgb(0, 0, 0); font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-thickness: initial; text-decoration-style: initial; text-decoration-color: initial; overflow-wrap: break-word; white-space: pre-wrap;">2022-04-23 13:38:39.157 CEST E (338630327) can: can1: intr=1083368047 rxpkt=209218 txpkt=215216 errflags=0x8000d9 rxerr=0 txerr=8 rxinval=0 rxovr=0 txovr=9266 txdelay=16024 txfail=18767 wdgreset=0 errreset=0
2022-04-23 13:38:39.157 CEST E (338630327) can: can1: intr=1083368052 rxpkt=209218 txpkt=215216 errflags=0x8000d9 rxerr=0 txerr=48 rxinval=0 rxovr=0 txovr=9266 txdelay=16024 txfail=18767 wdgreset=0 errreset=0
2022-04-23 13:38:39.157 CEST E (338630327) can: can1: intr=1083368055 rxpkt=209218 txpkt=215216 errflags=0x8000d9 rxerr=0 txerr=72 rxinval=0 rxovr=0 txovr=9266 txdelay=16024 txfail=18767 wdgreset=0 errreset=0
2022-04-23 13:38:39.157 CEST E (338630327) can: can1: intr=1083368057 rxpkt=209218 txpkt=215216 errflags=0x8000d9 rxerr=0 txerr=88 rxinval=0 rxovr=0 txovr=9266 txdelay=16024 txfail=18767 wdgreset=0 errreset=0
2022-04-23 13:38:39.157 CEST E (338630327) can: can1: intr=1083368059 rxpkt=209218 txpkt=215216 errflags=0x8040d9 rxerr=0 txerr=104 rxinval=0 rxovr=0 txovr=9266 txdelay=16024 txfail=18767 wdgreset=0 errreset=0
2022-04-23 13:38:39.157 CEST E (338630327) can: can1: intr=1083368061 rxpkt=209218 txpkt=215216 errflags=0x8040d9 rxerr=0 txerr=120 rxinval=0 rxovr=0 txovr=9266 txdelay=16024 txfail=18767 wdgreset=0 errreset=0
2022-04-23 13:38:39.157 CEST E (338630327) can: can1: intr=1083368064 rxpkt=209218 txpkt=215216 errflags=0x204800 rxerr=0 txerr=128 rxinval=0 rxovr=0 txovr=9266 txdelay=16024 txfail=18767 wdgreset=0 errreset=0
2022-04-23 13:38:40.157 CEST D (338631327) v-vweup: PollerStateTicker: [offline] LVPwrState=0 HVChgMode=0 SOC=27.0% LVAutoChg=1 12V=12.1 DCDC_U=12.3 DCDC_I=0.0 ChgEff=0.0 BatI=-0.0 BatIAge=12 => PollState 1->0
2022-04-23 13:38:40.157 CEST I (338631327) v-vweup: PollerStateTicker: Setting car state to OFF
2022-04-23 13:38:40.157 CEST I (338631327) v-vweup: PollSetState: AWAKE -> OFF
</pre>
<br class="Apple-interchange-newline">
The transceiver bus error state gets resolved as soon as the bus is
turned on again.<br>
<br>
Regards,<br>
Michael<br>
<br>
<br>
<div class="moz-cite-prefix">Am 22.04.22 um 19:10 schrieb Craig
Leres:<br>
</div>
<blockquote type="cite"
cite="mid:1ba42563-fe0c-4d11-5a53-8153229c6ab8@xse.com">On 4/15/22
01:24, Michael Balzer wrote:
<br>
<blockquote type="cite">This doesn't match my thought:
<br>
<br>
<blockquote type="cite">Tx fails: 840 </blockquote>
<br>
That means there actually were TX failures or TX aborts from a
bus error state.
<br>
<br>
That should manifest in the logs as well, with possibly more
detail.
<br>
</blockquote>
<br>
I've appended some can messages from the log file on my sd card.
Timestamps correspond to when I was driving. Looking at
esp32can.cpp I guess errflags (aka error_flags) is a combination
of several things, 16 bits of "error_irqs", 8 bits of
MODULE_ESP32CAN->SR.U, and 8 bits of MODULE_ESP32CAN->ECC.U.
I think 0x800000 is BIT(7) or __CAN_IRQ_BUS_ERR or "IR.7 Bus Error
Interrupt".
<br>
<br>
Is it saying it doesn't like my can bus? I haven't changed the way
I connect to the high speed can, I tapped into the onstar
connector. I guess it's possible the cable got damaged (it's under
the right/passenger's seat) but it does seem to be able to receive
frames without error. (And I know the engine will not run if there
are problems on the high speed can bus!)
<br>
<br>
Craig
<br>
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370416
rxpkt=370190 txpkt=206 errflags=0x8000d9 rxerr=0 txerr=8 rxinval=0
rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370420
rxpkt=370190 txpkt=206 errflags=0x8000d9 rxerr=0 txerr=40
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370422
rxpkt=370190 txpkt=206 errflags=0x8000d9 rxerr=0 txerr=56
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370423
rxpkt=370190 txpkt=206 errflags=0x8000d9 rxerr=0 txerr=64
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370425
rxpkt=370190 txpkt=206 errflags=0x8000d9 rxerr=0 txerr=80
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370426
rxpkt=370190 txpkt=206 errflags=0x8000d9 rxerr=0 txerr=88
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370427
rxpkt=370190 txpkt=206 errflags=0x8440d9 rxerr=0 txerr=96
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370429
rxpkt=370190 txpkt=206 errflags=0x8040d9 rxerr=0 txerr=112
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370430
rxpkt=370190 txpkt=206 errflags=0x8040d9 rxerr=0 txerr=120
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
2022-04-21 12:03:11.684 PDT E (1213934) can: can1: intr=370433
rxpkt=370190 txpkt=206 errflags=0x204800 rxerr=0 txerr=128
rxinval=0 rxovr=0 txovr=0 txdelay=0 txfail=0 wdgreset=0 errreset=0
<br>
<br>
</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>