Understanding OBD2 Frame Format and Message Structure

The OBD2 (On-Board Diagnostics 2) frame structure facilitates communication between a vehicle’s onboard computer system (ECU) and an OBD2 diagnostic tool or scanner. It’s composed of several fields designed to organize and transmit data effectively.

The standard OBD2 frame structure, specific to the CAN protocol, is illustrated below:

OBD2 Frame Format

These fields are crucial for organizing and conveying information pertaining to the vehicle’s performance and diagnostic data. Let’s explore the common fields found in an OBD2 message:

Common OBD2 Message Fields

  • Identifier: In OBD2 messages, the identifier is a standard 11-bit field used to differentiate between “request messages” (ID 7DF) and “response messages” (ID 7E8 to 7EF). Typically, the main engine or ECU responds at ID 7E8.

  • Length (#bytes): This field indicates the length, in number of bytes, of the remaining data (ranging from 03 to 06). For instance, in the Vehicle Speed example, the request has a length of 02 (as only 01 and 0D follow), while the response has a length of 03 (with 41, 0D, and 32 following).

  • Mode: The mode field specifies the type of request or command being sent. Common modes include:

    • Mode 01: Show current data (real-time data)
    • Mode 02: Show freeze frame data
    • Mode 03: Show stored Diagnostic Trouble Codes (DTCs)
    • Mode 04: Clear DTCs
    • Mode 05: Show oxygen sensor monitoring test results
    • Mode 06: Show On-Board Monitoring Test Results
    • Mode 09: Request vehicle information
    • Mode 0A: Permanent DTCs (not supported by all vehicles)
  • PID (Parameter ID): The PID field designates the specific data parameter or sensor value being requested or reported. PIDs are used to identify the type of data in the message, such as engine RPM, vehicle speed, or oxygen sensor voltage.

  • Data Bytes: This field contains the actual data values corresponding to the PID. The number and meaning of data bytes depend on the specific PID and the mode. For example, the engine coolant temperature might be reported as a single data byte representing the temperature in degrees Celsius.

  • Checksum: The checksum field verifies the integrity of the message. It’s calculated based on the other fields in the message to ensure accurate reception.

  • Header and Footer: OBD2 messages typically include a header and footer to mark the start and end of each message. These elements help the OBD2 scanner and the vehicle’s ECU properly identify and separate individual messages.

  • A, B, C, D: As shown in the image, these represent data bytes in hexadecimal (HEX) format. These values need to be converted to decimal form before being used in PID formula calculations. Note that the last data byte (after Dh) is typically not used.

The specific format and structure of OBD2 messages can vary depending on the communication protocol used (e.g., ISO 9141-2, ISO 14230-4, ISO 15765-4). However, the fields mentioned above are common elements in OBD2 messages. The format may also include additional fields for addressing and control purposes, depending on the communication protocol.

OBD2 diagnostic tools and scanners manage message formatting and interpretation, simplifying access to and understanding of vehicle diagnostic information for users.

Table of OBD2 PIDs

OBD2 (On-Board Diagnostics 2) Parameter IDs (PIDs) are unique codes used to request real-time data from various sensors and systems within a vehicle. These PIDs allow diagnostic tools to access and display information about the vehicle’s performance and condition.

While the specific PIDs available can differ between vehicles, there’s a standardized set defined by the OBD2 protocol.

PID (dec)PID (hex)Name
00PIDs supported [01 - 20]
11Monitor status since DTCs cleared
22Freeze DTC
33Fuel system status
44Calculated engine load
55Engine coolant temperature
66Short term fuel trim (bank 1)
77Long term fuel trim (bank 1)
88Short term fuel trim (bank 2)
99Long term fuel trim (bank 2)
100AFuel pressure (gauge pressure)
110BIntake manifold absolute pressure
120CEngine speed
130DVehicle speed
140ETiming advance
150FIntake air temperature
1610Mass air flow sensor air flow rate
1711Throttle position
1812Commanded secondary air status
1913Oxygen sensors present (2 banks)
2014Oxygen sensor 1 (voltage), Oxygen sensor 1 (short term fuel trim)
2115Oxygen sensor 2 (voltage), Oxygen sensor 2 (short term fuel trim)
2216Oxygen sensor 3 (voltage), Oxygen sensor 3 (short term fuel trim)
2317Oxygen sensor 4 (voltage), Oxygen sensor 4 (short term fuel trim)
2418Oxygen sensor 5 (voltage), Oxygen sensor 5 (short term fuel trim)
2519Oxygen sensor 6 (voltage), Oxygen sensor 6 (short term fuel trim)
261AOxygen sensor 7 (voltage), Oxygen sensor 7 (short term fuel trim)
271BOxygen sensor 8 (voltage), Oxygen sensor 9 (short term fuel trim)
281COBD standards the vehicle conforms to
291DOxygen sensors present (4 banks)
301EAuxiliary input status
311FRun time since engine start
3220PIDs supported [21 - 40]
3321Distance traveled with MIL on
3422Fuel rail pres. (rel. to manifold vacuum)
3523Fuel rail gauge pres. (diesel, gas inject)
3624Oxygen sensor 1 (air-fuel equiv. ratio), Oxygen sensor 1 (voltage)
3725Oxygen sensor 2 (air-fuel equiv. ratio), Oxygen sensor 2 (voltage)
3826Oxygen sensor 3 (air-fuel equiv. ratio), Oxygen sensor 3 (voltage)
3927Oxygen sensor 4 (air-fuel equiv. ratio), Oxygen sensor 4 (voltage)
4028Oxygen sensor 5 (air-fuel equiv. ratio), Oxygen sensor 5 (voltage)
4129Oxygen sensor 6 (air-fuel equiv. ratio), Oxygen sensor 6 (voltage)
422AOxygen sensor 7 (air-fuel equiv. ratio), Oxygen sensor 7 (voltage)
432BOxygen sensor 8 (air-fuel equiv. ratio), Oxygen sensor 8 (voltage)
442CCommanded EGR
452DEGR Error
462ECommanded evaporative purge
472FFuel tank level input
4830Warmups since DTCs cleared
4931Distance traveled since DTCs cleared
5032Evap. system vapor pressure
5133Absolute barometric pressure
5234Oxygen sensor 1 (air-fuel equiv. ratio), Oxygen sensor 1 (current)
5335Oxygen sensor 2 (air-fuel equiv. ratio), Oxygen sensor 2 (current)
5436Oxygen sensor 3 (air-fuel equiv. ratio), Oxygen sensor 3 (current)
5537Oxygen sensor 4 (air-fuel equiv. ratio), Oxygen sensor 4 (current)
5638Oxygen sensor 5 (air-fuel equiv. ratio), Oxygen sensor 5 (current)
5739Oxygen sensor 6 (air-fuel equiv. ratio), Oxygen sensor 6 (current)
583AOxygen sensor 7 (air-fuel equiv. ratio), Oxygen sensor 7 (current)
593BOxygen sensor 8 (air-fuel equiv. ratio), Oxygen sensor 8 (current)
603CCatalyst temperature (bank 1, sensor 1)
613DCatalyst temperature (bank 2, sensor 1)
623ECatalyst temperature (bank 1, sensor 2)
633FCatalyst temperature (bank 2, sensor 2)
6440PIDs supported [41 - 60]
6541Monitor status this drive cycle
6642Control module voltage
6743Absolute load value
6844Commanded air-fuel equiv. ratio
6945Relative throttle position
7046Ambient air temperature
7147Absolute throttle position B
7248Absolute throttle position C
7349Accelerator pedal position D
744AAccelerator pedal position E
754BAccelerator pedal position F
764CCommanded throttle actuator
774DTime run with MIL on
784ETime since DTCs cleared
794FMax fuel-air equiv. ratio , Max oxygen sensor voltage, Max oxygen sensor current, Max intake manifold absolute pressure
8050Max air flow rate from MAF sensor
8151Fuel type
8252Ethanol fuel percentage
8353Absolute evap system vapor pressure
8454Evap system vapor pressure
8555Short term sec. oxygen trim (bank 1) , Short term sec. oxygen trim (bank 3)
8656Long term sec. oxygen trim (bank 1), Long term sec. oxygen trim (bank 3)
8757Short term sec. oxygen trim (bank 2), Short term sec. oxygen trim (bank 4)
8858Long term sec. oxygen trim (bank 2), Long term sec. oxygen trim (bank 4)
8959Fuel rail absolute pressure
905ARelative accelerator pedal position
915BHybrid battery pack remaining life
925CEngine oil temperature
935DFuel injection timing
945EEngine fuel rate
955FEmission requirements
9660PIDs supported [61 - 80]
9761Demanded engine percent torque
9862Actual engine percent torque
9963Engine reference torque
10064Engine pct. torque (idle), Engine pct. torque (engine point 1), Engine pct. torque (engine point 2),Engine pct. torque (engine point 3), Engine pct. torque (engine point 4)
10165Auxiliary input/output supported
10266Mass air flow sensor (A) , Mass air flow sensor (B)
10367Engine coolant temperature (sensor 1), Engine coolant temperature (sensor 2)
10468Intake air temperature (sensor 1) , Intake air temperature (sensor 2)
10569Commanded EGR and EGR error
1066ACom. diesel intake air flow ctr/position
1076BExhaust gas recirculation temperature
1086CCom. throttle actuator ctr./position
1096DFuel pressure control system
1106EInjection pressure control system
1116FTurbocharger compressor inlet pres.
11270Boost pressure control
11371Variable geometry turbo control
11472Wastegate control
11573Exhaust pressure
11674Turbocharger RPM
11775Turbocharger temperature
11876Turbocharger temperature
11977Charge air cooler temperature
12078EGT (bank 1)
12179EGT (bank 2)
1227ADiesel particulate filter - diff. pressure
1237BDiesel particulate filter
1247CDiesel particulate filter - temperature
1257DNOx NTE control area status
1267EPM NTE control area status
1277FEngine run time
12880PIDs supported [81 - A0]
12981Engine run time for AECD
13082Engine run time for AECD
13183NOx sensor
13284Manifold surface temperature
13385NOx reagent system
13486Particulate matter sensor
13587Intake manifold absolute pressure
13688SCR induce system
13789Run time for AECD #11-#15
1388ARun time for AECD #16-#20
1398BDiesel aftertreatment
1408CO2 sensor (wide range)
1418DThrottle position G
1428EEngine friction percent torque
1438FParticulate matter sensor (bank 1 & 2)
14490WWH-OBD vehicle OBD system Info
14591WWH-OBD vehicle OBD system Info
14692Fuel system control
14793WWH-OBD counters support
14894NOx warning and inducement system
15298EGT sensor
15399EGT sensor
1549AHybrid/EV sys. data, battery, voltage
1559BDiesel exhaust fluid sensor data
1569CO2 sensor data
1579DEngine fuel rate
1589EEngine exhaust flow rate
1599FFuel system percentage use
160A0PIDs supported [A1 - C0]
161A1NOx sensor corrected data
162A2Cylinder fuel rate
163A3Evap system vapor pressure
164A4Transmission actual gear
165A5Cmd. diesel exhaust fluid dosing
166A6Odometer
167A7NOx concentration 3, 4
168A8NOx corrected concentration (3, 4)
192C0PIDs supported [C1 - E0]

PID requests and responses are essential for OBD2 diagnostics, as they deliver real-time data valuable for monitoring, troubleshooting, and vehicle maintenance.