DiagnosticSessionControl is one of the most frequently used Unified Diagnostic Services (UDS). It allows a diagnostic client (tester) to request that an ECU enter a particular diagnostic session.
The service identifier (SID) is 0x10. The selected session influences which diagnostic services are available, which security conditions may apply, and how the ECU manages diagnostic communication timing.
This article explains the service from both protocol and ECU-test perspectives, including how to decode the timing values returned by the ECU.
1. What is a diagnostic session?
A diagnostic session is an ECU operating context for diagnostic communication. It determines which diagnostic capabilities are enabled under the ECU's configured rules.
For example:
- Basic diagnostic functions may be available in Default Session.
- Additional diagnostic functions may be available in Extended Diagnostic Session.
- Programming-related functions may be enabled in Programming Session.
The session is not the same as a security level. Session selection and SecurityAccess are separate mechanisms, although an ECU may require both before allowing a particular operation.
2. Common diagnostic sessions
Commonly encountered session types include:
| Session value | Common name | Typical purpose |
|---|---|---|
0x01 | Default Session | Normal diagnostic state and baseline diagnostic services |
0x02 | Programming Session | ECU programming-related operations, subject to preconditions and security |
0x03 | Extended Diagnostic Session | Additional diagnostic and engineering functions |
0x04 | Safety System Diagnostic Session | Safety-system diagnostic functions, if supported |
An ECU may support only a subset of these sessions and may implement manufacturer- or supplier-specific session values. The ECU diagnostic specification and applicable ISO 14229 edition define the expected behavior for a project.
3. DiagnosticSessionControl request format
The request contains the service identifier followed by the requested session type (the sub-function parameter).
| Byte | Field | Description |
|---|---|---|
| 1 | SID 0x10 | DiagnosticSessionControl request |
| 2 | diagnosticSessionType | Requested session; bit 7 is the suppress-positive-response indication bit |
Example: request Extended Diagnostic Session.
Tester -> ECU: 10 03
Interpretation:
0x10: DiagnosticSessionControl.0x03: Extended Diagnostic Session.- Bit 7 is
0, so the tester has not requested suppression of the positive response.
A tester must inspect the ECU response. Transmitting the request does not, by itself, prove that the ECU changed its session.
3.1 Suppress-positive-response indication bit
For services that use a sub-function parameter, bit 7 can be used as the suppressPosRspMsgIndicationBit (SPRMIB). The lower seven bits carry the session type.
For example:
10 83
Here, 0x83 consists of session type 0x03 with bit 7 set. The tester is requesting Extended Diagnostic Session while asking the ECU to suppress the positive response.
If the request is accepted, the ECU does not send the positive response. Negative responses are not generally suppressed by this bit and may still be returned when the request is rejected. Therefore, silence after a request with SPRMIB set must not be interpreted as proof that the session transition succeeded. The tester needs another valid way to verify the ECU state, such as a subsequent service permitted only in the requested session.
Use this behavior only when it is supported by the ECU and the diagnostic test design. For routine session-transition verification, requesting the positive response is usually easier to diagnose.
4. Positive response format
The positive response SID is 0x50 (request SID 0x10 plus 0x40). In the commonly used response format, the ECU echoes the accepted session type and provides a four-byte session parameter record containing P2 and P2* server timing values.
| Byte | Field | Description |
|---|---|---|
| 1 | 0x50 | Positive response SID |
| 2 | Session type | Echo of the requested session type |
| 3–4 | P2Server_max | Two-byte value, resolution of 1 ms |
| 5–6 | P2*Server_max | Two-byte value, resolution of 10 ms |
Example:
Tester -> ECU: 10 03
ECU -> Tester: 50 03 00 32 01 F4
The response indicates that the ECU accepted session 0x03. The remaining four bytes are decoded as follows:
| Bytes | Hex value | Calculation | Decoded value |
|---|---|---|---|
| 3–4 | 00 32 | 0x0032 × 1 ms | 50 ms (P2Server_max) |
| 5–6 | 01 F4 | 0x01F4 × 10 ms | 5,000 ms (P2*Server_max) |
These values are an illustrative example, not universal ECU timing settings. A tester must decode the actual response and apply the timing rules configured for the relevant UDS edition, transport and ECU.
5. Session timing: P2Server and P2*Server
UDS diagnostic communication includes response timing requirements. Two important server timing values are:
- P2Server_max: The maximum server response time applicable to the normal response window for the activated diagnostic session.
- P2*Server_max: The extended maximum server response time used after the server indicates that the request is still being processed with NRC
0x78(ResponsePending).
When the ECU cannot provide the final response within the normal P2 response window, it may send a negative response with NRC 0x78:
7F 10 78
This means:
0x7F: Negative response SID.0x10: Original request SID (DiagnosticSessionControl in this example).0x78: Request correctly received, response pending.
The tester must continue waiting according to the applicable P2* timing behavior rather than immediately treating NRC 0x78 as a final failure. The ECU may send another pending response before the final response, subject to the applicable standard and implementation rules.
Do not confuse UDS application-layer P2/P2* timing with ISO-TP transport-layer timing such as flow-control and consecutive-frame handling. They govern different parts of the communication process and should be diagnosed separately.
6. Why does an ECU need multiple sessions?
Different diagnostic activities require different ECU behavior and service availability.
For example:
- A workshop tester may need to read supported identification data in Default Session.
- An engineering tester may need additional routines or diagnostic functions in Extended Session.
- A programming tool may need to erase and reprogram memory in Programming Session.
The ECU uses session state to control which functions are available. This helps separate ordinary diagnostics from operations that can significantly change ECU behavior. Session selection alone does not override other prerequisites, security checks, vehicle-state conditions or OEM restrictions.
7. Example diagnostic sequence
A simplified sequence for entering Extended Diagnostic Session is:
- Establish diagnostic communication with the ECU using the configured addressing and transport settings.
- Send
10 03. - Wait for the response within the currently applicable timing limits.
- Check for positive response
50 03. - Decode the four session timing bytes when present and update the tester's timing configuration as required.
- Send subsequent diagnostic requests according to the ECU's session, security and operating-condition rules.
- Maintain tester activity if required by the ECU's session timeout configuration.
A positive response confirms that the session request was accepted. It does not automatically grant SecurityAccess or authorize every diagnostic service.
8. Session timeout and return to Default Session
An ECU may return to Default Session after a configured period without valid tester activity. The server-side session timeout is commonly referred to as S3Server. TesterPresent (0x3E) is commonly used to indicate that the tester remains active and to prevent an unintended session timeout.
The exact timeout, permitted TesterPresent format and behavior are ECU-specific. A tester should not assume that the ECU remains in Extended or Programming Session indefinitely.
If a session unexpectedly changes:
- Check tester activity and the configured S3Server behavior.
- Check whether the ECU reset or lost power.
- Check whether another diagnostic client is communicating.
- Review ECU-specific session transition rules.
- Confirm the tester's P2/P2* and session-timeout configuration.
- Check whether the request was physically or functionally addressed and whether the ECU supports the selected addressing mode.
9. Negative responses and troubleshooting
The following negative response codes are commonly relevant when diagnosing a DiagnosticSessionControl request. Actual supported NRCs depend on the applicable ISO 14229 edition and ECU implementation.
| NRC | General meaning | Possible investigation |
|---|---|---|
0x11 | ServiceNotSupported | Check whether SID 0x10 is implemented for this ECU/addressing context |
0x12 | SubFunctionNotSupported | Check whether the requested session type is supported |
0x13 | IncorrectMessageLengthOrInvalidFormat | Verify request length, sub-function value and addressing |
0x22 | ConditionsNotCorrect | Check ECU state and required operating conditions |
0x78 | RequestCorrectlyReceived-ResponsePending | Continue waiting according to P2* timing rules |
For example:
7F 10 12
The ECU reports that the requested sub-function is not supported.
7F 10 22
The ECU reports that the request cannot be processed under the current conditions.
Do not assume every ECU returns the same NRC for every failure. Check the ECU diagnostic specification and the project's expected response matrix.
10. Session control versus SecurityAccess
These mechanisms are related but different:
- DiagnosticSessionControl (
0x10) requests a diagnostic session. - SecurityAccess (
0x27) performs a configured security access procedure.
For example, an ECU may require the tester to:
- Enter Extended Diagnostic Session.
- Request a seed for a configured security level.
- Calculate and submit the authorized key using the approved security algorithm.
- Receive confirmation of access.
- Perform the protected diagnostic operation.
The actual sequence and security level are defined by the ECU's diagnostic specification. A successful session transition does not imply that the security procedure has been completed.
11. Practical trace example
A normal request/response exchange may look like this:
Tester -> ECU: 10 03
ECU -> Tester: 50 03 00 32 01 F4
Interpretation:
- The tester requests Extended Diagnostic Session.
- The ECU accepts session
0x03. 00 32represents 50 ms forP2Server_max.01 F4represents 5,000 ms forP2*Server_max.
A rejected request may look like:
Tester -> ECU: 10 05
ECU -> Tester: 7F 10 12
The requested session value is not supported by that ECU.
Another possible rejection is:
Tester -> ECU: 10 03
ECU -> Tester: 7F 10 22
The ECU cannot process the request under its current conditions.
If the tester sends 10 83, it has requested suppression of the positive response. In that case, the absence of 50 03 ... is expected if the request is accepted; it is not a reliable standalone confirmation of the session transition.
12. Common mistakes
- Assuming Extended Session automatically unlocks security-protected functions.
- Assuming every ECU supports the same session values.
- Treating the session-type byte as a plain value without checking bit 7.
- Expecting a positive response after setting the suppress-positive-response bit.
- Assuming silence after a suppressed-positive-response request proves success.
- Ignoring the P2Server and P2*Server timing values returned by the ECU.
- Treating NRC
0x78as a final failure instead of a response-pending indication. - Sending programming services without confirming the required session, security and operating conditions.
- Forgetting to maintain tester activity when required.
- Confusing UDS response timing with ISO-TP transport timing.
13. Practical engineering and test considerations
A session-control test should verify more than the positive response to SID 0x10. It should verify the session transition, service availability, timing parameters and return-to-default behavior.
13.1 Session verification matrix
| Test | Expected verification |
|---|---|
| Enter Default Session | Positive response or documented behavior; default service policy is active |
| Enter Extended Session | Correct session echoed; configured extended services become available |
| Enter Programming Session | Preconditions are enforced; programming services are gated appropriately |
| Request unsupported session | Expected negative response is observed |
| Send malformed request | Length/format rejection matches the ECU specification |
| Set SPRMIB | Positive response is suppressed when the request is accepted; negative response handling is checked |
| Remain inactive | Session timeout follows configured S3Server behavior |
| Send TesterPresent | Session is maintained according to addressing and sub-function rules |
| Reset ECU | Post-reset session state follows ECU specification |
| Trigger a long-running operation | NRC 0x78 and P2* handling are validated where applicable |
13.2 Timing capture
For every session transition, record:
- Request transmit timestamp.
- First response timestamp.
- Positive or negative response bytes.
- Decoded P2Server_max and P2*Server_max values, when provided.
- Tester P2/P2* timeout configuration and any configured margins.
- TesterPresent period and addressing type.
- Time at which the ECU returns to Default Session, if observable.
- Whether the request used physical or functional addressing.
Keep UDS application timing separate from ISO-TP flow-control timing. A transport timeout and a session inactivity timeout indicate different failures and should produce different diagnostic messages.
13.3 Suggested automated test flow
A practical automated test can use the following sequence:
- Establish communication and confirm the ECU's initial diagnostic state using an approved method.
- Send
10 03and validate the positive response. - Decode the session timing record and configure the tester's response timers.
- Execute one or more services that the ECU specification permits in Extended Session.
- Verify that a protected operation is still rejected until its required security conditions are met, if this behavior is part of the test scope.
- Maintain the session with TesterPresent where required and verify the configured timeout behavior in a separate test.
- Reset or allow the ECU to time out, then verify the expected return to Default Session.
The exact test services, timing thresholds and expected NRCs must come from the ECU diagnostic specification. Avoid using a destructive programming or memory operation merely to prove that a session was entered.
14. Key takeaways
- DiagnosticSessionControl uses request SID
0x10; its positive response SID is0x50. - Common session values include Default (
0x01), Programming (0x02) and Extended (0x03); support is ECU-specific. - Bit 7 of the sub-function byte is the suppress-positive-response indication bit; the lower seven bits carry the session type.
- The common positive response includes P2Server_max in 1 ms units and P2*Server_max in 10 ms units.
- NRC
0x78indicates that the request was received correctly and the final response is pending. - Session control and SecurityAccess are separate mechanisms.
- TesterPresent and S3Server behavior matter when maintaining a non-default session.
- ECU-specific diagnostic documentation defines the supported sessions, preconditions, timing and transition rules.
15. Check your understanding
- What is the request SID for DiagnosticSessionControl?
- What request commonly enters Extended Diagnostic Session without suppressing the positive response?
- In
10 83, what does bit 7 indicate? - In
50 03 00 32 01 F4, what are the decoded P2Server_max and P2*Server_max values? - Does a positive session response automatically grant SecurityAccess?
- What does NRC
0x78mean? - Which service is commonly used to maintain tester activity?
Answers
0x10.10 03.- The tester requests suppression of the positive response.
- 50 ms and 5,000 ms, respectively.
- No. Session control and SecurityAccess are separate.
- The request was correctly received and the final response is pending.
- TesterPresent (
0x3E).
Related UDS articles
- UDS Protocol Explained
- UDS Services and Service Identifiers
- UDS SecurityAccess (0x27)
- UDS DTC Management
- UDS ECU Flashing
References and further reading
- ISO 14229-1:2026 - Road vehicles: Unified diagnostic services, application layer
- ISO - Standards catalogue
- AUTOSAR - Classic Platform (for AUTOSAR Diagnostic Communication Manager integration context)
Standards note: ISO 14229-1:2026 is the current edition identified for this article. Existing ECU programs may be contractually based on earlier editions; always follow the project/OEM diagnostic specification and identify the exact edition used for conformance.
