What OBD2 testing is, all nine diagnostic modes explained, and how to automate PID validation, DTC testing, and scan tool compliance.

OBD2 (On-Board Diagnostics II) testing is the validation of ISO 15031 / SAE J1979-compliant diagnostic communication - verifying that an ECU or vehicle correctly exposes emissions-related data, correctly stores and reports fault codes, and responds correctly to standardised OBD scan tool requests.
OBD-II is mandated by law for passenger vehicles sold in the USA (since 1996), EU (since 2001), and most global markets. It defines nine diagnostic services (Modes 01–09) and over 300 standardised Parameter IDs (PIDs) covering engine data, emissions readiness, freeze frames, oxygen sensor data, and on-board test results.
Who needs OBD2 testing: Automotive ECU developers validating their OBD2 implementation before vehicle integration; OBD2 scan tool manufacturers validating their tool against real ECU responses; Tier-2 suppliers validating emissions-related sensor and actuator ECUs. TestBot's OBD2 Client Agent queries your ECU as a scan tool would - without a physical vehicle.
| Mode (Service) | Name | What It Tests |
|---|---|---|
| Mode 01 (0x01) | Show current data | Live PID values - engine RPM, vehicle speed, coolant temp, O2 sensors, fuel trim |
| Mode 02 (0x02) | Show freeze frame data | PID snapshot captured at time of DTC storage - confirms fault context |
| Mode 03 (0x03) | Show stored DTCs | Confirmed fault codes in emissions-related systems |
| Mode 04 (0x04) | Clear DTCs / reset MIL | DTC clear, readiness flag reset, MIL extinguish behaviour |
| Mode 05 (0x05) | Oxygen sensor monitoring | O2 sensor test results - voltage range, response time |
| Mode 06 (0x06) | On-board test results | Non-continuous monitor test results - catalyst efficiency, EVAP |
| Mode 07 (0x07) | Pending DTCs | DTCs detected in current drive cycle but not yet confirmed |
| Mode 08 (0x08) | Control on-board systems | Actuator test requests - fuel pump, O2 heater control |
| Mode 09 (0x09) | Vehicle information | VIN, calibration IDs, IUPR - regulatory reporting data |
TestBot's OBD2 Client Agent queries your ECU across all nine OBD-II modes. The OBD2 Server Agent simulates an OBD-compliant ECU for scan tool validation.
| Scenario | Agents Used | Validated Outcome |
|---|---|---|
| Mode 01 PID Sweep | OBD2 Client Agent - all supported PIDs | All mandatory PIDs respond with values within spec; unsupported PIDs correctly rejected |
| MIL Activation + Mode 03 Read | I/O Module fault injection + OBD2 Client (Mode 03) | Correct DTC stored, MIL activated, Mode 03 returns correct code |
| Freeze Frame Validation | OBD2 Client (Mode 02) after fault injection | Freeze frame PIDs match values at time of fault |
| Readiness Monitor Status | OBD2 Client (Mode 01, PID 0x01) | All required monitors report 'complete' after drive cycle simulation |
| Mode 09 VIN Read | OBD2 Client (Mode 09, InfoType 0x02) | VIN string matches programmed value, correct ISO 15765-2 multi-frame response |
| Scan Tool Validation | OBD2 Server Agent (ECU simulation) | Scan tool under test receives correct responses to all Mode 01–09 requests |

OBD2 testing is the validation of ISO 15031 / SAE J1979 On-Board Diagnostics II communication - verifying that an ECU correctly implements all required OBD diagnostic modes (01–09), exposes the correct PIDs with correct values, stores and reports DTCs correctly, and responds to scan tool requests within timing specification.
OBD2 Client and Server agents over CAN. 14-day free trial.