OBD-II reference

All 9.533 generic OBD-II codes, explained in detail.

Causes, inspection steps and sources — a comprehensive DIY archive. Created and maintained with love for the detail. Good luck and have fun!

Body generic / SAE

B0540

Driver Door Ajar Switch Circuit

Neither the public J2012 lists nor any accessible maker document define B0540, so the code is unverified. The title concerns the circuit of the switch that signals the driver door is not fully shut. The GM-era Saab 9-3 tracks this input in the body control module as B2976: subtype 02 when the line sits below 2.9 V (short to ground), 05 above 10.2 V (open or short to battery), checked with ignition on or while the alarm is armed, and the driver gets a display message. In Ford's US6133827A each ajar switch is open with the door closed and grounds the input when it opens; a failed switch can keep the courtesy lamp burning. The door-open switch itself is B0510.

SystemBody
Typegeneric / SAE
GroupB0
Range / number5 / 40

Possible causes

  • Ajar switch in the latch or door frame stuck or corroded high
  • Switch wire chafed to ground in the door hinge passage medium
  • Open wire or loose pin at the latch connector medium
  • Body control module input faulty low

Symptoms

  • Door-open warning shown although the driver door is shut
  • Interior light stays on and may drain the battery
  • Alarm or auto-lock behaves erratically

Inspection / repair

  • Difficulty: easy
  • DIY: possible

What Pro shows you for B0540

Before you go to the garage: roughly what the repair costs, how long it takes and which components are involved.

  • Repair cost (estimate)(visible in Pro mode)
  • Labour time(visible in Pro mode)
  • 2 affected components(visible in Pro mode)

See repair cost, labour time and components?

One key opens all tools by Fabian Brose.

Already have a key? · What is the workshop key?

Sources

References

How to read OBD-II codes

The first letter names the vehicle system, the second digit distinguishes generic from manufacturer-specific, the remaining digits group fault area and number.

PPowertrain: engine, transmission, emissions
BBody: chassis trim, comfort, interior
CChassis: suspension, brakes, steering
UNetwork: CAN, control modules, communication