UDS Protocol Services: A Practical Guide to ISO 14229

Aertrixlabs Team19 min read

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 technologyRole
UDS application layerDefines diagnostic services, request parameters and response behaviour
UDS session-layer servicesSupport diagnostic session-related communication behaviour
ISO-TP / DoCANSegments and reassembles diagnostic messages over CAN
DoIPCarries diagnostic communication over IP networks
CAN / CAN FD / EthernetProvides 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:

  1. The diagnostic tester prepares a request.

  2. The first byte identifies the requested service.

  3. Any required sub-function, identifier or parameter bytes follow.

  4. The ECU checks whether the service and parameters are supported.

  5. The ECU checks session, security, authentication and operating-condition requirements, where applicable.

  6. 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:

text
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.

SIDServicePurpose
`0x10`DiagnosticSessionControlRequests a diagnostic session change
`0x11`ECUResetRequests a supported ECU reset
`0x14`ClearDiagnosticInformationRequests clearing of specified diagnostic information
`0x19`ReadDTCInformationReads DTC-related information
`0x22`ReadDataByIdentifierReads data associated with one or more DIDs
`0x23`ReadMemoryByAddressReads a supported memory range
`0x27`SecurityAccessRequests a configured security access procedure
`0x28`CommunicationControlControls specified communication functions
`0x29`AuthenticationPerforms a supported diagnostic authentication procedure
`0x2A`ReadDataByPeriodicIdentifierRequests periodic data transmission
`0x2C`DynamicallyDefineDataIdentifierDefines a dynamic DID using supported data references
`0x2E`WriteDataByIdentifierWrites data associated with a DID
`0x2F`InputOutputControlByIdentifierRequests control of a supported input or output
`0x31`RoutineControlStarts, stops or requests results from an ECU routine
`0x34`RequestDownloadInitiates a download to the ECU
`0x35`RequestUploadInitiates an upload from the ECU
`0x36`TransferDataTransfers data blocks
`0x37`RequestTransferExitEnds a data-transfer sequence
`0x3E`TesterPresentIndicates that the tester remains active
`0x85`ControlDTCSettingControls DTC setting, where supported
`0x86`ResponseOnEventConfigures supported event-triggered responses
`0x87`LinkControlRequests 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:

SessionSub-function valueTypical 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

text
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:

text
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:

  1. The tester requests a seed using a supported request sub-function.

  2. The ECU returns a seed value.

  3. The tester calculates a key using the agreed algorithm and secret material.

  4. The tester sends the key using the corresponding send-key sub-function.

  5. 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 typeValuePurpose
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:

  1. Enter a supported programming session using 0x10.

  2. Complete required security or authentication steps.

  3. Prepare or erase the target memory using an ECU-supported routine.

  4. Request a download using 0x34.

  5. Transfer data blocks using 0x36.

  6. End the transfer using 0x37.

  7. Run any required integrity or verification routines.

  8. 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 SIDServicePositive 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:

text
7F [Original Request SID] [Negative Response Code]

Example:

text
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:

NRCNameGeneral meaning
`0x10`generalRejectRequest rejected for a general reason
`0x11`serviceNotSupportedService is not supported
`0x12`subFunctionNotSupportedSub-function is not supported
`0x13`incorrectMessageLengthOrInvalidFormatRequest length or format is incorrect
`0x14`responseTooLongResponse exceeds the supported response size
`0x21`busyRepeatRequestServer is busy; retry behaviour must follow the specification
`0x22`conditionsNotCorrectRequired conditions are not satisfied
`0x24`requestSequenceErrorRequest sequence is invalid
`0x31`requestOutOfRangeRequested parameter or identifier is outside the supported range
`0x33`securityAccessDeniedRequired security access has not been granted
`0x35`invalidKeySupplied key is invalid
`0x36`exceedNumberOfAttemptsToo many unsuccessful attempts
`0x37`requiredTimeDelayNotExpiredRequired delay has not expired
`0x7E`subFunctionNotSupportedInActiveSessionSub-function is unavailable in the active session
`0x7F`serviceNotSupportedInActiveSessionService is unavailable in the active session
`0x78`requestCorrectlyReceived-ResponsePendingRequest 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:

  1. Establish the correct physical or functional diagnostic connection.

  2. Confirm the ECU responds to a supported request.

  3. Read the relevant identification DIDs using 0x22.

  4. Request the appropriate diagnostic session using 0x10, if required.

  5. Complete the required security or authentication procedure.

  6. Read DTC information using 0x19.

  7. Review the DTC status and associated records.

  8. Run an approved routine using 0x31, if needed.

  9. 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 NRCPossible causeWhat to check
