Blog · 2026-11-10

OBD request trouble code mode 3 and mode 7

Stefan Bogdanescu

Founder & Senior Architect

Understanding OBD-II Mode 03 and Mode 07 for Trouble Code Retrieval

When building a mobile application to read diagnostic trouble codes (DTCs) from a vehicle, you quickly encounter the confusion surrounding OBD-II request modes. Developers often see references to Mode 01 PID 01, Mode 03, and Mode 07 as viable options for retrieving fault data. While all three can return codes, they serve distinct purposes within the OBD-II protocol, and choosing the wrong one can lead to incomplete diagnostics or unexpected behavior when a circuit is disconnected.

Mode 01 PID 01 is the generic "Read Data Parameters" command used primarily for live monitoring. When you query this with PID 01 (Status), it returns a specific byte indicating whether the system has detected a fault. If the status byte contains a '1' bit at position corresponding to a specific DTC, it signals a current failure. However, this method only tells you that a code exists; it does not return the actual alphanumeric string of the code itself unless you subsequently query the generic "Read DTCs" mode.

This is where Mode 03 and Mode 07 diverge significantly in their functionality and reliability depending on the vehicle's configuration.

Mode 03 is the standard request for "Confirmed Codes." This command instructs the Engine Control Unit (ECU) to return only those trouble codes that are currently stored and confirmed by the manufacturer's logic. In your scenario, where disconnecting a cable triggers P0105 via Mode 03 but also reveals P0110 via Mode 07, the discrepancy highlights a critical architectural difference: pending vs. confirmed status.

Mode 03 generally filters out "pending" codes. A pending code is one that the ECU has detected recently but has not yet met the specific drive cycle criteria (often multiple drive cycles or specific thresholds) required to lock it into memory as a hard fault. If your application relies on Mode 03, you might miss intermittent issues or faults that haven't fully matured in the ECU's logic yet.

Mode 07, conversely, requests "Pending and Confirmed Codes." It returns the full list of all trouble codes currently residing in the ECU's memory, regardless of whether they are confirmed or still pending. This explains why you received two codes (P0105 and P0110) with Mode 07 when Mode 03 only showed one. The P0110 is likely a pending code that hasn't been cleared from the memory yet, but it hasn't passed the threshold to be reported by the stricter Mode 03 command.

For a mobile diagnostic app, the choice between these modes depends on your definition of "fault." If your goal is to report only hard failures that will remain until the user clears them with an OBD-II scanner or resets the battery, Mode 03 is often the safer bet to avoid alerting users to transient sensor noise. However, if your application aims to provide a comprehensive health check—alerting a mechanic to a component that is on the verge of failure—Mode 07 provides the necessary visibility into pending states.

Implementation in your app should account for this filtering logic. You might implement a hybrid approach: first query Mode 03 to get the confirmed errors, then optionally query Mode 07 if you need to flag potential issues for further investigation. Be aware that not all ECUs support Mode 07; some legacy vehicles or specific manufacturers may only respond to Mode 03 or return an error code when Mode 07 is sent. Always handle the response packet carefully, checking the first byte for a 'P' prefix which indicates success, and subsequent bytes for actual hex codes versus null terminators.

Finally, remember that retrieving codes via these modes does not automatically clear them. Your app must explicitly send a Mode 04 command with the appropriate clearing flags to reset the MIL (Malfunction Indicator Lamp) and memory if you intend to perform a test drive or simulation. Relying solely on Mode 01 for code retrieval is usually insufficient for DTC strings, as it requires additional processing of status bytes and subsequent queries to map bits to specific codes, making Mode 03 or 07 the preferred direct methods for reading fault history.