1、BSI Standards PublicationBS ISO 14229-3:2012 Incorporating corrigendum September 2015BS ISO 14229-3:2012Road vehicles Unified diagnostic services (UDS)Part 3: Unified diagnostic services on CAN implementation (UDSonCAN)BS ISO 14229-3:2012 BRITISH STANDARDNational forewordThis British Standard is the
2、 UK implementation of ISO 14229-3:2012.The UK participation in its preparation was entrusted to Technical Committee AUE/16, Data Communication (Road Vehicles).A list of organizations represented on this committee can be obtained on request to its secretary.This publication does not purport to includ
3、e all the necessary provisions of a contract. Users are responsible for its correct application. The British Standards Institution 2015. Published by BSI Standards Limited 2015ISBN 978 0 580 91702 8ICS 43.180Compliance with a British Standard cannot confer immunity from legal obligations.This Britis
4、h Standard was published under the authority of the Standards Policy and Strategy Committee on 31 December 2012.Amendments/corrigenda issued since publicationDate Text affected30 September 2015 Implementation of ISO corrected text 15 January 2013: information regarding ISO 14229-3 cancelling and rep
5、lacing ISO 15765-3:2004 incorporated ISO 2012Road vehicles Unified diagnostic services (UDS) Part 3: Unified diagnostic services on CAN implementation (UDSonCAN)Vhicules routiers Services de diagnostic unifis (SDU) Partie 3: SDU sur limplmentation du gestionnaire de rseau de communication (SDUsurCAN
6、)INTERNATIONAL STANDARDISO14229-3First edition2012-12-01Corrected version2013-01-15Reference numberISO 14229-3:2012(E)BS ISO 14229-3:2012ISO 14229-3:2012(E)ii ISO 2012 All rights reservedCOPYRIGHT PROTECTED DOCUMENT ISO 2012All rights reserved. Unless otherwise specified, no part of this publication
7、 may be reproduced or utilized in any form or by any means, electronic or mechanical, including photocopying and microfilm, without permission in writing 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.
8、 + 41 22 749 01 11Fax + 41 22 749 09 47E-mail copyrightiso.orgWeb www.iso.orgPublished in SwitzerlandBS ISO 14229-3:2012ISO 14229-3:2012(E) ISO 2012 All rights reserved iiiContents PageForeword ivIntroduction v1 Scope . 12 Normative references 13 Terms, definitions and abbreviated terms 13.1 Terms a
9、nd definitions . 13.2 Abbreviated terms . 14 Conventions . 25 Document overview. 26 Unified diagnostic services implementation on CAN . 46.1 General . 46.2 UDS on CAN services overview . 46.3 ResponseOnEvent (0x86) service DoCAN implementation requirements . 56.4 ReadDataByPeriodicIdentifier (0x2A)
10、service 77 Application layer requirements 137.1 Application layer services 137.2 Application layer protocol 137.3 Application layer timing. 138 Presentation layer requirements .139 Session layer requirements 1310 Transport/Network layer interface adaptation 1310.1 General information 1310.2 DoCAN Tr
11、ansport/Network layer interface adaptation .1411 Data link layer diagnostic implementation requirements 1511.1 Usage of legislated 11-bit OBD CAN Identifiers for enhanced diagnostics 1511.2 Usage of legislated 29-bit OBD CAN Identifiers for enhanced diagnostics 15Bibliography .16BS ISO 14229-3:2012I
12、SO 14229-3:2012(E)ForewordISO (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 subj
13、ect 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 (IE
14、C) on all matters of electrotechnical standardization.International Standards are drafted in accordance with the rules given in the ISO/IEC Directives, Part 2.The main task of technical committees is to prepare International Standards. Draft International Standards adopted by the technical committee
15、s are circulated to the member bodies for voting. Publication as an International Standard requires approval by at least 75 % of the member bodies casting a vote.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 hel
16、d responsible for identifying any or all such patent rights.ISO 14229-3 was prepared by Technical Committee ISO/TC 22, Road vehicles, Subcommittee SC 3, Electrical and electronic equipment.This first edition of ISO 14229-3 cancels and replaces ISO 15765-3:2004.This corrected version incorporates the
17、 above information regarding ISO 14229-3 cancelling and replacing ISO 15765-3:2004.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 services Part 3: Unified diagnostic serv
18、ices 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)The following parts are under prep
19、aration / are planned: Part 7: Unified diagnostic services on Local Interconnet Network implementation(UDSonLIN)iv ISO 2012 All rights reservedBS ISO 14229-3:2012ISO 14229-3:2012(E)IntroductionThis part of ISO 14229 has been established in order to enable the implementation of unified diagnostic ser
20、vices, as specified in ISO 14229-3, on Controller Area Networks (UDSonCAN).To achieve this, it is based on the Open Systems Interconnection (OSI) Basic Reference Model specified in ISO/IEC 7498-1 and ISO/IEC 10731, which structures communication systems into seven layers. When mapped on this model,
21、the services specified by ISO 14229 are divided into Application layer (layer 7): Vehicle manufacturer enhanced diagnostics: ISO 14229-1, ISO 14229-3, Legislated OBD: ISO 15031-5, Legislated WWH-OBD: ISO 14229-1 / ISO 27145-3; Presentation layer (layer 6): Vehicle manufacturer enhanced diagnostics:
22、vehicle manufacturer specific, Legislated OBD: SAE J1930-DA, SAE J1979-DA, SAE J2012-DA, Legislated WWH-OBD: ISO 27145-2 with reference to SAE J1930-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): Veh
23、icle manufacturer enhanced diagnostics: ISO 14229-2, Legislated OBD: ISO 14229-2, Legislated WWH-OBD: ISO 14229-2; Transport layer services (layer 4): Vehicle manufacturer enhanced diagnostics: ISO 15765-2, Legislated OBD: ISO 15765-2, ISO 15765-4 Legislated WWH-OBD: ISO 27145-4; Network layer servi
24、ces (layer 3): Vehicle manufacturer enhanced diagnostics: ISO 15765-2, Legislated OBD: ISO 15765-2, ISO 15765-4 Legislated WWH-OBD: ISO 27145-4; Data link layer (layer 2): Vehicle manufacturer enhanced diagnostics: ISO 11898-1, ISO 11898-2, ISO 11898-3, ISO 11898-5, Legislated OBD: ISO 11898-1, ISO
25、11898-2, ISO 15765-4, Legislated WWH-OBD: ISO 27145-4; Physical layer (layer 3): Vehicle manufacturer enhanced diagnostics: ISO 11898-1, ISO 11898-2, ISO 11898-3, ISO 11898-5, Legislated OBD: ISO 11898-1, ISO 11898-2, ISO 15765-4, ISO 2012 All rights reserved vBS ISO 14229-3:2012ISO 14229-3:2012(E)
26、Legislated WWH-OBD: ISO 27145-4;in accordance with Table 1.Table 1 DoCAN enhanced diagnostics, legislated OBD and WWH-OBD specification reference applicable to the OSI layersApplicability OSI 7 layersVehicle manufac-turer enhanced diagnosticsLegislated OBD (On-Board Diagnostics)Legislated WWH-OBD (O
27、n-Board Diagnostics)Seven layer according to ISO/IEC 7498-1 and ISO/IEC 10731Application (layer 7)ISO 14229-1, ISO/FDIS 14229-3ISO 15031-5 ISO 14229-1, ISO 27145-3Presentation (layer 6)vehicle manufac-turer specificSAE J1930-DA, SAE J1979-DA, SAE J2012-DAISO 27145-2 SAE J1930-DA, SAE J1939 Companion
28、 Spreadsheet (SPNs), SAE J1939 73:2010, Appendix A (FMIs), SAE J1979-DA, SAE J2012-DASession (layer 5)ISO 14229-2Transport (layer 4)ISO 15765-2ISO 15765-2, ISO 15765-4ISO 15765-2, ISO 15765-4ISO 27145-4ISO 13400-2Network (layer 3)Data link (layer 2)ISO 11898-1, ISO 11898-2, ISO 11898-3, ISO 11898-5
29、ISO 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 2012 All rights reservedBS ISO 14229-3:2012INTERNATIONAL STANDARD ISO 14229-3:2012(E)Road vehicles Unified diagnostic services (UDS) Part 3: Unified diagnostic services on CAN im
30、plementation (UDSonCAN)1 ScopeThis part of ISO 14229 specifies the implementation of a common set of unified diagnostic services (UDS) on controller area networks (CAN) in road vehicles (UDSonCAN).UDSonCAN references ISO 14229-1 and ISO 14229-2 and specifies implementation requirements of the diagno
31、stic services to be used for diagnostic communication over CAN.NOTE UDSonCAN does not specify any requirement for the in-vehicle CAN bus architecture.This part of ISO 14229 does not include any redundant information of the documents as listed in the Introduction. It focuses on additional requirement
32、s specific to the implementation of UDS on the CAN network, and specific restrictions in the implementation of UDS on the CAN 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 r
33、eferences, 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 service
34、s (UDS) Part 2: Session layer servicesISO 15765-1, Road vehicles Diagnostic communication over Controller Area Network (DoCAN) Part 1: General information and use case definitionISO 15765-2, Road vehicles Diagnostic communication over Controller Area Network (DoCAN) Part 2: Transport protocol and ne
35、twork layer servicesISO 15765-4, Road vehicles Diagnostic communication over Controller Area Network (DoCAN) Part 4: Requirements for emissions-related systems3 Terms, definitions and abbreviated terms3.1 Terms and definitionsFor the purposes of this document, the terms and definitions given in ISO
36、14229-1, ISO 14229-2, ISO 15765-1, ISO 15765-2 and ISO 15765-4 apply. ISO 2012 All rights reserved 1BS ISO 14229-3:2012ISO 14229-3:2012(E)3.2 Abbreviated termsCF consecutive frameDA destination addressDLC data length codeFF first frameFC flow controlID identifierNA network addressSA source addressSF
37、 single frameSM subnet maskSOM start of messageSTRT ser v iceToRespondToTA target addressUDS unified diagnostic servicesUSDT unacknowledged segmented data transferUUDT unacknowledged unsegmented data transfer4 ConventionsThis part of ISO 14229 is based on the conventions discussed in the OSI Service
38、 Conventions (ISO/IEC 10731:1994) as they apply for diagnostic services.5 Document overviewFigure 1 illustrates the documents required to implement UDSonCAN.2 ISO 2012 All rights reservedBS ISO 14229-3:2012ISO 14229-3:2012(E)ISO 14229-1 UDSspecig976ication and requirementsOSI Layer 7 ApplicationOSI
39、Layer 6 PresentationOSI Layer 5 SessionOSI Layer 4 TransportOSI Layer 3 NetworkOSI Layer 1PhysicalOSI Layer 2 Data LinkISO 14229-2 UDSsession layer servicessubsetISO 15765-2 DoCANtransport protocol and networklayer servicesISO 11898-1 CANdata link layer and physical signallingStandardized Service Pr
40、imitive InterfaceUnig976ied Diagnostic Services (UDS) ISO 14229-3 UDSUDSonCANvehicle manufacturer specig976icDoCANISO 14229-3 UDS UDSonCAN implementationISO 11898 CANPart 2: High-speed medium access unitPart 3: Low-speed, fault-tolerant, medium- dependent interfacePart 5: High-speed medium access un
41、it with low-power modeFigure 1 UDSonCAN document reference according to OSI model ISO 2012 All rights reserved 3BS ISO 14229-3:2012ISO 14229-3:2012(E)6 Unified diagnostic services implementation on CAN6.1 GeneralThis clause defines how the diagnostic services as defined in ISO 14229-1 apply to DoCAN
42、. For each applicable service, the applicable sub-function and data parameters are defined.NOTE The sub-function parameter definitions take into account that the most significant bit is used for the suppressPosRspMsgIndicationBit parameter as defined in ISO 14229-1.6.2 UDS on CAN services overviewTh
43、e purpose of Table 2 is to reference all ISO 14229-1 and ISO 14229-2 services as they are applicable for an implementation in ISO 14229-3, UDSonCAN. Table 2 contains the sum of all applicable services. Certain applications using this part of ISO 14229 to implement UDSonCAN may restrict the number of
44、 useable services and may categorize them in certain application areas/diagnostic sessions (default session, programming session, etc.).Services in Table 2 that are marked “No CAN specific requirements” shall be implemented as defined in ISO 14229-1 and ISO 14229-2 with no additional restrictions. S
45、ervices that are marked “CAN specific requirements” shall be implemented as defined by the subclause listed in the Table 2 entry.Table 2 Overview of applicable ISO 14229-1, Unified diagnostic services and data rangesDiagnostic service name (ISO 14229-1)Comment Reference in this documentDiagnostic an
46、d Communication Management Functional UnitDiagnosticSessionControl No CAN specific requirements ECUReset No CAN specific requirements SecurityAccess No CAN specific requirements CommunicationControl No CAN specific requirements TesterPresent No CAN specific requirements SecuredData-Transmission No C
47、AN specific requirements ControlDTCSetting No CAN specific requirements ResponseOnEvent CAN specific requirements see 6.3LinkControl No CAN specific requirements Data Transmission Functional UnitReadDataByIdentifier No CAN specific requirements ReadMemoryByAddress No CAN specific requirements ReadSc
48、alingDataByIdentifier No CAN specific requirements ReadDataByPeriodicIdentifier CAN specific requirements see 6.4DynamicallyDefineDataIdentifier No CAN specific requirements WriteDataByIdentifier No CAN specific requirements WriteMemoryByAddress No CAN specific requirements ReadDTCInformation No CAN
49、 specific requirements ClearDiagnosticInformation No CAN specific requirements Data Transmission Functional UnitReadDTCInformation No CAN specific requirements ClearDiagnosticInformation No CAN specific requirements 4 ISO 2012 All rights reservedBS ISO 14229-3:2012ISO 14229-3:2012(E)Input/Output Control Functional UnitInputOutputControlByIdentifier No CAN specific requirements Remote Activation Of Routine Functional UnitRoutineControl No CAN specific req