When an ECU detects a fault, it may store diagnostic information so that a tester or service technician can investigate the condition. A Diagnostic Trouble Code (DTC) identifies a diagnostic fault condition according to the ECU's diagnostic design.
UDS provides services to read and clear diagnostic information. Two central services are:
- ReadDTCInformation (
0x19): requests DTC-related information. - ClearDiagnosticInformation (
0x14): requests clearing of selected diagnostic information.
DTC management is important in ECU software development, validation, vehicle diagnostics and workshop service. A DTC is evidence that a defined diagnostic condition was detected; it is not, by itself, proof that a particular hardware component must be replaced.
1. What is a DTC?
A DTC is an identifier associated with a diagnostic fault or failure mode detected by an ECU. Examples of monitored conditions include:
- Sensor signal outside an expected range.
- Open circuit or short circuit.
- Communication timeout.
- Actuator malfunction.
- Internal ECU fault.
- Performance or plausibility failure.
The DTC definition, detection criteria, enable conditions, confirmation rules and healing behavior are defined by the ECU diagnostic design. The same physical symptom can lead to different DTCs depending on the ECU architecture and diagnostic strategy.
2. How an ECU detects and stores a fault
A simplified diagnostic monitoring process is:
- A monitor evaluates a signal or system condition.
- The monitor determines whether a fault criterion is met.
- The diagnostic event is reported to the ECU's diagnostic event-management mechanism.
- The ECU applies configured debounce and confirmation rules.
- A DTC and associated status information may be stored.
- Snapshot or extended data may be captured according to configuration.
In AUTOSAR Classic, diagnostic event management and DTC-related data are commonly handled by the Diagnostic Event Manager (Dem), while the Diagnostic Communication Manager (DCM) provides diagnostic communication services. The exact integration depends on the ECU project and AUTOSAR configuration.
3. ReadDTCInformation — service 0x19
ReadDTCInformation allows a tester to request DTC-related information. The request includes a sub-function that selects the report type. Common report categories include:
- Number of DTCs matching a status mask.
- DTCs matching a status mask.
- Supported DTCs.
- Snapshot identification and snapshot records.
- Extended data records.
Not every ECU supports every sub-function or record type. Confirm supported reports, record identifiers and response formats in the ECU diagnostic specification and applicable UDS edition.
Example: request DTCs by status mask
A commonly used report type is reportDTCByStatusMask (sub-function 0x02). A request can be represented as:
Tester -> ECU: 19 02 FF
Interpretation:
0x19: ReadDTCInformation service.0x02: reportDTCByStatusMask sub-function.0xFF: illustrative DTC status mask requesting all status-bit conditions that are supported and considered by the server's filtering rules.
A schematic positive response containing one DTC record could look like:
ECU -> Tester: 59 02 FF 01 12 34 56 2F
This is an illustrative byte layout, not a trace from a specific ECU:
0x59: positive response SID for service0x19.0x02: echoed report sub-function.0xFF: illustrative DTC status availability mask.0x01: illustrative DTC format identifier.0x12 0x34 0x56: illustrative three-byte DTC value.0x2F: illustrative DTC status byte.
Actual responses can contain multiple DTC records and may be longer. Decode the DTC format identifier, status availability mask and record structure according to the requested sub-function and the ECU's diagnostic specification. Do not assume these illustrative values represent a universal DTC or format.
4. DTC status information
A DTC status byte represents diagnostic state information. The commonly defined status-bit concepts are:
| Bit | Common label | General interpretation |
|---|---|---|
| 0 | testFailed | The test has failed at the relevant time |
| 1 | testFailedThisOperationCycle | The test failed during the current operation cycle |
| 2 | pendingDTC | The DTC is pending according to diagnostic rules |
| 3 | confirmedDTC | The DTC has reached its configured confirmation criteria |
| 4 | testNotCompletedSinceLastClear | The test has not completed since the last clear |
| 5 | testFailedSinceLastClear | The test has failed at least once since the last clear |
| 6 | testNotCompletedThisOperationCycle | The test has not completed in the current operation cycle |
| 7 | warningIndicatorRequested | Diagnostic logic requests the associated warning indicator, where applicable |
The state of each bit depends on monitor execution, operation cycles, confirmation and clearing rules. Do not interpret one bit in isolation. A bit being clear does not necessarily prove that the physical fault is absent; it may indicate that a monitor has not completed or that a lifecycle condition has not occurred.
Interpreting a status byte
For example, the illustrative status byte 0x2F is:
0x2F = 0010 1111 (binary)
|||| ||||
7654 3210
The set bits are 0, 1, 2 and 3, and bit 5. Using the labels in the table, this indicates testFailed, testFailedThisOperationCycle, pendingDTC, confirmedDTC and testFailedSinceLastClear are set. This is only a bit-level illustration; the ECU's monitor state, operation-cycle configuration and applicable standard determine the real interpretation.
5. DTC status mask and availability mask
A tester can use a status mask to request DTCs matching selected status conditions. For example, a test tool may request DTCs for which the confirmedDTC bit is set.
The status mask is a filter, not a replacement for the DTC status byte. In report types that use status-mask filtering, the server applies the mask to the DTC status according to the service definition. A common conceptual expression is:
(DTC status byte AND requested status mask) != 0
The response may also include a DTCStatusAvailabilityMask, which indicates which status bits are supported or available in the server's implementation. A tester should account for this mask when interpreting status information. Consult the exact sub-function definition in the applicable UDS edition; do not assume every ECU implements every status bit.
6. Snapshot records
A snapshot record captures selected data associated with a diagnostic event or fault occurrence. Depending on ECU configuration, snapshot data may include:
- Vehicle speed.
- Engine speed.
- Supply voltage.
- Temperature.
- Operating state.
- Other relevant sensor or system values.
Snapshot records help engineers understand the operating conditions under which a fault was detected. Not every ECU captures the same parameters, and availability can differ by DTC and record identifier.
A tester typically needs to identify the supported snapshot record and then request the corresponding record for the relevant DTC. The response layout and data identifiers are implementation- and specification-dependent.
7. Extended data records
Extended data provides additional diagnostic information associated with a DTC. Depending on the ECU design, it may include:
- Fault occurrence counters.
- Aging or healing-related values.
- Diagnostic monitoring information.
- Other configured records.
Snapshot data and extended data serve different purposes. Snapshot data generally captures selected operating conditions, while extended data contains configured diagnostic records such as counters or lifecycle-related information. Their content, scaling, record identifiers and availability must be obtained from the ECU diagnostic specification.
8. ClearDiagnosticInformation — service 0x14
ClearDiagnosticInformation requests that the ECU clear selected diagnostic information. Its request contains a groupOfDTC parameter that selects the DTC group or scope to which the clear request applies.
The request has the general form:
Tester -> ECU: 14 [groupOfDTC: 3 bytes]
ECU -> Tester: 54
0x14 is the request SID and 0x54 is the positive response SID. The three-byte group parameter shown in brackets is a placeholder, not a literal value. Use only a group value defined and permitted by the ECU diagnostic specification.
A successful positive response indicates that the ECU accepted the clear request according to its rules. It does not prove that the physical fault has been repaired. If the fault condition remains present, the monitor may detect it again and the DTC may return. Some diagnostic information may have specific clearing restrictions or retention requirements, including regulatory or permanent-DTC behavior.
Safety note: Do not send a broad or all-DTC clear request to a live vehicle or production ECU merely to test the service. Use an approved test ECU, defined test group and authorized procedure. Read and preserve diagnostic evidence before clearing.
9. Example diagnostic workflow
Suppose a workshop or validation tool needs to investigate a sensor-related DTC:
- Establish diagnostic communication with the intended ECU.
- Enter the required diagnostic session if necessary.
- Request DTC information using service
0x19. - Decode the returned DTC identifiers and status bytes.
- Request snapshot or extended data if supported.
- Compare recorded conditions with the fault description and vehicle state.
- Investigate and repair the root cause.
- Clear the relevant diagnostic information using service
0x14, if the procedure allows. - Re-run the diagnostic monitor or required drive-cycle procedure.
- Read DTC information again to confirm the result.
This is a simplified workflow. Workshop procedures, OEM instructions and regulatory requirements may impose additional steps.
10. DTC clearing versus fault repair
Clearing a DTC removes or resets selected stored diagnostic information according to the ECU's rules. It does not correct a broken wire, failed sensor, damaged connector or software defect.
A sound diagnostic process is:
- Read and record the DTC before clearing.
- Capture status, snapshot and extended data where available.
- Identify the likely root cause.
- Repair or correct the issue.
- Clear the DTC when the procedure allows.
- Confirm that the monitor completes and the fault does not return.
Clearing codes before recording their associated data can remove useful troubleshooting evidence.
11. DTC management in AUTOSAR Classic
In an AUTOSAR Classic architecture, the Diagnostic Event Manager (Dem) is commonly responsible for diagnostic event processing and DTC-related data management.
DCM provides the diagnostic communication interface through which a tester can request DTC information or clear diagnostic information. A simplified relationship is:
- Software monitors detect faults and report diagnostic events.
- Dem processes events and manages configured DTC data.
- DCM handles tester requests and obtains diagnostic information through configured interfaces.
The actual integration depends on the ECU's AUTOSAR version, configuration and project architecture.
12. Common troubleshooting issues
Expected DTC is not reported.
- Check monitor enable conditions.
- Check debounce and confirmation criteria.
- Check event-to-DTC mapping.
- Check the requested sub-function and status mask.
- Confirm that the DTC is supported by the ECU.
DTC status appears unexpected.
- Review operation-cycle behavior.
- Check whether the monitor has completed.
- Review debounce, aging and healing configuration.
- Decode the complete status byte and consider the availability mask.
DTC returns immediately after clearing.
- The underlying fault may still be present.
- The monitor may run again and detect the same condition.
- Check whether the clear request covered the intended DTC group.
Snapshot or extended data is unavailable.
- The ECU may not support the requested report or record.
- The relevant record may not have been captured.
- The requested DTC or record identifier may be incorrect.
- Check the ECU diagnostic specification and response NRC.
13. Practical verification strategy
A DTC test should verify more than whether a code appears in a tester display. It should validate the diagnostic lifecycle, status transitions, stored data and clear behavior against requirements.
Example DTC lifecycle
This is a conceptual lifecycle, not a universal state machine for every DTC. Confirmation thresholds, aging, healing and warning-indicator behavior depend on the diagnostic design and applicable requirements.
Recommended verification cases
| Test case | Stimulus or condition | Expected verification |
|---|---|---|
| Fault detection | Apply the defined fault condition | Expected event/DTC and status transition |
| Fault healing | Remove the fault and run required monitor cycles | Status and healing behavior follow ECU requirements |
| Status filtering | Request DTCs with selected status masks | Only matching records are reported according to service rules |
| Unsupported status bits | Request a report involving unavailable bits | Availability mask and response are interpreted correctly |
| Snapshot retrieval | Request a supported snapshot record | Correct DTC, record identifier, length and data |
| Extended data retrieval | Request a supported extended record | Correct record and configured data |
| Clear selected group | Send an approved 0x14 request | Positive or negative response matches ECU policy |
| Post-clear check | Read DTC information after clearing | Cleared state and monitor-not-completed behavior are handled correctly |
| Fault still present | Clear only in an approved test setup, then re-run monitor | DTC can reappear according to diagnostic strategy |
| Regression | Repeat previous nominal and fault cases | Results remain consistent with the baseline |
Trace review checklist
For every 0x19 or 0x14 test, capture:
- Request SID and sub-function, where applicable.
- Status mask or groupOfDTC parameter.
- Raw request and response payloads.
- Response length and negative response code, if present.
- DTC format identifier, where returned.
- Three-byte DTC value and status byte.
- DTC status availability mask.
- Snapshot or extended data record identifiers.
- Timestamps, ECU software version and diagnostic configuration baseline.
Decode records using the ECU's DTC definition. A generic byte-to-text mapping is not sufficient when the DTC format or project-specific mapping differs.
14. Common misconceptions
A DTC always identifies the failed hardware part.
A DTC identifies a diagnostic condition; further analysis is required to find the root cause.
Clearing a DTC fixes the fault.
No. It clears selected diagnostic information according to ECU rules.
Every ECU stores identical snapshot data.
No. Record content and availability are configured by the ECU manufacturer.
A DTC is confirmed as soon as a monitor detects one failure.
Not necessarily. Confirmation can depend on debounce, operation cycles and diagnostic strategy.
A positive response to service 0x14 proves the fault is gone.
No. It indicates acceptance of the clear request, not physical repair or successful completion of a subsequent monitor.
15. Key takeaways
- DTCs represent diagnostic fault conditions detected by ECU monitors.
- UDS service
0x19reads DTC-related information using report sub-functions. - The DTC status byte describes diagnostic state and should be interpreted with the availability mask and ECU strategy.
- Snapshot and extended data provide additional fault context.
- UDS service
0x14requests clearing of selected diagnostic information using a groupOfDTC parameter. - Clearing a DTC does not repair the root cause.
- In AUTOSAR Classic, Dem commonly manages diagnostic events and DTC data, while DCM handles diagnostic communication.
- Verification should cover fault detection, status transitions, stored records, clear behavior and post-clear monitoring.
16. Check your understanding
- Which UDS service reads DTC information?
- Which UDS service requests clearing of selected diagnostic information?
- What is the purpose of the DTC status availability mask?
- How do snapshot records differ from extended data records?
- Does a positive response to
0x14prove that the physical fault has been repaired? - Which AUTOSAR Classic module commonly manages diagnostic events and DTC-related data?
Answers
- ReadDTCInformation (
0x19). - ClearDiagnosticInformation (
0x14). - It indicates which DTC status bits are supported or available for interpretation by the server.
- Snapshot records capture selected conditions associated with a diagnostic event; extended data contains additional configured diagnostic records such as counters or lifecycle information.
- No. It indicates acceptance of the clear request according to ECU rules.
- Diagnostic Event Manager (Dem).
Related UDS articles
- UDS Protocol Explained
- UDS Services and Service Identifiers
- Diagnostic Session Control
- UDS SecurityAccess (0x27)
- UDS ECU Flashing
References and further reading
- ISO 14229 series — Unified diagnostic services
- ISO 14229-1:2026 — Road vehicles: Unified diagnostic services, application layer
- AUTOSAR standards
- AUTOSAR Classic Platform
Standards note: Confirm the ISO 14229 edition and project-specific diagnostic profile applicable to the ECU under test. 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.
