On-board diagnostics
On-board diagnostics is an automotive term referring to a vehicle's self-diagnostic and reporting capability. OBD systems give the vehicle owner or repair technician access to the status of the various vehicle sub-systems. The amount of diagnostic information available via OBD has varied widely since its introduction in the early 1980s versions of on-board vehicle computers. Early versions of OBD would simply illuminate a malfunction indicator light or "idiot light" if a problem was detected but would not provide any information as to the nature of the problem. Modern OBD implementations use a standardized digital communications port to provide real-time data in addition to a standardized series of diagnostic trouble codes, or DTCs, which allow a person to rapidly identify and remedy malfunctions within the vehicle.
History
- 1969: Volkswagen introduces the first on-board computer system with scanning capability, in their fuel-injected Type 3 models.
- 1975: Datsun 280Z On-board computers begin appearing on consumer vehicles, largely motivated by their need for real-time tuning of fuel injection systems. Simple OBD implementations appear, though there is no standardization in what is monitored or how it is reported.
- 1980: General Motors implements a proprietary interface and protocol for testing of the Engine Control Module on the vehicle assembly line. The 'assembly line diagnostic link' protocol communicates at 160 baud with Pulse-width modulation signaling and monitors very few vehicle systems. Implemented on California vehicles for the 1980 model year, and the rest of the United States in 1981, the ALDL was not intended for use outside the factory. The only available function for the owner is "Blinky Codes". The Diagnostic Trouble Codes can be interpreted through the blinking pattern of the "Check Engine" light.
- 1982: RCA defines an analog STE/ICE vehicle diagnostic standard used in the CUCV, M60_tank and other military vehicles of the era for the US Army.
- 1986: An upgraded version of the ALDL protocol appears which communicates at 8192 baud with half-duplex UART signaling. This protocol is defined in GM XDE-5024B.
- 1988: The California Air Resources Board requires that all new vehicles sold in California in 1988 and newer vehicles have some basic OBD capability. These requirements are generally referred to as "OBD-I", though this name is not applied until the introduction of OBD-II. The data link connector and its position are not standardized, nor is the data protocol. The Society of Automotive Engineers recommends a standardized diagnostic connector and set of diagnostic test signals.
- ~1994: Motivated by a desire for a state-wide emissions testing program, the CARB issues the OBD-II specification and mandates that it be adopted for all cars sold in California starting in model year 1996. The DTCs and connector suggested by the SAE are incorporated into this specification.
- 1996: The OBD-II specification is made mandatory for all cars sold in the United States.
- 2001: The European Union makes [|EOBD] mandatory for all gasoline vehicles sold in the European Union, starting in MY2001.
- 2004: The European Union makes EOBD mandatory for all diesel vehicles sold in the European Union
- 2006: All vehicles manufactured in Australia and New Zealand are required to be OBD-II compliant after January 1, 2006.
- 2008: All cars sold in the United States are required to use the ISO 15765-4 signaling standard.
- 2008: Certain light vehicles in China are required by the Environmental Protection Administration Office to implement OBD by July 1, 2008. Some regional exemptions may apply.
- 2010: HDOBD specification is made mandatory for selected commercial engines sold in the United States.
Standard interfaces
ALDL
GM's ALDL is sometimes referred as a predecessor to, or a manufacturer's proprietary version of, an OBD-I diagnostic. This interface was made in different varieties and changed with power train control modules. Different versions had slight differences in pin-outs and baud rates. Earlier versions used a 160 baud rate, while later versions went up to 8192 baud and used bi-directional communications to the PCM.OBD-I
The regulatory intent of OBD-I was to encourage auto manufacturers to design reliable emission control systems that remain effective for the vehicle's "useful life". The hope was that by forcing annual emissions testing for California, and denying registration to vehicles that did not pass, drivers would tend to purchase vehicles that would more reliably pass the test. OBD-I was largely unsuccessful, as the means of reporting emissions-specific diagnostic information was not standardized. Technical difficulties with obtaining standardized and reliable emissions information from all vehicles led to an inability to implement the annual testing program effectively.The Diagnostic Trouble Codes of OBD-I vehicles can usually be found without an expensive 'scan tool'. Each manufacturer used their own Diagnostic Link Connector, DLC location, DTC definitions, and procedure to read the DTC's from the vehicle. DTC's from OBD-I cars are often read through the blinking patterns of the 'Check Engine Light' or 'Service Engine Soon' light. By connecting certain pins of the diagnostic connector, the 'Check Engine' light will blink out a two-digit number that corresponds to a specific error condition. The DTC's of some OBD-I cars are interpreted in different ways, however. Cadillac fuel-injected vehicles are equipped with actual on-board diagnostics, providing trouble codes, actuator tests and sensor data through the new digital Electronic Climate Control display.
Holding down 'Off' and 'Warmer' for several seconds activates the diagnostic mode without the need for an external scan tool. Some Honda engine computers are equipped with LED's that light up in a specific pattern to indicate the DTC. General Motors, some 1989-1995 Ford vehicles, and some 1989-1995 Toyota/Lexus vehicles have a live sensor data stream available, however, many other OBD-I equipped vehicles do not. OBD-I vehicles have fewer DTC's available than for OBD-II equipped vehicles.
OBD-1.5
OBD 1.5 refers to a partial implementation of OBD-II which General Motors used on some vehicles in 1994, 1995, & 1996.For example, the 94–95 Corvettes have one post-catalyst oxygen sensor, and have a subset of the OBD-II codes implemented. For a 1994 Corvette the implemented OBD-II codes are P0116-P0118, P0131-P0135, P0151-P0155, P0158, P0160-P0161, P0171-P0175, P0420, P1114-P1115, P1133, P1153 and P1158.
This hybrid system was present on the GM H-body cars in 94–95, W-body cars, Chevrolet Monte Carlo in 94–95, L-body in 94–95, Y-body in 94–95, on the F-body in 95 and on the J-Body and N-Body in 95 and 96 and also on '94-'95 Saab vehicles with the naturally aspirated 2.3.
The pinout for the ALDL connection on these cars is as follows:
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
For ALDL connections, pin 9 is the data stream, pins 4 and 5 are ground, and pin 16 is battery voltage.
An OBD 1.5 compatible scan tool is required to read codes generated by OBD 1.5.
Additional vehicle-specific diagnostic and control circuits are also available on this connector. For instance, on the Corvette there are interfaces for the Class 2 serial data stream from the PCM, the CCM diagnostic terminal, the radio data stream, the airbag system, the selective ride control system, the low tire pressure warning system, and the passive keyless entry system.
An OBD 1.5 has also been used in the Ford Scorpio since 95.
OBD-II
OBD-II is an improvement over OBD-I in both capability and standardization. The OBD-II standard specifies the type of diagnostic connector and its pinout, the electrical signalling protocols available, and the messaging format. It also provides a candidate list of vehicle parameters to monitor along with how to encode the data for each. There is a pin in the connector that provides power for the scan tool from the vehicle battery, which eliminates the need to connect a scan tool to a power source separately. However, some technicians might still connect the scan tool to an auxiliary power source to protect data in the unusual event that a vehicle experiences a loss of electrical power due to a malfunction. Finally, the OBD-II standard provides an extensible list of DTCs. As a result of this standardization, a single device can query the on-board computer in any vehicle. This OBD-II came in two models OBD-IIA and OBD-IIB. OBD-II standardization was prompted by emissions requirements, and though only emission-related codes and data are required to be transmitted through it, most manufacturers have made the OBD-II Data Link Connector the only one in the vehicle through which all systems are diagnosed and programmed. OBD-II Diagnostic Trouble Codes are 4-digit, preceded by a letter: P for engine and transmission, B for body, C for chassis, and U for network.OBD-II diagnostic connector
The OBD-II specification provides for a standardized hardware interface—the female 16-pin J1962 connector. Unlike the OBD-I connector, which was sometimes found under the hood of the vehicle, the OBD-II connector is required to be within of the steering wheel. SAE J1962 defines the pinout of the connector as:1 | Manufacturer discretion. GM: J2411 GMLAN/SWC/Single-Wire CAN. VW/Audi: Switched +12 to tell a scan tool whether the ignition is on. | 9 | Manufacturer discretion. GM: 8192 baud ALDL where fitted. BMW: RPM signal. |
2 | Bus positive Line of SAE J1850 PWM and VPW | 10 | Bus negative Line of SAE J1850 PWM only |
3 | Manufacturer discretion. Ford DCL Argentina, Brazil 1997–2000, USA, Europe, etc. Chrysler CCD Bus Ethernet TX+ | 11 | Manufacturer discretion. Ford DCL Argentina, Brazil 1997–2000, USA, Europe, etc. Chrysler CCD Bus Ethernet TX- |
4 | Chassis ground | 12 | Not connected Manufacturer discretion: Ethernet RX+ |
5 | Signal ground | 13 | Manufacturer discretion. Ford: FEPS - Programming PCM voltage Ethernet RX- |
6 | CAN high | 14 | CAN low |
7 | K-line of ISO 9141-2 and ISO 14230-4 | 15 | L-line of ISO 9141-2 and ISO 14230-4 |
8 | Manufacturer discretion. Many BMWs: A second K-line for non OBD-II systems. Activate Ethernet | 16 | Battery voltage |
The assignment of unspecified pins is left to the vehicle manufacturer's discretion.
EOBD
The European on-board diagnostics regulations are the European equivalent of OBD-II, and apply to all passenger cars of category M1 first registered within EU member states since January 1, 2001 for petrol engined cars and since January 1, 2004 for diesel engined cars.For newly introduced models, the regulation dates applied a year earlier - January 1, 2000 for petrol and January 1, 2003 for diesel.
For passenger cars with a Gross Vehicle Weight rating of greater than 2500 kg and for light commercial vehicles, the regulation dates applied from January 1, 2002 for petrol models, and January 1, 2007 for diesel models.
The technical implementation of EOBD is essentially the same as OBD-II, with the same SAE J1962 diagnostic link connector and signal protocols being used.
With Euro V and Euro VI emission standards, EOBD emission thresholds are lower than previous Euro III and IV.
EOBD fault codes
Each of the EOBD fault codes consists of five characters: a letter, followed by four numbers. The letter refers to the system being interrogated e.g. Pxxxx would refer to the powertrain system. The next character would be a 0 if complies to the EOBD standard. So it should look like P0xxx.The next character would refer to the sub system.
- P00xx - Fuel and Air Metering and Auxiliary Emission Controls.
- P01xx - Fuel and Air Metering.
- P02xx - Fuel and Air Metering.
- P03xx - Ignition System or Misfire.
- P04xx - Auxiliary Emissions Controls.
- P05xx - Vehicle Speed Controls and Idle Control System.
- P06xx - Computer Output Circuit.
- P07xx - Transmission.
- P08xx - Transmission.
EOBD2
The term "EOBD2" is marketing speak used by some vehicle manufacturers to refer to manufacturer-specific features that are not actually part of the OBD or EOBD standard. In this case "E" stands for Enhanced.JOBD
JOBD is a version of OBD-II for vehicles sold in Japan.ADR 79/01 & 79/02 (Australian OBD standard)
The ADR 79/01 standard is the Australian equivalent of OBD-II.It applies to all vehicles of category M1 and N1 with a Gross Vehicle Weight rating of 3500 kg or less, registered from new within Australia and produced since January 1, 2006 for petrol engined cars and since January 1, 2007 for diesel engined cars.
For newly introduced models, the regulation dates applied a year earlier - January 1, 2005 for petrol and January 1, 2006 for diesel.
The ADR 79/01 standard was supplemented by the ADR 79/02 standard which imposed tighter emissions restrictions, applicable to all vehicles of class M1 and N1 with a Gross Vehicle Weight rating of 3500 kg or less, from July 1, 2008 for new models, July 1, 2010 for all models.
The technical implementation of this standard is essentially the same as OBD-II, with the same SAE J1962 diagnostic link connector and signal protocols being used.
OBD-II signal protocols
There are five signaling protocols that are permitted with the OBD-II interface. Most vehicles implement only one of the protocols. It is often possible to deduce the protocol used based on which pins are present on the J1962 connector:- SAE J1850 PWM
- *pin 2: Bus+
- *pin 10: Bus–
- *High voltage is +5 V
- *Message length is restricted to 12 bytes, including CRC
- *Employs a multi-master arbitration scheme called 'Carrier Sense Multiple Access with Non-Destructive Arbitration'
- SAE J1850 VPW
- *pin 2: Bus+
- *Bus idles low
- *High voltage is +7 V
- *Decision point is +3.5 V
- *Message length is restricted to 12 bytes, including CRC
- *Employs CSMA/NDA
- ISO 9141-2. This protocol has an asynchronous serial data rate of 10.4 kBaud. It is somewhat similar to RS-232; however, the signal levels are different, and communications happen on a single, bidirectional line without additional handshake signals. ISO 9141-2 is primarily used in Chrysler, European, and Asian vehicles.
- *pin 7: K-line
- *pin 15: L-line
- *UART signaling
- *K-line idles high, with a 510 ohm resistor to Vbatt
- *The active/dominant state is driven low with an open-collector driver.
- *Message length is Max 260Bytes. Data field MAX 255.
- ISO 14230 KWP2000
- *pin 7: K-line
- *pin 15: L-line
- *Physical layer identical to ISO 9141-2
- *Data rate 1.2 to 10.4 kBaud
- *Message may contain up to 255 bytes in the data field
- ISO 15765 CAN. The CAN protocol was developed by Bosch for automotive and industrial control. Unlike other OBD protocols, variants are widely used outside of the automotive industry. While it did not meet the OBD-II requirements for U.S. vehicles prior to 2003, as of 2008 all vehicles sold in the US are required to implement CAN as one of their signaling protocols.
- *pin 6: CAN High
- *pin 14: CAN Low
OBD-II diagnostic data available
OBD-II provides access to data from the engine control unit and offers a valuable source of information when troubleshooting problems inside a vehicle. The SAE J1979 standard defines a method for requesting various diagnostic data and a list of standard parameters that might be available from the ECU. The various parameters that are available are addressed by "parameter identification numbers" or PIDs which are defined in J1979. For a list of basic PIDs, their definitions, and the formula to convert raw OBD-II output to meaningful diagnostic units, see OBD-II PIDs. Manufacturers are not required to implement all PIDs listed in J1979 and they are allowed to include proprietary PIDs that are not listed. The PID request and data retrieval system gives access to real time performance data as well as flagged DTCs. For a list of generic OBD-II DTCs suggested by the SAE, see Table of OBD-II Codes. Individual manufacturers often enhance the OBD-II code set with additional proprietary DTCs.Mode of operation
Here is a basic introduction to the OBD communication protocol according to ISO 15031:- Mode $01 is used to identify what powertrain information is available to the scan tool.
- Mode $02 displays Freeze Frame data.
- Mode $03 lists the emission-related "confirmed" diagnostic trouble codes stored. It displays exact numeric, 4 digit codes identifying the faults.
- Mode $04 is used to clear emission-related diagnostic information. This includes clearing the stored pending/confirmed DTCs and Freeze Frame data.
- Mode $05 displays the oxygen sensor monitor screen and the test results gathered about the oxygen sensor. There are ten numbers available for diagnostics:
- * $01 Rich-to-Lean O2 sensor threshold voltage
- * $02 Lean-to-Rich O2 sensor threshold voltage
- * $03 Low sensor voltage threshold for switch time measurement
- * $04 High sensor voltage threshold for switch time measurement
- * $05 Rich-to-Lean switch time in ms
- * $06 Lean-to Rich switch time in ms
- * $07 Minimum voltage for test
- * $08 Maximum voltage for test
- * $09 Time between voltage transitions in ms
- Mode $06 is a Request for On-Board Monitoring Test Results for Continuously and Non-Continuously Monitored System. There are typically a minimum value, a maximum value, and a current value for each non-continuous monitor.
- Mode $07 is a Request for emission-related diagnostic trouble codes detected during current or last completed driving cycle. It enables the external test equipment to obtain "pending" diagnostic trouble codes detected during current or last completed driving cycle for emission-related components/systems. This is used by service technicians after a vehicle repair, and after clearing diagnostic information to see test results after a single driving cycle to determine if the repair has fixed the problem.
- Mode $08 could enable the off-board test device to control the operation of an on-board system, test, or component.
- Mode $09 is used to retrieve vehicle information. Among others, the following information is available:
- * VIN : Vehicle ID
- * CALID : ID for the software installed on the ECU
- * CVN : Number used to verify the integrity of the vehicle software. The manufacturer is responsible for determining the method of calculating CVN, e.g. using checksum.
- * In-use performance counters
- ** Gasoline engine : Catalyst, Primary oxygen sensor, Evaporating system, EGR system, VVT system, Secondary air system, and Secondary oxygen sensor
- ** Diesel engine : NMHC catalyst, NOx reduction catalyst, NOx absorber Particulate matter filter, Exhaust gas sensor, EGR system, VVT system, Boost pressure control, Fuel system.
- Mode $0A lists emission-related "permanent" diagnostic trouble codes stored. As per CARB, any diagnostic trouble codes that is commanding MIL on and stored into non-volatile memory shall be logged as a permanent fault code.
OBD Applications
Hand-held scan tools
A range of rugged hand-held scan tools is available.- Simple fault code readers/reset tools are mostly aimed at the consumer level.
- Professional hand-held scan tools may possess more advanced functions
- * Access more advanced diagnostics
- * Set manufacturer- or vehicle-specific ECU parameters
- * Access and control other control units, such as air bag or ABS
- * Real-time monitoring or graphing of engine parameters to facilitate diagnosis or tuning
Mobile device-based tools and analysis
PC-based scan tools and analysis platforms
A PC-based OBD analysis tool that converts the OBD-II signals to serial data standard to PCs or Macs. The software then decodes the received data to a visual display. Many popular interfaces are based on the ELM or STN1110 OBD Interpreter ICs, both of which read all five generic OBD-II protocols. Some adapters now use the J2534 API allowing them to access OBD-II Protocols for both cars and trucks.In addition to the functions of a hand-held scan tool, the PC-based tools generally offer:
- Large storage capacity for data logging and other functions
- Higher resolution screen than handheld tools
- The ability to use multiple software programs adding flexibility
Data loggers
are designed to capture vehicle data while the vehicle is in normal operation, for later analysis.Data logging uses include:
- Engine and vehicle monitoring under normal operation, for the purpose of diagnosis or tuning.
- Some US auto insurance companies offer reduced premiums if OBD-II vehicle data loggers or cameras are installed - and if the driver's behaviour meets requirements. This is a form of auto insurance risk selection
- Monitoring of driver behaviour by fleet vehicle operators.
Emission Testing
In the United States, many states now use OBD-II testing instead of tailpipe testing in OBD-II compliant vehicles. Since OBD-II stores trouble codes for emissions equipment, the testing computer can query the vehicle's onboard computer and verify there are no emission related trouble codes and that the vehicle is in compliance with emission standards for the model year it was manufactured.In the Netherlands, 2006 and later vehicles get a yearly EOBD emission check.
Driver's Supplementary Vehicle Instrumentation
Driver's supplementary vehicle instrumentation is instrumentation installed in a vehicle in addition to that provided by the vehicle manufacturer and intended for display to the driver during normal operation. This is opposed to scanners used primarily for active fault diagnosis, tuning, or hidden data logging.Auto enthusiasts have traditionally installed additional gauges such as manifold vacuum, battery current etc. The OBD standard interface has enabled a new generation of enthusiast instrumentation accessing the full range of vehicle data used for diagnostics, and derived data such as instantaneous fuel economy.
Instrumentation may take the form of dedicated trip computers, carputer or interfaces to PDAs, smartphones, or a Garmin navigation unit.
As a carputer is essentially a PC, the same software could be loaded as for PC-based scan tools and vice-versa, so the distinction is only in the reason for use of the software.
These enthusiast systems may also include some functionality similar to the other scan tools.
Vehicle telematics
OBD II information is commonly used by vehicle telematics devices that perform fleet tracking, monitor fuel efficiency, prevent unsafe driving, as well as for remote diagnostics and by Pay-As-You-Drive insurance.Although originally not intended for the above purposes, commonly supported OBD II data such as vehicle speed, RPM, and fuel level allow GPS-based fleet tracking devices to monitor vehicle idling times, speeding, and over-revving. By monitoring OBD II DTCs a company can know immediately if one of its vehicles has an engine problem and by interpreting the code the nature of the problem. OBD II is also monitored to block mobile phones when driving and to record trip data for insurance purposes.
OBD-II Diagnostic Trouble Codes
OBD-II diagnostic trouble codes contain 1 letter and 4 numbers, and are divided into the following categories:- B - Body Code
- C - Chassis Code
- P - Powertrain Code
- U - Network Code
Standards documents
SAE standards documents on OBD-II
- J1962 - Defines the physical connector used for the OBD-II interface.
- J1850 - Defines a serial data protocol. There are 2 variants- 10.4 kbit/s and 41.6 kbit/s. Mainly used by US manufacturers, also known as PCI, Class 2, and SCP
- J1978 - Defines minimal operating standards for OBD-II scan tools
- J1979 - Defines standards for diagnostic test modes
- J2012 - Defines standards trouble codes and definitions.
- J2178-1 - Defines standards for network message header formats and physical address assignments
- J2178-2 - Gives data parameter definitions
- J2178-3 - Defines standards for network message frame IDs for single byte headers
- J2178-4 - Defines standards for network messages with three byte headers*
- J2284-3 - Defines 500K CAN Physical and Data Link Layer
- J2411 - Describes the GMLAN protocol, used in newer GM vehicles. Often accessible on the OBD connector as PIN 1 on newer GM vehicles.
SAE standards documents on HD (Heavy Duty) OBD
- J1939 - Defines a data protocol for heavy duty commercial vehicles
ISO standards
- ISO 9141: Road vehicles — Diagnostic systems. International Organization for Standardization, 1989.
- *Part 1: Requirements for interchange of digital information
- *Part 2: CARB requirements for interchange of digital information
- *Part 3: Verification of the communication between vehicle and OBD II scan tool
- ISO 11898: Road vehicles — Controller area network. International Organization for Standardization, 2003.
- *Part 1: Data link layer and physical signalling
- *Part 2: High-speed medium access unit
- *Part 3: Low-speed, fault-tolerant, medium-dependent interface
- *Part 4: Time-triggered communication
- ISO 14230: Road vehicles — Diagnostic systems — Keyword Protocol 2000, International Organization for Standardization, 1999.
- *Part 1: Physical layer
- *Part 2: Data link layer
- *Part 3: Application layer
- *Part 4: Requirements for emission-related systems
- ISO 14320 no data
- ISO 15031: Communication between vehicle and external equipment for emissions-related diagnostics, International Organization for Standardization, 2010.
- *Part 1: General information and use case definition
- *Part 2: Guidance on terms, definitions, abbreviations and acronyms
- *Part 3: Diagnostic connector and related electrical circuits, specification and use
- *Part 4: External test equipment
- *Part 5: Emissions-related diagnostic services
- *Part 6: Diagnostic trouble code definitions
- *Part 7: Data link security
- ISO 15765: Road vehicles — Diagnostics on Controller Area Networks. International Organization for Standardization, 2004.
- *Part 1: General information
- *Part 2: Network layer services ISO 15765-2
- *Part 3: Implementation of unified diagnostic services
- *Part 4: Requirements for emissions-related systems
Security issues
There have been reports of thieves using specialist OBD reprogramming devices to enable them to steal cars without the use of a key. The primary causes of this vulnerability lie in the tendency for vehicle manufacturers to extend the bus for purposes other than those for which it was designed, and the lack of authentication and authorization in the OBD specifications, which instead rely largely on security through obscurity.