Skip to main content

Someone wanted to learn this too, so Grasp built them a personal learning path.

You can keep exploring this one or create your own

CAN Bus Physical Layer

Hello! Welcome back to our course on advanced automotive diagnostics.

In our first lesson, we mapped the entire diagnostic protocol stack to the OSI model, placing the CAN bus at the foundational Physical (Layer 1) and Data Link (Layer 2) layers. Now, we'll zoom in on Layer 1 to build a solid understanding of the hardware that makes all vehicle communication possible.

This lesson is dedicated to the CAN bus physical layer. We will cover its essential characteristics, including the electrical signaling and the critical role of bus termination. A firm grasp of this layer is indispensable for both software development and system testing. When you're debugging why an ECU won't respond, the physical layer is often the first place to look.

The CAN Bus Topology: A Two-Wire Backbone

At its core, the high-speed CAN bus (as defined by ISO 11898-2) is a linear network, often called a "backbone," that connects various Electronic Control Units (ECUs). This network is built on two wires:

  • CAN High (CAN_H)
  • CAN Low (CAN_L)

These two wires are typically twisted together, forming a twisted pair. This isn't just for neatness; as we'll see, twisting the wires is a simple but highly effective way to protect the signals from electrical noise, which is abundant in a vehicle.

ECUs are not connected in a star pattern but are instead tapped into this main backbone using short connections called "stubs." The two physical ends of the main backbone must be terminated with resistors.

CAN Bus Physical Layer Wiring and Termination
This diagram shows the fundamental topology of a CAN bus. Note the two main bus lines (CAN High and CAN Low), the 120 Ohm termination resistors at each end, and the ECUs connected via short stubs.

To begin, let's get a clear overview of these physical components and their layout.

CAN Bus: A Beginners Guide Part 1

The video 'CAN Bus: A Beginners Guide Part 1' from Hardwire Electronics provides an excellent introduction to the physical properties of the bus. This first segment will walk you through the basic setup.

Please watch from 01:40 to 05:12. Focus on identifying the key physical components: the CAN High/Low wires, the twisted-pair configuration, the placement of the termination resistors, and the concept of stubs.

Differential Signaling: The Secret to Noise Immunity

You might wonder why CAN uses two wires instead of a single wire referenced to ground. The answer is differential signaling, a technique that makes the CAN bus remarkably robust against the electromagnetic interference (EMI) found in automotive environments (e.g., from ignition systems, electric motors, and radio transmitters).

Instead of measuring the voltage of a single wire relative to ground, a CAN transceiver measures the difference in voltage between the CAN_H and CAN_L lines.

  • When noise is induced onto the bus, it typically affects both wires almost equally because they are twisted together and run in close proximity.
  • When the receiver subtracts the voltage of CAN_L from CAN_H, this "common-mode" noise is cancelled out, leaving only the intended signal.

This principle not only makes the bus resilient to picking up noise but also reduces the amount of electromagnetic noise the bus emits, preventing it from interfering with other systems.

The following video segment explains this core principle with clear animations.

CAN Bus: A Beginners Guide Part 1

This next section of the same video explains the 'why' behind the two-wire system. It masterfully illustrates how differential signaling works to reject noise and also touches on the voltage levels that define the bus states.

Watch from 05:12 to 16:37. Pay close attention to the graphical explanation of how noise is cancelled out and the practical oscilloscope demonstration that follows. Also, note the explanation for how twisted pairs reduce emissions.

Bus States and Voltage Levels

The differential signal on the bus creates two distinct logical states:

  1. Recessive State (Logic '1'): This is the idle or default state of the bus. In this state, both CAN_H and CAN_L are held at approximately 2.5V. The differential voltage (CAN_H - CAN_L) is therefore close to 0V.
  2. Dominant State (Logic '0'): This is the active state used to transmit data bits. A transceiver actively drives the bus into this state by raising CAN_H to about 3.5V and lowering CAN_L to about 1.5V. This creates a differential voltage of approximately 2V.

It is crucial to remember this mapping: a logical '0' is the "dominant" state, and a logical '1' is the "recessive" state. This has important implications for bus arbitration, which we will cover in a later lesson.

CAN Bus Physical Layer Voltage Levels and Differential Signaling
This graph illustrates the voltage levels for the CAN High and CAN Low lines. During the recessive state, both lines are at ~2.5V (differential voltage ~0V). During the dominant state, CAN_H is ~3.5V and CAN_L is ~1.5V (differential voltage ~2V).

As a system tester, you won't always have an oscilloscope handy. The next resource shows what these signals look like on a scope and, more practically, what you can expect to read with a standard multimeter.

CAN Bus Properties and Troubleshooting

The video 'CAN Bus Properties and Troubleshooting' by Enovation Controls provides a great practical look at the CAN bus voltages.

Watch from 02:40 to 05:48. This demonstrates the live signals on an oscilloscope and explains the averaged DC voltage you would measure with a multimeter, a very useful tip for quick bus health checks.

Bus Termination: Preventing Signal Reflections

