XCPVersion1.0“TheUniversalMeasurementandCalibrationProtocolFamily”Part5ExampleCommunicationSequencesAssociationforStandardizationofAutomationandMeasuringSystemsDated:2003-04-08©ASAMe.V.XCP-Part5-ExampleCommunicationSequences-1.0.doc2StatusofDocumentDate:2003-04-08Authors:RoelSchuermans,VectorInformatikGmbHRainerZaiser,VectorInformatikGmbHFrankHepperle,DaimlerChryslerAGHansSchröter,DaimlerChryslerAGReinerMotz,RobertBoschGmbHAndreasAberfeld,RobertBoschGmbHHans-GeorgKunz,SiemensVDOAutomotiveAGThomasTyl,SiemensVDOAutomotiveAGRobertLeinfellner,dSPACEGmbHHendirkAmsbeck,dSPACEGmbHHaraldStyrsky,CompactDynamicsGmbHBorisRuoff,ETASGmbHLarsWahlmann,AccurateTechnologiesInc.Version:1.0Doc-ID:XCP-Part5-ExampleCommunicationSequences-1.0Status:ReleasedTypeFinalDisclaimerofWarrantyAlthoughthisdocumentwascreatedwiththeutmostcareitcannotbeguaranteedthatitiscompletelyfreeoferrorsorinconsistencies.ASAMe.V.makesnorepresentationsorwarrantieswithrespecttothecontentsoruseofthisdocumentation,andspecificallydisclaimsanyexpressedorimpliedwarrantiesofmerchantabilityorfitnessforanyparticularpurpose.NeitherASAMnortheauthor(s)thereforeacceptanyliabilityfordamagesorotherconsequencesthatarisefromtheuseofthisdocument.ASAMe.V.reservestherighttorevisethispublicationandtomakechangestoitscontent,atanytime,withoutobligationtonotifyanypersonorentityofsuchrevisionsorchanges.XCP-Part5-ExampleCommunicationSequences-1.0.doc3RevisionHistoryThisrevisionhistoryshowsonlymajormodificationsbetweenreleaseversions.DateAuthorFilenameComments2003-04-08R.SchuermansReleaseddocumentXCP-Part5-ExampleCommunicationSequences-1.0.doc4Tableofcontents0Introduction........................................................................................................50.1TheXCPProtocolFamily...............................................................................................50.2DocumentationOverview...............................................................................................60.3DefinitionsandAbbreviations........................................................................................71ExampleCommunicationSequences..............................................................81.1Settingupasession........................................................................................................91.1.1Gettingbasicinformation..........................................................................................91.1.2UnlockingprotectedresourcesthroughaSeed&Keymechanism.........................101.1.3Gettinginformationabouttheslave’sdescriptionfile.............................................111.2Calibrating....................................................................................................................121.2.1GettingthecurrentactivepagesforECUaccessandXCPaccess..........................121.2.2EqualizingMasterandSlavethroughChecksumCalculation.................................131.2.3Reading/writingslaveparameters..........................................................................141.2.4Copyingbetweenpages...........................................................................................151.3Synchronousdatatransfer............................................................................................161.3.1Gettinginformationabouttheslave’sDAQlistprocessor......................................161.3.2PreparingtheDAQlists...........................................................................................181.3.2.1Staticconfiguration.......................................................................................181.3.2.2Dynamicconfiguration.................................................................................191.3.3ConfiguringtheDAQlists.......................................................................................201.3.4Startingthedatatransfer..........................................................................................211.3.5Stoppingthedatatransfer........................................................................................221.4Reprogrammingtheslave.............................................................................................231.4.1Indicatingthebeginningofaprogrammingsequence.............................................231.4.2Clearingapartofnon-volatilememory...................................................................241.4.3Programminganon-volatilememorysegment........................................................251.4.4Indicatingtheendofaprogrammingsequence.......................................................261.5Closingasession..........................................................................................................27XCP-Part5-ExampleCommunicationSequences-1.0.doc50Introduction0.1TheXCPProtocolFamilyThisdocumentisbasedonexperienceswiththeCANCalibrationProtocol(CCP)version2.1asdescribedinfeedbackfromthecompaniesAccurateTechnologiesInc.,CompactDynamicsGmbH,DaimlerChryslerAG,dSPACEGmbH,ETASGmbH,KleinknechtAutom