[Ovmsdev] Not processing canbus frames anymore

Craig Leres leres at xse.com
Sat Apr 23 01:10:14 HKT 2022


On 4/15/22 01:24, Michael Balzer wrote:
> This doesn't match my thought:
> 
>> Tx fails:                   840 
> 
> That means there actually were TX failures or TX aborts from a bus error 
> state.
> 
> That should manifest in the logs as well, with possibly more detail.

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".

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!)

		Craig

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
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
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
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
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
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
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
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
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
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
2022-04-21 15:50:20.584 PDT E (14842934) can: can1: intr=372932 
rxpkt=370190 txpkt=206 errflags=0x8048d9 rxerr=0 txerr=128 rxinval=0 
rxovr=0 txovr=0 txdelay=0 txfail=1250 wdgreset=0 errreset=0
2022-04-21 18:33:03.834 PDT E (24605934) can: can1: intr=26259766 
rxpkt=903954 txpkt=676 errflags=0x8000d9 rxerr=0 txerr=8 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1250 wdgreset=0 errreset=0
2022-04-21 18:33:03.834 PDT E (24605934) can: can1: intr=26259771 
rxpkt=903954 txpkt=676 errflags=0x8000d9 rxerr=0 txerr=48 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1250 wdgreset=0 errreset=0
2022-04-21 18:33:03.834 PDT E (24605934) can: can1: intr=26259772 
rxpkt=903954 txpkt=676 errflags=0x8000d9 rxerr=0 txerr=56 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1250 wdgreset=0 errreset=0
2022-04-21 18:33:03.834 PDT E (24605934) can: can1: intr=26259774 
rxpkt=903954 txpkt=676 errflags=0x8000d9 rxerr=0 txerr=72 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1250 wdgreset=0 errreset=0
2022-04-21 18:33:03.834 PDT E (24605934) can: can1: intr=26259775 
rxpkt=903954 txpkt=676 errflags=0x8000d9 rxerr=0 txerr=80 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1250 wdgreset=0 errreset=0
2022-04-21 18:33:03.834 PDT E (24605934) can: can1: intr=26259777 
rxpkt=903954 txpkt=676 errflags=0x8440d9 rxerr=0 txerr=96 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1250 wdgreset=0 errreset=0
2022-04-21 18:33:03.834 PDT E (24605934) can: can1: intr=26259778 
rxpkt=903954 txpkt=676 errflags=0x8040d9 rxerr=0 txerr=104 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1250 wdgreset=0 errreset=0
2022-04-21 18:33:03.834 PDT E (24605934) can: can1: intr=26259779 
rxpkt=903954 txpkt=676 errflags=0x8040d9 rxerr=0 txerr=112 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1250 wdgreset=0 errreset=0
2022-04-21 18:33:03.834 PDT E (24605934) can: can1: intr=26259783 
rxpkt=903954 txpkt=676 errflags=0x204800 rxerr=0 txerr=128 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1250 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974397 
rxpkt=1617705 txpkt=1023 errflags=0x8000d9 rxerr=0 txerr=8 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974401 
rxpkt=1617705 txpkt=1023 errflags=0x8000d9 rxerr=0 txerr=40 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974403 
rxpkt=1617705 txpkt=1023 errflags=0x8000d9 rxerr=0 txerr=56 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974405 
rxpkt=1617705 txpkt=1023 errflags=0x8000d9 rxerr=0 txerr=72 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974406 
rxpkt=1617705 txpkt=1023 errflags=0x8000d9 rxerr=0 txerr=80 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974407 
rxpkt=1617705 txpkt=1023 errflags=0x8000d9 rxerr=0 txerr=88 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974409 
rxpkt=1617705 txpkt=1023 errflags=0x8040d9 rxerr=0 txerr=104 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974410 
rxpkt=1617705 txpkt=1023 errflags=0x8040d9 rxerr=0 txerr=112 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974411 
rxpkt=1617705 txpkt=1023 errflags=0x8040d9 rxerr=0 txerr=120 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0
2022-04-21 19:54:04.634 PDT E (29466934) can: can1: intr=26974414 
rxpkt=1617705 txpkt=1023 errflags=0x204800 rxerr=0 txerr=128 rxinval=0 
rxovr=0 txovr=518 txdelay=30 txfail=1532 wdgreset=0 errreset=0


More information about the OvmsDev mailing list