Automotive UDS Protocol Explained: ISO 14229, CAN Bus Diagnostics and ECU Communication
Modern vehicles contain dozens of Electronic Control Units (ECUs) responsible for managing engine operation, transmission control, braking systems, airbags, body electronics, driver assistance and other vehicle functions.
These electronic modules communicate through automotive networks and provide diagnostic interfaces that allow technicians and diagnostic equipment to identify faults, read operating parameters, perform actuator tests and carry out supported programming operations.
One of the most important diagnostic communication standards used in modern vehicles is Unified Diagnostic Services (UDS), defined by the ISO 14229 standard series.
UDS provides a standardized framework for diagnostic communication between a diagnostic tester and an electronic control unit. It supports functions such as reading identification information, retrieving diagnostic trouble codes, accessing measurement data, controlling diagnostic routines and performing supported ECU programming operations.
However, understanding UDS requires more than memorizing service identifiers. Technicians also need to understand diagnostic sessions, communication transport protocols, message addressing, security access, negative responses and timing requirements.
This guide explains the automotive UDS protocol, its relationship with CAN and Ethernet, important diagnostic services, ECU programming procedures and practical communication troubleshooting.
1. What Is the Automotive UDS Protocol?
UDS stands for Unified Diagnostic Services.
It is a standardized diagnostic communication protocol used by diagnostic testers to communicate with electronic control units installed in vehicles.
The main international standard is ISO 14229.
UDS defines diagnostic services that allow a tester to request information or perform supported diagnostic operations on an ECU.
What Can UDS Do?
- Read ECU identification information.
- Retrieve diagnostic trouble codes.
- Clear diagnostic trouble codes.
- Read real-time sensor data.
- Access extended diagnostic functions.
- Perform supported actuator tests.
- Execute ECU internal routines.
- Access protected diagnostic functions.
- Request ECU reset operations.
- Perform supported firmware programming.
- Verify diagnostic communication.
UDS is widely used in engine control modules, transmission control modules, ABS systems, airbag controllers, body control modules, electric vehicle controllers and other automotive electronic systems.
2. Understanding ISO 14229
ISO 14229 defines the Unified Diagnostic Services framework.
It separates diagnostic service definitions from the underlying vehicle communication network.
This means that UDS services can operate through different communication technologies when the appropriate transport and network layers are implemented.
Important Parts of the ISO 14229 Standard Series
- ISO 14229-1: Application layer diagnostic services.
- ISO 14229-2: Session layer services.
- ISO 14229-3: UDS implementation on CAN.
- ISO 14229-5: UDS over Internet Protocol.
The standard series contains additional parts covering other communication technologies and diagnostic implementations.
As of November 2026, ISO 14229-1:2026 is the published fourth edition of the application-layer standard. It defines data-link-independent diagnostic services for communication between a tester and an ECU.
Technicians should remember that the existence of a standardized UDS service does not mean every vehicle manufacturer implements every service in the same way.
Available functions, supported identifiers, security requirements and programming procedures remain dependent on the ECU implementation.
3. How Does UDS Communication Work?
UDS communication normally involves two main participants:
- Diagnostic Tester: The client that sends diagnostic requests.
- ECU: The server that processes requests and returns responses.
The tester sends a diagnostic request containing a Service Identifier (SID).
The ECU receives the request, checks whether the service is supported and determines whether the requested operation is permitted under the current conditions.
If the request is accepted, the ECU sends a positive response.
If the request cannot be processed, the ECU may return a negative response containing a Negative Response Code (NRC).
Basic UDS Communication Sequence
- The diagnostic tester establishes communication with the target ECU.
- The tester sends a UDS request.
- The ECU receives and evaluates the request.
- The ECU checks the requested service and operating conditions.
- The ECU processes the diagnostic operation.
- The ECU returns a positive or negative response.
- The diagnostic tester interprets the response.
Example: Reading ECU Identification
A diagnostic tester may request an ECU identification value using ReadDataByIdentifier.
Request: 22 F1 90 Positive Response: 62 F1 90 ...
In this example:
- 22 represents the ReadDataByIdentifier service.
- F190 is the requested Data Identifier.
- 62 represents the positive response service identifier.
The actual returned information depends on the ECU implementation.
4. Understanding UDS Service Identifiers (SID)
Every UDS diagnostic service is identified by a Service Identifier, commonly abbreviated as SID.
The SID tells the ECU what type of diagnostic operation the tester is requesting.
For example, 0x22 identifies ReadDataByIdentifier, while 0x19 identifies ReadDTCInformation.
Common UDS Service Identifiers
| SID | Service Name | Function |
|---|---|---|
| 0x10 | DiagnosticSessionControl | Change diagnostic session |
| 0x11 | ECUReset | Request an ECU reset |
| 0x14 | ClearDiagnosticInformation | Clear supported diagnostic information |
| 0x19 | ReadDTCInformation | Read diagnostic trouble codes |
| 0x22 | ReadDataByIdentifier | Read ECU data identifiers |
| 0x23 | ReadMemoryByAddress | Read supported memory locations |
| 0x27 | SecurityAccess | Request security access |
| 0x28 | CommunicationControl | Control supported communication functions |
| 0x2E | WriteDataByIdentifier | Write supported data identifiers |
| 0x2F | InputOutputControlByIdentifier | Control supported input/output functions |
| 0x31 | RoutineControl | Start, stop or request routine results |
| 0x34 | RequestDownload | Request a download operation |
| 0x35 | RequestUpload | Request an upload operation |
| 0x36 | TransferData | Transfer programming data |
| 0x37 | RequestTransferExit | Terminate a transfer operation |
| 0x3E | TesterPresent | Maintain diagnostic session activity |
| 0x85 | ControlDTCSetting | Control supported DTC setting functions |
These are standardized service identifiers, but the actual supported operations and parameters vary by ECU.
5. Understanding UDS Positive Responses
When an ECU successfully processes a diagnostic request, it normally returns a positive response.
For many standard UDS services, the positive response SID is calculated by adding 0x40 to the original request SID.
Examples
| Request SID | Positive Response SID | Service |
|---|---|---|
| 0x10 | 0x50 | DiagnosticSessionControl |
| 0x11 | 0x51 | ECUReset |
| 0x19 | 0x59 | ReadDTCInformation |
| 0x22 | 0x62 | ReadDataByIdentifier |
| 0x27 | 0x67 | SecurityAccess |
| 0x2E | 0x6E | WriteDataByIdentifier |
| 0x31 | 0x71 | RoutineControl |
| 0x34 | 0x74 | RequestDownload |
| 0x36 | 0x76 | TransferData |
For services with additional subfunctions or parameters, the complete positive response must also be interpreted according to the service definition.
6. Understanding Negative Response Codes (NRC)
When an ECU cannot process a UDS request, it may return a negative response.
The standard negative response structure begins with 0x7F, followed by the original request SID and a Negative Response Code.
Example
7F 22 31
This response means:
- 7F: Negative response indicator.
- 22: Original ReadDataByIdentifier request.
- 31: Request Out Of Range.
Common UDS Negative Response Codes
| NRC | Name | Meaning |
|---|---|---|
| 0x10 | GeneralReject | General request rejection |
| 0x11 | ServiceNotSupported | Requested service is unsupported |
| 0x12 | SubFunctionNotSupported | Requested subfunction is unsupported |
| 0x13 | IncorrectMessageLengthOrInvalidFormat | Invalid request length or format |
| 0x21 | BusyRepeatRequest | ECU is temporarily busy |
| 0x22 | ConditionsNotCorrect | Required operating conditions are not satisfied |
| 0x24 | RequestSequenceError | Request sequence is incorrect |
| 0x31 | RequestOutOfRange | Requested parameter or identifier is unsupported or outside the permitted range |
| 0x33 | SecurityAccessDenied | Required security conditions are not satisfied |
| 0x35 | InvalidKey | Security key was rejected |
| 0x36 | ExceedNumberOfAttempts | Maximum permitted attempts exceeded |
| 0x37 | RequiredTimeDelayNotExpired | Required security delay has not expired |
| 0x78 | ResponsePending | ECU needs additional processing time |
Important: NRC 0x78 Does Not Mean the Request Failed
ResponsePending indicates that the ECU has accepted the request for processing but cannot provide the final response within the original response timing.
The diagnostic tester should follow the applicable timing requirements and wait for the final response.
7. Understanding UDS Diagnostic Sessions
Diagnostic sessions determine which diagnostic functions are available to the tester.
An ECU may restrict certain operations to specific sessions.
Common Diagnostic Session Types
| Session | Subfunction | Typical Purpose |
|---|---|---|
| Default Session | 0x01 | Normal diagnostic communication |
| Programming Session | 0x02 | Supported software programming operations |
| Extended Diagnostic Session | 0x03 | Additional diagnostic functions |
| Safety System Diagnostic Session | 0x04 | Supported safety-related diagnostic functions |
Not every ECU supports every session type. Manufacturers can also implement additional session configurations according to their system requirements.
Example: Entering Extended Diagnostic Session
Request: 10 03 Positive Response: 50 03 ...
The request asks the ECU to enter the extended diagnostic session.
If the request is accepted, the ECU returns a positive response.
Why Are Diagnostic Sessions Important?
Some functions may be unavailable in the default session.
For example:
- Advanced identification information.
- Additional diagnostic data.
- Actuator control.
- Routine execution.
- Selected programming functions.
The exact access permissions are determined by the ECU implementation.
8. What Is UDS SecurityAccess (0x27)?
SecurityAccess is a UDS service used to control access to protected diagnostic functions.
It can require an authentication exchange before the ECU permits certain operations.
Common SecurityAccess Process
- The tester requests a security seed from the ECU.
- The ECU returns the seed when the requested security level is available.
- The tester processes the seed using the authorized security algorithm.
- The tester sends the calculated key.
- The ECU evaluates the key.
- If accepted, the requested security level is unlocked.
Important Security Considerations
Security algorithms and access levels are manufacturer-dependent.
Different ECUs can use different authentication mechanisms, seed-key calculations, attempt limits and delay periods.
A valid diagnostic session does not automatically mean that protected programming functions are available.
SecurityAccess should be performed using authorized manufacturer or service-provider procedures.
9. Understanding ReadDataByIdentifier (0x22)
ReadDataByIdentifier is one of the most frequently used UDS services.
It allows a diagnostic tester to request data associated with a specific Data Identifier (DID).
A DID is normally represented by a 16-bit value.
Common Uses
- Read vehicle identification information.
- Read ECU hardware numbers.
- Read software version information.
- Read calibration identification.
- Read selected sensor values.
- Read manufacturer-specific diagnostic data.
Example: Requesting a VIN
Request: 22 F1 90
F190 is commonly associated with the Vehicle Identification Number DID.
The response begins with:
62 F1 90
The remaining bytes contain the returned data.
Not every ECU supports every DID, and some manufacturer-specific identifiers have different meanings.
10. Understanding WriteDataByIdentifier (0x2E)
WriteDataByIdentifier allows a diagnostic tester to write data associated with a supported DID.
Unlike ReadDataByIdentifier, this service modifies ECU data.
Typical Applications
- Writing supported configuration values.
- Updating selected identification information.
- Configuring certain module parameters.
- Performing manufacturer-defined data operations.
Some write operations require an extended diagnostic session or security authorization.
The ECU may also check whether the requested data length, format and value are valid.
Incorrect configuration data can affect ECU operation, so write operations should follow the correct manufacturer procedures.
11. Understanding ReadDTCInformation (0x19)
ReadDTCInformation is used to retrieve diagnostic trouble code information stored by an ECU.
It allows diagnostic equipment to request information about detected faults and their associated status.
Information That May Be Available
- Stored diagnostic trouble codes.
- DTC status information.
- Fault occurrence information.
- Supported environmental data.
- Freeze-frame information.
- Extended diagnostic records.
Understanding DTC Status
A DTC may have several status bits describing its current diagnostic state.
Depending on the ECU implementation, status information can indicate whether:
- The fault is currently present.
- The fault has been confirmed.
- The fault has occurred since the last clear operation.
- The fault is pending confirmation.
- The fault has failed during a diagnostic test cycle.
Reading the DTC number alone is not always sufficient to understand the actual fault condition.
Technicians should also inspect the status information and relevant environmental data.
12. Understanding ClearDiagnosticInformation (0x14)
ClearDiagnosticInformation is used to clear supported diagnostic information from an ECU.
It is commonly used after repairing a fault to check whether the corresponding diagnostic condition returns.
Typical Procedure
- Read and record the existing DTC information.
- Identify the fault and perform the necessary repair.
- Check whether the ECU permits clearing under the current conditions.
- Send the clear diagnostic information request.
- Verify the positive response.
- Recheck the DTC status.
- Perform the required vehicle test or operating cycle.
Clearing a DTC does not repair the underlying electrical or mechanical problem.
If the original fault remains, the ECU may detect it again.
13. Understanding RoutineControl (0x31)
RoutineControl allows a diagnostic tester to request the execution of supported ECU routines.
It is commonly used for manufacturer-specific diagnostic and maintenance operations.
Three Main Subfunctions
- 0x01: StartRoutine.
- 0x02: StopRoutine.
- 0x03: RequestRoutineResults.
Examples of Routine Applications
- Selected actuator tests.
- Calibration procedures.
- System initialization.
- Memory-related diagnostic checks.
- Component adaptation.
- Manufacturer-specific maintenance routines.
The routine identifier and associated parameters determine what the ECU actually performs.
RoutineControl is not a universal command for every actuator or programming operation.
14. Understanding ECUReset (0x11)
ECUReset allows a diagnostic tester to request a supported reset operation.
Common Reset Subfunctions
- 0x01: HardReset.
- 0x02: KeyOffOnReset.
- 0x03: SoftReset.
Additional reset types may be available depending on the standard version and ECU implementation.
Why Is ECUReset Used?
- Restarting an ECU after a supported configuration change.
- Completing certain diagnostic procedures.
- Restarting an application after programming.
- Returning the ECU to a required operating state.
A reset request may temporarily interrupt communication.
Technicians should allow sufficient time for the ECU to restart before attempting another diagnostic operation.
15. Understanding TesterPresent (0x3E)
TesterPresent is used to indicate that the diagnostic tester remains active during a diagnostic session.
Some ECUs automatically return to the default session when no diagnostic request is received for a specified period.
TesterPresent can help maintain the required session activity.
Example
Request: 3E 00 Positive Response: 7E 00
The subfunction 0x00 requests the normal positive response.
Another commonly used form suppresses the positive response when supported.
TesterPresent timing should follow the ECU's diagnostic requirements. Sending it too slowly may allow a session timeout, while unnecessary high-frequency requests can create additional bus traffic.
16. Understanding UDS Communication Over CAN
CAN stands for Controller Area Network.
It is one of the most widely used communication networks in automotive electronics.
CAN allows multiple electronic control units to exchange information through a shared communication bus.
UDS can use CAN as its underlying communication network through the appropriate diagnostic transport implementation.
Important CAN Characteristics
- Multi-node communication.
- Message-based communication.
- Identifier-based arbitration.
- Built-in error detection.
- Support for real-time automotive applications.
- Widely used in vehicle control networks.
However, the CAN protocol itself does not define all the diagnostic services used by UDS.
UDS defines the diagnostic requests and responses, while the CAN transport implementation handles the transfer of those messages through the network.
17. What Is ISO-TP?
ISO-TP is the commonly used name for ISO 15765-2, which defines transport protocol functions for diagnostic communication over CAN.
It allows diagnostic messages larger than a single CAN frame to be transmitted.
This is important because many UDS requests and responses contain more data than can fit into one conventional CAN frame.
Main ISO-TP Frame Types
| Frame Type | Function |
|---|---|
| Single Frame (SF) | Transfers a message that fits into one frame |
| First Frame (FF) | Starts a multi-frame transmission |
| Consecutive Frame (CF) | Transfers the remaining message data |
| Flow Control (FC) | Controls the transmission of consecutive frames |
How Multi-Frame Communication Works
- The sender determines that the diagnostic message exceeds the single-frame capacity.
- The sender transmits a First Frame.
- The receiver processes the First Frame.
- The receiver returns a Flow Control frame.
- The sender transmits Consecutive Frames.
- The receiver reassembles the complete diagnostic message.
Understanding Flow Control Parameters
ISO-TP Flow Control includes important parameters.
- Flow Status: Indicates whether transmission can continue, should wait or must stop.
- Block Size: Defines how many consecutive frames may be sent before another flow control response is required.
- STmin: Specifies the minimum separation time between consecutive frames.
Incorrect transport-layer configuration can cause diagnostic communication failures even when the ECU is functioning normally.
18. Understanding CAN vs CAN FD
Traditional CAN and CAN FD are both used in automotive communication networks.
CAN FD extends the original CAN architecture by supporting larger data fields and higher data-phase bit rates under supported conditions.
| Feature | Classic CAN | CAN FD |
|---|---|---|
| Maximum Data Field | 8 bytes | 64 bytes |
| Bit Rate | Single nominal bit rate | Optional faster data phase |
| Communication | Frame-based | Frame-based |
| Automotive Use | Widely established | Increasingly used in modern vehicles |
| Diagnostic Transport | ISO-TP implementation | Applicable CAN FD transport implementation |
CAN FD can reduce the number of frames needed to transfer larger diagnostic messages.
However, the ECU, diagnostic interface and communication configuration must all support the relevant CAN FD operation.
19. What Is DoIP?
DoIP stands for Diagnostics over Internet Protocol.
It is defined by the ISO 13400 standard series.
DoIP allows automotive diagnostic communication to operate over IP-based networks, commonly using Ethernet.
It is particularly relevant to modern vehicles that require faster diagnostic communication and support more complex electronic architectures.
Main DoIP Functions
- Vehicle identification and discovery.
- Diagnostic tester communication.
- Routing activation.
- Diagnostic message transport.
- Communication with supported target ECUs.
How DoIP Communication Works
- The diagnostic tester connects to the vehicle network.
- The tester discovers the supported DoIP gateway or diagnostic endpoint.
- The tester establishes the required communication connection.
- Routing activation is performed where required.
- UDS diagnostic messages are exchanged through the IP transport.
- The ECU returns diagnostic responses.
DoIP does not replace UDS. It provides a different communication transport for UDS diagnostic services.
20. CAN Diagnostics vs DoIP Diagnostics
| Feature | UDS over CAN | UDS over DoIP |
|---|---|---|
| Communication Network | CAN | IP/Ethernet |
| Transport | ISO 15765-2 | ISO 13400 |
| Typical Interface | CAN diagnostic interface | Ethernet diagnostic interface |
| Message Transfer | CAN frames and transport segmentation | IP-based diagnostic messages |
| Typical Application | Traditional ECU diagnostics | Modern high-speed vehicle diagnostics |
The same UDS application services can be used through different supported transport mechanisms.
The selected interface must match the vehicle's network architecture and the ECU's diagnostic implementation.
21. Understanding UDS ECU Programming Services
UDS includes services that can support ECU software programming and memory transfer operations.
These functions are commonly used during ECU firmware updates and manufacturer-defined reprogramming procedures.
Important Programming Services
| SID | Service | Purpose |
|---|---|---|
| 0x10 | DiagnosticSessionControl | Enter a supported programming session |
| 0x27 | SecurityAccess | Request authorized programming access |
| 0x31 | RoutineControl | Execute supported programming routines |
| 0x34 | RequestDownload | Request a data download operation |
| 0x36 | TransferData | Transfer data blocks |
| 0x37 | RequestTransferExit | Complete the transfer sequence |
| 0x11 | ECUReset | Request a supported ECU restart |
Important: Programming Services Do Not Define the Entire Flashing Procedure
The UDS standard defines diagnostic communication services, but the manufacturer determines the actual programming sequence, memory addressing, security requirements, supported data formats and validation procedures.
Different ECUs can therefore use different programming procedures even when they support the same UDS services.
22. Understanding RequestDownload (0x34)
RequestDownload is used by a diagnostic tester to request permission to transfer data into an ECU.
The request can contain parameters describing the memory address and transfer size.
Typical Information
- Data format identifier.
- Address and length format identifier.
- Memory address.
- Memory size.
The ECU evaluates the request according to its supported memory programming rules.
If accepted, the ECU returns information about the permitted transfer parameters.
Not every memory area is necessarily accessible through this service.
23. Understanding TransferData (0x36)
TransferData is used to transfer data blocks during an established programming operation.
The tester sends the data in a sequence of transfer requests.
Each request contains a block sequence counter and the corresponding data.
Typical Transfer Process
- The ECU accepts a supported download request.
- The tester prepares the required data blocks.
- The first TransferData request is sent.
- The ECU receives and processes the block.
- The ECU returns a response.
- The tester continues with subsequent blocks.
- The transfer continues until the required data has been transmitted.
TransferData itself does not guarantee that the entire firmware image is valid.
Additional verification or programming routines may be required.
24. Understanding RequestTransferExit (0x37)
RequestTransferExit indicates that the tester has completed the current data transfer sequence.
The ECU processes the request according to its programming implementation.
Depending on the manufacturer, additional validation, memory programming completion or routine execution may be required before the ECU can accept the new application.
A successful transfer exit response should not automatically be interpreted as proof that the entire ECU programming process has completed successfully.
25. Understanding UDS Timing Parameters
Diagnostic communication depends on timing requirements.
An ECU may need more time to complete certain operations than others.
Important UDS Timing Parameters
- P2 Server: Maximum time associated with the initial server response under the applicable conditions.
- P2* Server: Extended response timing used when additional processing time is required.
- S3 Server: Session timeout monitoring associated with diagnostic activity.
The tester must respect the timing information and rules applicable to the diagnostic session and transport protocol.
Why Do Timing Errors Occur?
- Incorrect diagnostic tester configuration.
- ECU processing delays.
- Communication bus congestion.
- Incorrect response timeout settings.
- Transport-layer problems.
- Missing TesterPresent messages.
- Unstable diagnostic connections.
For example, a tester that expects an immediate response from a slow programming routine may incorrectly report a communication timeout.
26. What Is Functional Addressing and Physical Addressing?
UDS communication can use different addressing methods depending on the transport implementation.
Physical Addressing
Physical addressing targets a specific ECU.
It is commonly used when reading or modifying information belonging to an individual control module.
Functional Addressing
Functional addressing sends a diagnostic request to a group or functionally defined set of ECUs.
It is commonly used for certain general diagnostic requests where supported.
Why Is Addressing Important?
Incorrect addressing can result in:
- No response from the intended ECU.
- Communication with the wrong module.
- Unexpected multiple responses.
- Incorrect diagnostic interpretation.
Diagnostic testers must use the correct request and response addressing configuration.
27. Understanding UDS Communication Failures
UDS communication problems can originate from several different parts of the diagnostic system.
Common Symptoms
- No response from the ECU.
- Incorrect response SID.
- Repeated negative responses.
- Diagnostic session cannot be changed.
- Security access is rejected.
- ReadDataByIdentifier fails.
- Multi-frame communication is interrupted.
- Programming transfer stops unexpectedly.
- Communication disappears after an ECU reset.
Possible Causes
- Incorrect CAN wiring.
- CAN-H and CAN-L connection problems.
- Incorrect diagnostic addressing.
- Unsupported UDS service.
- Incorrect session selection.
- Security access restrictions.
- Incorrect transport-layer parameters.
- Unstable ECU power supply.
- Incorrect timing configuration.
- Gateway communication problems.
28. How to Diagnose UDS Communication Problems
A structured diagnostic procedure can help identify whether the problem originates from the physical network, transport layer, diagnostic service or ECU application.
Step 1: Verify the Diagnostic Interface
Confirm that the diagnostic interface supports the communication technology required by the target vehicle.
Check whether the vehicle requires CAN, CAN FD, Ethernet or another supported network.
Step 2: Check the Physical Connections
Inspect the relevant diagnostic connector, power supply, ground and communication lines.
For CAN communication, verify CAN-H and CAN-L connections according to the wiring diagram.
Step 3: Verify CAN Bus Conditions
Where appropriate, use an oscilloscope to inspect the communication signals.
Check for abnormal signal levels, excessive interference and communication interruptions.
Step 4: Verify ECU Addressing
Confirm the correct request ID, response ID and addressing format.
For DoIP, also verify the vehicle identification, IP connection and routing activation requirements.
Step 5: Check the UDS Session
Determine whether the ECU is operating in the expected diagnostic session.
Some services are only available in specific sessions.
Step 6: Interpret Negative Response Codes
If the ECU returns a negative response, analyze the NRC before attempting another request.
The NRC often provides useful information about unsupported services, invalid parameters or unmet operating conditions.
Step 7: Check Diagnostic Timing
Verify P2 and P2* handling, session timeout settings and any required TesterPresent activity.
Step 8: Investigate the ECU
If the network and diagnostic configuration are correct, investigate the ECU power supply, internal software status and relevant hardware conditions.
29. UDS vs OBD-II: What Is the Difference?
UDS and OBD-II are both used in automotive diagnostics, but they have different scopes.
OBD-II
OBD-II provides standardized emissions-related diagnostic functions and information.
It allows compatible diagnostic equipment to retrieve supported powertrain information and emissions-related trouble codes.
UDS
UDS provides a broader diagnostic service framework used by vehicle manufacturers across different electronic control systems.
It supports manufacturer-specific diagnostic implementations and advanced ECU functions.
| Feature | OBD-II | UDS |
|---|---|---|
| Main Purpose | Standardized emissions diagnostics | Broader ECU diagnostics and control |
| Common Standard | ISO 15031 and related standards | ISO 14229 |
| Diagnostic Coverage | Primarily emissions-related systems | Multiple vehicle electronic systems |
| Manufacturer-Specific Functions | Limited within standardized OBD functions | Extensive manufacturer-specific implementation |
| Programming Functions | Not the general ECU reprogramming framework | Supports programming-related diagnostic services |
Modern diagnostic equipment may support both OBD-II and UDS, depending on the vehicle and diagnostic interface.
30. UDS in Modern Automotive Electronic Architectures
Vehicle electronic architectures are becoming increasingly complex.
Modern vehicles may contain centralized computing platforms, multiple network gateways, high-speed Ethernet connections and dozens of software-controlled electronic modules.
UDS remains an important diagnostic framework within these architectures.
Common Applications
- Engine control modules.
- Automatic transmission controllers.
- ABS and ESC systems.
- Airbag control modules.
- Body control modules.
- Electric vehicle battery management systems.
- Electric drive controllers.
- ADAS control modules.
- Central gateway modules.
With the development of more software-intensive vehicles, diagnostic communication is also expanding toward Ethernet-based and service-oriented approaches.
For example, AUTOSAR Adaptive Platform supports UDS over DoIP and also introduces Service-Oriented Vehicle Diagnostics (SOVD) as another diagnostic approach for modern vehicle architectures.
31. Professional Equipment for UDS Diagnostics and ECU Programming
Professional UDS diagnosis requires compatible diagnostic hardware and software.
The appropriate equipment depends on the target ECU, communication network and required operation.
Common Equipment
- Automotive diagnostic interface.
- CAN communication adapter.
- CAN FD-compatible interface where required.
- DoIP-compatible diagnostic interface where required.
- Regulated bench power supply.
- Digital multimeter.
- Automotive oscilloscope.
- ECU programming interface.
- Manufacturer diagnostic software.
- ECU wiring diagrams and technical documentation.
What Should Be Considered When Selecting an ECU Programming Tool?
- Supported ECU and TCU models.
- Supported microcontroller families.
- OBD, Bench and Boot operating modes.
- Supported communication protocols.
- Flash and EEPROM read/write capabilities.
- Supported programming procedures.
- Software compatibility.
- Original data backup functions.
- Technical support and documentation.
UDS support alone does not guarantee that a programming tool can read or write every ECU. Actual compatibility depends on the hardware, software, security requirements and supported programming method.
32. Common Mistakes When Working With UDS
Mistake 1: Assuming Every ECU Supports the Same Services
UDS defines standardized services, but manufacturers determine which services are available and how they are implemented.
Mistake 2: Confusing UDS With CAN
UDS defines diagnostic services. CAN is a communication network that can transport those services.
Mistake 3: Ignoring Diagnostic Sessions
A service may be supported by an ECU but unavailable in the current session.
Mistake 4: Misinterpreting NRC 0x78
ResponsePending indicates that the ECU needs additional processing time. It should not automatically be treated as a failed request.
Mistake 5: Ignoring ISO-TP Flow Control
Multi-frame diagnostic messages require correct transport-layer handling.
Mistake 6: Assuming SecurityAccess Is Universal
Seed-key algorithms and security requirements are manufacturer-dependent.
Mistake 7: Assuming Successful Data Transfer Means Successful Programming
Programming may require additional verification, memory validation and ECU initialization.
33. Conclusion
The Automotive UDS Protocol is one of the most important diagnostic communication frameworks used in modern vehicle electronics.
Based on ISO 14229, UDS provides standardized services for reading ECU information, retrieving diagnostic trouble codes, controlling supported routines, accessing protected diagnostic functions and performing ECU programming operations.
Understanding its service identifiers, diagnostic sessions, positive responses, negative response codes and timing requirements is essential for accurate automotive diagnostics.
It is equally important to understand the communication technologies that transport UDS messages, including CAN, ISO-TP, CAN FD and DoIP.
For professional ECU and TCU programming, technicians should combine protocol knowledge with correct hardware connections, stable power supplies, compatible software and manufacturer-specific programming procedures.
As automotive electronic architectures continue to evolve, knowledge of UDS and modern diagnostic communication will remain valuable for ECU repair, module programming and advanced automotive electronics troubleshooting.
Frequently Asked Questions
Q1: What does UDS stand for in automotive diagnostics?
UDS stands for Unified Diagnostic Services. It is a standardized diagnostic communication framework defined by the ISO 14229 standard series.
Q2: What is ISO 14229?
ISO 14229 is the international standard series defining Unified Diagnostic Services for communication between diagnostic testers and automotive ECUs.
Q3: What is the difference between UDS and CAN?
UDS defines diagnostic services, while CAN is a communication network that can transport UDS messages between a tester and an ECU.
Q4: What is ISO-TP?
ISO-TP is the transport protocol defined by ISO 15765-2. It allows diagnostic messages larger than a single CAN frame to be transferred over CAN.
Q5: What is the UDS service 0x22?
0x22 is ReadDataByIdentifier. It allows a diagnostic tester to request data associated with a supported ECU Data Identifier.
Q6: What is UDS service 0x19?
0x19 is ReadDTCInformation. It allows a tester to retrieve diagnostic trouble codes and associated status information.
Q7: What is UDS service 0x27?
0x27 is SecurityAccess. It is used to control access to protected diagnostic functions through an ECU-specific security mechanism.
Q8: What is UDS service 0x31?
0x31 is RoutineControl. It allows the tester to start, stop or request results from supported ECU routines.
Q9: What is UDS service 0x34?
0x34 is RequestDownload. It allows a tester to request an ECU data download operation as part of a supported programming procedure.
Q10: What does NRC 0x22 mean?
NRC 0x22 means ConditionsNotCorrect. The ECU has determined that the required operating conditions for the requested operation are not satisfied.
Q11: What does NRC 0x78 mean?
NRC 0x78 means ResponsePending. The ECU requires additional processing time before providing the final response.
Q12: What is the default UDS diagnostic session?
The default diagnostic session is identified by subfunction 0x01 of DiagnosticSessionControl.
Q13: What is the difference between extended and programming sessions?
An extended diagnostic session provides additional diagnostic functions, while a programming session is used for supported ECU software programming operations. Exact permissions depend on the ECU.
Q14: What is DoIP?
DoIP stands for Diagnostics over Internet Protocol. It transports automotive diagnostic communication over IP-based networks, commonly Ethernet.
Q15: Can UDS operate over Ethernet?
Yes. UDS can operate over Ethernet using the DoIP transport defined by the ISO 13400 standard series.
Q16: What is TesterPresent used for?
TesterPresent is used to maintain diagnostic session activity and help prevent a supported ECU session from timing out.
Q17: Can UDS read and write ECU Flash memory?
UDS includes programming-related services such as RequestDownload and TransferData. Actual Flash memory access depends on the ECU programming implementation and security permissions.
Q18: Does every ECU support UDS?
No. Diagnostic protocols and supported services depend on the ECU generation, manufacturer and vehicle architecture.
Q19: What causes UDS communication failure?
Possible causes include incorrect addressing, CAN wiring problems, unsupported services, session restrictions, security requirements, transport-layer configuration errors and unstable ECU power.
Q20: Is UDS the same as OBD-II?
No. OBD-II focuses on standardized emissions-related diagnostics, while UDS provides a broader diagnostic service framework for multiple automotive electronic systems.
Technical References
- ISO: ISO 14229-1:2026 – Unified Diagnostic Services, Application Layer
- ISO: ISO 14229-2:2021 – Session Layer Services
- ISO: Road Vehicle Diagnostic and Maintenance Standards
- AUTOSAR: Explanation of Adaptive Platform Design – Diagnostics
- AUTOSAR: Specification of Diagnostics
- AUTOSAR: Adaptive Platform and Diagnostic Management
Explore More ECU Programming and Automotive Electronics Resources
Visit KT-PROG.com for more technical information about ECU and TCU programming, automotive diagnostic communication, microcontroller architecture, Flash and EEPROM memory and professional electronic control module diagnostics.
Explore our ECU Programming Products, learn about OBD, Bench and Boot Operating Modes, and review the Supported ECU and TCU List.
For additional software information and technical articles, visit Software and KT-PROG Blog.