No responseWrong address, ECU asleep, network fault or gateway routing issueECU power state, bus traffic, diagnostic addressing and gateway route
`0x11`Service not supportedECU service support list
`0x12`Sub-function not supportedSub-function value and ECU implementation
`0x13`Incorrect length or formatRequest bytes, parameter length and format
`0x22`Conditions not correctIgnition state, voltage, vehicle speed or other ECU preconditions
`0x31`Identifier or parameter out of rangeDID, RID, memory range and allowed values
`0x33`Security access deniedRequired access level and access sequence
`0x7E` / `0x7F`Service unavailable in current sessionActive session and ECU session configuration
`0x78`ECU needs more processing timeTester timing and pending-response handling
Programming transfer failsIncorrect transfer sequence or programming parametersDownload parameters, block counter, memory region and OEM programming procedure

A repeatable troubleshooting checklist

  1. Check ECU power, wake-up state and network connectivity.

  2. Confirm physical or functional addressing.

  3. Verify the transport protocol and addressing format.

  4. Check the SID, sub-function, DID, RID and parameter length.

  5. Confirm the active diagnostic session.

  6. Verify security or authentication requirements.

  7. Check ECU operating preconditions.

  8. Review response timing and 0x78 handling.

  9. Compare the trace with the ECU diagnostic description or ODX data.

  10. 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.

AreaUDSOBD-II
Main purposeBroad ECU diagnostics, testing, control and programming functionsStandardized emissions-related diagnostics and legislated functions
StandardsISO 14229 seriesISO 15031 and SAE J1979 family, depending on application
Data accessECU-specific DIDs and service definitionsStandardized parameter identifiers for applicable data
ECU programmingIncludes programming-related services where implementedNot the general-purpose ECU reprogramming framework
ScopeCan be used across many vehicle ECUs and engineering workflowsFocuses 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

  1. UDS means Unified Diagnostic Services and is specified by the ISO 14229 series.

  2. The tester acts as the client and the ECU processes diagnostic requests as the server.

  3. The Service Identifier (SID) identifies the diagnostic operation.

  4. Common services include DiagnosticSessionControl (0x10), ReadDataByIdentifier (0x22), ReadDTCInformation (0x19), SecurityAccess (0x27) and RoutineControl (0x31).

  5. UDS defines diagnostic operations; ISO-TP and DoIP provide communication mechanisms for different network environments.

  6. Positive responses commonly use the request SID plus 0x40; negative responses use the 0x7F format and an NRC.

  7. Service availability depends on ECU implementation, diagnostic session, access permissions and operating conditions.

  8. 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

  1. ISO 14229-1:2026 — Unified diagnostic services (UDS), Part 1: Application layer

  2. ISO 15765-2:2024 — Diagnostic communication over CAN, transport protocol and network layer services

  3. AUTOSAR Classic Platform — Specification of Diagnostic Communication Manager, R24-11

  4. py-uds documentation — Diagnostic Services and Service Identifiers

  5. Aertrix Labs — Know-How technical guides

  6. Aertrix Labs — UDS and automotive software courses

  7. Aertrix Labs — Engineering services


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.