©2009北京风丘科技有限公司1诊断协议培训风丘科技©2009北京风丘科技有限公司培训大纲z1.诊断通讯介绍{在线通讯{离线通讯{小结z2.诊断协议历史z3.KWP2000(ISO14230)z4.DiagOnCanz5.OSI模型z6.诊断服务的结构{诊断消息请求{诊断消息响应{服务参数{小结和示例z7.寻址模式{基于CAN的寻址模式{物理寻址{功能寻址{UUDT响应{一般和扩展寻址{小结z8.数据段{帧类型{PCI字{数据段示例{寻址模式比较z9.诊断消息流{对称诊断通讯{周期传送{事件驱动的诊断通讯2©2009北京风丘科技有限公司1-诊断通讯介绍3©2009北京风丘科技有限公司自诊断4FFB1B4B2B3TesterECU1ECU2ECU3ECU4GatewayF1Vehicle©2009北京风丘科技有限公司在线通讯5Tester(Client)ECU1ECU2ECU3ECU4GatewayVehicleD-CANP-CANB1©2009北京风丘科技有限公司诊断通讯(离线通讯)6Tester(Client)ECU1ECU2ECU3ECU4VehicleB2B1B2B1©2009北京风丘科技有限公司小结7Tester(Client)ESPECM传感器发动机B1B2B3,B4B1,B2©2009北京风丘科技有限公司2-诊断协议历史8©2009北京风丘科技有限公司主要诊断协议历史年标准摘要1989ISO9141Roadvehicles–DiagnosticSystemsRequirementsforinterchangeofdigitalinformation1996ISO9141-2Roadvehicles–DiagnosticSystems–CARBrequirementsforinterchangeofdigitalinformation1998ISO14229:1998Roadvehicles–Diagnosticservicesspecification1999199919992000ISO14230ISO14230-1ISO14230-2ISO14230-3ISO14230-4Roadvehicles–DiagnosticSystems–Keywordprotocol2000Part1:PhysicallayerPart2:DatalinklayerPart3:ApplicationlayerPart4:Requirementsforemission-relatedsystems9©2009北京风丘科技有限公司主要诊断协议历史(续)年标准摘要2001200420042005200620052001ISO15031ISO15031-1ISO15031-2ISO15031-3ISO15031-4ISO15031-5ISO15031-6ISO15031-7Roadvehicles–Communicationbetweenvehicleandexternaltestequipmentforemission-relateddiagnosticsPart1:GeneralInformationPart2:Terms,definitions,abbrev.AndacronymsPart3:Diagnosticconnectorandrelatedelectricalcircuits,specificationandusePart4:ExternaltestequipmentPart5:Emission-relateddiagnosticservicesPart6:DiagnostictroublecodedefinitionsPart7:DataLinkSecurity10©2009北京风丘科技有限公司主要诊断协议历史(续)年标准摘要2004200420042005ISO15765ISO15765-1ISO15765-2ISO15765-3ISO15765-4Roadvehicles–DiagnosticsonControllerAreaNetworks(CAN)Part1:GeneralInformationPart2:NetworklayerservicesPart3:Implementationofunifieddiagnosticservices(UDSonCAN)Part4:Requirementsforemissions-relatedsystems2006ISO14229-1:2006Roadvehicles–Unifieddiagnosticservices(UDS)–Specificationandrequirements11©2009北京风丘科技有限公司标准缩写标准ISOInternationalStandardISO/DISDraftInternationalStandardISO/FDISFinalDraftInternationalStandardISO/CDCommitteeDraftISO/WDWorkingDraftISO/PRFProofofnewinternationalstandard12©2009北京风丘科技有限公司3-KWP2000(ISO14230)13©2009北京风丘科技有限公司架构14©2009北京风丘科技有限公司服务分类zDiagnosticmanagementzDatatransmissionzStoreddatatransmissionzInput/OutputcontrolzRemoteactivaitonofroutinezUpload/Download15©2009北京风丘科技有限公司DiagnosticManagement16ServicenameDescriptionstartDiagnosticSessionTheclientrequeststostartadiagnosticsessionwithaserver(s).stopDiagnosticSessionTheclientrequeststostopthecurrentdiagnosticsession.securityAccessTheclientrequeststounlockasecuredserver.testerPresentTheclientindicatestotheserver(s)thatitisstillpresent.ecuResetTheclientforcestheserver(s)toperformareset.readEcuIdentificationTheclientrequestsidentificationdatafromtheserver(s).©2009北京风丘科技有限公司DataTransmission17ServicenameDescriptionReadDataByLocalIdentifierTheclientrequeststhetransmissionofthecurrentvalueofarecordwithaccessbyrecordlocalidentifier.ReadDataByCommonIdentfierTheclientrequeststhetransmissionofthecurrentvalueofarecordwithaccessbyrecordCommonIdentifier.ReadMemoryByAddressTheclientrequeststhetransmissionofamemoryarea.DynamicallyDefineLocalIdentifierTheclientrequeststodynamicallydefinelocalidentifiersthatmaysubsequentlybeaccessedbyrecordlocalidentifier.WriteDataByLocalIdentifierTheclientrequeststowritearecordaccessedbyrecordlocalidentifier.WriteDataByCommonIdentifierTheclientrequeststowritearecordaccessedbyrecordcommonidentifier.WriteMemoryByAddressTheclientrequeststooverwriteamemoryarea.SetDataRatesThisserviceisnotpartoftheKWP2000Part3ImplementationRecommendedPracticeandshallthereforenotbeimplemented!©2009北京风丘科技有限公司StoredDataTransmission18ServicenameDescriptionReadDiagnosticTroubleCodesThisserviceisnotpartoftheKWP2000Part3ImplementationRecommendedPracticeandshallthereforenotbeimplemented!ReadDiagnosticTroubleCodesBy-StatusTheclientrequestsfromtheserverthetransmissionofboth,numberofDTCandvaluesofthediagnostictroublecodesdependingontheirstatus.ReadStatusOfDiagnosticTrouble-CodesTheclientrequestsfromtheserverthetransmissionofthenumberofDTC,valuesandstatusofthediagnostictroublecodes.ReadFreezeFrameDataTheclientrequestsfromtheserverthetransmissionofthevalueofarecordstoredinafreezeframe.ClearDiagnosticInformationTheclientrequestsfromtheservertoclearalloragroupofthediagnosticinformationstored.©2009北京风丘科技有限公司InputOutputControlfunctionalunit19ServicenameDescriptionInputOutputControlByLocalIdentifierTheclientrequeststhecontrolofaninput/outputspecifictotheserver.InputOutputControlByCommonIdentifierTheclientrequeststhecontrolofaninput/outputcommontooneormultipleserver(s).©2009北京风丘科技有限公司RemoteActivationOfRoutinefunctionalunit20ServicenameDescriptionStartRoutineByLocalIdentifierTheclientrequeststostartaroutineintheECUoftheserver.StartRoutineByAddressTheclientrequeststostartaroutineintheECUoftheserver.StopRoutineByLocalIdentifierTheclientrequeststostoparoutineintheECUoftheserver.StopRoutineByAddressTheclientrequeststostoparoutineintheEC