Clear Diagnostic Information
The Clear Diagnostic Information service allows the client to clear diagnostic data (DTCs, Freeze Frames, etc.) from the server
Permanent DTCs: This service does not clear OBD-II permanent DTCs. Those require 3 consecutive successful drive cycles after the fault is repaired.
DTC Lifecycle & Clear Verification Pipeline (0x19 -> 0x14 -> 0x19)
Automated Fault Auditing, Persistent Erase & Re-Read Verification
Overview
“The client uses this service to clear one or more units of diagnostic information from the server’s memory. This includes DTCs, captured data, and status counters.”
Message Structure
Clear Diagnostic Information requests are 4-byte frames containing the SID and a 3-byte GroupOfDTC mask. 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
0x14 Clear Diagnostic Information
0x14 Response
Workflow & Response Pending
Clearing memory (writing to EEPROM or Flash) can be slow. If the operation exceeds ~50ms, the ECU sends NRC 0x78 (Response Pending) to prevent tester timeout. Multiple 0x78 responses may be sent before the final 0x54.
ECU is ready. DTC memory is intact. Diagnostic session active (Default or Extended). Awaiting service request.
Press Simulate to animate the clear operation, or click any state to inspect it.
Request Processing Flow
Every clear request is validated through a structured 7-gate pipeline before the memory erase operation begins. Each gate has a specific NRC for failure.
Clear validation pipeline
54 — single byte, no sub-function echo. DTC memory cleared. Timer reset.Click any step to expand validation logic.
State Machine & Security
The ECU transitions through a defined sequence of states during a clear operation. Security state affects whether the operation proceeds or returns NRC 0x33.
ECU is ready. DTC memory is intact. Diagnostic session active (Default or Extended). Awaiting service request.
Press Simulate to animate the clear operation, or click any state to inspect it.
Session & Security Matrix
SID 0x14 DTC Clearing Matrix
ClearDiagnosticInformation permissions by GroupOfDTC across diagnostic sessions. Select a row for details.
| GroupOfDTC Mask & Domain | DEFAULT 0x01 | EXTENDED 0x03 | PROGRAMMING 0x02 | Security |
|---|---|---|---|---|
| — | ||||
| — | ||||
| ~ | Steering / ABS | |||
| — | ||||
| ~ | — | |||
| — |
Security State Behavior
Standard emission groups (0xFFFF33) and common powertrain DTCs can be cleared in extended sessions without security unlocking. Safety-critical ECUs (airbag, powertrain controller) require security access before allowing all DTCs (0xFFFFFF) to be cleared.
Full erasure of fault memory, freeze frames, and internal failure counters is permitted.
Triggered when this service or requested resource requires an active security unlock that has not been granted.
Triggered during unlock attempts if the calculated key fails ECU cryptographic verification.
Enforced delay lockout if the maximum number of failed key submissions (typically 3) has been exceeded.
Service Dependencies
0x14 erases non-volatile fault logs and resets DTC status masks. Select a node to inspect protocol interactions.
Inspect a related service
0x19 ReadDTCInformation
Pre & Post Audit · 0x19 ⇄ 0x14 FAULT CYCLE
How it relates to ClearDiagnosticInformation
Diagnostic standards strictly require reading and logging DTCs, freeze frames, and extended data records via 0x19 BEFORE issuing 0x14 Clear. After clearing, 0x19 is re-run to confirm DTC memory status byte cleared (0x00).
Session permissions
- 0x01 Default
- Allowed
- 0x02 Programming
- Allowed
- 0x03 Extended
- Allowed
- 0x04 Safety
- Allowed
- Pre-clear interrogation preserves freeze frame diagnostic history
- Post-clear verification confirms bit 3 (confirmedDTC) is zeroed
- If underlying failure is physical, fault re-arms immediately
- Essential for warranty and repair validation logs
Typical request
19 02 AF- 19
- SID: ReadDTCInformation
- 02
- Sub-func: reportDTCByStatusMask
- AF
- Mask: Confirmed, Pending, Active Mask
Timing
Pre-clear read: ~50ms; Post-clear confirmation: ~50ms after positive response 54.
Failure risk: UNCLEARED_FAULT
If hardware fault persists, 0x19 immediately shows bit 0 (testFailed) re-asserting.
Example packet exchange
- Tester → ECU
19 02 AFRead Current Active DTCs
- Tester → ECU
14 FF FF FFClear All Diagnostic Information
- Tester → ECU
19 02 AFVerify Fault Memory Empty (0x00)
Diagnostic workflow
1. Fault Audit & Freeze Frame Extraction
Read and preserve existing DTCs & snapshot records via 0x19 02 AF
2. Physical Repair & Live Sensor Verification
Verify replacement components report nominal telemetry via 0x22
3. Security Unlock & Fault Freeze
Unlock privileged access via 0x27 and freeze incoming DTCs via 0x85
4. Clear Diagnostic Information Dispatch
Send 14 FF FF FF to erase fault memory and reset status bits
5. Post-Clear Verification & Self-Test
Verify 0x19 returns 0x00 and execute system verification via 0x31
Service rules at a glance
- Audit First
- Always read and document DTCs and freeze frames via 0x19 before issuing 0x14 Clear.
- Non-Volatile Erase
- 0x14 triggers an EEPROM flash block erase. Never power down the ECU while 0x14 is processing.
- Active Fault Re-Arm
- Clearing memory does not repair hardware; persistent faults immediately set testFailed (bit 0).
- Safety Domain Access
- Crash records and high-voltage interlock faults require SecurityAccess (0x27) before clear.
What Gets Cleared & Preserved
SID 0x14 clears specific memory regions within the targeted GroupOfDTC range. Configuration, security, and adaptive data are always preserved.
Click any item to see detailed explanation.
Memory Management
Understanding EEPROM/Flash layout helps diagnose clearing failures and explains why some data survives a clear operation while other data does not.
Click any segment in the bar to inspect the memory region.
Click any step to see its detailed description.
Common Testing Scenarios
Five real-world test cases. Select a scenario, then press Play or step frame-by-frame with ›. Hover any frame to copy its hex bytes.
Extended session · vehicle stationary · no active faults
3 DTCs erased, memory verified empty
Service Interaction Workflows
Animated workflow runner showing how SID 0x14 integrates with other services. Select a scenario and press Simulate to see the full byte-level interaction.
Complete technician sequence: diagnose → physical repair → clear → verify clean.
Full Workflow · 10 frames10 03Enter Extended Session50 03Session Confirmed19 02 AFRead All Active DTCs59 02 AF …DTCs Returned14 FF FF FFClear All DTCs7F 14 78Response Pending54Clear Complete19 02 AFVerify Empty59 02 AF 00No DTCsPress Simulate to animate the full message sequence.
Negative Response Codes
Negative response codes
The clear request byte count is invalid. SID 0x14 requires 4 bytes: SID + 3-byte groupOfDTC.
This negative response indicates a rejection while processing the Clear Diagnostic Information (SID 0x14) request. Verify preconditions, session levels, and message formatting per ISO 14229.
Troubleshooting & Debugging
Interactive diagnostic checklist and issue cards for common clear failures. Work through the checklist systematically before escalating.
DTCs ReturnCriticalDTCs reappear immediately after successful 0x54
0x22HighNRC 0x22 — Conditions Not Correct
0x33HighNRC 0x33 — Security Access Denied
0x13MediumNRC 0x13 — Incorrect Message Length
0x31LowNRC 0x31 — Request Out of Range
0x72HighNRC 0x72 — General Programming Failure
Best Practices & Quick Reference
Immediate 0x54
May send 1× NRC 0x78
1–3× NRC 0x78
3–10+ NRC 0x78
0x130x220x310x330x720x780x54