Diagnostic Session Control
Enables different diagnostic sessions in the ECU, unlocking service sets and configuring timing parameters.
Service Purpose
“DiagnosticSessionControl enables various diagnostic sessions in the server (ECU). The server always operates within exactly one session, defaulting to the Default Session (0x01) upon every reset event.”
Message Structure
Diagnostic Session Control requests are simple two-byte frames containing the SID and the session sub-function. Try toggling between request (TX), response (RX), and split views, filter by semantic type, inspect byte field definitions, explore alternative values, and export code snippets:
Protocol anatomy
0x10 Diagnostic Session Control
0x10 Response
Response Suppression Logic (SPRMIB)
When the suppressPosRspMsgIndicationBit (bit 7) is set on the sub-function byte (e.g., 0x83 = 0x03 | 0x80), the ECU transitions to the requested session silently without transmitting a 0x50 positive response frame.
Session Selection
The sub-function byte selects the target session. Each session grants a distinct privilege level, enabling or restricting access to specific diagnostic services.
Standard operating mode. Active after every ECU reset. Basic diagnostic read operations permitted. No security access required.
Request
Firmware update and bootloader operations. Requires prior Security Access (0x27). Vehicle must be stationary. S3 timeout active.
Request
Enables advanced diagnostics including I/O control, routine execution, and memory writes. Most common session for workshop diagnostics.
Request
Reserved for safety-critical ECU operations (airbag, ABS, ESP). Restricted transitions. OEM-specific security levels required.
Request
Timing & S3 Timeout
Timing parameters define the window for server responses (P2) and client keep-alive signals (S3). When entering a non-default session, the S3 Server Timeout becomes active, requiring a Tester Present signal every 5000ms.
Operational Constraints
Transitioning between sessions triggers automatic resets of ECU security states and active diagnostic processes to ensure protocol integrity.
| System subject | Transition logic | Constraint level |
|---|---|---|
| Security Access (0x27) | Force locked | Protocol requirement |
| Active Downloads (0x34) | Purge buffer | Critical fault |
| Diagnostic Routines (0x31) | Terminate all | Safety buffer |
| Communication (0x28) | Default mode | Reset protocol |
Protocol Interaction
Session Transition
2 steps0x01Power-on default. No security required.
0x02Flash reprogramming; requires SecurityAccess.
0x03Advanced diagnostics. Most common non-default.
0x04ASIL-rated system isolation.
- Default → Programming
10 02 - Default → Extended
10 03 - Default → Safety
10 04 - Extended → Programming
10 02 - Any non-default → Default
10 01 / S3 timeout - Safety → Extended
10 03NRC 0x22 - Programming → Programming
10 02NRC 0x22 - Safety → Any other
10 xxNRC 0x22
Request Processing & Validation
Request Validation Pipeline
50 0X + timing parameters. S3 timer active for non-default sessions.Click any step to inspect validation logic.
Service Requirements by Session
Diagnostic Session Control Matrix
Which diagnostic sessions can be transitioned to from active sessions, and their security impacts. Select a row for details.
| Target Session | DEFAULT 0x01 | EXTENDED 0x03 | PROGRAMMING 0x02 | SAFETY 0x04 | Security |
|---|---|---|---|---|---|
| — | |||||
| ~ | — | ||||
| ~ | Level 3 Flash | ||||
| ~ | Level 5 ASIL |
Security State Behavior
Security access (0x27) is session-specific. Changing sessions resets security, except when remaining in Extended Session.
| From Session | To Session | Command | Security Impact |
|---|---|---|---|
| Default (0x01) | Extended (0x03) | 10 03 | No change (was locked) |
| Extended (0x03) | Extended (0x03) | 10 03 | Preserved |
| Extended (0x03) | Default (0x01) | 10 01 | Reset (locked) |
| Extended (0x03) | Programming (0x02) | 10 02 | Reset (locked) |
| Any | Default (Timeout) | Auto-reset | Reset (locked) |
Common Workflow Patterns
Safest workflow. No session elevation or security unlock required. Suitable for field technicians reading vehicle health data.
10 01Enter Default SessionExplicit reset to known state
22 F1 90Read VINVehicle identification number
19 02 09Read Active DTCsstatusMask = 0x09
19 06 01Read DTC SnapshotsFreeze frame data
Service Dependencies
Session control sets the context for the services below. Select a service in the live map or the list to inspect its requirements, request bytes, and failure behavior.
Inspect a related service
0x3E TesterPresent
Keep-alive · Inbound -> 0x10
How it relates to session control
Maintains non-default diagnostic sessions (Extended 0x03, Programming 0x02). The ECU maintains an internal S3 server timer (5000ms); if no diagnostic request or TesterPresent heartbeat is received within this window, the ECU autonomously aborts the active session and collapses back to Default Session (0x01).
Session permissions
- 0x01 Default
- Optional
- 0x02 Programming
- Required
- 0x03 Extended
- Required
- 0x04 Safety
- Required
- Tester must transmit request before S3Client or S3Server timer expires
- Subfunction 0x80 suppresses positive response to eliminate bus overhead
- Session reset automatically purges active flash buffers and security unlock state
- Not required in Default Session (0x01) as default session has no timeout
Typical request
3E 80- 3E
- SID: TesterPresent Service Identifier
- 80
- Sub-func: Suppress Positive Response (Bit 7 = 1)
Timing
S3 Server Timer: 5000ms · Recommended heartbeat interval: 2000–3500ms
Failure risk: S3_TIMEOUT
Session timeout triggers automatic fallback to 0x01 Default Session and relocks security.
Example packet exchange
- Tester → ECU
10 03Enter Extended Diagnostic Session
- ECU → Tester
50 03 00 32 13 88Session Active (P2=50ms, P2*=5000ms)
- Tester → ECU
3E 80Keep-Alive Heartbeat (S3 timer restarted)
Diagnostic workflow
1. Pre-condition Validation
Verify vehicle stationary & engine RPM via 0x22
2. SID 0x10 Diagnostic Session Switch
Enter Extended (10 03) or Programming (10 02)
3. Tester Present Heartbeat Loop
Keep S3 timer alive (3E 80) every 2000–3500ms
4. Session-Gated Privileged Operations
Services unlocked or constrained by active session
5. Teardown & Reset to Default
HardReset (11 01) or explicit 10 01 Default switch
Session rules at a glance
- Security Relock
- Session transitions unconditionally reset security state machine to Locked.
- S3 Keep-Alive
- Non-default sessions collapse to 0x01 if TesterPresent (0x3E) is missed for 5000ms.
- Reset Collapse
- Executing 0x11 ECU Reset immediately tears down session parameters to Default.
- Session Gating
- Flashing (0x34) and Bus Isolation (0x28) are strictly blocked in Default Session.
Negative Response Codes
Negative response codes
The requested diagnostic session type (sub-function value) is not supported by this ECU.
This negative response indicates a rejection while processing the Diagnostic Session Control (SID 0x10) request. Verify preconditions, session levels, and message formatting per ISO 14229.
Debugging & Troubleshooting
Click any issue card to reveal cause and fix.