UDS Protocol Services: A Practical Guide to ISO 14229
UDS Protocol Services give diagnostic testers a standardized way to communicate with electronic control units (ECUs) in a vehicle. Using Unified Diagnostic Services (UDS), an engineer can request ECU identification data, read diagnostic trouble codes, change diagnostic sessions, run supported routines, manage access permissions and perform ECU programming operations.
For automotive software engineers, understanding UDS means understanding more than a list of service IDs. You also need to know how a request is structured, which session is active, what security conditions apply, how the ECU responds, and which transport protocol carries the diagnostic message. This guide explains those concepts with practical request-and-response examples.
Table of Contents
What Is UDS?
Unified Diagnostic Services (UDS) is a vehicle diagnostic communication protocol standardized by the ISO 14229 series. It defines application-level diagnostic services that a diagnostic tester, acting as a client, can request from an ECU, acting as a server.
A UDS service represents an operation. For example, a tester can request a diagnostic session change, read a data identifier, retrieve DTC information or initiate a supported routine. The ECU evaluates the request and returns a positive response or a negative response.
UDS is used throughout vehicle development and production, as well as in service and repair workflows. Depending on the ECU implementation, it can support activities such as:
Reading ECU identification and configured data values.
Retrieving diagnostic trouble codes and related status information.
Clearing selected diagnostic information.
Switching between diagnostic sessions.
Controlling selected communication functions.
Running ECU-specific routines and actuator tests.
Managing diagnostic access permissions.
Transferring data during supported ECU programming operations.
A key point is that the standard defines the service framework, not every vehicle-specific detail. The actual DIDs, routine identifiers, supported sessions, security levels, parameter formats and programming sequence are usually defined in the ECU or OEM diagnostic specification.
Where UDS Fits in the Diagnostic Stack
UDS defines what diagnostic operation is requested. It does not, by itself, define the physical network or every transport detail used to carry the request.
For example, a vehicle may carry UDS messages over CAN using the transport and network-layer services specified by ISO 15765-2. Ethernet-based diagnostic communication can use DoIP, specified by the ISO 13400 series.
| Layer or technology | Role |
|---|---|
| UDS application layer | Defines diagnostic services, request parameters and response behaviour |
| UDS session-layer services | Support diagnostic session-related communication behaviour |
| ISO-TP / DoCAN | Segments and reassembles diagnostic messages over CAN |
| DoIP | Carries diagnostic communication over IP networks |
| CAN / CAN FD / Ethernet | Provides the underlying vehicle network technology, according to the selected communication architecture |
UDS over CAN
When UDS is transported over CAN, ISO-TP handles messages that do not fit into a single CAN frame. It uses transport mechanisms such as First Frames, Consecutive Frames and Flow Control frames to transfer larger payloads.
This is useful for diagnostic responses containing multiple data records and for programming operations that transfer blocks of data.
UDS over DoIP
DoIP means Diagnostic Communication over Internet Protocol. It supports diagnostic communication over IP-based vehicle networks, commonly using automotive Ethernet and gateways. The diagnostic service remains UDS; DoIP provides the network communication path.
Remember: UDS and ISO-TP are not competing protocols. They operate at different layers and perform different jobs.
How a UDS Request and Response Work
A basic UDS exchange follows a client-server pattern:
The diagnostic tester prepares a request.
The first byte identifies the requested service.
Any required sub-function, identifier or parameter bytes follow.
The ECU checks whether the service and parameters are supported.
The ECU checks session, security, authentication and operating-condition requirements, where applicable.
The ECU processes the request and returns a positive or negative response.
Understanding the Service Identifier
The first byte in a UDS application-layer message is the Service Identifier (SID). It identifies the requested diagnostic operation.
For many services, the positive response SID is the request SID plus 0x40. For example:
Request: 22 F1 90
Request SID: 22
Data Identifier: F1 90
Positive response: 62 F1 90 [data bytes...]
Response SID: 62
Here, 0x22 is ReadDataByIdentifier and 0x62 is its positive response SID. The DID 0xF190 is commonly used for the VIN in many diagnostic profiles, but the ECU's diagnostic description must confirm the identifier and data format.
This +0x40 pattern is common, not a substitute for checking each service's defined response format.
UDS Protocol Services: Service Identifier Reference
The following table lists commonly encountered UDS services. It is a practical reference, not a complete catalogue of all services, sub-functions or reserved values.
| SID | Service | Purpose |
|---|---|---|
| `0x10` | DiagnosticSessionControl | Requests a diagnostic session change |
| `0x11` | ECUReset | Requests a supported ECU reset |
| `0x14` | ClearDiagnosticInformation | Requests clearing of specified diagnostic information |
| `0x19` | ReadDTCInformation | Reads DTC-related information |
| `0x22` | ReadDataByIdentifier | Reads data associated with one or more DIDs |
| `0x23` | ReadMemoryByAddress | Reads a supported memory range |
| `0x27` | SecurityAccess | Requests a configured security access procedure |
| `0x28` | CommunicationControl | Controls specified communication functions |
| `0x29` | Authentication | Performs a supported diagnostic authentication procedure |
| `0x2A` | ReadDataByPeriodicIdentifier | Requests periodic data transmission |
| `0x2C` | DynamicallyDefineDataIdentifier | Defines a dynamic DID using supported data references |
| `0x2E` | WriteDataByIdentifier | Writes data associated with a DID |
| `0x2F` | InputOutputControlByIdentifier | Requests control of a supported input or output |
| `0x31` | RoutineControl | Starts, stops or requests results from an ECU routine |
| `0x34` | RequestDownload | Initiates a download to the ECU |
| `0x35` | RequestUpload | Initiates an upload from the ECU |
| `0x36` | TransferData | Transfers data blocks |
| `0x37` | RequestTransferExit | Ends a data-transfer sequence |
| `0x3E` | TesterPresent | Indicates that the tester remains active |
| `0x85` | ControlDTCSetting | Controls DTC setting, where supported |
| `0x86` | ResponseOnEvent | Configures supported event-triggered responses |
| `0x87` | LinkControl | Requests a supported data-link parameter change |
Not every ECU supports every service. A service may also be restricted to a particular session, security level, authentication state or vehicle operating condition.
Diagnostic Session Management
The DiagnosticSessionControl service (0x10) allows a tester to request a change to the ECU's diagnostic session. Different sessions can expose different diagnostic functions.
Common standardized session type values include:
| Session | Sub-function value | Typical use |
|---|---|---|
| Default Session | `0x01` | Basic diagnostic access |
| Programming Session | `0x02` | ECU programming functions, when supported |
| Extended Diagnostic Session | `0x03` | Additional diagnostic services |
| Safety System Diagnostic Session | `0x04` | Diagnostic functions associated with safety systems, if implemented |
The ECU's diagnostic specification determines which sessions it supports and what each session permits.
Example: Request an extended diagnostic session
Tester -> ECU: 10 03
ECU -> Tester: 50 03 [session timing parameters]
The tester sends 0x10 with sub-function 0x03. If the ECU accepts the request, it responds with 0x50, the positive response SID, followed by the session information defined for the service.
Changing the session does not automatically grant access to every diagnostic operation. Security access, authentication and operating-condition checks may still apply.
Reading and Writing ECU Data
ReadDataByIdentifier (0x22)
ReadDataByIdentifier allows the tester to request data associated with a Data Identifier (DID). A DID is a 16-bit identifier whose meaning and data layout are defined by the relevant ECU or vehicle diagnostic description.
Depending on the ECU, DIDs may expose:
VIN or ECU identification information.
Hardware and software part numbers.
Software version or bootloader information.
Sensor measurements or operating values.
Calibration and configuration information.
Example:
Request: 22 F1 90
Positive response: 62 F1 90 [VIN data...]
The bytes after the DID are the returned data. Their length, encoding, scaling and byte order must be obtained from the ECU diagnostic specification or ODX data. Do not assume that all DIDs use the same format.
WriteDataByIdentifier (0x2E)
WriteDataByIdentifier writes a value associated with a supported DID. Because a write can change ECU configuration or behaviour, it is commonly restricted by session, security, authentication or operating-condition requirements.
Before sending a write request, confirm:
The DID is writable.
The requested data length and encoding are correct.
The value is within the permitted range.
The required diagnostic session is active.
Required security or authentication has been completed.
The operation is safe for the current test environment.
A positive response confirms the ECU accepted the request according to its implementation; it does not replace verification that the resulting ECU state is correct.
Reading and Clearing Diagnostic Trouble Codes
ReadDTCInformation (0x19)
ReadDTCInformation retrieves diagnostic trouble-code information stored by the ECU. The service contains multiple sub-functions for different kinds of DTC information, such as status information, snapshots and extended records, depending on ECU support.
A DTC is evidence that the ECU's diagnostic logic detected a condition. It is not automatically a complete explanation of the root cause. Engineers should interpret the code together with its status bits, environmental data, freeze-frame or snapshot records, and the applicable diagnostic specification.
ClearDiagnosticInformation (0x14)
ClearDiagnosticInformation requests that the ECU clear specified diagnostic information. The request may identify a DTC group or another supported scope.
Clearing a DTC does not repair the underlying fault. If the fault condition remains, the ECU may detect it again and store the DTC. In development and validation, capture relevant DTC records before clearing them so that useful fault evidence is not lost.
Security Access and Authentication
Diagnostic access must be controlled because some services can change ECU configuration, disable communication, run routines or program memory.
SecurityAccess (0x27)
SecurityAccess commonly uses a seed-and-key procedure:
The tester requests a seed using a supported request sub-function.
The ECU returns a seed value.
The tester calculates a key using the agreed algorithm and secret material.
The tester sends the key using the corresponding send-key sub-function.
The ECU validates the key and grants the configured access level if successful.
The algorithm, key material, seed and key lengths, access levels, retry limits and delay rules are implementation-specific. The SID alone does not reveal them.
SecurityAccess is an access-control mechanism; it should not be described as encryption of the entire diagnostic connection.
Authentication (0x29)
Authentication is a separate UDS service used by implementations that support the relevant authentication procedures. It can support certificate-based or other proof-based diagnostic authentication mechanisms, depending on the applicable standard edition and vehicle security design.
SecurityAccess and Authentication are not interchangeable. A vehicle programme may use one, the other, or both in a broader diagnostic security architecture. Always follow the OEM security specification and approved tooling process.
Routine Control and ECU Programming
RoutineControl (0x31)
RoutineControl lets a tester request an ECU-defined routine. Common control types are:
| Control type | Value | Purpose |
|---|---|---|
| StartRoutine | `0x01` | Starts a supported routine |
| StopRoutine | `0x02` | Stops a supported routine |
| RequestRoutineResults | `0x03` | Requests routine status or results |
A Routine Identifier (RID) identifies the routine. The meaning of an RID and the parameters it accepts are normally defined by the ECU or OEM diagnostic specification.
Routines can be used for operations such as memory checks, actuator tests, calibration procedures or other diagnostic tasks. Their preconditions matter: some routines can alter ECU state or affect vehicle operation.
UDS services used for ECU programming
UDS includes services used in diagnostic data-transfer sequences. A simplified programming flow may look like this:
Enter a supported programming session using
0x10.Complete required security or authentication steps.
Prepare or erase the target memory using an ECU-supported routine.
Request a download using
0x34.Transfer data blocks using
0x36.End the transfer using
0x37.Run any required integrity or verification routines.
Reset the ECU using
0x11, if the programming procedure requires it.
This is an explanatory sequence, not a universal flashing procedure. The actual order, memory address format, block length, counters, checksums, signatures, dependencies and recovery behaviour are defined by the OEM programming specification.
TransferData (0x36)
TransferData carries a data block during an upload or download sequence. The request commonly includes a block sequence counter and the block data. The ECU returns the service-specific response.
Do not confuse the UDS block-transfer sequence with transport-layer segmentation. ISO-TP may split one diagnostic message into multiple CAN frames, while TransferData is an application-level service used to move programming data in blocks.
Positive Responses and Negative Response Codes
A UDS request can receive a positive response or a negative response.
Positive response
For many UDS services, the positive response SID is the request SID plus 0x40.
| Request SID | Service | Positive response SID |
|---|---|---|
| `0x10` | DiagnosticSessionControl | `0x50` |
| `0x11` | ECUReset | `0x51` |
| `0x19` | ReadDTCInformation | `0x59` |
| `0x22` | ReadDataByIdentifier | `0x62` |
| `0x27` | SecurityAccess | `0x67` |
| `0x31` | RoutineControl | `0x71` |
Always decode the complete response according to the service definition, not just the first byte.
Negative response
A negative response uses a common three-byte structure:
7F [Original Request SID] [Negative Response Code]
Example:
Request: 22 F1 90
Negative response: 7F 22 31
7F = Negative response indicator
22 = Original request SID
31 = Request out of range
Common Negative Response Codes (NRCs) include:
| NRC | Name | General meaning |
|---|---|---|
| `0x10` | generalReject | Request rejected for a general reason |
| `0x11` | serviceNotSupported | Service is not supported |
| `0x12` | subFunctionNotSupported | Sub-function is not supported |
| `0x13` | incorrectMessageLengthOrInvalidFormat | Request length or format is incorrect |
| `0x14` | responseTooLong | Response exceeds the supported response size |
| `0x21` | busyRepeatRequest | Server is busy; retry behaviour must follow the specification |
| `0x22` | conditionsNotCorrect | Required conditions are not satisfied |
| `0x24` | requestSequenceError | Request sequence is invalid |
| `0x31` | requestOutOfRange | Requested parameter or identifier is outside the supported range |
| `0x33` | securityAccessDenied | Required security access has not been granted |
| `0x35` | invalidKey | Supplied key is invalid |
| `0x36` | exceedNumberOfAttempts | Too many unsuccessful attempts |
| `0x37` | requiredTimeDelayNotExpired | Required delay has not expired |
| `0x7E` | subFunctionNotSupportedInActiveSession | Sub-function is unavailable in the active session |
| `0x7F` | serviceNotSupportedInActiveSession | Service is unavailable in the active session |
| `0x78` | requestCorrectlyReceived-ResponsePending | Request was accepted, but processing is not complete |
The applicable ISO edition defines the precise meaning and use of each NRC. An NRC is not always a network failure: it often means the ECU received the request but rejected it because of its state, permissions, parameters or sequence.
Why response pending matters
NRC 0x78 is used when the ECU has received the request correctly but needs more time to finish processing. The tester should continue waiting according to the applicable diagnostic timing rules rather than immediately resending the original request.
A Practical UDS Diagnostic Workflow
Consider an engineer who needs to identify an ECU, inspect fault information and then run an approved diagnostic routine.
A simplified workflow could be:
Establish the correct physical or functional diagnostic connection.
Confirm the ECU responds to a supported request.
Read the relevant identification DIDs using
0x22.Request the appropriate diagnostic session using
0x10, if required.Complete the required security or authentication procedure.
Read DTC information using
0x19.Review the DTC status and associated records.
Run an approved routine using
0x31, if needed.Record the ECU responses and restore the required ECU state.
The sequence is illustrative. The real order depends on the ECU diagnostic specification, service preconditions and test objective. Never run a state-changing routine on a production vehicle without authorization and a controlled test plan.
UDS Testing and Troubleshooting
UDS testing involves more than sending a correctly formatted SID. Engineers must validate the addressing, transport layer, session state, access permissions, timing and ECU-specific data definitions.
Common diagnostic tools include Vector CANoe and CANalyzer, ETAS tools, PEAK PCAN tools, Intrepid interfaces and software built around SocketCAN. Tool selection depends on the network, hardware interface and project requirements.
Common UDS problems
| Symptom or NRC | Possible cause | What to check |
|---|---|---|
| No response | Wrong address, ECU asleep, network fault or gateway routing issue | ECU power state, bus traffic, diagnostic addressing and gateway route |
| `0x11` | Service not supported | ECU service support list |
| `0x12` | Sub-function not supported | Sub-function value and ECU implementation |
| `0x13` | Incorrect length or format | Request bytes, parameter length and format |
| `0x22` | Conditions not correct | Ignition state, voltage, vehicle speed or other ECU preconditions |
| `0x31` | Identifier or parameter out of range | DID, RID, memory range and allowed values |
| `0x33` | Security access denied | Required access level and access sequence |
| `0x7E` / `0x7F` | Service unavailable in current session | Active session and ECU session configuration |
| `0x78` | ECU needs more processing time | Tester timing and pending-response handling |
| Programming transfer fails | Incorrect transfer sequence or programming parameters | Download parameters, block counter, memory region and OEM programming procedure |
A repeatable troubleshooting checklist
Check ECU power, wake-up state and network connectivity.
Confirm physical or functional addressing.
Verify the transport protocol and addressing format.
Check the SID, sub-function, DID, RID and parameter length.
Confirm the active diagnostic session.
Verify security or authentication requirements.
Check ECU operating preconditions.
Review response timing and
0x78handling.Compare the trace with the ECU diagnostic description or ODX data.
Save request and response logs so the issue can be reproduced.
UDS vs OBD-II
UDS and OBD-II both support vehicle diagnostics, but they serve different purposes.
| Area | UDS | OBD-II |
|---|---|---|
| Main purpose | Broad ECU diagnostics, testing, control and programming functions | Standardized emissions-related diagnostics and legislated functions |
| Standards | ISO 14229 series | ISO 15031 and SAE J1979 family, depending on application |
| Data access | ECU-specific DIDs and service definitions | Standardized parameter identifiers for applicable data |
| ECU programming | Includes programming-related services where implemented | Not the general-purpose ECU reprogramming framework |
| Scope | Can be used across many vehicle ECUs and engineering workflows | Focuses on regulated diagnostic information |
UDS is not simply another name for OBD-II. A vehicle may support both, and the diagnostic tool uses the protocol and services appropriate to the task.
Common Implementation Challenges
ECU-specific data definitions
A DID is only an identifier. It does not, by itself, tell the tester how to decode the returned bytes. The data length, encoding, scaling and byte order must come from the diagnostic description.
Session and access configuration
A service may be implemented but unavailable in the current session or security state. Engineers must understand the ECU's session and access matrix rather than assume that a supported SID is always available.
Transport and gateway configuration
A valid UDS application request can still fail because of ISO-TP configuration, CAN addressing, flow control, timing or gateway routing. DoIP adds IP addressing, vehicle discovery and routing activation considerations.
Timing and long-running operations
Programming and some routines take longer than a simple data read. The tester must handle response-pending behaviour and timing parameters correctly.
Security and safe testing
Diagnostic access can affect vehicle behaviour or ECU memory. Use authorized credentials, approved procedures and a controlled bench or vehicle environment. Never experiment with memory erase, programming or actuator-control services on a road vehicle.
Key Takeaways
UDS means Unified Diagnostic Services and is specified by the ISO 14229 series.
The tester acts as the client and the ECU processes diagnostic requests as the server.
The Service Identifier (SID) identifies the diagnostic operation.
Common services include DiagnosticSessionControl (
0x10), ReadDataByIdentifier (0x22), ReadDTCInformation (0x19), SecurityAccess (0x27) and RoutineControl (0x31).UDS defines diagnostic operations; ISO-TP and DoIP provide communication mechanisms for different network environments.
Positive responses commonly use the request SID plus
0x40; negative responses use the0x7Fformat and an NRC.Service availability depends on ECU implementation, diagnostic session, access permissions and operating conditions.
Reliable diagnostics requires trace analysis and the correct ECU-specific diagnostic description.
Frequently Asked Questions
What are UDS Protocol Services?
UDS Protocol Services are diagnostic operations defined by the ISO 14229 series. They allow a diagnostic tester to communicate with an ECU to read data, retrieve DTC information, change sessions, run routines and perform supported programming operations.
What is a Service Identifier in UDS?
A Service Identifier (SID) is the first byte of a UDS application-layer request. It identifies the requested operation. For example, 0x10 is DiagnosticSessionControl and 0x22 is ReadDataByIdentifier.
What is the difference between UDS and ISO 14229?
UDS is the common name for Unified Diagnostic Services. ISO 14229 is the international standard series that specifies UDS diagnostic communication requirements and services.
What is the difference between UDS and ISO-TP?
UDS defines diagnostic services and the meaning of requests and responses. ISO-TP, specified by ISO 15765-2, provides transport and network-layer services for carrying diagnostic messages over CAN, including segmentation and reassembly.
What is the difference between SID and DID?
A SID identifies the diagnostic service or operation. A DID identifies a particular data item used by services such as ReadDataByIdentifier (0x22) and WriteDataByIdentifier (0x2E).
What does NRC mean in UDS?
NRC means Negative Response Code. It explains why the ECU rejected or could not complete a request. For example, 0x22 means conditions are not correct, while 0x33 means required security access has not been granted.
What is TesterPresent (0x3E) used for?
TesterPresent lets a diagnostic tester indicate that it remains active. It is commonly used to prevent a non-default diagnostic session from timing out because of inactivity. The tester must follow the ECU's configured timing requirements.
Are all UDS services supported by every ECU?
No. The standard defines a service framework, but each ECU supports a configured subset. The supported services, sub-functions, DIDs, RIDs, sessions and access requirements must be checked in the ECU diagnostic specification.
Conclusion
UDS is a central part of automotive diagnostics because it provides a common framework for testers and ECUs to exchange diagnostic requests and responses. Its services cover identification, data access, DTC handling, session management, security, routines and ECU programming.
For engineers, the most important skill is connecting the service definition to the ECU's actual implementation. Understand the SID and parameters, check the session and access state, interpret positive and negative responses, and validate the complete exchange against the diagnostic description and transport configuration.
To build practical knowledge of service identifiers, diagnostic sessions, DIDs, DTCs, security access, ECU flashing and ODX, explore the Aertrix Labs UDS Diagnostics (ISO 14229) course. For engineering teams that need hands-on UDS training or support with diagnostic and bootloader work, see Aertrix Labs corporate training and automotive engineering services.
References
ISO 14229-1:2026 — Unified diagnostic services (UDS), Part 1: Application layer
ISO 15765-2:2024 — Diagnostic communication over CAN, transport protocol and network layer services
AUTOSAR Classic Platform — Specification of Diagnostic Communication Manager, R24-11
py-uds documentation — Diagnostic Services and Service Identifiers
Technical note: This article is an educational overview. It does not replace the applicable ISO standard, OEM diagnostic specification, ODX data or ECU programming instructions. Confirm the standard edition and vehicle-specific requirements before implementation or testing.


