OBD-II PIDs
   HOME

TheInfoList



OR:

OBD-II PIDs (
On-board diagnostics On-board diagnostics (OBD) is a term referring to a vehicle's self-diagnostic and reporting capability. In the United States, this capability is a requirement to comply with United States vehicle emission standards, federal emissions standards ...
Parameter IDs) 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 (less than ) 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 (greater than ) made after 2010, for sale in the US are allowed to support OBD-II diagnostics through SAE standard J1939-13 (a round diagnostic connector) 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 (unlike 11 bit headers used by passenger cars).


Services / 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: Vehicle manufacturers are not required to support all services. Each manufacturer may define additional services above #9 (e.g.: service 22 as defined by SAE J2190 for Ford/GM, service 21 for Toyota) for other information e.g. the voltage of the traction battery in a
hybrid electric vehicle A hybrid electric vehicle (HEV) is a type of hybrid vehicle that couples a conventional internal combustion engine (ICE) with one or more electric engines into a hybrid vehicle drivetrain, combined propulsion system. The presence of the electri ...
(HEV). 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 numbered from 0 to 7, so 7 is the most significant bit and 0 is the least significant bit ( See below).


Service - Show current data


Service - Show freeze frame data

Service accepts the same PIDs as service , with the same meaning, but information given is from when the freeze frame was created. Note that PID is used to obtain the DTC that triggered the freeze frame. A person has to send the frame number in the data section of the message.


Service - Show stored Diagnostic Trouble Codes (DTCs)


Service - Clear Diagnostic Trouble Codes and stored values


Service - Test results, oxygen sensor monitoring (non CAN only)


Service - Request vehicle information


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 - Show PIDs supported

A request for this PID returns 4 bytes of data (
Big-endian '' Jonathan_Swift.html" ;"title="Gulliver's Travels'' by Jonathan Swift">Gulliver's Travels'' by Jonathan Swift, the novel from which the term was coined In computing, endianness is the order in which bytes within a word (data type), word of d ...
). 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 - Monitor status since DTCs cleared

A request for this PID returns 4 bytes of data, labeled A, B, C and D. The first byte (A) contains two pieces of information. Bit ( MSB of byte A) indicates whether or not the MIL (malfunction indicator light, aka. check engine light) is illuminated. Bits through represent the number of diagnostic trouble codes currently flagged in the ECU. The second, third, and fourth bytes (B, C and D) give information about the availability and completeness of certain on-board tests ("OBD readiness checks"). The third and fourth bytes are to be interpreted differently depending upon whether the engine is spark
ignition Ignition may refer to: Science and technology * Firelighting, the human act of creating a fire for warmth, cooking and other uses * Combustion, an exothermic chemical reaction between a fuel and an oxidant * Fusion ignition, the point at which a ...
(e.g. Otto or Wankel engines) or
compression ignition The diesel engine, named after the German engineer Rudolf Diesel, is an internal combustion engine in which ignition of diesel fuel is caused by the elevated temperature of the air in the cylinder due to mechanical compression; thus, the d ...
(e.g. Diesel engines). In the second byte (B), bit indicates the engine type and thus how to interpret bytes C and D, with being spark (Otto or Wankel) and (set) being compression (Diesel). Bits to and to are used for information about tests that not engine-type specific, and thus termed ''common'' tests. Note that for bits indicating test availability a bit set to indicates available, whilst for bits indicating test completeness a bit set to indicates complete. Bits from byte B representing ''common'' test indicators (those not engine-type specific) are mapped as follows: Bytes C and D are mapped as follows for spark ignition engine types (e.g. Otto or Wankel engines): Bytes C and D are alternatively mapped as follows for compression ignition engine types (Diesel engines):


Service 01 PID - Monitor status this drive cycle

A request for this PID returns 4 bytes of data. The data returned is of an identical form to that returned for PID , with one exception - the first byte is always zero.


Service 01 PID 78 and 79 - Exhaust Gas temperature (EGT) Bank 1 and Bank 2

A request for one of these two PIDs will return 9 bytes of data. PID returns data relating to EGT sensors for bank 1, whilst PID similarly returns data for bank 2. The first byte is a bit encoded field indicating which EGT sensors are supported for the respective bank. The first byte is bit-encoded as follows: Bytes B through I provide 16-bit integers indicating the temperatures of the sensors. The temperature values are interpreted in degrees Celsius in the range -40 to 6513.5 (scale 0.1), using the usual (A \times 256 + B) / 10 - 40 formula (MSB is A, LSB is B). Only values for which the corresponding sensor is supported are meaningful.


