ComXf - COM Based Transformer Overview and Configuration

Micael Coutinho,autosarbswcom

The COM-Based Transformer (ComXf) is a serializer transformer which is used between the RTE and the COM, to transform the data elements from the application into signals and signal groups from the COM and vice-versa. In essence, it describes how the data is specified within a PDU.

Regarding pre-requisites to this article, it would not hurt to learn a little bit about I-SignalGroups and data transformers in Autosar. Both these topics were already explored in previous posts, Exploring ISignal and ISignalGroup Definitions in Autosar ARXML (opens in a new tab), SomeIpXf Overview - SOME/IP Messages and VFB Serialization in Autosar (opens in a new tab) and E2EXf - How to Use E2E Transformers in Autosar (opens in a new tab).

ComXf Overview

Each COM-Based transformer is based on the PortPrototype of a Software Component with a SenderReceiverInterface, each of the dataElements defined by the interface and the ISignalToIPduMapping for the SystemSignalGroup. As you can see, its configuration is almost entirely handled on ARXML.

ComXf does not support all features of transformers. Some of its limitations are:

In the figure below, you can check the interactions taking place between the application, RTE and COM, for serialization. In it, we can observe the serializer coming first in the transformer chain executed by the RTE, followed by other transformers which add data to it (in this case, E2E), before passing the serialized data with the expected signals to the COM. From the application point of view, these transformations are invisible. On the receiver side, the transformer chain will be executed in the opposite order.

Tranformer chain handled by the RTE, where a ComXf is present

Tranformer chain handled by the RTE, where a ComXf is present

Configuration in ARXML

You can configure the transformations taking place on your signal group by referencing a DataTransformation to the parameter ComBasedSignalGroupTransformation within your ISignalGroup, in the Autosar meta-model, as you can see below:

ARXML properties of an I-SIGNAL-GROUP, where the DataTransformation reference is located

ARXML properties of an I-SIGNAL-GROUP, where the DataTransformation reference is located

The DataTransformation itself is defined by the properties:

ARXML properties of the DataTransformation meta-class

ARXML properties of the DataTransformation meta-class

From all these properties, the most relevant are:

The TransformationTechnology meta-class contains these attributes:

Configuration in the COM Module

To be able to transform data, you also need to enable ComSignalGroupArrayAccess in the COM configuration of your signal group, because you intend to work with a serialized version of your signal group, aka an array. This option will tell the COM the length or your signal group and its start position within the I-PDU, since you will only transform signal groups individually, as we have discussed previously.

ComSignalGroup container within the COM module, where the ComSignalGroupArrayAccess property is present

ComSignalGroup container within the COM module, where the ComSignalGroupArrayAccess property is present

Optionally, if there are gaps within your signal group, you will also need to fill the ComTxIPduUnusedAreasDefault value of the respective ComTxIPdu, defining a value for the gaps within the I-PDU.

ComTxIPdu container within the COM module, where the ComTxIPduUnusedAreasDefault property is present

ComTxIPdu container within the COM module, where the ComTxIPduUnusedAreasDefault property is present

Closing Notes

And that's it! This is all you need to know in order to configure a COM-based transformer. As you can see, the RTE takes care of serializing and de-serializing the data between the Sender-Receiver interface and the COM on both directions, along with the other transformations that occur.

If you want to learn more about transformers and Autosar in general, do read our other posts, there is a good library to choose from. And remember, we are building ebooks about Autosar. Make sure to join our waiting list!

Author: Micael Coutinho (opens in a new tab)

References:

© AutosarToday —@LinkedIn