Stored, pending and permanent codes, freeze frame, and when clearing makes sense

Read check engine codes with an iPhone and an ELM327 adapter, tell stored from pending and permanent codes, and know what clearing really resets.

Cihat SALİK 7 min read

To read check engine codes with an iPhone you need two things: an OBD2 app and an ELM327-compatible adapter that connects over Bluetooth LE or Wi-Fi. Plug the adapter into the car’s OBD-II port, switch the ignition on, connect from the app and run a scan. The app lists the trouble codes, the freeze frame captured when the fault was set and the state of the readiness monitors. Clearing erases that evidence and repairs nothing, so read the codes first.

What you need

  • An iPhone OBD2 app that can read stored, pending and permanent codes, and ideally freeze frame and readiness monitors too.
  • An ELM327-compatible adapter that uses Bluetooth LE or Wi-Fi. Many cheap adapters use classic Bluetooth, the serial profile that Android phones and laptops use. iOS does not let apps talk to those adapters at all, whatever the app. The ELM327 adapter guide for iPhone explains how to tell the two apart before you buy.
  • A car with OBD-II. If it has a 16-pin diagnostic socket under the dash, it almost certainly does.

Where the OBD-II port is

The port is a 16-pin, trapezoid-shaped socket within reach of the driver’s seat. In most cars it sits under the dashboard, to the left or right of the steering column, often in plain view when you look up from the footwell. Otherwise look behind a flap near the fuse box or in the centre console, or check the owner’s manual.

Reading the codes, step by step

  1. Park the car somewhere safe with the handbrake on.
  2. Plug in the adapter with the ignition off. A light on the adapter shows it has power.
  3. Turn the ignition on. Engine off is fine for reading codes; some cars answer faster with the engine running.
  4. Connect from the app. Bluetooth LE adapters pair from inside the app, not from the iPhone’s Bluetooth settings. Wi-Fi adapters need you to join their network in Settings first.
  5. Run the scan and wait for every control unit that answers to report. A good app asks each emissions-related unit, not only the engine computer.
  6. Write down or save the result before you change anything: codes, freeze frame and readiness.

Stored, pending and permanent codes

OBD-II defines three kinds of trouble code. A scan that shows only one hides part of the picture.

Kind What it means Light on? Can a scan tool clear it?
Pending Fault seen once; the computer is waiting for it to repeat Usually not Yes
Stored (confirmed) Fault repeated and was confirmed Usually yes Yes
Permanent Copy of a confirmed emissions fault, kept until the car proves it is gone Yes, while active No

Pending codes are early warnings. A misfire seen on one trip, or a small evaporative leak detected once, lands here first. If the next trips are clean, the code disappears. If the fault repeats, it becomes a stored code and the light comes on.

Stored codes are the ones behind a lit check engine light. They stay until the fault clears itself over enough clean trips or someone clears them.

Permanent codes exist so that clearing cannot hide a fault. Not every car reports them; newer cars are more likely to.

Freeze frame: the snapshot behind the code

When a code is confirmed, the engine computer saves a freeze frame: a set of readings from the moment it happened. Typical values are engine speed, coolant temperature, engine load, vehicle speed, and short and long term fuel trims.

A P0300 random misfire set at idle on a cold engine points somewhere different from the same code set under load on the motorway. A P0171 lean condition with high fuel trims at idle and normal trims at speed suggests an air leak more than a weak fuel pump. Clearing the code deletes the freeze frame, which is the main reason to save it first.

What to do with a code

  1. Look up what it means. The first character tells you the system (P for powertrain, U for network communication), and the free code lookup gives the meaning and the common causes.
  2. Check how many codes there are and how they relate. A cylinder-specific misfire such as P0301 together with P0300 says more than either alone.
  3. Read the freeze frame for the conditions when it was set.
  4. Do the cheap checks first. A loose fuel cap is a classic cause of P0455 and P0442 evaporative leak codes. A thermostat stuck open sets P0128.
  5. Have a qualified mechanic confirm anything that involves replacing parts. A code names the test that failed, which is not always the part that broke. P0420 says catalyst efficiency is below threshold, but a sensor or an exhaust leak can cause that reading as well as the catalytic converter itself.

