Practical troubleshooting of CAN Bus

Practical troubleshooting of CAN Bus

CAN Bus is commonly used in automotive applications for communication between various VCUs and components within a vehicle.


Physical representation of CAN Bus -

https://www.kmpdrivetrain.com/

Electrical characteristics of CAN Bus -

CAN transmits differentially over two lines, CAN High and CAN Low. There are two logic states:

  • Dominant – Logic 0
  • Recessive – Logic 1

Termination: Termination resistors are placed at both ends of the CAN bus line to match the characteristic impedance of the transmission line and minimize signal reflections. Common termination values are 120 ohms, and these resistors ensure that the signal propagates without distortion.


Stub Length: Stub length in a CAN bus refers to the length of any branches or extensions connected to the main bus line. Keeping stub lengths as short as possible is important for maintaining the signal integrity and overall reliability of the CAN bus network. Here's why,


  1. Signal Reflections: Longer stub lengths can cause signal reflections, which occur when a signal encounters impedance mismatches at the junctions between the main bus line and the stubs. These reflections can distort the original signal, leading to errors in data transmission and reception. By keeping stub lengths short, the likelihood of signal reflections is reduced, improving communication reliability.
  2. Signal Degradation: Longer stub lengths can increase signal attenuation, where the signal weakens as it travels along the stub.
  3. Timing and Synchronization: Longer stub lengths can introduce delays in signal propagation, affecting the timing and synchronization of communication between nodes on the CAN bus network. Shorter stub lengths reduce propagation delays, ensuring that nodes can accurately synchronize with the bus and communicate within the specified timing constraints.
  4. Electromagnetic Interference (EMI): Longer stub lengths can act as antennas, picking up electromagnetic interference (EMI) from the surrounding environment. This EMI can corrupt the CAN bus signals, leading to communication errors and data loss. Shorter stub lengths minimize the antenna effect, reducing the susceptibility to EMI and improving noise immunity.


Please click here for more about termination resistor and reflection.

How to check the CAN Bus is perfectly fine?

  1. Visual Inspection: Start by visually inspecting the CAN bus wiring, connectors, and termination resistors for any signs of damage, corrosion, or loose connections.
  2. Check Termination : Termination resistance of a CAN bus, which typically should be 120 ohms (60 ohms at each end). The resistance reading on the multimeter should ideally be around 60 ohms
  3. Signal Voltage level : Check the voltage levels of the CAN High (CANH) and CAN Low (CANL) lines in a CAN bus, you can use a multimeter set to measure voltage. In idle case both CANH & CANL voltage is same as 2.5V.
  4. A resistance reading of more than 20k ohms across the CAN High (CANH) and CAN Low (CANL) lines of a CAN bus without termination resistors suggests an open circuit or a high resistance fault in the bus line.
  5. In a properly functioning CAN bus system, the CAN High (CANH) line should always have a higher voltage than the CAN Low (CANL) line. This voltage differential is necessary for proper signal transmission and reception within the CAN bus network.If you observe that the voltage on the CANH line is lower than the voltage on the CANL line, it suggests a potential wiring issue where the CANH and CANL lines may be reversed or improperly connected at some point in the network.


Errors in Controller Area Network (CAN) bus system:

  1. Bus-Off Error: A bus-off error occurs when a node enters a bus-off state due to excessive error conditions. In this state, the node is unable to participate in further communication on the bus until it is reset or reinitialized. Bus-off errors typically result from severe communication disturbances or hardware malfunctions. The "bus-off" state is reached when the error counter is higher than 255 error points. In this state the CAN-controller is disconnected from the bus.
  2. Bus Heavy Error: CAN bus network is experiencing a heavy load, leading to communication issues and errors. Check the baud rate.
  3. Bus Light Error: Check the hardware adapters, Cables and software configuration. if we only have one CAN-Node (the PCAN-USB device), the CAN protocol will generate errors, because messages cannot be delivered, i.e. there is no CAN communication between nodes.
  4. Passive errors : Passive error on CAN bus can be occur due to Bit Error, Stuff Error, CRC Error etc. Check terminating resistor and node lengths.


You need two 120ohm termination resistors to measure 60ohm, not two 60ohm termination resistors.

要查看或添加评论,请登录

Deepak K Singh的更多文章

  • PCB Schematic Reading and Design: A Comprehensive Guide

    PCB Schematic Reading and Design: A Comprehensive Guide

    PCB schematics are the blueprints of electronic circuits, serving as a roadmap for designers and engineers to bring…

    1 条评论
  • FAQ - Hydrogen Trucks

    FAQ - Hydrogen Trucks

    What is a Hydrogen Fuel Cell Truck? A hydrogen fuel cell truck, also known as an FCV (fuel cell vehicle) truck or…

  • Rounding Block In Simulink

    Rounding Block In Simulink

    What is Rounding block? In Simulink, the Rounding block is used to round input signals to the nearest integer or a…

  • ELECTRIC VEHICLE COOLANTS

    ELECTRIC VEHICLE COOLANTS

    Introduction Electric vehicle coolants are specialized fluids designed to regulate the temperature of the electric…

    1 条评论
  • Hydrogen Powered Vehicle (H2O ICE & FCEVs)

    Hydrogen Powered Vehicle (H2O ICE & FCEVs)

    There are two technologies: Hydrogen fuel cell electric vehicles (FCEVs) and hydrogen internal combustion engines…

    1 条评论
  • The Future of Energy: A Deep Dive into Betavolt Nuclear Batteries

    The Future of Energy: A Deep Dive into Betavolt Nuclear Batteries

    What is a Nuclear Battery? A nuclear battery, also known as a radioisotope thermoelectric generator (RTG) or atomic…

    3 条评论
  • Essential Maintenance Tips for Optimal Performance of EV

    Essential Maintenance Tips for Optimal Performance of EV

    Are you thinking to switch to an Electric Vehicle (EV)? Here's some tips to maintain the vehicle performance upto date…

    1 条评论
  • Selection criteria for choosing the Perfect Microcontroller

    Selection criteria for choosing the Perfect Microcontroller

    STMicroelectronics Atmel Corporation Nuvoton Technology Corporation Selecting the perfect microcontroller for your…

  • Advanced Techniques in 4W EV Control

    Advanced Techniques in 4W EV Control

    As the automotive industry continues to shift towards electrification, the hardware advancements in 4W EV control…

    2 条评论

社区洞察

其他会员也浏览了