Skip to Content
UDS Simulator 2.0 Released

Docs baseline actions

Copy this page URLEdit page
Docs0x10 Diagnostic Session Control

Service Interaction Protocol

Diagnostic Session Control

0x10
Protocol Identifier
Manages the transition between distinct operational states (Sessions). Elevating to specialized sessions like Programming or Extended enables advanced diagnostic services and modifies protocol timing behavior.
tip _entry

Standard Sync: Implements ISO 14229-1:2020 logic, including active S3 server timeout detection and session-specific P2/P2* timings.

Service Purpose

ISO 14229-1

“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 Standards

PACKET_INPUT_STRUCT

Byte
Parameter
Data_Type
0Service ID0x10
1Sub-Function0x01–0x04

PACKET_OUTPUT_STRUCT

Byte
Parameter
Data_Type
0Response SID0x50
1Session Echo0x0X

SERVER_RESPONSE_PARAMS

Byte
Parameter
HUD_Example
Descriptor
2-3P2 Server Timing0x00 0x3250ms Resolution
4-5P2* Server Timing0x13 0x885000ms Resolution

Response Management

RESPONSE_SUPPRESSION_LOGIC

Active Bit 7 (0x80) detection. When present in the sub-function byte, the ECU enters Silent Mode for positive responses, optimizing packet throughput.

Standard_Sequence
tx_packet

Request

10 01
rx_packet

Response

50 01
Suppressed_Sequence
tx_packet

Suppression_Active

10 81
[ HUD_SILENCE_DETECTED ]

! Critical: NRC 0x7F bypasses suppression logic and will always broadcast.

Session Selection

Default_Session (0x01)READY
  • Standard diagnostic operations
  • DTC retrieval and clearing
  • Basic identification
tx_packet

Protocol_Logic

10 01
Extended_Session (0x03)S3_ACTIVE
  • Advanced service access
  • I/O control operations
  • Tester Present required
tx_packet

Protocol_Logic

10 03
Programming_Session (0x02)SECURE_REQ
  • Software update procedures
  • Memory erase operations
  • Bootloader access
tx_packet

Protocol_Logic

10 02
Safety_Session (0x04)CRITICAL
  • Airbag/ABS diagnostics
  • Critical routine execution
  • High-priority timing
tx_packet

Protocol_Logic

10 04

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.

P2_SERVER
50ms
P2*_SERVER
5000ms
S3_TIMEOUT
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_LockedProtocol Requirement
Active Downloads (0x34)Purge_BufferCritical Fault
Diagnostic Routines (0x31)Terminate_AllSafety Buffer
Communication (0x28)Default_ModeReset Protocol

Protocol Interaction

SEQUENCE_INTERACTION_DUMP

Protocol Transition Sequence

2 steps
Tester
ECU

Logic_Core: UDS_STATE_MACHINE_ENG

v4.0_READY

Negative Responses

Logic_Exceptions

Critical_Error_Paths

NRC_0x12

Sub-function Not Supported

The requested session ID is not implemented or valid for this hardware configuration.
SEQ_DIAGRAM_DUMPOFFSET_0x7F

Sub-function Not Supported Flow

2 steps
Tester
ECU
NRC_0x22

Conditions Not Correct

Environmental pre-conditions (e.g. Speed, Voltage) block the session transition.
SEQ_DIAGRAM_DUMPOFFSET_0x7F

Conditions Not Correct Flow

2 steps
Tester
ECU