0

Cart

No products in the cart.

Product portfolio

Please install Yoast, RankMath, or SEOPress to use breadcrumbs.

What is Controller Area Network (CAN bus) and how to write/decode CAN bus data.

What is CAN bus?

CAN bus (Controller Area Network) is a communication system used in vehicles/machines to allow ECUs (Electronic Control Units) to communicate with each other – without the need for a host computer. For example, CAN bus allows for fast and reliable sharing of information between a vehicle's brakes and engine.

Imagine your car like a human body:

CAN bus is nervous system allow communication

In turn, the ECU (also known as 'CAN node') is like the parts of the body, connected to each other via the CAN bus. Information sensed by one part can be shared with another.

Physically, all ECUs are connected on a two-wire bus consisting of a twisted pair of wires: CAN high and CAN low. The wires are usually color-coded: CAN high is yellow (resembling the sun), CAN low is green (resembling grass).

Cars with CAN Bus system

PEAK System PCAN-USB CAN USB Adapter

The PCAN-USB interface allows simple connection to the CAN network. Its compact plastic housing makes it suitable for portable applications. The opto-decoupled version ensures galvanic isolation of up to 500 Volts between the PC and the CAN side. The PCAN-View monitoring software and the PCAN-Basic programming interface for developing CAN-connected applications are included in the scope of supply and support CAN FD. Device drivers exist for various operating systems, so programs can easily access the connected CAN bus.

Overview of CAN bus ECU network communication

What is ECU?

Electronic control units (ECUs) are components that control certain functions – for example, the engine, transmission, brakes, steering, temperature, etc. A modern car can easily have more than 70 ECUs – each ECU shares information with other ECUs on the bus.

Any ECU on the CAN bus can prepare and transmit information (e.g. sensor data). The transmitted data is accepted by all other ECUs on the network – and each ECU can then examine the data and decide whether to accept or ignore it.

If we zoom in, the ECU consists of three main components:

  • Microcontroller: The MCU is the brain of the ECU – it interprets the incoming CAN signals and decides which signals to transmit. For example, a sensor can be programmed to measure and transmit an oil temperature signal at a frequency of 5 Hz.
  • CAN controller: The controller is usually integrated within the MCU and ensures all communication complies with the CAN protocol (message encoding, error detection, arbitration, etc.) – removing complexity from the MCU
  • CAN transceiver: The CAN transceiver connects the CAN controller to the physical CAN wire, converting controller data into differential signals for the CAN bus system and vice versa. It also provides electrical protection.
ecu-electronic-control-unit-can-bus-node
CAN bus DB9 connection pinout

DB9 CAN bus connector

How to connect to CAN bus?

There is no standard connector for CAN bus applications. As we will show later, this means that different vehicles/machines may use different connectors.

However, a close candidate is the CAN DB9 (D-sub9) connector (CANopen CiA 303-1), which has become the de facto standard for many applications including CAN bus data logger/interfaces.

CAN bus variants

Before we continue, we need to know that there are many variations of CAN:

  • Low speed CAN: Fault-tolerant CAN is a low-cost option when fault tolerance is critical – but is increasingly being replaced by LIN bus
  • High-speed CAN: Classic CAN is the most common variant in cars/machines today (and is the focus of this article)
  • CAN FD: Offers longer payloads and faster speeds, although adoption is still limited – learn more in our CAN FD introduction
  • CAN XL: Provides longer payloads and faster speeds to bridge the gap between CAN and automotive Ethernet (100BASE-T1)
CAN FD XL classic canbus variant

Top 4 Benefits of CAN Buses

The CAN bus standard is used on most vehicles and many machines because of the following key benefits:

CAN buses are low cost and simple

Simple and low cost

ECUs communicate via a single CAN system instead of via complex direct analog signal paths – reducing errors, weight, wiring and cost

CAN bus is a completely centralized system network

Easy access

The CAN bus provides a 'single entry point' to communicate with all network ECUs – allowing central diagnostics, data logging and configurationDetails

CAN has EMI interference resistance

Extremely powerful

The system is resistant to electromagnetic interference and electromagnetic interference – ideal for safety-critical applications (e.g. vehicles)Details

CAN bus works efficiently with frame ID priority system for automatic interrupt

Effective

CAN frames are prioritized by ID so that data with the highest priority accesses the bus immediately without interrupting other frames.


A brief history of the CAN bus

  • CAN Money: Automotive ECUs rely on complex point-to-point wiring systems
  • 1986: Bosch development of the CAN protocol as a solution
  • 1991: Bosch announces CAN 2.0 (CAN 2.0A: 11 bit, 2.0B: 29 bit)
  • 1993: CAN is adopted as an international standard (ISO 11898)
  • 2003: ISO 11898 becomes a series of standards
  • 2012: Bosch release CAN FD 1.0 (flexible data rate)
  • 2015: Standardized CAN FD protocol (ISO 11898-1)
  • 2016: The physical CAN layer for data rates up to 5 Mbit/s is standardized in ISO 11898-2 (in practice up to 8 Mbit/s)
  • 2018: CiA begins development of CAN XL
  • 2024: CAN XL is standardized (ISO 11898-1:2024, 11898-2:2024)
YouTube player

Today, CAN is standard in automobiles ( car , truck , buses, tractors, …), ship , plane, EV batteries , machines , etc.

Applications of CAN data loggers include Buses Trucks Machinery Tractors Automotive
CAN Bus History Timeline 1986 1991 1993 2003 2015 2016 2018
The future of CAN bus involves cloud-connected cars and IoT

The future of CAN buses

Looking forward, the CAN bus protocol will remain relevant – although it will be affected by major trends :

Open vs. Closed: The push for 'Open Source' and possibly against OEM-driven demands for proprietary data to, for example, provide subscription-based microservices

Need for speed: The need for higher data rates could drive the transition to CAN FD, CAN XL, or Automotive Ethernet

Please contact SEMIKI to get advice on choosing the right CAN device lines for your needs

CONTACT:

SEMIKI Measuring Equipment Company Limited
Email: [email protected]
Phone: +84 9797 61016

REPAIR MAINTENANCE & CALIBRATION OF EQUIPMENT

The service center Repairs and Maintains all your precision tools and machinery and is recognized as an industry leader.

Dedicated service

The service center Repairs and Maintains all your precision tools and machinery and is recognized as an industry leader.

Featured Products

© 2024 Semiki inc. All rights reserved.

Ask SEMIKI for a quote

Complete the form below to receive a quote from SEMIKI.
You need to enter all information fields below.