Automotive Diagnostic Services Overview
Automotive Diagnostic Services Overview
Detecting a failure in this complex machine would be a tedious task. However, most of the vehicles
today include computers (Electronic Control Unit (ECU)), which monitors several sensors, located
throughout the engine, fuel and exhaust systems. When the computer system of the car detects a
fault, two things are supposed to happen/monitored. First, a warning light on the dashboard is set,
to inform the driver that a problem exists. Second the code is recorded in the computer’s memory
(ElectricallyErasableProgrammableRead-OnlyMemory) so that it can later be retrieved by a
technician for diagnosis and repair.
The key to good auto repair lies in troubleshooting the problem. Problem in cars could be caused
due to number of reasons. Proper troubleshooting will eliminate the potential issues that aren’t the
real problem and point you in the right direction. This can be achieved through ‘Diagnostics’.
Did you notice when a problem happens in a car or a vehicle? Ok!! Let me say one situation.
There is a Check Engine Light(warning Lamp) present in our car’s dashboard, which alerts us when
a problem occurs in the engine control system. Depending on the nature of the problem, the Check
Engine Light may come on and go off, remain on continuously or flash. Some intermittent problems
will make the Check Engine Light come on only when the fault is occurring. When the problem goes
away, the Check Engine Light goes off. So, When the Check Engine Light comes on, a diagnostic
trouble code (DTC) is recorded in the on-board computer memory that corresponds to the fault.
Some problems can generate more than one trouble code, and some vehicles may have multiple
problems that set multiple trouble codes.
2Overview of Diagnostics
2.1Diagnostics
Diagnostics, as the word suggests, is to identify the cause of a problem or a situation. Whenever
the ECU finds a problem, it stores that problem as a Diagnostics Trouble Code (DTC) in the
ElectricallyErasableProgrammableRead-OnlyMemory (EEPROM) for later retrieval. Diagnostic
Tools are used to read data (DTC’s) from the EEPROM to analyze the cause of failure.
2.2Diagnostics Protocol
Protocol refers to a set of rules for communication. Here the communication happens between two
ECUs which follow the same rule and able to exchange the information. The protocols which are
used for Diagnostics purposes are known as Diagnostics Protocol.
The automotive industry has come up with Diagnostics protocols which are used for diagnostics
purposes like, CAN (Control Area Network), K-Line, UDS (Unified Diagnostics Services), and KWP
(Keyword Protocol) and so on. Here (in this document) we will study/know about UDS.
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 3 of 37
2.3Diagnostics Session
Diagnostic session is the basis for/of communication between the ECU and the diagnostic tool.
During ‘Diagnostics’ the ECU being analyzed is in a particular session. Basically there are different
types of diagnostics sessions like Default Session, Extended Diagnostic Session and ECU
Programming Session.
After Ignition on, ECU will be switched to a Default Diagnostic Session and after receiving the
request from Diagnostic Tool, the ECU will be switched to the Extended Diagnostic Session.
Further, after receiving the ECU Programming Session start request from Diagnostic tool, it will
switch to the ECU Programming Session.
Ø ECU Reset
Ø Security Access
Ø Communication Control
Ø Tester Present
For communicating with the ECU, the diagnostic tool uses either Physical addressing or Functional
addressing method. Physical addressing is the kind of addressing where the Diagnostics tool
communicates with a single ECU. Functional addressing is where the Diagnostics tool
communicates with multiple ECUs.
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 4 of 37
3DetailedDiagnostic Services
The services supported by the UDS protocol are described in the table below:
If a diagnostic session has been requested by the client which is already running, the server shall
send a positive response message.
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 5 of 37
The Diagnostic Session Control request message shall meet the format defined in the Table below:
Once ECU receives the request message from Tester, it has to send the response message to
Tester.
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
3.2ECU Reset
The ECU Reset service is used by the external diagnostic tool to request an ECU reset based on
content of the reset type parameter included in the ECU Reset request message.
Hard Reset:
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 6 of 37
This type identifies a “hard reset” condition which simulates the power-on/start-up sequences
typically performed after an ECU has been previously disconnected from its power supply (i.e
Battery). This implies the memory (Volatile or Non-volatile) as well as electronic sub-components
directly connected to the ECU are initialized upon request of this reset type which are also initialized
during the power-up sequence.
Soft Reset:
This type identifies a “soft reset” condition, which causes the ECU to immediately restart the
application program if applicable. Before restarting the application the ECU saves any data in non-
volatile memory that might be lost during the startup sequence.
The ECU Reset request message shall meet the format defined in the Table below,
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 7 of 37
A “Clear DTC information” request shall reset/erase all DTC information including the following:
a) DTC
c) Other DTC related data such as first/most recent DTC, flags, counters, timers, etc. specific to
DTC
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 8 of 37
Requesting the ECU to report Most Recent Confirmed DTC or all Supported DTCs the diagnostic
tool shall use the format defined in the Table below.
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 9 of 37
If the response message is positive, then response should meet the format, given in below table.
Positive Response
If an ECU responds positively to a “Read Data By Identifier” request, the response message Data
Identifier parameter value shall be an echo of the value provided in the request message by the
diagnostics tool
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 10 of 37
ByAddress
Parameter
Address And This parameter is a onebyte value with eachnibble encoded separately:bit 3
Length Format – 0: Length(number of bytes) of the MemoryAddress parameterbit 7 – 4:
Identifier Length(number of bytes) of theMemory Size parameter
Memory Address The parameter MemoryAddressis the starting addressof ECU’s memory
wherethe data is to be writtenor from which thedata is to be read.
Memory Size The parameter MemorySize in the Read / Write MemoryBy Address request
messagespecifies the numberof bytes to be read orwritten starting at
theaddress specified byMemory Address inthe ECU’s memory.The number
of bytesused for this size isdefined by the highnibble (bit 7 – 4) of theAddress
And LengthFormat Identifier.
Data Record This parameter is usedby the Read MemoryBy Address positiveresponse
messageto provide the requesteddata record values tothe diagnostic
tool.The content of theData Record is notdefined in this documentand is
vehiclemanufacturer specific.
The “Read Memory By Address” request message shall meet the format defined in table below.
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 11 of 37
3.7Security Access
The purpose of this service is to provide a means to access data and/or diagnostic services, which
have restricted access for security, emissions, or safety reasons. The security concept uses a seed
and key relationship.
Security Description
Access type
Request Seed This type specifies thatthe ECU shall transmitto the test device theso called seed
valuewith a defined securitylevel for calculating anappropriate key value tounlock
the ECU.
Send Key This type signalizes tothe ECU that thediagnostic tool transmitsnow the
appropriate keyvalue associated with theseed requested before.
The Security Access request message shall meet the format defined in table below.
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 12 of 37
Invalid Key 35
Exceeded Number Of Attempts 36
Required Time Delay Not Expired 37
Negative Response
3.8Communication Control
The purpose of this service is to switch on and off the transmission of certain ECU messages.
The ECU shall perform the requested communication type control after sending the Communication
Control positive response message to the diagnostic tool if a positive response is requested
(Suppress Position Response Message Indication Bit = FALSE).
In case no response is requested from the diagnostic tool (Suppress Position Response Message
Indication Bit = TRUE) then the ECU shall perform the requested communication type control
immediately after the successful evaluation of the request message.
The Communication Control request message shall meet the format defined in the Table below.
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 13 of 37
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
Following table defines the possible request and response parameter types,
Data This parameter identifiesthe ECU’s data record that, the diagnostic tool
Identifier isrequesting to write to.
Data This parameter providesthe data record associatedwith the Data Identifierthat the
Record diagnostic toolis requesting to write to.
The Write Data By Identifier request message shall meet the format defined in the Table below,
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 14 of 37
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
The “Input Output Control By Identifier” request message shall meet the format defined in the Table
below.
The ECU shall send a positive response message if the requested control operation was
successfully executed. After an ECU returns a positive response to this service, the diagnostic tool
shall assume control over the inputs/outputs specified by the Input Output Data Identifier.
If the response message is positive, then the expected response is as given in the table below.
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 15 of 37
Positive response
And if the response message is negative, then response should meet the format, given in below
table.
Negative response
The “Write Memory By Address” request message shall meet the format defined in the Table below.
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 16 of 37
3 sub-function 00-FF
Incorrect Message Length – Invalid Format 13
Conditions Not Correct 22
Request Out Of Range 31
Security Access denied 33
General Programming Failure 72
Negative Response
3.12Tester Present
This service is used to indicate to an ECU or a group of ECU’s that a diagnostic tool is still
connected to the vehicle and that certain diagnostic services and/or communication that have been
previously activated are to remain active.
The “Tester Present” request message shall meet the format defined in the Table below.
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017
Automotive Diagnostic Services – Rasmi Ranjan Nayak Page 17 of 37
The “Control DTC Setting” request message shall meet the format defined in the Table below.
If an ECU responds positively to a “Control DTC Setting” request, the DTC Setting type in the
response shall match the DTC Setting sent in the request
If the response message is positive, then response should meet the format, given in below table.
Positive Response
And if the response message is negative, then response should meet the format, given in below
table.
Negative Response
4Conclusion
Due to much technological advancement, today’s cars are more complex than ever before and so
the troubleshooting of car’s problem has even become more complex and tedious job. Thanks to
advanced diagnostic facilities within the car which assist in pin-pointing the exact cause of trouble in
a car.
https://rasmiranjanbabuknols.wordpress.com/article/automotive-diagnostic-services-1gw... 1/8/2017