OBD-II PIDs
OBD-II PIDs are codes used to request data from a vehicle, used as a diagnostic tool.
SAE standard J1979 defines many OBD-II PIDs. All on-road vehicles and trucks sold in North America are required to support a subset of these codes, primarily for state mandated emissions inspections. Manufacturers also define additional PIDs specific to their vehicles. Though not mandated, many motorcycles also support OBD-II PIDs.
In 1996, light duty vehicles were the first to be mandated followed by medium duty vehicles in 2005. They are both required to be accessed through a standardized data link connector defined by SAE J1962.
Heavy duty vehicles made after 2010, for sale in the US are allowed to support OBD-II diagnostics through SAE standard J1939-13 according to CARB in title 13 CCR 1971.1. Some heavy duty trucks in North America use the SAE J1962 OBD-II diagnostic connector that is common with passenger cars, notably Mack and Volvo Trucks, however they use 29 bit CAN identifiers.
Modes
There are 10 diagnostic services described in the latest OBD-II standard SAE J1979. Before 2002, J1979 referred to these services as "modes". They are as follows:Mode | Description |
#Service 01| | Show current data |
#Service 02| | Show freeze frame data |
#Service 03| | Show stored Diagnostic Trouble Codes |
#Service 04| | Clear Diagnostic Trouble Codes and stored values |
#Service 05| | Test results, oxygen sensor monitoring |
Test results, other component/system monitoring | |
Show pending Diagnostic Trouble Codes | |
Control operation of on-board component/system | |
#Service 09| | Request vehicle information |
Permanent Diagnostic Trouble Codes |
Vehicle manufacturers are not required to support all services. Each manufacturer may define additional services above #9 for other information e.g. the voltage of the traction battery in a hybrid electric vehicle.
The nonOBD UDS services start at 0x10 to avoid overlap of ID-range.
Standard PIDs
The table below shows the standard OBD-II PIDs as defined by SAE J1979. The expected response for each PID is given, along with information on how to translate the response into meaningful data. Again, not all vehicles will support all PIDs and there can be manufacturer-defined custom PIDs that are not defined in the OBD-II standard.Note that services 01 and 02 are basically identical, except that service 01 provides current information, whereas service 02 provides a snapshot of the same data taken at the point when the last diagnostic trouble code was set. The exceptions are PID 01, which is only available in service 01, and PID 02, which is only available in service 02. If service 02 PID 02 returns zero, then there is no snapshot and all other service 02 data is meaningless.
When using Bit-Encoded-Notation, quantities like C4 means bit 4 from data byte C. Each bit is numerated from 0 to 7, so 7 is the most significant bit and 0 is the least significant bit.
Service
Service
Service accepts the same PIDs as service, with the same meaning, but information given is from when the freeze frame was created.You have to send the frame number in the data section of the message.
PID | Data bytes returned | Description | Min value | Max value | Units | Formula |
2 | DTC that caused freeze frame to be stored. | BCD encoded. Decoded as in service 3 |
Service
Service
Service
Service
Bitwise encoded PIDs
Some of the PIDs in the above table cannot be explained with a simple formula. A more elaborate explanation of these data is provided here:Service 01 PID
A request for this PID returns 4 bytes of data. Each bit, from MSB to LSB, represents one of the next 32 PIDs and specifies whether that PID is supported.For example, if the car response is, it can be decoded like this:
So, supported PIDs are:,,,,,,,,,,,,,,, and
Service 01 PID
A request for this PID returns 4 bytes of data, labeled A B C and D.The first byte contains two pieces of information. Bit indicates whether or not the MIL is illuminated. Bits through represent the number of diagnostic trouble codes currently flagged in the ECU.
The second, third, and fourth bytes give information about the availability and completeness of certain on-board tests. Note that test availability is indicated by set bit and completeness is indicated by reset bit.
Bit | Name | Definition |
MIL | Off or On, indicates if the CEL/MIL is on | |
- | DTC_CNT | Number of confirmed emissions-related DTCs available for display. |
RESERVED | Reserved | |
NO NAME | = Spark ignition monitors supported = Compression ignition monitors supported |
Here are the common bit B definitions, they are test based.
Test available | Test incomplete | |
Components | ||
Fuel System | ||
Misfire |
The third and fourth bytes are to be interpreted differently depending on if the engine is spark ignition or compression ignition. In the second byte, bit 3 indicates how to interpret the C and D bytes, with being spark and being compression.
The bytes C and D for spark ignition monitors :
Test available | Test incomplete | |
EGR System | ||
Oxygen Sensor Heater | ||
Oxygen Sensor | ||
A/C Refrigerant | ||
Secondary Air System | ||
Evaporative System | ||
Heated Catalyst | ||
Catalyst |
And the bytes C and D for compression ignition monitors :
Test available | Test incomplete | |
EGR and/or VVT System | ||
PM filter monitoring | ||
Exhaust Gas Sensor | ||
- Reserved - | ||
Boost Pressure | ||
- Reserved - | ||
NOx/SCR Monitor | ||
NMHC Catalyst |
Service 01 PID
A request for this PID returns 4 bytes of data.The first byte is always zero. The second, third, and fourth bytes give information about the availability and completeness of certain on-board tests. As with PID 01, the third and fourth bytes are to be interpreted differently depending on the ignition type – with being spark and being compression. Note again that test availability is represented by a set bit and completeness is represented by a reset bit.
Here are the common bit B definitions, they are test based.
Test available | Test incomplete | |
Components | ||
Fuel System | ||
Misfire |
The bytes C and D for spark ignition monitors :
Test available | Test incomplete | |
EGR System | ||
Oxygen Sensor Heater | ||
Oxygen Sensor | ||
A/C Refrigerant | ||
Secondary Air System | ||
Evaporative System | ||
Heated Catalyst | ||
Catalyst |
And the bytes C and D for compression ignition monitors :
Test available | Test incomplete | |
EGR and/or VVT System | ||
PM filter monitoring | ||
Exhaust Gas Sensor | ||
- Reserved - | ||
Boost Pressure | ||
- Reserved - | ||
NOx/SCR Monitor | ||
NMHC Catalyst |
Service 01 PID 78
A request for this PID will return 9 bytes of data.The first byte is a bit encoded field indicating which EGT sensors are supported:
Byte | Description |
Supported EGT sensors | |
- | Temperature read by EGT11 |
- | Temperature read by EGT12 |
- | Temperature read by EGT13 |
- | Temperature read by EGT14 |
The first byte is bit-encoded as follows:
Bit | Description |
- | Reserved |
EGT bank 1, sensor 4 Supported? | |
EGT bank 1, sensor 3 Supported? | |
EGT bank 1, sensor 2 Supported? | |
EGT bank 1, sensor 1 Supported? |
The remaining bytes are 16 bit integers indicating the temperature in degrees Celsius in the range -40 to 6513.5, using the usual formula. Only values for which the corresponding sensor is supported are meaningful.
The same structure applies to PID, but values are for sensors of bank 2.
Service 03 (no PID required)
A request for this service returns a list of the DTCs that have been set. The list is encapsulated using the ISO 15765-2 protocol.If there are two or fewer DTCs they are returned in an ISO-TP Single Frame. Three or more DTCs in the list are reported in multiple frames, with the exact count of frames dependent on the communication type and addressing details.
Each trouble code requires 2 bytes to describe. The text description of a trouble code may be decoded as follows. The first character in the trouble code is determined by the first two bits in the first byte:
- | First DTC character |
00 | - Powertrain |
01 | - Chassis |
10 | - Body |
11 | - Network |
The two following digits are encoded as 2 bits. The second character in the DTC is a number defined by the following table:
- | Second DTC character |
00 | |
01 | |
10 | |
11 |
The third character in the DTC is a number defined by
- | Third DTC character |
0000 | |
0001 | |
0010 | |
0011 | |
0100 | |
0101 | |
0110 | |
0111 | |
1000 | |
1001 | |
1010 | |
1011 | |
1100 | |
1101 | |
1110 | |
1111 |
The fourth and fifth characters are defined in the same way as the third, but using bits - and -. The resulting five-character code should look something like "" and can be looked up in a table of OBD-II DTCs. Hexadecimal characters, while relatively rare, are allowed in the last 3 positions of the code itself.
Service 09 PID 08
It provides information about track in-use performance for catalyst banks, oxygen sensor banks, evaporative leak detection systems, EGR systems and secondary air system.The numerator for each component or system tracks the number of times that all conditions necessary for a specific monitor to detect a malfunction have been encountered.
The denominator for each component or system tracks the number of times that the vehicle has been operated in the specified conditions.
The count of data items should be reported at the beginning.
All data items of the In-use Performance Tracking record consist of two bytes and are reported in this order.
Mnemonic | Description |
OBDCOND | OBD Monitoring Conditions Encountered Counts |
IGNCNTR | Ignition Counter |
CATCOMP1 | Catalyst Monitor Completion Counts Bank 1 |
CATCOND1 | Catalyst Monitor Conditions Encountered Counts Bank 1 |
CATCOMP2 | Catalyst Monitor Completion Counts Bank 2 |
CATCOND2 | Catalyst Monitor Conditions Encountered Counts Bank 2 |
O2SCOMP1 | O2 Sensor Monitor Completion Counts Bank 1 |
O2SCOND1 | O2 Sensor Monitor Conditions Encountered Counts Bank 1 |
O2SCOMP2 | O2 Sensor Monitor Completion Counts Bank 2 |
O2SCOND2 | O2 Sensor Monitor Conditions Encountered Counts Bank 2 |
EGRCOMP | EGR Monitor Completion Condition Counts |
EGRCOND | EGR Monitor Conditions Encountered Counts |
AIRCOMP | AIR Monitor Completion Condition Counts |
AIRCOND | AIR Monitor Conditions Encountered Counts |
EVAPCOMP | EVAP Monitor Completion Condition Counts |
EVAPCOND | EVAP Monitor Conditions Encountered Counts |
SO2SCOMP1 | Secondary O2 Sensor Monitor Completion Counts Bank 1 |
SO2SCOND1 | Secondary O2 Sensor Monitor Conditions Encountered Counts Bank 1 |
SO2SCOMP2 | Secondary O2 Sensor Monitor Completion Counts Bank 2 |
SO2SCOND2 | Secondary O2 Sensor Monitor Conditions Encountered Counts Bank 2 |
Service 09 PID 0B
It provides information about track in-use performance for NMHC catalyst, NOx catalyst monitor, NOx adsorber monitor, PM filter monitor, exhaust gas sensor monitor, EGR/ VVT monitor, boost pressure monitor and fuel system monitor.All data items consist of two bytes and are reported in this order :
Mnemonic | Description |
OBDCOND | OBD Monitoring Conditions Encountered Counts |
IGNCNTR | Ignition Counter |
HCCATCOMP | NMHC Catalyst Monitor Completion Condition Counts |
HCCATCOND | NMHC Catalyst Monitor Conditions Encountered Counts |
NCATCOMP | NOx/SCR Catalyst Monitor Completion Condition Counts |
NCATCOND | NOx/SCR Catalyst Monitor Conditions Encountered Counts |
NADSCOMP | NOx Adsorber Monitor Completion Condition Counts |
NADSCOND | NOx Adsorber Monitor Conditions Encountered Counts |
PMCOMP | PM Filter Monitor Completion Condition Counts |
PMCOND | PM Filter Monitor Conditions Encountered Counts |
EGSCOMP | Exhaust Gas Sensor Monitor Completion Condition Counts |
EGSCOND | Exhaust Gas Sensor Monitor Conditions Encountered Counts |
EGRCOMP | EGR and/or VVT Monitor Completion Condition Counts |
EGRCOND | EGR and/or VVT Monitor Conditions Encountered Counts |
BPCOMP | Boost Pressure Monitor Completion Condition Counts |
BPCOND | Boost Pressure Monitor Conditions Encountered Counts |
FUELCOMP | Fuel Monitor Completion Condition Counts |
FUELCOND | Fuel Monitor Conditions Encountered Counts |
Enumerated PIDs
Some PIDs are to be interpreted specially, and aren't necessarily exactly bitwise encoded, or in any scale.The values for these PIDs are enumerated.
Service 01 PID
A request for this PID returns 2 bytes of data.The first byte describes fuel system #1.
Value | Description |
1 | Open loop due to insufficient engine temperature |
2 | Closed loop, using oxygen sensor feedback to determine fuel mix |
4 | Open loop due to engine load OR fuel cut due to deceleration |
8 | Open loop due to system failure |
16 | Closed loop, using at least one oxygen sensor but there is a fault in the feedback system |
Any other value is an invalid response.
The second byte describes fuel system #2 and is encoded identically to the first byte.
Service 01 PID
A request for this PID returns a single byte of data which describes the secondary air status.Value | Description |
1 | Upstream |
2 | Downstream of catalytic converter |
4 | From the outside atmosphere or off |
8 | Pump commanded on for diagnostics |
Any other value is an invalid response.
Service 01 PID
A request for this PID returns a single byte of data which describes which OBD standards this ECU was designed to comply with. The different values the data byte can hold are shown below, next to what they mean:Value | Description |
1 | OBD-II as defined by the CARB |
2 | OBD as defined by the EPA |
3 | OBD and OBD-II |
4 | OBD-I |
5 | Not OBD compliant |
6 | EOBD |
7 | EOBD and OBD-II |
8 | EOBD and OBD |
9 | EOBD, OBD and OBD II |
10 | JOBD |
11 | JOBD and OBD II |
12 | JOBD and EOBD |
13 | JOBD, EOBD, and OBD II |
14 | Reserved |
15 | Reserved |
16 | Reserved |
17 | Engine Manufacturer Diagnostics |
18 | Engine Manufacturer Diagnostics Enhanced |
19 | Heavy Duty On-Board Diagnostics |
20 | Heavy Duty On-Board Diagnostics |
21 | World Wide Harmonized OBD |
22 | Reserved |
23 | Heavy Duty Euro OBD Stage I without NOx control |
24 | Heavy Duty Euro OBD Stage I with NOx control |
25 | Heavy Duty Euro OBD Stage II without NOx control |
26 | Heavy Duty Euro OBD Stage II with NOx control |
27 | Reserved |
28 | Brazil OBD Phase 1 |
29 | Brazil OBD Phase 2 |
30 | Korean OBD |
31 | India OBD I |
32 | India OBD II |
33 | Heavy Duty Euro OBD Stage VI |
34-250 | Reserved |
251-255 | Not available for assignment |
Fuel Type Coding
Service 01 PID returns a value from an enumerated list giving the fuel type of the vehicle. The fuel type is returned as a single byte, and the value is given by the following table:Value | Description |
0 | Not available |
1 | Gasoline |
2 | Methanol |
3 | Ethanol |
4 | Diesel |
5 | LPG |
6 | CNG |
7 | Propane |
8 | Electric |
9 | Bifuel running Gasoline |
10 | Bifuel running Methanol |
11 | Bifuel running Ethanol |
12 | Bifuel running LPG |
13 | Bifuel running CNG |
14 | Bifuel running Propane |
15 | Bifuel running Electricity |
16 | Bifuel running electric and combustion engine |
17 | Hybrid gasoline |
18 | Hybrid Ethanol |
19 | Hybrid Diesel |
20 | Hybrid Electric |
21 | Hybrid running electric and combustion engine |
22 | Hybrid Regenerative |
23 | Bifuel running diesel |
Any other value is reserved by ISO/SAE. There are currently no definitions for flexible-fuel vehicle.
Non-standard PIDs
The majority of all OBD-II PIDs in use are non-standard. For most modern vehicles, there are many more functions supported on the OBD-II interface than are covered by the standard PIDs, and there is relatively minor overlap between vehicle manufacturers for these non-standard PIDs.There is very limited information available in the public domain for non-standard PIDs. The primary source of information on non-standard PIDs across different manufacturers is maintained by the US-based Equipment and Tool Institute and only available to members. The price of ETI membership for access to scan codes varies based on company size defined by annual sales of automotive tools and equipment in North America:
Annual Sales in North America | Annual Dues |
Under $10,000,000 | $5,000 |
$10,000,000 - $50,000,000 | $7,500 |
Greater than $50,000,000 | $10,000 |
However, even ETI membership will not provide full documentation for non-standard PIDs. ETI state:
Some OEMs refuse to use ETI as a one-stop source of scan tool information. They prefer to do business with each tool company separately. These companies also require that you enter into a contract with them. The charges vary but here is a snapshot as of April 13th, 2015 of the per year charges:
GM $50,000 Honda $5,000 Suzuki $1,000 BMW $25,500 plus $2,000 per update. Updates occur annually.
CAN (11-bit) bus format
The PID query and response occurs on the vehicle's CAN bus. Standard OBD requests and responses use functional addresses. The diagnostic reader initiates a query using CAN ID 7DFh, which acts as a broadcast address, and accepts responses from any ID in the range 7E8h to 7EFh. ECUs that can respond to OBD queries listen both to the functional broadcast ID of 7DFh and one assigned ID in the range 7E0h to 7E7h. Their response has an ID of their assigned ID plus 8 e.g. 7E8h through 7EFh.This approach allows up to eight ECUs, each independently responding to OBD queries. The diagnostic reader can use the ID in the ECU response frame to continue communication with a specific ECU. In particular, multi-frame communication requires a response to the specific ECU ID rather than to ID 7DFh.
CAN bus may also be used for communication beyond the standard OBD messages. Physical addressing uses particular CAN IDs for specific modules with proprietary frame payloads.
Query
The functional PID query is sent to the vehicle on the CAN bus at ID 7DFh, using 8 data bytes. The bytes are:Response
The vehicle responds to the PID query on the CAN bus with message IDs that depend on which module responded. Typically the engine or main ECU responds at ID 7E8h. Other modules, like the hybrid controller or battery controller in a Prius, respond at 07E9h, 07EAh, 07EBh, etc. These are 8h higher than the physical address the module responds to. Even though the number of bytes in the returned value is variable, the message uses 8 data bytes regardless.The bytes are: