Allgemeiner Aufbau der xml-Datei

Der Aufbau der FIU wird in ecu.test über eine XML-Datei festgelegt, deren Aufbau hier erläutert werden soll.

Im Bereich PIN-INFO-SET werden die Pins selbst definiert. Hierzu wird ein PIN-Element für jeden zur Verfügung zu stellenden Pin definiert. In diesem Element wird festgelegt ob es sich bei dem Pin um einen Master-Pin, einen Standard-Pin oder einen Multipin handelt, welche zustände möglich sind, welcher COM-Gruppe der Pin angehört. Außerdem kann eine Beschreibung angegeben werden die in ecu.test als Information zum Pin angezeigt wird.

Die weiteren Eigenschaften CANAL-NUMBER, MODULE-ID und BIT-COM1/BIT-COM2 sind in ihrer Verwendung abhängig von der verwendeten FIU werden daher an dieser Stelle nicht weiter erläutert.

Im Bereich MULTIPIN-MAPPING wird die Zuordnung von symbolischen Multipins zu physikalischen Standardpins getroffen. Hierzu wird ein zuvor als Multipin in dem Bereich PIN-INFO-SET definierter Pin einer Reihe an ebenfalls in PIN-INFO-SET definierten Standard-Pins zugeordnet. In ecu.test wird dann nur der Multipin zur Verfügung gestellt. Bei der Ausführung werden jedoch alle ihm zugeordneten Pins auf den ausgewählten Zustand geschaltet.

Info

Alle zugeordneten Pins müssen alle im Multipin festgelegten Zustände unterstützen!

