CAN bus (Controller Area Network) is a communication protocol used in the automotive and industrial fields, and is widely used for data exchange between various electronic control units (ECUs). An oscilloscope is an electronic measuring instrument used to observe and analyze voltage waveforms. This article will detail how to use an oscilloscope to detect signals on the CAN bus.
-
introduction
CAN bus is a multi-master communication protocol with high real-time performance and reliability. In the automotive and industrial fields, CAN bus is widely used for data exchange between various electronic control units. Oscilloscope is an electronic measuring instrument used to observe and analyze voltage waveforms. By using an oscilloscope to detect signals on the CAN bus, fault diagnosis and performance analysis of the CAN bus can be performed.
-
Basic principles of CAN bus
2.1 CAN bus communication principle
CAN bus communication uses a time-based multi-master communication mechanism. Each node can send data at the same time, but only one node can successfully send at the same time. CAN bus uses a non-destructive arbitration mechanism, that is, when a conflict occurs, the node with a lower priority will actively stop sending, allowing the node with a higher priority to continue sending.
2.2 CAN bus data frame structure
The CAN bus data frame includes frame start, arbitration field, control field, data field, CRC check field, response field and frame end. Among them, the arbitration field is used to determine the priority of the transmitted data, the control field includes the data length and the remote transmission request flag, the data field is used to transmit the actual data, and the CRC check field is used for data verification.
-
Oscilloscope Basics
3.1 Oscilloscope Function
An oscilloscope is an electronic measuring instrument used to observe and analyze voltage waveforms. An oscilloscope can display a waveform graph of voltage changes over time, helping engineers analyze circuit performance and failures.
3.2 Main parameters of oscilloscope
The main parameters of an oscilloscope include bandwidth, sampling rate, memory depth and trigger mode. Bandwidth determines the highest frequency that the oscilloscope can measure, sampling rate determines the number of samples that the oscilloscope can collect per second, memory depth determines the number of samples that the oscilloscope can store, and trigger mode determines when the oscilloscope starts collecting data.
-
Prepare tools and equipment
4.1 Oscilloscope
Select an oscilloscope with sufficient bandwidth and sampling rate to meet the measurement needs of the CAN bus signal.
4.2 Probe
Choose a probe suitable for measuring CAN bus signals, such as a differential probe or a high-impedance probe.
4.3 Terminal resistance
Connect a 120Ω terminal resistor at both ends of the CAN bus to reduce signal reflection.
4.4 Signal Source
Prepare a CAN bus signal source to generate a test signal.
-
Oscilloscope Setup
5.1 Channel Settings
Connect the probe to Channel 1 and Channel 2 of the oscilloscope to measure the differential signal of the CAN bus.
5.2 Vertical Settings
According to the voltage range of the CAN bus signal, adjust the vertical scale of the oscilloscope to cover the peak and valley values of the signal.
5.3 Horizontal Settings
Depending on the baud rate of the CAN bus signal, adjust the horizontal scale of the oscilloscope so that it covers one or more data frames.
5.4 Trigger Settings
Set the trigger mode of the oscilloscope to edge trigger, and the trigger level to near the middle level of the CAN bus signal.
-
Measuring CAN bus signals
6.1 Observe the signal waveform
Turn on the signal source and observe the CAN bus signal waveform displayed on the oscilloscope. Pay attention to the start, arbitration, control, data, CRC check and end of the signal.
6.2 Analyzing signal quality
Check the integrity and stability of the signal, and analyze signal parameters such as amplitude, phase and frequency.
6.3 Measurement signal parameters
Use the measurement function of the oscilloscope to measure parameters such as voltage, time, frequency, and period of the CAN bus signal.
-
Troubleshooting
7.1 Signal Loss
If no CAN bus signal is displayed on the oscilloscope, there may be a signal source failure, a probe connection problem, or a CAN bus failure.
7.2 Signal Interference
If the signal waveform is abnormal, it may be due to electromagnetic interference or poor contact of the signal line.
7.3 Signal Delay
If the start and end times of the signal are not as expected, the signal line may be too long or the terminal resistor may be faulty.
-
Performance Analysis
8.1 Baud rate test
By changing the baud rate of the CAN bus and observing the changes in the signal waveform, the performance of the CAN bus can be analyzed.
8.2 Load Testing
By increasing the number of nodes on the CAN bus, observe the changes in signal waveform and communication performance.
8.3 Error rate test
By simulating error conditions on the CAN bus, such as signal interference, signal loss, etc., the fault tolerance of the CAN bus is analyzed.
-
in conclusion
By using an oscilloscope to detect the signals on the CAN bus, fault diagnosis and performance analysis of the CAN bus can be performed.
Previous article:What are the fault waveforms of the CAN bus?
Next article:What are the common faults of CAN bus?
- Popular Resources
- Popular amplifiers
- Red Hat announces definitive agreement to acquire Neural Magic
- 5G network speed is faster than 4G, but the perception is poor! Wu Hequan: 6G standard formulation should focus on user needs
- SEMI report: Global silicon wafer shipments increased by 6% in the third quarter of 2024
- OpenAI calls for a "North American Artificial Intelligence Alliance" to compete with China
- OpenAI is rumored to be launching a new intelligent body that can automatically perform tasks for users
- Arm: Focusing on efficient computing platforms, we work together to build a sustainable future
- AMD to cut 4% of its workforce to gain a stronger position in artificial intelligence chips
- NEC receives new supercomputer orders: Intel CPU + AMD accelerator + Nvidia switch
- RW61X: Wi-Fi 6 tri-band device in a secure i.MX RT MCU
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- CGD and Qorvo to jointly revolutionize motor control solutions
- CGD and Qorvo to jointly revolutionize motor control solutions
- Keysight Technologies FieldFox handheld analyzer with VDI spread spectrum module to achieve millimeter wave analysis function
- Infineon's PASCO2V15 XENSIV PAS CO2 5V Sensor Now Available at Mouser for Accurate CO2 Level Measurement
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- Advanced gameplay, Harting takes your PCB board connection to a new level!
- A new chapter in Great Wall Motors R&D: solid-state battery technology leads the future
- Naxin Micro provides full-scenario GaN driver IC solutions
- Interpreting Huawei’s new solid-state battery patent, will it challenge CATL in 2030?
- Are pure electric/plug-in hybrid vehicles going crazy? A Chinese company has launched the world's first -40℃ dischargeable hybrid battery that is not afraid of cold
- EEWORLD University ---- EDDP Motor Control Demonstration Platform Usage Guide
- SILICON LABS PG22-DK2503A EFM32PG22 Development Kit Unboxing Review
- Parsing STM32 library functions.pdf
- Design and production of "voice song request station" based on Raspberry Pi
- The light-off operation of the Nuvoton MCU assembly is invalid
- PD power supply detection and requirements
- High-paying job openings: A well-known American fashion brand of headphones is looking for electronic engineers, quality engineers, and firmware engineers who are fluent in English
- [National Technology N32G457 Review] OLED screen display driver and RTC electronic clock
- Things to note when writing programs based on TMS320 series DSP using C/C++
- "STM32 Library Development Practical Guide", a must-have for STM32 development!