UDS14229
UDS14229
What is UDS?
What is the Goal of UDS?
What are the Different Services UDS has?
How can we use the services in UDS?
What is NRC?
Where is the Application of UDS?
Introduction of ECU
A computer system that is embedded into an piece of equipment or a
machine to control it.
Embedded systems are applied to most electric/ electronic equipment,
recently.
ECU is any embedded system that controls one or more of the electrical
system or subsystems in a transport vehicle.
The first electronics pieces were used to control engine functions and were
referred to as Engine Control Units (ECU).
A modern car may have up to 100 ECUs and a commercial vehicle up to 40.
ECU consists of:
o Microcontrollers o Controls the functionalities of
vehicle as per the inputs from
oSensors sensors placed at different places
oPower switches inside vehicle.
oActuators o ECUs are used for energy saving,
low emission, safety, convenience,
oVoltage regulators entertainment etc..
Overview of Electronic System of a Modern Vehicle
Automotive - ECU
Unified Diagnostic Services UDS
What is UDS?
The Unified Diagnostic Services (UDS) Protocol is a communication protocol in the automotive
field, developed based on the idea of Keyword Protocol (KWP2000 [3]) to fulfill common
requirements for diagnostic systems on CAN buses. The commands in UDS are divided into six
groups according to their functionalities described in the following sections.
UDS – Functional Units
UDS Protocol
The Unified Diagnostic Services (UDS) Protocol is a
communication protocol in the automotive field,
developed based on the idea of Keyword Protocol
(KWP2000 [3]) to fulfill common requirements for
diagnostic systems on CAN buses. The commands in UDS
are divided into six groups according to their
functionalities described in the following sections.
1. Diagnostic & Communication Management Functional Unit(DCM)
It specifies the ECU functionality, manages the diagnostic system, defines the user
accessibility, controls the transmission of data etc
2. Data Transmission Functional Unit (DT)
It has the capability of accessing current data. Data must be read or written immediately after
each request
3. Stored Data Transmission Functional Unit,
This group of functional unit allows Diagnostic tools to access the server’s memory. The
diagnostic tools can clear or read diagnostic information defined by the server’s database inside
memory.
UDS Functional Unit Contd.
OT
A
UDS – Network
Sessions:
Diagnostic session is the basis of
communication between the ECU and the diagnostic
tool.
Default Session
Programming Session
Extended Diagnostic Session
What is the Service ?
Service:
Information exchange initiated by a
client in order to require diagnostic information
from a server or/and to modify its behaviour for
diagnostic purpose
which allow a diagnostic tester (client) to control
diagnostic functions in an on-vehicle Electronic
Control Unit (ECU, server).
Example : electronic fuel injection, automatic gear
box, anti-lock braking system, etc.
What is Diagnostic Data?
Diagnostice Data:
Diagnostic data that is located in the memory of an electronic control
unit{ECU)which may be inspected or modified by the tester.
Example of Diagnostic Data:vehicle speed, throttle
angle, mirror position, system status, etc
Three types of values are defined for diagnostic data:
Current Value
The value currently used by the normal operation of the
Electroic Control Unit(ECU).
The Stored Value
An internal copy of the current value, this copy is made under
the control of the electronic control (ECU) unit.
Static Value: e.g. VIN.
What is NRC?
Deaignostic Services
Diagnotic Session Control - 0x10
ECUReset – 0x11
Security Access – 0x27
Communication Control – 0x28
TesterPresent – 0x3E
ControlDTCSetting – 0x85
ReadDataByIdentifier – 0x22
WriteDataByIdentifier – 0x2E
Diagnostic Session Control
Diagnostic Session Control
Used to enable different diagnostic sessions in
one ECU or a group of ECUs.
Diagnostic Session Control - Responses
Diagnostic Session Control Positive Response
message frame:
1. Default session
2 Other session
3 Same or other
session
4 Default session
ECU Reset Service - Request Message Definition
ECU Reset- Responses
ECU Reset Positive Response message frame
ReadDataByIdentifier :
ReadDataByIdentifier positive response message flow :
Read Data By Identifier Negative Response message Flow
Flow
WriteDataByIdentifier
4
• UDS Design document
3