In AUTOSAR, SenderReceiverInterface can have multiple data elements as shown below snippet. Is there any advantage or implementation difference when multiple data elements are used in a single software port compared to multiple software ports and each having single data elemment in the respective SenderReceiverInterface? Does all data elements of a single SenderReceiverInterface on a Software Port are received or transmitted in atomic way all together by RTE?
SenderReceiverInterface with multiple data elements difference from multiple ports and each with single data element
42 views Asked by user3806728 At
1
The collection of
dataElement
s in aSenderReceiverInterface
is mostly a logistical choice. DesigningSenderReciverInterface
s with few or only onedataElement
may increase the chance of being able to re-use theSenderReceiverInterface
in other contexts. But there's also motivation to create more complexSenderReceiverInterface
s because this saves time and takes away complexity for creating connectors betweenPortPrototype
s.The
dataElement
s are sent/received entirely separate from each other. If you want atomicity, there is always the choice to createdataElement
s of composite data types. The elements of sich a composite data type are always send and received atomically.