1、raising standards worldwideNO COPYING WITHOUT BSI PERMISSION EXCEPT AS PERMITTED BY COPYRIGHT LAWBSI Standards PublicationRoad vehicles Unified diagnostic services (UDS)Part 6: Unified diagnostic services on K-Line implementation (UDSonK- Line)BS ISO 14229-6:2013National forewordThis British Standar
2、d is the UK implementation of ISO 14229-6:2013.The UK participation in its preparation was entrusted to Technical CommitteeAUE/16, Electrical and electronic equipment.A list of organizations represented on this committee can be obtained onrequest to its secretary.This publication does not purport to
3、 include all the necessary provisions of acontract. Users are responsible for its correct application. The British Standards Institution 2013Published by BSI Standards Limited 2013ISBN 978 0 580 71432 0ICS 43.180Compliance with a British Standard cannot confer immunity fromlegal obligations.This Bri
4、tish Standard was published under the authority of the StandardsPolicy and Strategy Committee on 30 April 2013.Amendments issued since publicationAmd. No. Date Text affectedBRITISH STANDARDBS ISO 14229-6:2013 ISO 2013Road vehicles Unified diagnostic services (UDS) Part 6: Unified diagnostic services
5、 on K-Line implementation (UDSonK-Line)Vhicules routiers Services de diagnostic unifis (SDU) Partie 6: SDU sur limplmentation de la ligne-K (SDUsurLigne-K)INTERNATIONAL STANDARDISO14229-6First edition2013-03-15Reference numberISO 14229-6:2013(E)BS ISO 14229-6:2013ISO 14229-6:2013(E)ii ISO 2013 All r
6、ights reservedCOPYRIGHT PROTECTED DOCUMENT ISO 2013All rights reserved. Unless otherwise specified, 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 pr
7、ior written permission. Permission can be requested from either ISO at the address below or ISOs member body in the country of the requester.ISO copyright officeCase postale 56 CH-1211 Geneva 20Tel. + 41 22 749 01 11Fax + 41 22 749 09 47E-mail copyrightiso.orgWeb www.iso.orgPublished in SwitzerlandB
8、S ISO 14229-6:2013ISO 14229-6:2013(E) ISO 2013 All rights reserved iiiContents PageForeword ivIntroduction v1 Scope . 12 Normative references 13 Terms, definitions and abbreviated terms 13.1 Terms and definitions . 13.2 Abbreviated terms . 24 Conventions . 25 Document overview. 26 Unified diagnostic
9、 services implementation on K-Line . 46.1 General . 46.2 UDSonK-Line services overview 46.3 Diagnostic and communication control functional unit 56.4 Data transmission functional unit 67 Application layer requirements .67.1 Application layer services . 67.2 Application layer protocol . 67.3 Applicat
10、ion layer timing 68 Presentation layer requirements 79 Session layer requirements . 710 Transport/network layer interface adaptation . 710.1 General information . 710.2 DoK-Line transport/network layer interface adaptation 711 Data link layer diagnostic implementation requirements . 811.1 General in
11、formation . 811.2 Data segmentation . 811.3 Session handling 811.4 Timings 911.5 Protocol initialization, start and stop of communication . 911.6 Error handling . 912 Non-volatile server memory programming process . 9Bibliography .10BS ISO 14229-6:2013ISO 14229-6:2013(E)ForewordISO (the Internationa
12、l 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 es
13、tablished 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 standardi
14、zation.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 w
15、ith the editorial rules of the ISO/IEC Directives, Part 2. www.iso.org/directivesAttention 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 paten
16、t rights identified during the development of the document will be in the Introduction and/or on the ISO list of patent declarations received. www.iso.org/patentsAny trade name used in this document is information given for the convenience of users and does not constitute an endorsement. The committ
17、ee responsible for this document is ISO/TC 22, Road vehicles, Subcommittee SC 3, Electrical and electronic equipment.ISO 14229 consists of the following parts, under the general title Road vehicles Unified diagnostic services (UDS): Part 1: Specification and requirements Part 2: Session layer servic
18、es Part 3: Unified diagnostic services on CAN implementation (UDSonCAN) Part 4: Unified diagnostic services on FlexRay implementation (UDSonFR) Part 5: Unified diagnostic services on Internet Protocol implementation (UDSonIP) Part 6: Unified diagnostic services on K-Line implementation (UDSonK-Line)
19、The following part is under preparation: Part 7: Unified diagnostic services on Local Interconnet Network implementation (UDSonLIN)The titles of future parts will be drafted as follows: Part n: Unified diagnostic services on implementation (UDSon)iv ISO 2013 All rights reservedBS ISO 14229-6:2013ISO
20、 14229-6:2013(E)IntroductionThis part of ISO 14229 has been established in order to enable the implementation of unified diagnostic services, as specified in ISO 14229-1, on K-Line (UART based) networks (UDSonK-Line).To achieve this, it is based on the Open Systems Interconnection (OSI) Basic Refere
21、nce Model specified in ISO/IEC 7498-1 and ISO/IEC 10731, which structures communication systems into seven layers. When mapped on this model, the services specified by ISO 14229 are divided into: Application layer (layer 7), specified in: Vehicle manufacturer enhanced diagnostics: ISO 14229-1 / ISO
22、14229-6, Legislated OBD: ISO15031-5, Legislated WWH-OBD: ISO 14229-1, ISO 27145-3; Presentation layer (layer 6), specified in: Vehicle manufacturer enhanced diagnostics: not applicable, Legislated OBD: SAE J1930-DA, SAE J1979-DA, SAE J2012-DA, Legislated WWH-OBD: ISO 27145-2 with reference to SAE J1
23、930-DA, SAE J1939 Companion Spreadsheet (SPNs), SAE J1939-73:2010, Appendix A (FMIs), SAE J1979-DA and SAE J2012-DA; Session layer services (layer 5), specified in: Vehicle manufacturer enhanced diagnostics: ISO 14229-2, Legislated OBD: ISO 14229-2, Legislated WWH-OBD: ISO 14229-2; Transport layer s
24、ervices (layer 4), specified in: Vehicle manufacturer enhanced diagnostics: ISO 14230-2, Legislated OBD: ISO 15765-2, ISO 15765-4, Legislated WWH-OBD: ISO 27145-4; Network layer services (layer 3), specified in: Vehicle manufacturer enhanced diagnostics: ISO 14230-2, Legislated OBD: ISO 15765-2, ISO
25、 15765-4, Legislated WWH-OBD: ISO 27145-4; Data link layer (layer 2), specified in: Vehicle manufacturer enhanced diagnostics: ISO 14230-2, Legislated OBD: ISO 11898-1, ISO 11898-2, ISO 15765-4, Legislated WWH-OBD: ISO 27145-4; Physical layer (layer 1), specified in: Vehicle manufacturer enhanced di
26、agnostics: ISO 14230-1, Legislated OBD: ISO 11898-1, ISO 11898-2, ISO 15765-4, ISO 2013 All rights reserved vBS ISO 14229-6:2013ISO 14229-6:2013(E) Legislated WWH-OBD: ISO 27145-4;in accordance with Table 1.Table 1 DoK-Line enhanced diagnostics, legislated OBD and WWH-OBD specification reference app
27、licable to the OSI layersApplicability OSI 7 layersVehicle manufacturer enhanced diag-nosticsLegislated OBD Legislated WWH-OBDSeven layer according to ISO/IEC 7498-1 and ISO/IEC 10731Application (layer 7)ISO 14229-1 / ISO 14229-6ISO 15031-5 ISO 14229-1 / ISO 27145-3Presentation (layer 6)Vehicle manu
28、fac-turer specificSAE J1930-DA / SAE J1979-DA / SAE J2012-DAISO 27145-2, SAE J1930-DA, SAE J1939 Companion Spreadsheet (SPNs), SAE J1939-73:2010, Appendix A (FMIs), SAE J1979-DA, SAE J2012-DASession (layer 5)ISO 14229-2Transport (layer 4)ISO 14230-2ISO 15765-2, ISO 15765-4ISO 15765-2, ISO 15765-4ISO
29、 27145-4ISO 13400-2Network (layer 3)Data link (layer 2)ISO 14230-1ISO 11898-1, ISO 11898-2, ISO 15765-4ISO 11898-1, ISO 11898-2, ISO 15765-4ISO 13400-3, IEEE 802.3Physical (layer 1)vi ISO 2013 All rights reservedBS ISO 14229-6:2013INTERNATIONAL STANDARD ISO 14229-6:2013(E)Road vehicles Unified diagn
30、ostic services (UDS) Part 6: Unified diagnostic services on K-Line implementation (UDSonK-Line)1 ScopeThis part of ISO 14229 specifies the implementation of a common set of unified diagnostic services (UDS) on K-Line (UART based) in road vehicles (UDSonK-Line).UDSonK-Line references ISO 14229-1 and
31、ISO 14229-2, and specifies implementation requirements of the diagnostic services to be used for diagnostic communication over K-Line, the server memory programming for all in-vehicle servers connected to a K-Line network with external test equipment.NOTE UDSonK-Line does not specify any requirement
32、 for the in-vehicle K-Line bus architecture.This part of ISO14229 makes reference to information contained in ISO 14229-1, ISO 14229-2, ISO 14230-1, and ISO 14230-2.This part of ISO 14229 does not include any redundant information of the above-mentioned documents. It focuses on additional requiremen
33、ts specific to the implementation of UDSonK-Line network, and specific restrictions in the implementation of UDSonK-Line network.2 Normative referencesThe following documents, in whole or in part, are normatively referenced in this document and are indispensable for its application. For dated refere
34、nces, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.ISO 14229-1, Road vehicles Unified diagnostic services (UDS) Part 1: Specification and requirementsISO 14229-2, Road vehicles Unified diagnostic services (UD
35、S) Part 2: Session layer servicesISO 14230-1, Road vehicles Diagnostic communication over K-Line (DoK-Line) Part 1: Physical layerISO 14230-2, Road vehicles Diagnostic communication over K-Line (DoK-Line) Part 2: Data link layerISO 14230-4, Road vehicles Diagnostic systems Keyword Protocol 2000 Part
36、 4: Requirements for emission-related systems3 Terms, definitions and abbreviated terms3.1 Terms and definitionsFor the purposes of this document, the terms and definitions given in ISO 14229-1, ISO 14229-2, ISO 14230-1 and ISO 14230-2 apply. ISO 2013 All rights reserved 1BS ISO 14229-6:2013ISO 1422
37、9-6:2013(E)3.2 Abbreviated termsMtype message typeAE address extensionDA destination addressID identifierFB first byteSA source addressTA target addressSFID subfunction identifier4 ConventionsThis part of ISO 14229 is based on the conventions discussed in the OSI Service Conventions (ISO/IEC 10731:1
38、994) as they apply for diagnostic services.5 Document overviewFigure 1 illustrates the document references from ISO 14229-1, ISO 14229-2, ISO 14230-1 and ISO 14230-2. This part of ISO 14229 uses only a subset of the diagnostic services defined in ISO 14229-1 (see Table 2).2 ISO 2013 All rights reser
39、vedBS ISO 14229-6:2013ISO 14229-6:2013(E)ISO 14229-1 UDS specig976ication and requirementsOSI Layer 7ApplicationOSI Layer 6PresentationOSI Layer 5SessionOSI Layer 4TransportOSI Layer 3NetworkOSI Layer 1PhysicalOSI Layer 2Data LinkISO 14229-2 UDS session layer servicessubsetStandardized Service Primi
40、tive InterfaceUnig976ied Diagnostic Services (UDS)vehicle manufacturer specig976icISO 14229-6 UDS UDSonK-Line implementationISO 14229-6UDSonK-LineISO 14230-2 DoK-Line data link layerISO 14230-1 DoK-Linephysical layerDoK-LineFigure 1 UDSonK-Line document reference according to OSI model ISO 2013 All
41、rights reserved 3BS ISO 14229-6:2013ISO 14229-6:2013(E)6 Unified diagnostic services implementation on K-Line6.1 GeneralThis clause defines how the diagnostic services as defined in ISO 14229-1 apply to DoK-Line. For each applicable service, the applicable subfunction and data parameters are defined
42、.To allow a common implementation of application layer and session layer for DoK-Line and other communications, this part of ISO 14229 uses the session layer protocol as defined in ISO 14229-2 and focuses on necessary modifications and interfaces to adopt it to ISO 14230-2.NOTE 1 The subfunction par
43、ameter definitions take into account that the most significant bit is used for the suppressPosRspMsgIndicationBit parameter as defined in ISO 14229-1.NOTE 2 It is the system designers responsibility to ensure that in case the client does not require a response message (suppressPosRspMsgIndicationBit
44、 = TRUE (1) and the server might need more than P2Serverto process the request message that the client shall insert sufficient time between subsequent requests.6.2 UDSonK-Line services overviewThe purpose of Table 2 is to reference all unified diagnostic services as they are applicable for an implem
45、entation of UDSonK-Line. The table contains the sum of all applicable services. Certain applications using this part of ISO 14229 to implement UDSonK-Line may restrict the number of useable services and may categorize them in certain application areas/diagnostic sessions (default session, programmin
46、g session, etc.).The restriction of data length for all diagnostic services due to the data link layer applies (see 7.1).NOTE 1 Certain diagnostic services e.g. ReadDTCInformation (depends on the number of DTCs to be reported) might exceed the message length restriction.NOTE 2 Services which are not
47、 listed in Table 2 are not supported.Table 2 Overview of applicable ISO14229-1 Unified diagnostic services and data rangesDiagnostic service name (ISO 14229-1)CommentReference in this documentDiagnostic and Communication Management Functional UnitDiagnosticSessionControl No K-Line specific requireme
48、nts ECUReset No K-Line specific requirements SecurityAccess No K-Line specific requirements TesterPresent No K-Line specific requirements AccessTimingParameter K-Line specific requirements see 6.3.1ControlDTCSetting No K-Line specific requirements LinkControl K-Line specific requirements see 6.3.2Da
49、ta Transmission Functional UnitReadDataByIdentifier No K-Line specific requirements ReadMemoryByAddress No K-Line specific requirements ReadScalingDataByIdentifier No K-Line specific requirements DynamicallyDefineDataIdentifier K-Line specific requirements see 6.4WriteDataByIdentifier No K-Line specific requirements WriteMemoryByAddress No K-Line specific requirements 4 ISO 2013 All rights reservedBS ISO 14229-6:2013ISO 14229-6:201