Testing Services

OBD2 Testing Guide - ISO 15031 Modes 01–09 Automated

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

OBD2 testing guide ISO 15031

WHAT IS OBD2 TESTING?

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.

OBD2 MODES

OBD-II Diagnostic Modes (Services) - What Each Tests

Mode (Service)NameWhat It Tests
Mode 01 (0x01)Show current dataLive PID values - engine RPM, vehicle speed, coolant temp, O2 sensors, fuel trim
Mode 02 (0x02)Show freeze frame dataPID snapshot captured at time of DTC storage - confirms fault context
Mode 03 (0x03)Show stored DTCsConfirmed fault codes in emissions-related systems
Mode 04 (0x04)Clear DTCs / reset MILDTC clear, readiness flag reset, MIL extinguish behaviour
Mode 05 (0x05)Oxygen sensor monitoringO2 sensor test results - voltage range, response time
Mode 06 (0x06)On-board test resultsNon-continuous monitor test results - catalyst efficiency, EVAP
Mode 07 (0x07)Pending DTCsDTCs detected in current drive cycle but not yet confirmed
Mode 08 (0x08)Control on-board systemsActuator test requests - fuel pump, O2 heater control
Mode 09 (0x09)Vehicle informationVIN, calibration IDs, IUPR - regulatory reporting data

TESTBOT OBD2 AGENTS

Agent
CAN / CAN FD Agent
Hardware Required
CAN Adapter (CAN FD capable)
Hardware Required
Send and receive CAN 2.0A/B and CAN FD frames using DBC definitions - validate signals, message timing, bus load, and error injection.
Agent
UDS Client Agent
Hardware Required
CAN Adapter (CAN FD capable)
Hardware Required
Run automated UDS diagnostic sessions across all 22 ISO 14229 services - session management, DID read/write, fault memory, flash programming, and security access.
Agent
UDS Server Agent
Hardware Required
CAN Adapter (CAN FD capable)
Hardware Required
Simulate an ECU responding to UDS diagnostic requests - test the tester tool, validate diagnostic sequences from the server side.
Agent
OBD2 Client Agent
Hardware Required
CAN Adapter (CAN FD capable)
Hardware Required
Query OBD-II PIDs, read live sensor data, and validate emissions-related diagnostic services over CAN.
Agent
OBD2 Server Agent
Hardware Required
CAN Adapter (CAN FD capable)
Hardware Required
Simulate an OBD-II-compliant ECU - test diagnostic scan tools and aftermarket testers against a controlled virtual vehicle.
Agent
J1939 Client Agent
Hardware Required
CAN Adapter (CAN FD capable)
Hardware Required
Transmit and receive SAE J1939 PGNs for commercial vehicle ECU validation - trucks, buses, construction, and agricultural equipment.
Agent
J1939 Server Agent
Hardware Required
CAN Adapter (CAN FD capable)
Hardware Required
Simulate a J1939 node on the vehicle bus - test fleet management systems, telematics gateways, and body controllers.
Agent
XCP Server Agent (CAN)
Hardware Required
CAN Adapter (CAN FD capable)
Hardware Required
Simulate an XCP slave over CAN for calibration and measurement workflows - enable ECU parameter write and DAQ list recording in test sequences.
TEST SCENARIOS

OBD2 Test Scenarios With TestBot

ScenarioAgents UsedValidated Outcome
Mode 01 PID SweepOBD2 Client Agent - all supported PIDsAll mandatory PIDs respond with values within spec; unsupported PIDs correctly rejected
MIL Activation + Mode 03 ReadI/O Module fault injection + OBD2 Client (Mode 03)Correct DTC stored, MIL activated, Mode 03 returns correct code
Freeze Frame ValidationOBD2 Client (Mode 02) after fault injectionFreeze frame PIDs match values at time of fault
Readiness Monitor StatusOBD2 Client (Mode 01, PID 0x01)All required monitors report 'complete' after drive cycle simulation
Mode 09 VIN ReadOBD2 Client (Mode 09, InfoType 0x02)VIN string matches programmed value, correct ISO 15765-2 multi-frame response
Scan Tool ValidationOBD2 Server Agent (ECU simulation)Scan tool under test receives correct responses to all Mode 01–09 requests

Frequently Asked Questions - OBD2 Testing

OBD2 testing FAQ

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.

Continue Learning

RELATED GUIDES

Automate Your OBD2 Compliance Testing

OBD2 Client and Server agents over CAN. 14-day free trial.