Introduction to UDS
UDS (Unified Diagnostic Services) is a universal diagnostic service standard used for the diagnosis and debugging of automotive electronic control units (ECUs). UDS is a communication protocol defined by the ISO 14229 standard that can communicate on multiple buses such as CAN and LIN.
The UDS protocol defines a set of standard diagnostic services, including session control, diagnostic request, diagnostic response, and ECU programming. Through the UDS protocol, the diagnostic tool can send specific requests to the ECU, obtain the ECU's status information and fault codes, and diagnose and solve fault problems.
The UDS protocol is widely used in the diagnosis and debugging of automotive electronic control systems and has become an important part of modern automobile manufacturing.
The simple understanding is to conduct a question-and-answer session in accordance with the UDS protocol format, but the UDS protocol is complex and difficult to understand. Master the basic concepts and principles and know how to consult the standards. You don't need to remember them deliberately at the beginning. You will remember them after reading them many times.
The diagnostics shared in this article are all CAN bus diagnostic services, and the articles shared later are also
Why UDS is needed
Before the advent of the automotive diagnostic protocol, if your car broke down, you could only rely on the mechanic's experience, because the car parts would not tell you what was wrong with it.
But with the diagnostic protocol, once a component has a problem or has had a problem, it will store the fault information in the memory, and the repairman can read the fault information through the communication bus. For example, after an ECU experiences a high temperature or undervoltage fault, it will store the DTC (diagnostic trouble code) representing the fault, and optionally save the snapshot information when the fault occurs (such as the vehicle speed at that time, the voltage value read, etc.). The snapshot information helps test engineers and after-sales engineers find the cause of the fault. This greatly improves the repair efficiency of the repairman.
UDS Features
-
Support multiple buses: The UDS protocol can communicate on multiple buses such as CAN and LIN, and has strong applicability.
-
Improve diagnostic efficiency: The UDS protocol defines a set of standard diagnostic services that can improve the compatibility and efficiency of diagnostic tools.
-
Increase diagnostic functions: UDS protocol supports advanced diagnostic functions such as ECU programming, which can meet more complex diagnostic needs
UDS format introduction
Diagnostic Request format:
Format 1: [Service Identifier] + [Sub-function]
Format 2: [SID] + [DID]
Format 3: [SID] + [Sub-function] + [DID]
Common diagnostic services
Positive Response:
Diagnostic response is divided into positive and negative. A positive response means that the diagnostic request sent by the diagnostic instrument can be executed, while a negative response means that the ECU cannot execute the diagnostic request sent by the diagnostic instrument for some reason, and the reason for the failure to execute is contained in the negative response message.
Format 1: [SID + 0x40] + [Sub-function]
Format 2: [SID + 0x40] + [DID]
Format 3: [SID + 0x40] + [Sub-function] + [DID]
Negative Response:
The format of Negative Response is fixed to 3 bytes. The first byte is 0x7F, the second byte is the SID, and the third byte is the reason why this diagnostic service cannot be executed.
[0x7F] + [SID] + [NRC]
Common negative response codes
UDS addressing mode
There are two addressing modes for UDS: physical addressing and functional addressing
Physical addressing (point-to-point, one-to-one), access is performed based on different physical addresses, but only a single ECU node can be accessed, Tester is the SA source address, and ECU is the TA target address;
Function addressing (broadcast, one-to-many), access is based on different functions, it can access multiple ECU nodes, for standard frames, it is usually 0x7DF.
OSI Model of UDS
ISO 14229, also known as the UDS protocol, only defines the application layer and the session layer. UDS does not refer exclusively to ISO 14229-1. UDS includes seven sub-protocols under ISO 14229, of which ISO 14229-2 is still a session layer, so it is wrong to say that UDS only includes the application layer.
Previous article:What is SEooC? Introduction to SEooC as a software component development process
Next article:In-depth exploration of the scenarios and advantages of perception radar technology
- 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
- How to select all device bit numbers or nominal values in the SCH file for AD1904 version
- Testing methods and diagnostic analysis for DSP-containing circuit boards
- Fundamentals of Circuits and Analog Electronics Technology
- Need a low current charging IC and a Bluetooth chip with integrated MCU
- PCB Layout Guidelines
- LAUNCHXL-F28379D comprehensive routine
- 【DWIN Serial Port Screen】One of the Nucleic Acid Sampling and Registration Systems
- Live broadcast at 10 am today [TI's new generation MSP430 helps low-cost ultrasonic water meter]
- Playing with Zynq Serial 24 - Porting of User-Defined IP Cores
- [Only in Hangzhou, register now!] 12/21 (Friday) WPI Group/ON Semiconductor Industrial Internet of Things (IIoT) Application...