A flashing check engine light is different from a steady one: it means a misfire severe enough to damage the catalytic converter. Drive gently, avoid load, and get it checked soon.

When clearing is reasonable

Clearing makes sense in a few situations:

  • After a repair, to confirm the fix. If the code stays away through normal driving, the repair worked.
  • After fixing an obvious one-off cause, such as tightening a fuel cap that was left loose.

It does not make sense to clear a code you have not read, to clear repeatedly in the hope it stays away, or to clear before an emissions inspection. Inspections that read the OBD port also check readiness monitors, and a freshly cleared car shows them as not ready.

What clearing resets

Clearing codes is more than switching off a light. On most cars it also:

  • Erases the freeze frame for every code.
  • Resets the readiness monitors to incomplete. These are the self-tests for the catalyst, oxygen sensors, evaporative system, EGR and so on. Each needs specific driving conditions to run again.
  • Clears some learned values, such as fuel trim adaptations on many engines. The engine relearns them as you drive.

Before clearing, have the ignition on and the engine off. Many engine computers refuse a clear request while the engine runs.

Why a code comes back

A code returns because the condition that set it is still there. Clearing removes the record, and the computer keeps running the same test. When the test fails again, the code goes back to pending, then to stored, and the light returns. How quickly depends on the test: a constant misfire can return within minutes, while an evaporative leak test may only run after a cold start with the right fuel level and may take days to come back. A code that returns after a part was replaced usually means the part was not the cause.

Permanent codes only the car can erase

A permanent code stays after a clear, and the light may go out while the permanent code is still listed. The engine computer removes it only after the related monitor has run and passed in normal driving, so the car has shown that the fault is gone. There is no button for it in any app, by design.

If you have fixed the cause, drive normally: a mix of town and steady open-road driving, starting from cold on some trips. Check readiness and permanent codes again after a few days. When the monitor shows complete and the permanent code is gone, the car has finished the job itself.

Doing this in Hoodsight

Hoodsight is a free iPhone and iPad app (iOS 17 or later) that connects to ELM327-compatible adapters over Bluetooth LE or Wi-Fi. Its Adapter Doctor tests the adapter you have; clones that behave unlike a genuine ELM327 v2.x stay read-only, so Hoodsight reads with them but will not clear codes. It reads stored, pending and permanent codes from every emissions-related control unit, along with freeze frame and readiness monitors. Scanning, readiness, freeze frame, inspection and history are never locked.

Its safe clear refuses while the car is moving, saves a snapshot first, tells you what will be lost (freeze frame, readiness monitors, some learned values), then rescans to show which codes came back. The free version includes one safe clear per day; Hoodsight Pro adds unlimited clears.

The AI Mechanic links codes, freeze frame and live readings into likely causes and lists the evidence for each. Nothing is uploaded and there is no account. Hoodsight reads generic OBD-II only, so ABS, airbag and body modules show as not accessible, and its results are what the car’s computers report, not a professional inspection. Use it only with the car parked.

Frequently asked questions

Can an iPhone read check engine codes on its own?

No. The phone needs an OBD-II adapter plugged into the car's diagnostic port and an app that talks to it. The adapter must use Bluetooth LE or Wi-Fi, because iPhone apps cannot connect to classic Bluetooth adapters.

What is the difference between a pending and a stored code?

A pending code means the car's computer saw a fault once and is waiting to see it again. A stored (confirmed) code means the fault repeated, usually on a later trip, and it is the kind that turns on the check engine light. A pending code that never repeats eventually disappears by itself.

Why can't I clear a permanent code?

Permanent codes are designed so that no scan tool can erase them. The engine computer removes one itself once the related self-test has run and passed under normal driving. Fixing the cause and driving normally is the only way to make it go.

Will clearing the code fix the problem?

No. Clearing only erases the record and turns the light off. If the fault is still there, the computer detects it again and the code returns, sometimes on the next drive.

More on the same subject.

Cihat SALİK

iOS & macOS developer, Istanbul

I write and publish every app on this site on my own, and every guide here came out of building them. Questions reach me directly.