UDS 0x19 ReadDTCInformation

Read fault codes, their status bits, counts and snapshots.

Request and response

Bytes
Request19 <subFunction> [DTCStatusMask | DTC + record number …]
Positive response59 <subFunction> <DTCStatusAvailabilityMask> [<DTC: 3 bytes> <status>] …
Negative response7F 19 <NRC>

The positive response service ID is the request's plus 0x40: 19 answers with 59. 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:   19 02 08
Response:  59 02 FF 01 23 45 2F

Confirmed codes (mask 08): one code, 0x012345, status 0x2F.

Common sub-functions

ValueName
01reportNumberOfDTCByStatusMask
02reportDTCByStatusMask
03reportDTCSnapshotIdentification
04reportDTCSnapshotRecordByDTCNumber
06reportDTCExtDataRecordByDTCNumber
0AreportSupportedDTC

Worth knowing

  • The status byte has eight bits: testFailed, testFailedThisOperationCycle, pendingDTC, confirmedDTC, testNotCompletedSinceLastClear, testFailedSinceLastClear, testNotCompletedThisOperationCycle, warningIndicatorRequested.
  • The mask selects codes with any of its bits set: 08 for confirmed, 09 for confirmed or currently failing, FF for all.

Negative response codes it often returns

Do it in your browser