Ducal Blog

[My site is a place to summarize technical topic that I interested]

CAN Message E2E

(1) Loss of communication between ECUs
(2) Unintended repetition of message
(3) Order of data is changed unexpectedly
(4) Bit of data is changed unexpetectedly
(5) Timing is not correct

Checksum

Alive counter

Every time CAN message is sent, sender shall increase alive counter by 1, the requirement for alive counter is specified by OEM, usually range of alive counter is 0..14 so it takes 4 bits in payload, alive counter will be reset when it reach the limit. If alive counter of 2 consecutive message is not changed, it can be jugded that message is freezed or repeated unexpectedly or if the increasement of alive counter is not continuous, timing may not be correct.

CRC

CAN frame has 16 bit for CRC slot, CRC 8bit is usually used to prevent data error.To verify CRC, software or hardware CRC module can be used.