ISO 14229-2:2021
(Main)Road vehicles — Unified diagnostic services (UDS) — Part 2: Session layer services
Road vehicles — Unified diagnostic services (UDS) — Part 2: Session layer services
This document specifies common session layer services and requirements to provide independence between unified diagnostic services (ISO 14229-1) and all transport protocols and network layer services (e.g. ISO 13400-2 DoIP, ISO 15765-2 DoCAN, ISO 10681-2 communication on FlexRay, ISO 14230-2 DoK-Line, and ISO 20794-3 CXPI). This document specifies a common service primitive interface between OSI layer 5 (session) and layer 4 (transport) via so-called service request/indication/confirmation primitives.
Véhicules routiers — Services de diagnostic unifiés (SDU) — Partie 2: Services de la couche session
General Information
Relations
Standards Content (Sample)
INTERNATIONAL ISO
STANDARD 14229-2
Second edition
2021-10
Road vehicles — Unified diagnostic
services (UDS) —
Part 2:
Session layer services
Véhicules routiers — Services de diagnostic unifiés (SDU) —
Partie 2: Services de la couche session
Reference number
© ISO 2021
All rights reserved. Unless otherwise specified, or required in the context of its implementation, no part of this publication may
be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on
the internet or an intranet, without prior written permission. Permission can be requested from either ISO at the address below
or ISO’s member body in the country of the requester.
ISO copyright office
CP 401 • Ch. de Blandonnet 8
CH-1214 Vernier, Geneva
Phone: +41 22 749 01 11
Email: copyright@iso.org
Website: www.iso.org
Published in Switzerland
ii
Contents Page
Foreword .v
Introduction . vi
1 Scope . 1
2 Normative references . 1
3 Terms and definitions . 1
4 Symbols and abbreviated terms.2
4.1 Symbols . 2
4.2 Abbreviated terms . 2
5 Conventions . 2
6 Session layer services . 2
6.1 Service interface . 2
6.2 Service interface parameters . 3
6.3 Service interface primitives . 3
7 Service interface (SI) definition from application layer to session layer.4
7.1 SI — S_Data.req, S_Data.ind, and S_Data.conf service interface . 4
7.2 SI — S_Data.req, S_Data.ind, and S_Data.conf service interface parameter mapping . 5
7.3 SI — S_PDU mapping onto T_PDU and vice versa for message transmission . 5
7.4 SI — S_Data.req. 6
7.5 SI — S_Data.ind . 7
7.6 SI — S_Data.conf . 7
8 Service primitive parameters (SPP) . 7
8.1 SPP – General . 7
8.2 SPP – Data type definitions . 7
8.3 SPP – S_Mtype, session layer message type . 7
8.4 SPP – S_TAtype, session layer target address type . 8
8.5 SPP – S_TA, session layer target address . 8
8.6 SPP – S_SA, session layer source address . 8
8.7 SPP – S_AE, session layer address extension . 8
8.8 SPP – S_Length, session layer length of S_Data . 8
8.9 SPP – S_Data, session layer data of PDU . 9
8.10 SPP – S_Result, session layer result . 9
9 Timing parameter definition . .9
9.1 General application timing considerations . 9
9.1.1 Server . 9
9.1.2 Client . 10
9.2 Application timing parameter definitions – defaultSession . 11
9.3 Example for t without enhanced response timing . 16
P4_Server
9.4 Example for t with enhanced response timing . 17
P4_Server
9.5 Session timing parameter definitions for the non-default session . 19
9.6 Client and server timer resource requirements . 20
9.7 Error handling . 21
10 Timing handling during communication .23
10.1 Physical communication . 23
10.1.1 Physical communication during defaultSession – without SOM.ind .23
10.1.2 Physical communication during defaultSession – with SOM.ind . 24
10.1.3 Physical communication during defaultSession with enhanced response
timing . 24
10.1.4 Physical communication during a non-default session . 26
10.2 Functional communication . 31
10.2.1 Functional communication during defaultSession – without SOM.ind . 31
iii
10.2.2 Functional communication during defaultSession – with SOM.ind . 32
10.2.3 Functional communication during defaultSession with enhanced response
timing – with SOM.ind . 33
10.2.4 Functional communication during non-default session – with SOM.ind .36
10.3 Minimum time between client request messages .40
Annex A (normative) T_PDU interface.48
Annex B (informative) Vehicle diagnostic OSI layer architecture examples .49
Bibliography .53
iv
Foreword
ISO (the International Organization for Standardization) is a worldwide federation of national standards
bodies (ISO member bodies). The work of preparing International Standards is normally carried out
through ISO technical committees. Each member body interested in a subject for which a technical
committee has been established has the right to be represented on that committee. International
organizations, governmental and non-governmental, in liaison with ISO, also take part in the work.
ISO collaborates closely with the International Electrotechnical Commission (IEC) on all matters of
electrotechnical standardization.
The procedures used to develop this document and those intended for its further maintenance are
described in the ISO/IEC Directives, Part 1. In particular, the different approval criteria needed for the
different types of ISO documents should be noted. This document was drafted in accordance with the
editorial rules of the ISO/IEC Directives, Part 2 (see www.iso.org/directives).
Attention is drawn to the possibility that some of the elements of this document may be the subject of
patent rights. ISO shall not be held responsible for identifying any or all such patent rights. Details of
any patent rights identified during the development of the document will be in the Introduction and/or
on the ISO list of patent declarations received (see www.iso.org/patents).
Any trade name used in this document is information given for the convenience of users and does not
constitute an endorsement.
For an explanation of the voluntary nature of standards, the meaning of ISO specific terms and
expressions related to conformity assessment, as well as information about ISO's adherence to
the World Trade Organization (WTO) principles in the Technical Barriers to Trade (TBT), see
www.iso.org/iso/foreword.html.
This document was prepared by Technical Committee ISO/TC 22, Road vehicles, Subcommittee SC 31,
Data communication.
This second edition cancels and replaces the first edition (ISO 14229-2:2013), which has been technically
revised.
The main changes are as follows:
— restructuration of the document;
— introduction of requirement numbers and names;
— technical content improvements based on implementation feedback from the automotive industry.
A list of all parts in the ISO 14229 series can be found on the ISO website.
Any feedback or questions on this document should be directed to the user’s national standards body. A
complete listing of these bodies can be found at www.iso.org/members.html.
v
Introduction
The ISO 14229 series has been established in order to define common requirements for diagnostic
systems, whatever the serial data link is.
To achieve this, the ISO 14229 series is based on the Open Systems Interconnection (OSI) Basic Reference
[1]
Model in accordance with ISO/IEC 7498-1 and ISO/IEC 10731, which structures communication
systems into seven layers. When mapped on this model, the services used by a diagnostic tester (client)
and an Electronic Control Unit (ECU, server) are structured into the following layers:
— application layer (layer 7) specified in ISO 14229-1;
— presentation layer (layer 6) specified in ISO 14229-1;
— session layer services (layer 5) specified in this document (ISO 14229-2).
Figure 1 illustrates the ISO 14229 series reference according to OSI model.
Figure 1 — ISO 14229 series reference according to OSI model
vi
INTERNATIONAL STANDARD ISO 14229-2:2021(E)
Road vehicles — Unified diagnostic services (UDS) —
Part 2:
Session layer services
1 Sco
...
Questions, Comments and Discussion
Ask us and Technical Secretary will try to provide an answer. You can facilitate discussion about the standard in here.