XCP
Version 1.0
“The Universal Measurement and Calibration
Protocol Family”
Part 3
XCP on FlexRay - Transport Layer Specification
Association for Standardization of
Automation and Measuring Systems
Association for Standardization of
Automation and Measuring Systems
Association for Standardization of
Automation and Measuring Systems
Dated:2005-12-21
© ASAM e.V.
Status of Document
Date: 2005-12-21
Authors: Roel Schuermans, Vector Informatik GmbH
Oliver Kalweit, BMW AG
Rainer Zaiser, Vector Informatik GmbH
Oliver Kitt, Vector Informatik GmbH
Andreas Herkommer, Vector Informatik GmbH
Andreas Aberfeld, Robert Bosch GmbH
Reiner Motz, Robert Bosch GmbH
Karsten Wehefritz, Robert Bosch GmbH
Hans-Georg Kunz, Siemens VDO Automotive AG
Hendirk Amsbeck, dSPACE GmbH
Bastian Kellers, dSPACE GmbH
Thomas Kirschbaum, ETAS GmbH
Martin Laichinger, ETAS GmbH
Version: 1.0
Doc-ID: XCP - Part 3- Transport Layer Specification
XCP on FlexRay -1.0
Status: Released
Type Final
Disclaimer of Warranty
Although this document was created with the utmost care it cannot be guaranteed
that it is completely free of errors or inconsistencies.
ASAM e.V. makes no representations or warranties with respect to the contents or
use of this documentation, and specifically disclaims any expressed or implied
warranties of merchantability or fitness for any particular purpose. Neither ASAM
nor the author(s) therefore accept any liability for damages or other consequences
that arise from the use of this document.
ASAM e.V. reserves the right to revise this publication and to make changes to its
content, at any time, without obligation to notify any person or entity of such
revisions or changes.
XCP -Part 3- Transport Layer Specification XCP on FlexRay -1.0.doc
2
Revision History
This revision history shows only major modifications between release versions.
Date Author Filename Comments
2005-12-21 R.Schuermans Released document
XCP -Part 3- Transport Layer Specification XCP on FlexRay -1.0.doc
3
Table of contents
0 Introduction ........................................................................................................6
0.1 The XCP Protocol Family .......................................................................................... 6
0.2 Documentation Overview .......................................................................................... 7
0.3 Definitions and Abbreviations ................................................................................... 8
0.4 Normative Reference.................................................................................................. 9
1 The XCP Transport Layer for FlexRay............................................................10
1.1 FlexRay frames transporting XCP............................................................................ 10
1.1.1 LPDU_ID ......................................................................................................... 10
1.1.2 FlexRay frame type .......................................................................................... 11
1.1.3 Maximum FlexRay length................................................................................ 11
1.2 Addressing................................................................................................................ 12
1.2.1 XCP-dedicated LPDU_IDs on the network ..................................................... 12
1.2.2 XCP-dedicated buffers in the slave.................................................................. 12
1.2.2.1 Assignment of LPDU_IDs to buffers........................................................... 13
1.2.2.2 Assignment of XCP-packets to buffers........................................................ 14
1.2.3 Multiple XCP-slaves using exclusive LPDU_IDs............................................ 15
1.2.4 Multiple XCP-slaves competing for LPDU_IDs.............................................. 16
1.2.4.1 Node address for XCP.................................................................................. 16
1.2.4.2 Mutually exclusive activation of XCP-dedicated buffers ............................ 16
1.2.4.3 Reconfiguration of XCP-dedicated buffers.................................................. 16
1.2.5 Use of XCP-dedicated buffers within the slave................................................ 17
1.3 Communication Model............................................................................................. 18
1.4 Header and Tail ........................................................................................................ 19
1.4.1 Header .............................................................................................................. 19
1.4.1.1 Node Address for XCP (NAX) .................................................................... 20
1.4.1.2 Counter (CTR).............................................................................................. 20
1.4.1.3 Fill ................................................................................................................ 20
1.4.1.4 Length (LEN) ............................................................................................... 20
1.4.2 Tail ................................................................................................................... 21
1.4.2.1 Single XCP message in one FlexRay frame................................................. 21
1.4.2.2 Multiple XCP messages in one FlexRay frame ........................................... 22
1.5 The Limits of performance....................................................................................... 23
2 Specific commands for XCP on FlexRay........................................................24
2.1 Assign/Deassign FlexRay LPDU-Identifiers to buffers........................................... 25
2.2 Activate Communication of a FlexRay buffer ......................................................... 27
2.3 Deactivate Communication of a FlexRay buffer...................................................... 28
2.4 Get DAQ List FlexRay Buffer(s) ............................................................................. 29
2.5 Set DAQ List FlexRay Buffer(s).............................................................................. 30
3 Specific events for XCP on FlexRay ...............................................................31
4 Interface to ASAM MCD 2MC description file ................................................32
4.1 ASAM MCD 2MC AML for XCP on FlexRay........................................................ 32
4.2 IF_DATA example for XCP on FlexRay ................................................................. 35
5 Interface to ASAM MCD-2 [FBX] description file ...........................................38
XCP -Part 3- Transport Layer Specification XCP on FlexRay -1.0.doc
4
Table of diagrams:
Diagram 1 : Data Link Layer Protocol Data Unit Identifier .................................................... 10
Diagram 2 : Theoretical (top) vs. practical (bottom) max. length of payload segment ........... 11
Diagram 3 : XCP dedicated LPDU_IDs on the network.......................................................... 12
Diagram 4 : multiple XCP slaves using exclusive LPDU_IDs ................................................ 15
Diagram 5 : Header and Tail for XCP on FlexRay .................................................................. 19
Diagram 6 : Header types for first XCP message of a FlexRay frame..................................... 19
Diagram 7 : Header for subsequent concatenated messages.................................................... 19
Diagram 8 : Tail for rounding up to even FlexRay length ....................................................... 21
Diagram 9 : Tail for filling up to MAX_FLX_LEN_BUF_x .................................................. 21
Diagram 10 : Tail for aligning concatenated XCP messages and rounding up to even FlexRay
length................................................................................................................................ 22
Diagram 11 : LEN = 0 for detecting the end of the used payload segment ............................. 22
Diagram 12 : Relation between MAX_CTO. MAX_DTO and MAX_FLX_LEN_BUF_x.... 23
XCP -Part 3- Transport Layer Specification XCP on FlexRay -1.0.doc
5