22 - 2 Diagnosis UDS - Basics
22 - 2 Diagnosis UDS - Basics
22 - 2 Diagnosis UDS - Basics
UDS Diagnosis
Frank Nikolai
Overview
▪ UDS
– Basics
– Communication
– Key features
– Further information
– ODX files
– Difference between XCP and UDS
UDS: Basics
▪ What is UDS?
– Diagnostic communication protocol in ECUs
– Specified in ISO 14229-1
– Successor of KWP2000 and ISO 15765-3
– Used in almost all new automotive ECUs
– Functionality for diagnostic purposes
(error storage, read/write data, routine control, programming)
– Data transfer via CAN, Ethernet, LIN, K-Line, CXPI or FlexRay
– Full featured diagnosis system
▪ Main objectives
– Standardized measurement,
calibration and diagnosis tools
– Vendor independent
– One tester is able to diagnose complete system/vehicle
- Protocol to ensure process safety
(e.g.:
safe update process (flashing) for vehicles in the field)
UDS: Basics
▪ Use cases
– Reading measurement values
– Reading/Writing datasets
– Triggering ECU routines
– Accessing error storage
– Analysis during development
– Setup during production
– Flash programming
– OBD (onboard diagnostics)
▪ UUDT responses
Data Parameter
▪ Negative responses
Negative Response SID Request Service Response Code
Identifier
UDS: Communication
UDS: Communication
Functional Unit SID Service Name
0x10 Diagnostic Session Control
0x11 ECU Reset
0x27 Security Access
0x28 Communication Control
Diagnostic and 0x3E Tester Present
Communication
Management 0x83 Access Timing Parameter
0x84 Secured Data Transmission
0x85 Control DTC Setting
0x86 Response On Event
0x87 Link Control
UDS: Communication
Functional Unit SID Service Name
0x22 Read Data By Identifier
0x23 Read Memory By Address
0x24 Read Scaling Data By Identifier
Data
0x2A Read Data By Periodic Identifier
Transmission
0x2C Dynamically Define Data Identifier
0x2E Write Data By Identifier
0x3D Write Memory By Address
Store Data 0x14 Clear Diagnostic Information
Transmission 0x19 Read DTC Information
UDS: Communication
Functional Unit SID Service Name
Input Output
0x2F Input Output Control By Identifier
Control
Remote
Activation of 0x31 Routine Control
Routine
0x34 Request Download
Upload 0x35 Request Upload
Download 0x36 Transfer Data
0x37 Request Transfer Exit
UDS: Key features
▪ Session handling
– Services can be divided into session groups
– Session groups:
• Can be mapped to system states (e.g. flash loader)
• Can be mapped to user groups (e.g. production, customer etc.)
▪ Security access
– Secured diagnosis services can only be accessed
with a security access
– Different security accesses for different user groups or
diagnosis sessions
UDS: Key features
▪ Response on event
(ECU sends data blocks on internal events)
▪ Routine controls
(start/stop/request status of predefined internal
ECU functions)