Back to the glossary

Embedded and systems

Controller Area Network (CAN)

CAN is a serial bus system that lets control units exchange messages robustly and in real time. It is the standard in vehicles and widely used in industry and medical technology.

Also known as: CAN bus, CAN FD, CAN XL

How CAN works

All nodes share a common two-wire line. Messages carry no recipient address but an identifier (ID) that also sets their priority. If two nodes transmit at the same time, the more important message wins without any loss of time.

Classic CAN carries up to 8 bytes of payload per message at up to 1 Mbit/s. CAN FD allows up to 64 bytes and a higher bit rate in the data phase, CAN XL even more.

CAN in testing

  • Logging and analysis: checking that a device sends the right messages at the right cycle time
  • Stimulation: sending messages the device should react to
  • Residual bus simulation: simulating missing nodes so the device operates normally
  • Fault cases: delaying or dropping messages, or provoking bus errors

The meaning of the messages is usually described in DBC or ARXML files. With Python libraries, CAN tests can be automated without expensive specialist software.