Service 03 (no PID required) - Show stored Diagnostic Trouble Codes

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 (up to 4 bytes) then they are returned in an ISO-TP Single Frame (SF). 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. Encoded in these bytes are a category and a number. It is typically shown decoded into a five-character form like "", where the first character (here 'U') represents the category the DTC belongs to, and the remaining four characters are a hexadecimal representation of the number under that category. The first two bits ( and ) of the first byte (A) represent the category. The remaining 14 bits represent the number. Of note is that since the second character is formed from only two bits, it can thus only be within the range -. An example DTC of "" would be decoded as follows: The resulting five-character code, e.g. "", can be looked up in a table of OBD-II DTCs to get an actual description of what it represents. Of note, whilst some blocks of DTC code ranges have generic meanings that apply to all vehicles and manufacturers, the meanings of others can vary per manufacturer or even model. It is also worth noting that DTCs may sometimes be encountered in a four-character form, e.g. "", which is simply the plain hexadecimal representation of the two bytes, with proper decoding with respect to the category not having been performed.


Service 09 PID 08 - In-use performance tracking for spark ignition engines

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 (the first byte). All data items of the In-use Performance Tracking record consist of two bytes and are reported in this order (each message contains two items, hence the message length is 4).


Service 09 PID 0B - In-use performance tracking for compression ignition engines

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 (each message contains two items, hence message length is 4):


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 - Fuel system status

A request for this PID returns 2 bytes of data. The first byte describes fuel system #1. The second byte describes fuel system #2 (if it exists) and is encoded identically to the first byte. The meaning assigned to the value of each byte is as follows: Any other value is an invalid response.


Service 01 PID - Commanded secondary air status

A request for this PID returns a single byte of data which describes the secondary air status. Any other value is an invalid response.


Service 01 PID - OBD standards this vehicle conforms to

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:


Service 01 PID - Fuel Type Coding

This 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: Any other value is reserved by ISO/SAE. There are currently no definitions for
flexible-fuel vehicle A flexible-fuel vehicle (FFV) or dual-fuel vehicle (colloquially called a flex-fuel vehicle) is an alternative fuel vehicle with an internal combustion engine designed to run on more than one fuel, usually gasoline blended with either ethanol f ...
.


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: However, even ETI membership will not provide full documentation for non-standard PIDs. ETI states: showing cost of access to OBD-II PID documentation
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:


CAN (11-bit) bus format

As defined in ISO 15765-4, emissions protocols (including OBD-II, EOBD, UDS, etc.) use the ISO-TP transport layer (ISO 15765-2). All CAN frames sent using ISO-TP use a data length of 8 bytes (and DLC of 8). It is recommended to pad the unused data bytes with 0xCC. 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 (e.g., 720h for the instrument cluster in Fords) 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 (
CAN bus A controller area network bus (CAN bus) is a vehicle bus standard designed to enable efficient communication primarily between electronic control units (ECUs). Originally developed to reduce the complexity and cost of electrical wiring in auto ...
protocol form Frameformat with 8 data bytes). The bytes are:


See also

*
Engine control unit An engine control unit (ECU), also called an engine control module (ECM), is a device that controls various subsystems of an internal combustion engine. Systems commonly controlled by an ECU include the fuel injection and ignition systems. The ...
* ELM327, a very common microcontroller (silicon chip) and multi-protocol interpreter used in OBD-II vehicle communication interfaces *
Unified Diagnostic Services Unified Diagnostic Services (UDS) is a diagnostic communication protocol used in electronic control units (ECUs) within automotive electronics, which is specified in the ISO 14229-1. It is derived from ISO 14230-3 ( KWP2000) and the now obsolete ...
, the ISO standard


References


Further reading

* * *{{cite web , url=https://www.kpit.com/insights/the-lifecycle-of-a-diagnostic-trouble-code-dtc/ , title=The Lifecycle of a Diagnostic Trouble Code (DTC) , first=Bernhard , last=Wagner , location=Germany , website=KPIT , access-date=2020-08-29 OBD-II Codes On Board Diagnostics Electronics lists