UDS 0x10 DiagnosticSessionControl

Switch the ECU into another diagnostic session. Each session unlocks a different set of services.

Request and response

Bytes
Request10 <session>
Positive response50 <session> <P2 max, ms: 2 bytes> <P2* max, 10 ms units: 2 bytes>
Negative response7F 10 <NRC>

The positive response service ID is the request's plus 0x40: 10 answers with 50. The byte after the service ID is a sub-function; setting its bit 7 (adding 0x80) asks the ECU not to send a positive response.

Example

Request:   10 03
Response:  50 03 00 32 01 F4

Extended session; P2 = 0x0032 = 50 ms, P2* = 0x01F4 × 10 ms = 5 s.

Sessions

ValueName
01defaultSession
02programmingSession
03extendedDiagnosticSession
04safetySystemDiagnosticSession

Worth knowing

  • A non-default session times out after S3 (usually 5 s) without traffic; send TesterPresent (3E 80) to keep it.
  • Changing session ends security access, so unlock again after it.
  • Many ECUs only allow the programming session from the extended session.

Negative response codes it often returns

Do it in your browser