ASAM-MCD-2 NET (FIBEX) Data Model for ECU Network Systems (Field Bus Data Exchange Format) Version 4.1.2 Date: 2017-06-02 Base Standard by ASAM e.v., 2017
Disclaimer This document is the copyrighted property of ASAM e.v. Any use is limited to the scope described in the license terms. The license terms can be viewed at www.asam.net/license
Table of Contents 1 This Document 9 1.1 Purpose of this Document... 9 1.2 Naming Conventions... 9 1.3 Major Changes between FIBEX 3.1 and FIBEX 4.1... 9 1.4 Abbreviations... 10 2 Introduction 12 2.1 Overview... 12 2.2 Exchange Format Requirements... 12 2.3 Usage guidelines and restrictions... 13 2.4 Use Cases... 13 3 Entities and Relationships 15 3.1 Diagram... 15 3.2 Entities... 16 3.2.1 Info... 16 3.2.2 Entities Describing the System Topology... 17 3.2.3 Entities Describing the Functional Level... 17 3.2.4 Entities Describing SIGNALS... 18 3.2.5 Entities Describing Composite Structures... 18 3.2.6 Entities Describing the Communication Level... 18 3.2.7 Entities Describing Requirements... 19 3.2.8 Entities Describing Gateways... 20 3.2.9 Entities Describing Higher Protocols... 20 3.2.10 Entities Describing Services... 20 3.3 Relations between entities... 21 4 UML-Diagram Usage Recommendations 24 4.1 Redundancies in the UML-Diagram... 24 4.2 Complex versus Simple Databases... 25 4.3 Importing Different Variants... 25 4.4 Export... 26 5 Coding 27 5.1 Physical-Type... 27 5.2 Coded-Type... 28 5.3 Compu-Methods... 29 6 PDU Concept 31 6.1 FIBEX and AUTOSAR... 31 ASAM MCD-2 NET FIBEX Version 4.1.2 3
6.2 PDU Multiplexer... 33 6.3 Relation between Frame and PDU... 33 6.4 PDU Timing... 34 6.5 Signal and PDU Mapping... 34 6.5.1 General... 34 6.5.2 Usage... 37 6.5.3 Examples... 38 6.5.4 XML-Representation... 44 7 FIBEX and extensibility 45 7.1 Type substitution for platform specific extensions... 45 7.2 Manufacturer extensions... 47 7.3 External references... 48 7.4 Extensions for Higher-Level Protocols... 49 8 FIBEX and CAN 51 8.1 FIBEX Extensions for CAN... 52 8.1.1 CONTROLLER-TYPE... 52 8.1.1.1 CAN-BIT-TIMING... 52 8.1.1.2 CAN-BIT-TIMING-REQUIREMENTS... 52 8.1.2 IDENTIFIER-VALUE-TYPE... 53 8.1.2.1 EXTENDED-ADDRESSING... 53 8.2 Special mappings and interpretations... 53 8.2.1 PROTOCOL-TYPE... 53 8.2.2 PHYSICAL-TYPE... 53 8.3 Comparison and import of CANdb into FIBEX... 53 8.4 CAN FD... 54 9 FIBEX and TTCAN 55 9.1 FIBEX Extensions for TTCAN... 55 9.1.1 ABSOLUTELY-SCHEDULED-TIMING-TYPE... 56 9.1.1.1 TRIGGER... 56 9.1.2 CLUSTER-TYPE... 56 9.1.2.1 BASIC-CYCLE-LENGTH... 56 9.1.2.2 NTU... 56 9.1.2.3 OPERATION-MODE... 56 9.1.3 CONTROLLER-TYPE... 57 9.1.3.1 APPL-WATCHDOG-LIMIT... 57 9.1.3.2 EXPECTED-TX-TRIGGER... 57 9.1.3.3 EXTERNAL-CLOCK-SYNCHRONISATION... 57 9.1.3.4 INITIAL-REF-OFFSET... 57 9.1.3.5 MASTER... 57 9.1.3.6 TIME-MASTER-PRIORITY... 57 9.1.3.7 TIME-TRIGGERED-CAN-LEVEL... 57 9.1.3.8 TX-ENABLE-WINDOW-LENGTH... 57 9.2 Special mappings and interpretations... 57 9.2.1 CYCLE-COUNTER-TYPE... 57 ASAM MCD-2 NET FIBEX Version 4.1.2 4
9.2.2 CYCLE-REPETITION-TYPE... 58 9.2.3 NUMBER-OF-CYCLES-TYPE... 58 9.2.4 PROTOCOL-TYPE... 58 9.2.5 SLOT-ID-TYPE... 58 10 FIBEX and LIN 59 10.1 FIBEX Extensions for LIN... 59 10.2 Special mappings and interpretations... 62 10.2.1 LIN Description File... 62 10.2.2 Node Capability File... 65 11 FIBEX and FlexRay 67 11.1 FIBEX Extensions for FlexRay... 67 11.1.1 Controller-Type... 67 11.1.2 Cluster-Type... 68 11.1.2.1 Key-Slot-Usage... 68 11.1.3 Channel-Type... 68 11.1.4 Connector-Type... 68 11.2 Special mappings and interpretations... 68 11.2.1 Cycle-Repetition-Type... 68 11.2.2 Cycle-Counter-Type... 68 11.2.3 Frame/Byte-Length... 68 11.2.4 Slot-ID... 69 11.2.5 Timing-Types... 69 11.2.5.1 PDUs with Different Periodicities in one Frame of the Static Segment... 69 11.2.5.2 In-cycle Repetition of Frames... 70 11.2.6 Channels... 70 11.3 Usage of FIBEX to model FlexRay Scheduling requirements... 70 12 FIBEX and MOST 71 12.1 FIBEX Extensions for MOST... 73 12.1.1 FUNCTION-TYPE... 73 12.1.2 OPTYPE-TYPE... 74 12.1.3 COMPOSITE-TYPE... 74 12.1.3.1 FBLOCK-TYPE... 74 12.1.3.2 FUNCTION-GROUP-TYPE... 74 12.1.3.3 INSTANCE-TYPE... 75 12.1.3.4 SW-PACKAGE-TYPE... 75 12.1.4 SIGNAL... 75 12.1.4.1 SIMPLE-SIGNAL-TYPE... 75 12.1.4.2 NUMBER-SIGNAL-TYPE... 75 12.1.4.3 CSTREAM-SIGNAL-TYPE... 75 12.1.4.4 ARRAY-SIGNAL-TYPE... 75 12.1.4.5 STRUCTURE-SIGNAL-TYPE... 76 12.1.4.6 MUX-SIGNAL-TYPE... 76 12.1.4.7 ACCESS-RESTRICTION-SIGNAL-TYPE... 76 12.1.4.8 Streams... 76 12.2 Special Mappings and Interpretations... 76 12.2.1 FUNCTION... 76 ASAM MCD-2 NET FIBEX Version 4.1.2 5
12.2.2 CODING... 76 12.2.3 Suspended tags... 77 12.2.4 Suspended links... 77 13 FIBEX and Ethernet, Internet Technologies and Services 78 13.1 FIBEX Extensions for Ethernet... 80 13.1.1 CLUSTER-TYPE... 80 13.1.2 MAC-MULTICAST-GROUP-TYPE... 80 13.1.3 CHANNEL-TYPE... 81 13.1.4 VIRTUAL-LAN-TYPE... 81 13.1.5 CONTROLLER-TYPE... 81 13.1.6 COUPLING-ELEMENT-TYPE... 81 13.1.6.1 COUPLING-PORT-TYPE... 82 13.2 FIBEX Extensions for Internet Technologies... 82 13.2.1 CONNECTOR-TYPE... 83 13.2.2 Signal based communication over Ethernet... 84 13.2.3 SERVICE-DISCOVERY-CONFIGURATION... 84 13.2.4 NETWORK-ENDPOINT-TYPE... 85 13.2.4.1 NETWORK-ENDPOINT-ADDRESS-TYPE... 85 13.2.4.2 IPV4-CONFIGURATION-TYPE... 85 13.2.4.3 IPV6-CONFIGURATION-TYPE... 86 13.2.4.4 INFRASTRUCTURE-SERVICES-TYPE... 86 13.2.4.5 DHCP-SERVER... 86 13.2.4.6 TIME-SYNCHRONIZATION... 86 13.2.4.7 DOIP-ENTITY-TYPE... 86 13.2.5 APPLICATION-ENDPOINT-TYPE... 87 13.2.5.1 TRANSPORT-PROTOCOL-CONFIGURATION... 87 13.2.5.2 REMOTING-TECHNOLOGY... 88 13.2.5.3 SERIALIZATION-TECHNOLOGY... 88 13.2.5.4 DISCOVERY-TECHNOLOGY... 88 13.2.6 PROVIDED-SERVICE-INSTANCE-TYPE... 88 13.2.7 CONSUMED-SERVICE-INSTANCE-TYPE... 89 13.2.8 Service discovery parameter... 90 13.2.8.1 SD-SERVER-PARAMETER-TYPE... 91 13.2.8.2 SD-CLIENT-PARAMETER-TYPE... 92 13.2.9 PROVIDED-AV-STREAM-TYPE... 93 13.2.10CONSUMED-AV-STREAM-TYPE... 93 13.2.11Ethernet basic addressing... 93 13.3 FIBEX Extensions for Services... 94 13.3.1 Packages and Data-Types... 95 13.3.1.1 PACKAGE-TYPE... 95 13.3.1.2 DATATYPE-TYPE... 96 13.3.1.3 DATATYPE-DECLARATION-TYPE... 96 13.3.1.4 COMMON-DATATYPE-TYPE... 98 13.3.1.5 ENUM-DATATYPE-TYPE... 99 13.3.1.6 COMPLEX-DATATYPE-TYPE... 99 13.3.2 Service Interface... 100 13.3.2.1 MODIFIER-TYPE... 100 13.3.2.2 METHOD-TYPE (METHODS and EVENTS)... 100 13.3.2.3 EXCEPTION-TYPE... 101 13.3.2.4 EVENT-GROUP-TYPE... 102 13.3.2.5 FIELD-TYPE... 103 ASAM MCD-2 NET FIBEX Version 4.1.2 6
13.3.3 Communication-Model... 103 14 FIBEX and Variant Management 105 14.1 VARIANT-TYPE... 105 14.1.1 INCLUDED-ELEMENT... 106 14.1.2 EXCLUDED-ELEMENT... 106 14.2 Implicit includes and excludes... 106 14.3 Rules for conflicts... 107 15 FIBEX and Gateways 108 15.1 Gateways... 109 15.2 Connector-Mapping... 109 15.3 Frame-Mapping... 110 15.4 PDU-Mapping... 110 15.5 Signal-Mapping... 110 15.6 Optimised-Mapping... 110 15.7 GW-Internal-Mapping... 111 15.8 GW-Diagnosis-Mapping... 112 16 FIBEX and Higher Level Protocols 113 16.1 AUTOSAR NM 3.0... 113 16.2 AUTOSAR TP 3.0... 115 17 Predefined Elements 118 17.1 Signal Units... 118 18 Appendix A 120 18.1 XML Validation... 120 18.1.1 Parsing and validating via XML-Parser... 120 18.1.2 Binding a Schema to a document... 120 18.1.3 Invoking MSXML 4.0... 120 18.1.4 Invoking Xerces Java 2... 121 18.1.5 Invoking Xerces C++ Version 1.6.0... 123 18.1.6 Checking of internal references... 124 18.2 FIBEX Signal and Datatype Encodings... 125 18.2.1 Example 1: IDENTICAL... 125 18.2.2 Example 2: LINEAR... 126 18.2.3 Example 3: SCALE-LINEAR... 128 18.2.4 Example 4: TEXTTABLE... 129 18.2.5 Example 5: Combination of SCALE-LINEAR and TEXTTABLE... 131 18.2.6 Example 6: TAB-NOINTP... 133 18.2.7 Example 7: BITFIELD-TEXTTABLE... 134 18.2.8 Example 8: FORMULA... 137 18.2.9 Signal Coding Properties... 137 ASAM MCD-2 NET FIBEX Version 4.1.2 7
18.3 References... 138 19 Appendix B (normative) 139 19.1 FIBEX Checker rules... 139 20 Appendix C 150 20.1 FIBEX 4.1.2 XML Schemata... 150 Figure Directory 151 ASAM MCD-2 NET FIBEX Version 4.1.2 8