<?xml version="1.0" encoding="utf-8"?>
<FIU xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<PIN-INFO-SET>
	    <!-- Master PINs -->
	    <!-- Pin-Name as attribute dKey -->
		<PIN dkey="X MASTER GND">
		    <!-- xsi:type == "FIU_COMPinInfo" for Master-Pins -->
			<DVALUE xsi:type="FIU_COMPinInfo">
				<DESCRIPTION xsi:type="unicode">UBATT +9V</DESCRIPTION>
				<!-- TYPE == "COMINPUT" for Master-Pins -->
				<TYPE xsi:type="string">COMINPUT</TYPE>
				<CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">NORMAL</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">BREAK</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM1</ALLOWED-CONNECTION>
				</CONNECTION>
				<COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">UBATT12</ALLOWED-COM-GROUP>
				</COM-GROUP>
				<MODULE-ID xsi:type="integer">-1</MODULE-ID>
			</DVALUE>
		</PIN>
		<PIN dkey="X MASTER UBATT">
			<DVALUE xsi:type="FIU_COMPinInfo">
				<DESCRIPTION xsi:type="unicode">COM-BRIDGE1</DESCRIPTION>
				<TYPE xsi:type="string">COMINPUT</TYPE>
				<CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">NORMAL</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">BREAK</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM2</ALLOWED-CONNECTION>
				</CONNECTION>
				<COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">RESERVED1</ALLOWED-COM-GROUP>
				</COM-GROUP>
				<MODULE-ID xsi:type="integer">-1</MODULE-ID>
			</DVALUE>
		</PIN>
		<!-- Standard PINs -->
		<PIN dkey="Pin1">
		    <!-- xsi:type == "FIU_STDPinInfo" for Standard-Pins -->
			<DVALUE xsi:type="FIU_STDPinInfo">
				<DESCRIPTION xsi:type="unicode">Modul 2A13 Pin IN1</DESCRIPTION>
				<!-- TYPE == "STD" for Standard-Pins -->
				<TYPE xsi:type="string">STD</TYPE>
				<CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">NORMAL</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">BREAK</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM1</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM2</ALLOWED-CONNECTION>
				</CONNECTION>
				<COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">GROUND</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">UBATT12</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">RESERVED1</ALLOWED-COM-GROUP>
				</COM-GROUP>
				<CANAL-NUMBER xsi:type="integer">1</CANAL-NUMBER>
			</DVALUE>
		</PIN>
		<PIN dkey="Pin2">
			<DVALUE xsi:type="FIU_STDPinInfo">
				<DESCRIPTION xsi:type="unicode">Modul 2A13 Pin IN2</DESCRIPTION>
				<TYPE xsi:type="string">STD</TYPE>
				<CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">NORMAL</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">BREAK</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM1</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM2</ALLOWED-CONNECTION>
				</CONNECTION>
				<COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">GROUND</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">UBATT12</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">RESERVED1</ALLOWED-COM-GROUP>
				</COM-GROUP>
				<CANAL-NUMBER xsi:type="integer">2</CANAL-NUMBER>
			</DVALUE>
		</PIN>
		<!-- Multipin -->
		<PIN dkey="SymbolicMultipin1">
		    <!-- xsi:type == "FIU_STDPinInfo" for Multipins -->
			<DVALUE xsi:type="FIU_STDPinInfo">
				<DESCRIPTION xsi:type="unicode">Symbolic Pin to switch pins "MappedPin1" and "MappedPin2" at once</DESCRIPTION>
				<!-- TYPE == "MULTI" for Multipins -->
				<TYPE xsi:type="string">MULTI</TYPE>
				<CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">NORMAL</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">BREAK</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM1</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM2</ALLOWED-CONNECTION>
				</CONNECTION>
				<COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">GROUND</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">UBATT12</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">RESERVED1</ALLOWED-COM-GROUP>
				</COM-GROUP>
				<CANAL-NUMBER xsi:type="integer">-1</CANAL-NUMBER>
			</DVALUE>
		</PIN>
		<!-- more Standard PINs -->
		<PIN dkey="MappedPin1">
			<DVALUE xsi:type="FIU_STDPinInfo">
				<DESCRIPTION xsi:type="unicode">Modul 2A14 Pin IN1</DESCRIPTION>
				<TYPE xsi:type="string">STD</TYPE>
				<CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">NORMAL</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">BREAK</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM1</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM2</ALLOWED-CONNECTION>
				</CONNECTION>
				<COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">GROUND</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">UBATT12</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">RESERVED1</ALLOWED-COM-GROUP>
				</COM-GROUP>
				<CANAL-NUMBER xsi:type="integer">3</CANAL-NUMBER>
			</DVALUE>
		</PIN>
		<PIN dkey="MappedPin2">
			<DVALUE xsi:type="FIU_STDPinInfo">
				<DESCRIPTION xsi:type="unicode">Modul 2A14 Pin IN2</DESCRIPTION>
				<TYPE xsi:type="string">STD</TYPE>
				<CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">NORMAL</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">BREAK</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM1</ALLOWED-CONNECTION>
					<ALLOWED-CONNECTION xsi:type="string">COM2</ALLOWED-CONNECTION>
				</CONNECTION>
				<COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">GROUND</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">UBATT12</ALLOWED-COM-GROUP>
					<ALLOWED-COM-GROUP xsi:type="string">RESERVED1</ALLOWED-COM-GROUP>
				</COM-GROUP>
				<CANAL-NUMBER xsi:type="integer">4</CANAL-NUMBER>
			</DVALUE>
		</PIN>
	</PIN-INFO-SET>
	<!-- Mapping info -->
	<MULTIPIN-MAPPING>
	    <!-- Multipin-Name to map as attribute dKey -->
		<MULTIPIN dkey="SymbolicMultipin1">
			<DVALUE xsi:type="baseMultipinInfo">
			    <!-- List of Pin-Names to be mapped -->
				<PINLIST>
					<MAPPED-PIN-NAME xsi:type="string">MappedPin1</MAPPED-PIN-NAME>
					<MAPPED-PIN-NAME xsi:type="string">MappedPin2</MAPPED-PIN-NAME>
				</PINLIST>
			</DVALUE>
		</MULTIPIN>
	</MULTIPIN-MAPPING>
</FIU>