Examples¶
This page walks through two complete examples: adding a new signal using a Proemion Standard Metric, and tracking SIM data consumption.
Using Proemion Standard Metrics¶
You can find an example of the fundamental PDC structure for engine speed (SPN 190) with the standard metric value.common.engine.speed below.
Define the signal's display label in the Global Dictionary:
<!-- Global Dictionary -->
<GlobalDictionary>
<Message key="label.value.common.engine.speed">
<Label lang="en" value="Engine speed"/>
<Label lang="de" value="Motordrehzahl"/>
</Message>
</GlobalDictionary>
Reference that label and assign the predefined unit in the Value Definitions:
<!-- ValueDefinitions -->
<ValueDefinitions>
<ValueDefinition key="value.common.engine.speed">
<description xsi:type="MessageReference" value="label.value.common.engine.speed"/>
<unit>predefined.unit.rotation.RPM</unit>
</ValueDefinition>
</ValueDefinitions>
Map the CAN message bytes to the signal in the Parsing Definition:
<!-- ParsingDefinition -->
<ParsingDefinition>
<BinaryStreamDefinition src="CAN" channel="1">
<CanMessage canId="0x0CF00400" canIdLength="29" mask="0x1FFFFFFF" protocolStyle="GENERIC">
<Values>
<IntValue startPos="24" length="16" endianness="LITTLE" signed="false" continueOnLastPostion="false">
<valueDefinition ref="value.common.engine.speed"/>
<transformer ref="transformer.0_125.0"/>
</IntValue>
</Values>
</CanMessage>
</BinaryStreamDefinition>
</ParsingDefinition>
Data Consumption¶
To visualize the data traffic of the Proemion SIM-Card in the Proemion Standard Portal and DataPortal, you have to extend the following lines in your PDC between the corresponding tags.
Between the tag <GlobalDictionary> and </GlobalDictionary> you have to extend the following lines:
<GlobalDictionary>
…
<Message key="label.value.common.cu.sim.traffic.month">
<Label lang="en" value="SIM Traffic this month"/>
<Label lang="de" value="SIM Datenverbrauch in diesem Monat"/>
</Message>
</GlobalDictionary>
Between the tag <ValueDefinitions> and </ValueDefinitions> you have to extend the following lines:
<ValueDefinitions>
…
<ValueDefinition key="value.common.cu.sim.traffic.month">
<description xsi:type="MessageReference" value="label.value.common.cu.sim.traffic.month"/>
<unit> predefined.unit.datavolume.BYTE</unit>
<format>%1.0f</format>
</ValueDefinition>
</ValueDefinitions>
In the DataPortal, the data consumption of the SIM-Card can be shown on the machine detail page of a certain machine. Three different display options are available for the data consumption of the SIM-Card on the DataPortal if you use the key in the PDC.