As you've seen, every CAN bus requires two 120-Ohm (Ω) resistors, one at each physical end of the main backbone. These are not optional; the bus will not function reliably without them. They serve two critical purposes.

1. Preventing Signal Reflections

High-speed electrical signals behave like waves. When a signal traveling down a wire reaches the end, it can "reflect" back, like an echo. This reflected signal interferes with subsequent signals, corrupting the data. The termination resistors absorb the signal energy at the ends of the bus, preventing these reflections. The 120Ω value is chosen to match the characteristic impedance of the twisted-pair cable, which ensures maximum energy absorption.

2. Defining the Recessive State

CAN transceivers use an "open-collector" (or more accurately, open-drain) output. This means they can only actively pull the bus into the dominant state. They cannot actively drive it to the recessive state. When all transceivers are "off," the termination resistors serve to pull the CAN_H and CAN_L lines together, returning the bus to the ~2.5V recessive level.

To understand these functions in more detail, let's return to our first video resource.

CAN Bus: A Beginners Guide Part 1

This segment explains exactly why termination resistors are necessary, covering both the signal reflection and recessive state functions.

Watch from 16:37 to 21:28. Focus on the two key reasons for using termination resistors and why the 120-ohm value is specified.

For a more in-depth technical explanation, you can refer to the document below from Texas Instruments, a major manufacturer of CAN transceivers.

[PDF] Controller Area Network Physical Layer Requirements

The document 'Controller Area Network Physical Layer Requirements' provides a wealth of technical detail. The following sections specifically cover line termination and show a powerful visual of a signal on an unterminated bus.

Please read Section 4.5 'Line Terminations' (page 6). Pay special attention to Figure 7, which shows the 'stair-step' effect of reflections on an unterminated bus, and the descriptions of Standard vs. Split Termination in Figures 8, 9, and 10. Split termination is a common technique used to improve electromagnetic compatibility (EMC).

Troubleshooting with Termination Resistance

Because correct termination is so vital, the first step in troubleshooting a CAN bus is often to measure the total resistance. With the network unpowered, you can use a multimeter to measure the resistance between the CAN_H and CAN_L pins at any point on the bus. Since the two 120Ω resistors are at opposite ends of the parallel bus, the total resistance should be:

Test your understanding!

You are tasked with troubleshooting a test bench where an ECU is not communicating. You turn off the power to the network and measure the resistance between the CAN_H and CAN_L pins on the ECU's connector. Your multimeter reads 119.8 Ω.

What is the most likely physical layer problem?

Show answer

The most likely problem is that one of the two 120Ω termination resistors is missing from the bus. A reading of ~120Ω indicates that only one terminator is present. A correct reading would be ~60Ω.

The following short clip demonstrates exactly this measurement procedure.

CAN Bus Properties and Troubleshooting

This clip from the Enovation Controls video demonstrates the practical process of measuring bus termination and how to interpret the results.

Watch from 07:54 to 09:04. This shows how a correct bus measures ~60Ω, a bus with one terminator missing measures ~120Ω, and a bus with an extra terminator measures ~40Ω.

Physical Design Rules

For a CAN bus to be reliable, especially at high data rates (500 kbps, 1 Mbps), some physical design rules must be respected:

  • Stub Length: As mentioned, stubs are the short wires connecting an ECU to the main backbone. These stubs also cause minor signal reflections. To keep these reflections from corrupting data, stub lengths must be kept as short as possible. The ISO 11898 standard recommends a maximum stub length of 0.3 meters for a 1 Mbps network. Long stubs are a very common cause of communication errors.
  • Bus Length vs. Data Rate: There is an inverse relationship between the maximum possible length of a CAN bus and the data rate. Signal propagation delay becomes a limiting factor over long distances. For example:
    • 1 Mbps: ~40 meters max length
    • 500 kbps: ~100 meters max length
    • 125 kbps: ~500 meters max length
  • Grounding: To prevent "ground loops" and common-mode voltage offsets between ECUs, the network should have a single, solid ground reference.

Conclusion

In this lesson, we took a detailed look at the CAN physical layer. You learned about the components and principles that ensure reliable data transmission in the harsh automotive environment.

Key Takeaways:

  • Physical Topology: CAN is a linear bus using a twisted pair of wires (CAN_H, CAN_L) with ECUs connected via short stubs.
  • Differential Signaling: The bus's key feature for noise immunity. The receiver interprets the voltage difference between CAN_H and CAN_L, canceling out common-mode noise.
  • Bus States: The bus operates in two states: recessive (logic '1') with a ~0V differential and dominant (logic '0') with a ~2V differential.
  • Termination: Two 120Ω resistors are mandatory, one at each end of the bus. They prevent signal reflections and define the recessive state. Correct termination results in a total bus resistance of 60Ω.
  • Design Rules: Reliability depends on adhering to rules for stub length, bus length, and proper grounding.

With this understanding of the physical medium, we are now ready to move up the stack. In our next lesson, we will dissect the structure of the data packets that travel over these wires, exploring the fields within a Classical CAN frame.

Can't find a good explanation? Sign up and we'll make it for you

Sign up