UDS diagnostic communication is organized around services. Each service is identified by a Service Identifier (SID), normally the first byte of the UDS application-layer message. The SID tells the ECU what diagnostic operation the tester is requesting.
For ECU diagnostic engineers, understanding common SIDs is essential when reading CAN or Ethernet traces, developing diagnostic scripts, configuring diagnostic stacks, validating ECU behavior and investigating negative responses.
This article is a practical reference to common UDS services defined by the ISO 14229 series. It explains message structure, response identifiers, service-specific parameters, transport considerations and trace-decoding techniques.
Important: This is a general reference, not a statement that every ECU supports every listed service. The ECU diagnostic specification defines the supported SIDs, sub-functions, DIDs, RIDs, data formats, access levels and preconditions.
1. What is a Service Identifier?
A Service Identifier identifies the requested diagnostic operation.
For example:
10 03
0x10is DiagnosticSessionControl.0x03requests Extended Diagnostic Session in common UDS implementations.
The second byte is a service-specific parameter. It is a sub-function for services that define one, but it is not always a sub-function. Its meaning depends on the service definition.
A UDS request may contain additional fields after the SID and any sub-function, such as a DID, Routine Identifier (RID), address, size, record number or data bytes.
2. UDS message and response structure
Positive responses
For many UDS services, the positive response SID is the request SID plus 0x40.
| Request SID | Service example | Positive response SID |
|---|---|---|
0x10 | DiagnosticSessionControl | 0x50 |
0x11 | ECUReset | 0x51 |
0x22 | ReadDataByIdentifier | 0x62 |
0x27 | SecurityAccess | 0x67 |
0x31 | RoutineControl | 0x71 |
This is the common UDS positive-response convention. Always decode the response according to the selected service definition.
Negative responses
A negative response generally uses this format:
7F <Request SID> <NRC>
For example:
7F 10 22
0x7F— negative response indicator.0x10— original request SID, DiagnosticSessionControl.0x22— NRCconditionsNotCorrect.
A negative response explains why the ECU did not return a positive response for the request. The NRC must be interpreted together with the current session, ECU state, request parameters and diagnostic specification.
3. Common UDS Service Identifiers
The following table is a practical selection of commonly encountered services. Some services are optional or restricted, and their availability depends on the applicable ISO 14229 edition and ECU implementation.
| SID | Service name | Typical purpose |
|---|---|---|
0x10 | DiagnosticSessionControl | Change diagnostic session |
0x11 | ECUReset | Request a supported ECU reset |
0x14 | ClearDiagnosticInformation | Clear selected diagnostic information |
0x19 | ReadDTCInformation | Read DTC status and related records |
0x22 | ReadDataByIdentifier | Read configured data by DID |
0x23 | ReadMemoryByAddress | Read a permitted memory range |
0x27 | SecurityAccess | Perform configured seed/key access |
0x28 | CommunicationControl | Control selected communication |
0x29 | Authentication | Perform supported authentication procedures |
0x2A | ReadDataByPeriodicIdentifier | Request periodic transmission of configured data |
0x2C | DynamicallyDefineDataIdentifier | Define a dynamic DID where supported |
0x2E | WriteDataByIdentifier | Write configured data by DID |
0x2F | InputOutputControlByIdentifier | Control configured inputs/outputs |
0x31 | RoutineControl | Start, stop or request routine results |
0x34 | RequestDownload | Initiate a download sequence |
0x35 | RequestUpload | Initiate an upload sequence where supported |
0x36 | TransferData | Transfer data blocks |
0x37 | RequestTransferExit | End a transfer sequence |
0x3D | WriteMemoryByAddress | Write a permitted memory range |
0x3E | TesterPresent | Indicate tester activity |
0x85 | ControlDTCSetting | Control configured DTC-setting behavior |
Service availability is ECU-specific. For example, Authentication (0x29), upload, periodic data, dynamic DIDs and memory access may not be implemented or enabled in a particular ECU. Check the ECU diagnostic specification rather than assuming support from the SID list.
4. Session and reset services
DiagnosticSessionControl — 0x10
This service requests a change to the ECU diagnostic session.
Common session values include:
| Sub-function | Session |
|---|---|
0x01 | Default Session |
0x02 | Programming Session |
0x03 | Extended Diagnostic Session |
Example:
Tester request: 10 03
ECU response: 50 03 ...
The positive response may include timing parameters, including P2 server timing and P2* server timing information. The tester must parse and apply these values according to the applicable standard and ECU specification.
A service that is unavailable in Default Session may be enabled in Extended or Programming Session. Session changes may also be restricted by vehicle state, security access or other preconditions.
ECUReset — 0x11
ECUReset requests a supported reset type.
Example:
11 01
0x01 is commonly used for a hard reset. Other reset types may be supported, depending on the applicable standard and ECU implementation.
Do not assume every ECU supports every reset sub-function. A reset can interrupt communication or an active operation, so the tester should consider the expected ECU restart time and recovery behavior.
5. Data access services
ReadDataByIdentifier — 0x22
ReadDataByIdentifier reads one or more configured Data Identifiers (DIDs).
Example request:
22 F1 90
This requests DID 0xF190, which is commonly associated with a VIN-related value in many diagnostic conventions. Confirm the actual DID definition and data format for the target ECU.
Illustrative positive response:
62 F1 90 56 49 4E ...
0x62— positive response SID for request0x22.0xF190— echoed DID.- Remaining bytes — DID data.
The response length, byte order, encoding, scaling and interpretation come from the DID definition. Never assume all DIDs have a fixed length or use the same encoding.
WriteDataByIdentifier — 0x2E
WriteDataByIdentifier writes data to a configured DID, if the ECU permits it.
General request structure:
2E <DID high> <DID low> <data...>
A write may require a specific diagnostic session, security level, vehicle state or other preconditions. A DID being readable does not imply it is writable. Validate write operations on an approved development or test ECU.
ReadMemoryByAddress — 0x23
ReadMemoryByAddress requests data from a permitted memory address and length. The request contains address and size information encoded according to the service's address-and-length format.
Supported address ranges and access conditions are ECU-specific and may be restricted for security and safety reasons. Do not experiment with arbitrary memory addresses on production ECUs.
WriteMemoryByAddress — 0x3D
WriteMemoryByAddress writes data to a permitted memory range where supported. It is distinct from writing a logical DID using 0x2E. The ECU may restrict memory access by session, security state, address range and project-specific policy.
6. Security and communication services
SecurityAccess — 0x27
SecurityAccess performs a configured seed-and-key exchange. The tester requests a seed for a supported security level and submits a key calculated by an authorized ECU-specific security component.
The algorithm and secret material are not universal UDS constants. They belong to the ECU/OEM security implementation. SecurityAccess may be subject to attempt counters, delay timers, session requirements and vehicle preconditions.
Authentication — 0x29
Authentication is a separate UDS service defined in later editions of ISO 14229. It supports authentication procedures where implemented. Do not treat it as another name for the classic 0x27 seed/key exchange. The authentication model, credentials and supported sub-functions depend on the ECU and vehicle security architecture.
CommunicationControl — 0x28
CommunicationControl requests control of selected communication types. It may be used in controlled diagnostic or programming procedures.
The supported communication types, control modes and preconditions are defined by the ECU implementation. Misuse may interrupt communication needed by other vehicle functions, so this service should only be used in a controlled test or programming workflow.
TesterPresent — 0x3E
TesterPresent indicates that the diagnostic tester is still active. It is commonly used to prevent a diagnostic session from timing out when the ECU's session management requires tester activity.
Example:
3E 00
For services that define the suppress-positive-response indication, bit 7 of the sub-function byte may be set to request suppression of the positive response. For TesterPresent, an example request is:
3E 80
Use response suppression only where supported and appropriate. It does not remove the need to manage session timing and ECU state correctly.
7. DTC services
ClearDiagnosticInformation — 0x14
This service requests clearing of selected diagnostic information. The request includes a group-of-DTC parameter that defines the clearing scope.
A positive response indicates that the ECU accepted the clear request according to its rules. It does not prove that the physical fault has been repaired. If the fault remains, the ECU may detect it again when the relevant monitor executes.
ReadDTCInformation — 0x19
ReadDTCInformation reads diagnostic trouble code information. It supports multiple sub-functions for different types of DTC data.
Depending on ECU support, a tester may request:
- DTC counts matching a status mask.
- DTCs matching a status mask.
- DTC status information.
- Snapshot records.
- Extended data records.
- Other defined DTC information.
The response layout depends on the selected sub-function. The tester must interpret the DTC status byte and records according to the applicable standard and ECU diagnostic definition.
8. RoutineControl — 0x31
RoutineControl requests execution or status information for a configured routine. The routine is identified by a Routine Identifier (RID).
Common control types are:
| Sub-function | Meaning |
|---|---|
0x01 | Start routine |
0x02 | Stop routine |
0x03 | Request routine results |
General request structure:
31 01 <RID high> <RID low> <optional parameters...>
Illustrative positive response:
71 01 <RID high> <RID low> <result data...>
The RID, input parameters, output format, preconditions and side effects are ECU-specific. Examples in vehicle projects may include self-tests, memory checks or programming-related verification routines. Do not assume that a particular RID has the same meaning across different ECUs.
9. Download and transfer services
The main UDS services used in many ECU download workflows are:
| SID | Service | Role |
|---|---|---|
0x34 | RequestDownload | Tester requests permission to download data |
0x36 | TransferData | Transfers one or more data blocks |
0x37 | RequestTransferExit | Closes the transfer sequence |
A programming workflow normally includes additional steps, such as:
- Entering the required programming session.
- Obtaining the required security access or authorization.
- Preparing or erasing memory using an OEM-defined procedure.
- Requesting download with
0x34. - Transferring blocks using
0x36. - Ending the transfer using
0x37. - Performing integrity checks and activation procedures.
- Resetting the ECU and verifying the resulting software identity.
The exact sequence, block-size negotiation, address/length formats, integrity checks and recovery behavior are defined by the OEM programming specification. A successful TransferData response alone does not prove that the software is valid or active.
10. Negative Response Codes
A negative response identifies why the ECU did not return a positive response to a request.
| NRC | Name | General interpretation |
|---|---|---|
0x10 | generalReject | General rejection |
0x11 | serviceNotSupported | Requested service is not supported |
0x12 | subFunctionNotSupported | Requested sub-function is not supported |
0x13 | incorrectMessageLengthOrInvalidFormat | Request length or format is invalid |
0x21 | busyRepeatRequest | Server is temporarily busy |
0x22 | conditionsNotCorrect | Required conditions are not met |
0x24 | requestSequenceError | Request sequence is invalid |
0x31 | requestOutOfRange | Parameter or requested item is outside the supported range |
0x33 | securityAccessDenied | Required security access is not available |
0x35 | invalidKey | Submitted key is invalid |
0x36 | exceedNumberOfAttempts | Attempt limit has been exceeded |
0x37 | requiredTimeDelayNotExpired | Required delay has not elapsed |
0x78 | requestCorrectlyReceived-ResponsePending | Request was received correctly; final response is pending |
This is a practical subset. Verify exact NRC applicability and naming against the ISO 14229 edition and ECU specification used by the project.
ResponsePending — NRC 0x78
For a response such as:
7F 31 78
the ECU indicates that the RoutineControl request was correctly received but the final response is not yet available. The tester should continue waiting according to the applicable P2* timing and project timeout policy rather than treating 0x78 as an immediate service failure.
11. How to decode a UDS trace
When inspecting a diagnostic trace, decode the transport first and the UDS application message second.
A reliable workflow is:
- Identify the target ECU and request/response addressing.
- Identify the transport protocol: for example, ISO-TP over CAN or DoIP over Ethernet.
- Reassemble a complete UDS payload if the transport uses segmentation.
- Read the first UDS byte to identify the SID.
- Determine whether the message is a positive or negative response.
- Decode the service-specific fields: sub-function, DID, RID, address, size or data.
- Check the ECU diagnostic specification for lengths, encoding and access conditions.
- Correlate request and response using ECU addressing and timestamps.
Do not decode an isolated CAN frame as if it were always a complete UDS message. ISO-TP multi-frame messages must be reassembled before application-layer interpretation.
Worked example: ReadDataByIdentifier
Assume a trace contains this reassembled request:
22 F1 90
and response:
62 F1 90 56 49 4E ...
Interpret it as follows:
| Bytes | Interpretation |
|---|---|
22 | ReadDataByIdentifier request |
F1 90 | Requested DID |
62 | Positive response SID for request 0x22 |
F1 90 | Echoed DID |
| Remaining bytes | DID data, interpreted using the ECU definition |
If the response instead is:
7F 22 31
the ECU returned a negative response to service 0x22 with NRC requestOutOfRange. Check whether the DID is supported and whether the current session and ECU conditions permit access.
12. Transport context: ISO-TP and DoIP
UDS is an application-layer protocol. It relies on a suitable transport and network implementation to deliver its messages.
UDS over CAN using ISO-TP
ISO-TP (ISO 15765-2) supports UDS messages that cannot fit into one CAN frame. Its main frame types are:
- Single Frame (SF): carries a complete short payload.
- First Frame (FF): announces a multi-frame payload and its length.
- Consecutive Frame (CF): carries subsequent payload bytes.
- Flow Control (FC): receiver controls the sender's multi-frame transmission.
When diagnosing a missing or incomplete UDS request, inspect the raw CAN frames and the reassembled ISO-TP payload. A flow-control or segmentation problem can prevent the ECU from receiving a complete UDS message.
UDS over Ethernet using DoIP
DoIP (ISO 13400) transports diagnostic messages over IP networks. A typical workflow includes IP connectivity, DoIP entity discovery where used, routing activation and diagnostic message exchange using logical addresses.
Keep DoIP acknowledgements and negative acknowledgements separate from UDS positive responses and NRCs. They belong to different protocol layers.
13. Practical troubleshooting checklist
No response from the ECU
- Confirm ECU power, wake-up and network state.
- Verify CAN identifiers or DoIP connectivity and logical addressing.
- Check the tester's physical or functional addressing mode.
- Confirm ISO-TP segmentation and Flow Control, or DoIP routing activation.
- Verify that the ECU is expected to respond to the selected service and addressing type.
- Check that the request was transmitted with the correct length and format.
Negative response received
- Decode the original SID and NRC.
- Confirm the active diagnostic session.
- Check security access or authentication requirements.
- Validate sub-function, DID, RID, address and length fields.
- Check vehicle and ECU preconditions.
- Check request sequence and any required delay.
- Compare the result with the ECU diagnostic specification.
Positive response contains unexpected data
- Verify the DID or sub-function definition.
- Check expected response length.
- Confirm byte order, scaling, encoding and reserved-byte handling.
- Check whether the data is dynamic or state-dependent.
- Compare the response against a known-good trace and ECU specification.
Evidence to retain
For each failed transaction, retain the timestamp, target ECU, addressing mode, transport configuration, raw frames or DoIP messages, reassembled UDS payload, active session, relevant preconditions, timeout configuration and decoded NRC. Avoid placing production credentials or sensitive security material in ordinary logs.
14. Key takeaways
- The SID identifies the requested UDS service.
- Many positive response SIDs equal the request SID plus
0x40. - Negative responses use
0x7F, the original SID and an NRC. - A service's following parameters are service-specific; not every second byte is a sub-function.
- DIDs, RIDs, supported sub-functions and access rules are defined by the ECU diagnostic specification.
- UDS is an application-layer protocol and must be carried over a suitable transport such as ISO-TP or DoIP.
- A list of common SIDs is a reference aid, not proof that a particular ECU implements them.
15. Check your understanding
- What is the SID for ReadDataByIdentifier?
- What is the positive response SID for SecurityAccess (
0x27)? - What does NRC
0x33indicate? - Which service is commonly used to indicate that a tester is still active?
- Which three services are commonly used during a download sequence?
- What is the difference between a DID and a Routine Identifier?
- Why must ISO-TP multi-frame messages be reassembled before UDS decoding?
- Does every ECU support every service in the common SID table?
Answers
0x22.0x67.securityAccessDenied.- TesterPresent (
0x3E). - RequestDownload (
0x34), TransferData (0x36) and RequestTransferExit (0x37). - A DID identifies a diagnostic data item; an RID identifies a configured routine.
- Because an individual CAN frame may contain only part of the UDS application payload.
- No. Support and access conditions are ECU-specific.
References and further reading
- ISO 14229-1 — Unified diagnostic services, application layer
- ISO 15765 series — Diagnostics over CAN
- ISO 13400 series — Diagnostics over IP
Standards note: ISO 14229 is maintained through editions and amendments. The applicable edition is the one specified by the vehicle program and ECU diagnostic requirements. Confirm service support, parameters and conformance against that edition and the ECU-specific diagnostic specification.
