The CAN bus module provides access to the CAN bus typically used for communication between different ECUs and devices/sensors in a vehicle. Also part of this module is a CAN data interpreter, supporting communication in DBC format and extendable by the user for additional formats.
The CAN sensor module is defined in CAN.h. It provides an abstracted interface to send, receive and filter CAN messages. Extended CAN frame format is supported. CAN FD (Flexible Data-Rate) messages for longer 64 byte messages and data bit rate switching is supported.
The supported interfaces are:
can.socket
interface for system CAN bus, including system virtual socket CAN.can.aurix
interface for CAN over Aurix.can.virtual
interface for reading CAN data from binary logs.The CAN interpreter module is defined in Interpreter.h. It supports the DBC communication format and can be extended to additional formats by the user.