AUTOSAR
AUTOSAR
Disclaimer
This work (specification and/or software implementation) and the material contained
in it, as released by AUTOSAR, is for the purpose of information only. AUTOSAR
and the companies that have contributed to it shall not be liable for any use of the
work.
The material contained in this work is protected by copyright and other types of intel-
lectual property rights. The commercial exploitation of the material contained in this
work requires a license to such intellectual property rights.
This work may be utilized or reproduced without any modification, in any form or by
any means, for informational purposes only. For any other purpose, no part of the
work may be utilized or reproduced, in any form or by any means, without permission
in writing from the publisher.
The work has been developed for automotive applications only. It has neither been
developed, nor tested for non-automotive applications.
The word AUTOSAR and the AUTOSAR logo are registered trademarks.
Table of Contents
1 Introduction and Functional Overview ................................................................. 9
2 Acronyms, Abbreviations and Definitions .......................................................... 10
2.1 Acronyms and Abbreviations ...................................................................... 10
2.2 Definitions................................................................................................... 10
3 Related Documentation ..................................................................................... 12
3.1 Deliverables of AUTOSAR ......................................................................... 12
3.2 Related Standards and Norms ................................................................... 13
3.3 Related Specification .................................................................................. 13
4 Constraints and Assumptions ............................................................................ 14
4.1 Limitations .................................................................................................. 14
4.2 Applicability to Car Domains ....................................................................... 14
5 Dependencies to Other Modules ....................................................................... 15
5.1 PDU Router ................................................................................................ 15
5.2 Runtime Environment (RTE) ...................................................................... 16
5.3 File Structure .............................................................................................. 17
5.3.1 Header File Structure .......................................................................... 17
6 Requirements Traceability ................................................................................. 19
7 Functional Specification..................................................................................... 29
7.1 Introduction................................................................................................. 29
7.2 General Functionality.................................................................................. 29
7.2.1 AUTOSAR COM basis ........................................................................ 29
7.2.2 Signal Values ...................................................................................... 30
7.2.3 Endianness Conversion and Sign Extension ...................................... 31
7.2.4 Filtering ............................................................................................... 33
7.2.5 Signal Gateway ................................................................................... 35
7.3 Normal Operation ....................................................................................... 36
7.3.1 Start-Up Behavior................................................................................ 36
7.3.2 De-Initialization.................................................................................... 37
7.3.3 Communication Modes ....................................................................... 37
7.3.4 Signal Invalidation ............................................................................... 46
7.3.5 Handling of I-PDUs ............................................................................. 48
7.3.6 Deadline Monitoring ............................................................................ 54
7.4 Signal Groups - Complex Data Types ........................................................ 59
7.4.1 Initialization ......................................................................................... 60
7.4.2 Transmission ....................................................................................... 60
7.4.3 Reception ............................................................................................ 60
7.4.4 Notifications......................................................................................... 61
7.4.5 Attributes of a Signal Group ................................................................ 62
7.4.6 UINT8-array based access to signal groups ....................................... 62
7.5 Large Data Types ....................................................................................... 64
7.5.1 Transmission of Large Signals/ I-PDUs .............................................. 65
7.5.2 Reception of Large Signals/ I-PDUs.................................................... 66
7.6 Dynamic Length Signals ............................................................................. 66
7.6.1 Transmission of Dynamic Length Signals/ I-PDUs .............................. 67
5 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
Within the AUTOSAR Layered Architecture the AUTOSAR COM module is placed
between RTE and the PDU Router, see [1].
The AUTOSAR COM module is derived from [17]. For details, see Chapter 7.2.1.
The AUTOSAR COM module provides signal gateway functionality. For details, see
Chapter 7.2.5.
Main Features:
PDU Router The PDU Router is a module transferring I-PDUs from one module to anoth-
er module. The PDU Router can be utilized for gateway operations and for
internal routing purposes.
SDU Service Data Unit
For a description see [1] Chapter 4.
TM Transmission Mode
TMC Transmission Mode Condition, see Chapter 7.3.3.2
TMS Transmission Mode Selector, see Chapter 7.3.3.2
2.2 Definitions
Term: Description:
Confirmation With a Confirmation, the PDU Router reports that a request by the AU-
TOSAR COM module has been completed successfully. It is a reaction to a
request of COM. E.g. when a PDU has been successfully transmitted.
Data Invalid Value Value sent by the AUTOSAR COM module to indicate that the sender side
AUTOSAR Software Component is not able to provide a valid value.
Dynamic Length Sig- A dynamic length signal is a signal which length can vary at run-time.
nal
Dynamic Length A dynamic length I-PDU is an I-PDU containing a dynamic length signal. It
I-PDU length varies depending on the length of the included dynamic length signal.
Group signal A group signal is a signal that is contained in a signal group.
Indication An Indication is asynchronous information from PDU Router to COM, e.g. to
acknowledge that something has been received.
Init Value I-PDUs and signals are set to the Init Value by the AUTOSAR COM module
after start-up. This value is used until it is overwritten.
I-PDU group An I-PDU Group is an arbitrary collection of I-PDUs of the same direction
(i.e. send or receive) in the COM module.
Inter-ECU – Communication between two or more ECUs for example via a CAN network
communication
Intra-ECU – Communication between Software components that reside on the same ECU
communication
Large Signal A large signal is a signal that is too large to fit into a single L-PDU of the
underlying communication protocol.
Large I-PDU Large I-PDU are I-PDU that do not fit into a single L-PDU of the underlying
communication protocol. Large I-PDU will be transmitted via TP.
Term: Description:
Message [17] uses always the synonym message. In AUTOSAR, message is replaced
by signal but with the same meaning.
Metadata For some I-PDUs, e.g. J1939 I-PDUs, the payload is extended with addition-
al metadata containing for example the CAN-ID.
Notification Information by the AUTOSAR COM module to RTE, e.g. when new data is
available, an error occurred.
Signal A signal in the AUTOSAR COM module’s context is equal to a message in
[17]; see also [7].
Signal group In AUTOSAR, so called complex data types are used. Inside a complex data
type, there are one or more data elements (primitive data types), like in a C
struct. The data consistency of such complex data types must be ensured.
The RTE decomposes the complex data type in single signals and sends
them to the AUTOSAR COM module. As these signals altogether need to be
treated consistently, they are called signal group.
3 Related Documentation
[18] ISO 17356-6:2006 Road vehicles -- Open interface for embedded automotive
applications -- Part 6: OSEK/VDX Implementation Language (OIL)
Thus, the specification SWS BSW General shall be considered as additional and
required specification for COM.
4.1 Limitations
The AUTOSAR COM module is based on [17]. Nevertheless not all features of [17]
are included and some features are different. See SWS_Com_00013 for a list of not
included features.
«module»
Rte::Rte
«use»
«module»
«use»
ComM::ComM
Com Rte_Cbk
«realize» «use»
«realize»
Com_IpduGroup
«module»
Com::Com
«realize»
«optional» Com_Init
Det_ReportError «module»
BswM::BswM
«mandatory» «realize»
«realize» «optional»
PduR_Com Com_Cbk
«realize»
«use optionally»
The following summarizes the functionality of the AUTOSAR COM module needs
from the underlying layer PDU Router:
Chapter 7.5 and Chapter 9.1 include a detailed description of the interfaces to the
PDU Router. For further information, see [10].
6 Requirements Traceability
The following table references the requirements specified in [3], [7], [17] and [9] and
links to the fulfillment of these. Requirements that are not fulfilled by this document
are linked to SWS_Com_00999.
tion
SRS_BSW_00328 All AUTOSAR Basic Software SWS_Com_00999
Modules shall avoid the
duplication of code
SRS_BSW_00331 All Basic Software Modules SWS_Com_00194
shall strictly separate error
and status information
SRS_BSW_00333 For each callback function it SWS_Com_00999
shall be specified if it is called
from interrupt context or not
SRS_BSW_00334 All Basic Software Modules SWS_Com_00999
shall provide an XML file that
contains the meta data
SRS_BSW_00335 Status values naming con- SWS_Com_00819
vention
SRS_BSW_00336 Basic SW module shall be SWS_Com_00129, SWS_Com_00130
able to shutdown
SRS_BSW_00337 Classification of development SWS_Com_00803, SWS_Com_00804
errors
SRS_BSW_00341 Module documentation shall SWS_Com_00999
contains all needed informa-
tions
SRS_BSW_00344 BSW Modules shall support SWS_Com_00432
link-time configuration
SRS_BSW_00346 All AUTOSAR Basic Software SWS_Com_00796
Modules shall provide at least
a basic set of module files
SRS_BSW_00347 A Naming seperation of SWS_Com_00999
different instances of BSW
drivers shall be in place
SRS_BSW_00348 All AUTOSAR standard types SWS_Com_00865
and constants shall be placed
and organized in a standard
type header file
SRS_BSW_00353 All integer type definitions of SWS_Com_00999
target and compiler specific
scope shall be placed and
organized in a single type
header
SRS_BSW_00358 The return type of init() func- SWS_Com_00432
tions implemented by AUTO-
SAR Basic Software Modules
shall be void
SRS_BSW_00359 All AUTOSAR Basic Software SWS_Com_00468, SWS_Com_00491,
Modules callback functions SWS_Com_00536, SWS_Com_00554,
shall avoid return types other SWS_Com_00555, SWS_Com_00556
than void if possible
SRS_BSW_00360 AUTOSAR Basic Software SWS_Com_00468, SWS_Com_00491,
Modules callback functions SWS_Com_00536, SWS_Com_00554,
are allowed to have parame- SWS_Com_00555, SWS_Com_00556
ters
SWS_Com_00696, SWS_Com_00697,
SWS_Com_00698, SWS_Com_00700,
SWS_Com_00719, SWS_Com_00762,
SWS_Com_00764, SWS_Com_00766,
SWS_Com_00773, SWS_Com_00774,
SWS_Com_00775, SWS_Com_00776,
SWS_Com_00789, SWS_Com_00793,
SWS_Com_00812, SWS_Com_00816,
SWS_Com_00820, SWS_Com_00828,
SWS_Com_00835, SWS_Com_00836,
SWS_Com_00858, SWS_Com_00861,
SWS_Com_00862, SWS_Com_00866,
SWS_Com_00867, SWS_Com_00868,
SWS_Com_00878, SWS_Com_00879,
SWS_Com_00880
SRS_Com_02040 AUTOSAR COM and Large- SWS_Com_00006
DataCOM shall be configured
by using XML as configurati-
on language
SRS_Com_02041 The AUTOSAR module shall SWS_Com_00050, SWS_Com_00051,
handle complex data types as SWS_Com_00200, SWS_Com_00201,
a consistent set of data SWS_Com_00461, SWS_Com_00513,
SWS_Com_00635, SWS_Com_00637,
SWS_Com_00638, SWS_Com_00639,
SWS_Com_00676, SWS_Com_00677,
SWS_Com_00678, SWS_Com_00679,
SWS_Com_00821, SWS_Com_00851,
SWS_Com_00852, SWS_Com_00854,
SWS_Com_00855, SWS_Com_00857
SRS_Com_02042 The AUTOSAR COM module SWS_Com_00015
shall fill unused areas/ bits
within an I-PDU with a confi-
gurable value
SRS_Com_02043 AUTOSAR COM and Large- SWS_Com_00123
DataCOM shall provide a
receive indication function
SRS_Com_02044 AUTOSAR COM and Large- SWS_Com_00124
DataCOM shall provide a
transmit confirmation function
SRS_Com_02045 AUTOSAR COM and Large- SWS_Com_00001, SWS_Com_00475,
DataCOM shall provide a SWS_Com_00647, SWS_Com_00869
function to request the trans-
mit buffer data for lower layer
triggered transmission
SRS_Com_02046 The AUTOSAR COM module SWS_Com_00300, SWS_Com_00301,
shall support immediate and SWS_Com_00574, SWS_Com_00575,
deferred signal based notifi- SWS_Com_00794, SWS_Com_00870
cation to the RTE
SRS_Com_02058 The AUTOSAR COM module SWS_Com_00117, SWS_Com_00290,
shall support deadline moni- SWS_Com_00291, SWS_Com_00292,
toring for updated sig- SWS_Com_00715, SWS_Com_00716
nals/signal groups on recei-
ver side
SRS_Com_02067 AUTOSAR COM and Large- SWS_Com_00102, SWS_Com_00105,
DataCOM shall define rules SWS_Com_00310, SWS_Com_00365,
25 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
7 Functional Specification
7.1 Introduction
The ISO 17356-4:2005 Road vehicles -- Open interface for embedded automotive
applications -- Part 4: OSEK/VDX Communication (COM) is the functional basis of
the AUTOSAR COM module. In this document, it is referenced as [17].
[SWS_Com_00010] ⌈The AUTOSAR COM module shall implement all the functional-
ity and all the APIs of [17] except the features and APIs mentioned in
SWS_Com_00013.⌋ (SRS_Com_02037)
The signals sent by the AUTOSAR COM module respectively received by the AU-
TOSAR COM module could have the values defined in Table 2.
[SWS_Com_00675] ⌈The AUTOSAR COM module shall support the following data
types:
boolean
uint8
uint16
uint32
uint64
sint8
sint16
sint32
sint64
uint8[n]
float32
float64
[SWS_Com_00810] ⌈The AUTOSAR COM module shall treat non-integer data types
(e.g. uint8[n] or float32) either like integer data types of the matching size or leave
their contents uninterpreted in case their ComSignalEndianness is configured to
OPAQUE.⌋ (SRS_Com_02078)
[SWS_Com_00674] ⌈The AUTOSAR COM module shall extend the endianness con-
version defined in [17] Chapter 2.4 to signed data types.⌋ (SRS_Com_02078)
In [17] Chapter 2.4 defines the endianness conversion for unsigned data types. The
associated configurations can be found in Chapter 10. See also ECUC_Com_00127
and ECUC_Com_00157.
[SWS_Com_00829] ⌈The AUTOSAR COM module shall extend the endianness con-
version defined in [17] Chapter 2.4 to signals of signal groups.⌋ (SRS_Com_02086)
AUTOSAR COM handles signals and group signals equaly with respect to endian-
ness conversion.
[SWS_Com_00008] ⌈The AUTOSAR COM module shall extend received data to the
size of the ComSignalType of the receive signal (sign extension).⌋
(SRS_Com_02086)
The platform specific representation of signed data has to be taken into account.
Negative values of signed data will be mapped correctly.
[SWS_Com_00723] ⌈The AUTOSAR COM module shall extend the init value
(ComSignalInitValue) of a signal to the size of its ComSignalType.⌋
(SRS_Com_02086)
Note that the AUTOSAR COM module will not need to perform sign extensions on
sender side as it is guaranteed that the values to be transmitted will always be sign-
extended. See also SWS_Com_00785.
[SWS_Com_00579] ⌈The AUTOSAR COM module shall not support sign extension
for float32 and float64 data types.⌋ (SRS_Com_02086)
7.2.4 Filtering
[SWS_Com_00694] ⌈The AUTOSAR COM module shall evaluate each filtering con-
dition to either true or false.⌋ (SRS_Com_02037)
[SWS_Com_00695] ⌈The AUTOSAR COM module shall filter out signals only at
receiver side.⌋ (SRS_Com_02037)
For Transmission Mode Selection (TMS) see Chapters 7.3.3.2 and 7.3.3.3.
The AUTOSAR COM module only provides the following ComFilterAlgorithms of that
which are defined in [17], see ECUC_Com_00146:
ALWAYS
NEVER
MASKED_NEW_EQUALS_X
MASKED_NEW_DIFFERS_X
MASKED_NEW_DIFFERS_MASKED_OLD
NEW_IS_WITHIN
NEW_IS_OUTSIDE
ONE_EVERY_N
To reduce complexity the AUTOSAR COM module does not support all filters defined
in [17]. The not supported filters are either obsolete or special cases of other filters.
For example, the filter NEW_IS_DIFFERENT is a special case of MASKED_NEW_-
DIFFERS_MASKED_OLD with a fully set mask.
[SWS_Com_00325] ⌈The AUTOSAR COM module shall support all filter mecha-
nisms listed in ECUC_Com_00146, considering the exceptions defined in
SWS_Com_00380 and SWS_Com_00439.⌋ (SRS_Com_02037)
[SWS_Com_00273] ⌈If the AUTOSAR COM module filters out a signal on receiver
side, i.e. filter condition evaluates to false, the AUTOSAR COM module shall discard
that signal and shall not process it. See also SWS_Com_00303.⌋ (SRS_Com_02037)
[SWS_Com_00836] ⌈If the AUTOSAR COM module filters out a group signal on
receiver side, i.e. filter condition evaluates to false, the AUTOSAR COM module shall
discard the whole signal group and shall not process it.⌋ (SRS_Com_02037)
[SWS_Com_00132] ⌈The AUTOSAR COM module shall support the filtering mecha-
nisms as defined in ECUC_Com_00146 also for signed data types.⌋
(SRS_Com_02037)
In the case a filter is evaluated before a send-API has written the corresponding sig-
nal, there needs to be a way to determine the filter state of this signal. Some of the
filters require a new_value to evaluate the filter. However, this is only available after
the signal has been updated using a send-API. Therefore, it is necessary to define
the value used by the filter for new_value in the period before the first send takes
place.
[SWS_Com_00603] ⌈The AUTOSAR COM module shall set the old_value of the
filtering mechanisms for each signal to the ComSignalInitValue (ECUC_Com_00170)
during start-up. See also [17].⌋ (SRS_Com_02037)
[SWS_Com_00604] ⌈Until the application has not updated the new_value of the fil-
tering mechanisms for a signal, the AUTOSAR COM module shall use the ComSig-
nalInitValue as the new_value for that signal.⌋ (SRS_Com_02037)
The next two requirements clarify the definitions of [17] according to the update of the
old_value of filters.
[SWS_Com_00302] ⌈If the AUTOSAR COM module evaluates a filter for a signal to
true, (value is not filtered out) then the AUTOSAR COM module shall place the value
of that signal into old_value (as defined in [17]).⌋ (SRS_Com_02037)
[SWS_Com_00303] ⌈When a value is being filtered, if the filter does not allow the
passage of the value (i.e. the filter evaluates to false) then the AUTOSAR COM
module shall not place that value into old_value (as defined in [17]).⌋
(SRS_Com_02037)
This definition exists to clarify the description of the ONE_EVERY_N filter in [17].
Hence, the AUTOSAR COM module will let pass any value for the filter
MASKED_NEW_DIFFERS_MASKED_OLD after an RX deadline timeout for the
associated I-PDU.
The AUTOSAR COM module provides an integrated Signal Gateway for forwarding
signals and signal groups in a 1:n manner.
The routing relations are be statically configured via the ComGwMapping configura-
tion container (see ECUC_Com_00544).
As shown in Figure 5 and Figure 6, the integrated Signal Gateway acts as a receiver
for all signals or signal groups which are configured as a source for gatewayed sig-
nals.
After the Signal Gateway received signal or signal groups for routing, it acts immedi-
ately as a sender for these signals or signal groups respectively. This is shown in
Figure 4 and Figure 6. The signal processing does not differ if the integrated Signal
Gateway forwards a signal/ signal group or if a Software Component sends it.
Since the gateway relations are statically configured, an optimized Signal Gateway
might skip some processing stages for concrete configurations. For example, the
endianness conversion is not necessary in certain cases. Of course, such optimiza-
tions should not lead to any different logical behavior or different representations on
the target bus. Optimizations may only be introduced to increase the Signal Gate-
way’s performance.
As shown in Figure 5 a received signal or signal group might be received on the local
ECU and be a source for a gateway action at the same time.
Figure 4 and Figure 5 show shadow buffers only for signal groups that are received
by the RTE. The integrated Signal Gateway has of course to ensure to handle signal
groups consistently but there is no predetermined way in which this must be imple-
mented.
[SWS_Com_00370] ⌈The Signal Gateway of the AUTOSAR COM module shall scale
down to no size if no signal routing functionality is needed.⌋ (SRS_PduR_06064)
This chapter describes the actions that will be performed during Com_Init.
[SWS_Com_00217] ⌈The AUTOSAR COM module shall initialize each I-PDU during
execution of Com_Init (SWS_Com_00432), firstly byte wise with the
ComTxIPduUnusedAreasDefault value and then bit wise according to initial values
(ComSignalInitValue) of the contained signals and the update-bits (see
SWS_Com_00117).⌋ (SRS_BSW_00101)
7.3.1.1 Preconditions
The C initialization code, also known as start-up code, initializes global and static
variables with the initial values. It must be executed before any call of an AUTOSAR
COM module’s service.
7.3.1.2 Initialization
This initialization chapter is not complete. Details about initialization of some AU-
TOSAR COM module’s features are described within the different feature chapters.
36 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
[SWS_Com_00015] ⌈The AUTOSAR COM module shall fill not used areas within an
I-PDU with a value determined by configuration parameter
ComTxIPduUnusedAreasDefault (ECUC_Com_00017) e.g. 0xFF.⌋
(SRS_BSW_00101, SRS_Com_02042)
[SWS_Com_00098] ⌈The AUTOSAR COM module shall initialize each signal of n-bit
sized signal type on sender and receiver side with the lower n-bits of its configuration
parameter ComSignalInitValue (ECUC_Com_00170).⌋ (SRS_BSW_00101)
[SWS_Com_00117] ⌈The AUTOSAR COM module shall clear all update-bits during
initialization. See also SWS_Com_00059.⌋ (SRS_BSW_00101, SRS_Com_02030,
SRS_Com_02058)
[SWS_Com_00444] ⌈By default, all I-PDU groups shall be in the state stopped and
they shall not be started automatically by a call to Com_Init (SWS_Com_00432).⌋
(SRS_Com_00218)
7.3.2 De-Initialization
This chapter defines the signal flow in the AUTOSAR COM module. It further defines
the different transmission modes provided by the AUTOSAR COM module. Chapter
7.3.3.2 defines a mechanism to switch between two transmission modes for one
I-PDU. The replication of signals is defined in Chapter 7.3.3.4.
Explemary communication use cases that the AUTOSAR COM module can deal with
are shown in Chapter 12.
7.3.3.1.1 Signals
The AUTOSAR COM module supports several transfer properties for signals and
several transmission modes for I-PDUs. The definitions in this chapters are based
on and are to be completed with the definitions in [17] Chapter 2.3.3.
[SWS_Com_00762] ⌈The AUTOSAR COM module shall not support the transfer
properties TRIGGERED_ON_CHANGE and TRIGGERED_ON_CHANGE_WITH-
OUT_REPETITION for signals and group signals with ComBitSize configured to 0.⌋
(SRS_Com_02037)
[SWS_Com_00135] ⌈The AUTOSAR COM module shall not initiate transmissions for
I-PDUs that have the ComTxModeMode (ECUC_Com_00137) NONE.⌋
(SRS_Com_02083)
The bus-timing of I-PDUs can be controlled by send requests of the RTE in combina-
tion with the transmission mode and the transfer property as described above. Addi-
tionally, the PDU Router, especially in case of FlexRay and LIN, can control it with
the service Com_TriggerTransmit. In the latter case, the PDU Router requests
I-PDUs to be sent from the AUTOSAR COM module.
The function Com_TriggerTransmit can be called for any I-PDU regardless of its
transmission mode. This allows LIN and FlexRay to use all the available transmission
modes, particularly for sporadic communication. The NM also uses this mechanism
to send user data.
In AUTOSAR COM also signal groups and group signals may have a transfer proper-
ty, defining in combination with the transmission mode, if the I-PDU is sent out in
case of an update of a signal group or group signal, respectively.
I-PDUs carry signals. Because an I-PDU can contain more than one signal, in the
following, a method is defined to derive the I-PDU’s transmission mode from the state
of the signals that are contained in one specific I-PDU.
The AUTOSAR COM module allows configuring statically two different transmission
modes for each I-PDU (see SWS_Com_00032). The transmission mode of an I-PDU
that is valid at a specific point in time is selected using only the values of the signals
that are mapped to this I-PDU.
The signals of one I-PDU that contribute to the selection of one of the two transmis-
sion modes as well as the conditions used for the selection of the transmission mode
are configured statically, see SWS_Com_00676.
For the selection of the transmission mode, the AUTOSAR COM module treats group
signals like normal signals.
[SWS_Com_00678] ⌈If the AUTOSAR COM module evaluates the TMC of a contrib-
uting signal as true, then the AUTOSAR COM module shall evaluate the TMS as
true.⌋ (SRS_Com_02084, SRS_Com_02041)
[SWS_Com_00245] ⌈The AUTOSAR COM module shall re-calculate the TMS for an
I-PDU, after a contained signal was updated by a call to Com_SendSignal or
Com_SendSignalGroup.⌋ (SRS_Com_02084)
[SWS_Com_00763] ⌈For the calculation of the transmission mode with the config-
ured condition MASKED_NEW_DIFFERS_MASKED_OLD, the AUTOSAR COM
module shall use the least significant ComBitSize bits only.⌋ (SRS_Com_02084)
Note that a signal with ComFilterAlgorithm configured to ALWAYS, will always set the
TMS of the respective I-PDU to true. Therefore, care must be taken when defining
the signals that contribute to the TMS.
[SWS_Com_00032] ⌈If the TMS of an I-PDU evaluates to true, then the AUTOSAR
COM module shall use the ComTxModeMode defined in configuration container
ComTxModeTrue (ECUC_Com_00455) for that I-PDU.⌋ (SRS_Com_02082,
SRS_Com_02084)
[SWS_Com_00799] ⌈If the TMS for an I-PDU evaluates to false, then the AUTOSAR
COM module shall use the ComTxModeMode defined in configuration container
ComTxModeFalse (ECUC_Com_00454) for that I-PDU.⌋ (SRS_Com_02082,
SRS_Com_02084)
[SWS_Com_00238] ⌈In each of the two TMS states, the rules for combination of
transfer properties of signals and transmission modes of I-PDUs shall apply as de-
fined in [17] Section 2.3.⌋ (SRS_Com_02082)
The above requirement clarifies the behavior in case the TMS-switch to ComTx-
ModeMode DIRECT was triggered by a signal with ComTransferProperty PENDING.
[SWS_Com_00478] ⌈The AUTOSAR COM module shall send out an I-PDU at most
once within one call of Com_MainFunctionTx.⌋ (SRS_Com_02083)
After a send request from the RTE for a specific signal, the signal is written to the
appropriate I-PDU buffer as defined by configuration, and the selection of the trans-
mission mode of the I-PDUs is done according to Chapter 7.3.3.2.
From RX side –
before endianness
conversion and
sign extension
Evaluation of Trans-
mission Mode Selec-
tor (TMS) for I-PDUk
Figure 3: Logical signal flow in the AUTOSAR COM module shown for two signals
(Signal1 and Signal2) that are mapped to one I-PDU (IPDUk)
[SWS_Com_00279] ⌈If a new send request is received from the RTE while sending
n transmissions belonging together (e.g. after the 3rd of 5 repetitions, see
SWS_Com_00305) the AUTOSAR COM module shall cancel the outstanding trans-
mission repetitions and start processing the new request within the next main func-
tion at the latest, see Appendix A use-case 4.⌋ (SRS_Com_02080)
SWS_Com_00305 assumes that CAN does not have a queue for these I-PDUs.
There is a race condition in the interaction between the CAN driver, interface and
hardware that may cause an extra transmission to occur in certain unlikely circum-
stances.
The minimum delay time will always be taken into account as defined in [17] Chapter
2.3.4.
If the transmission mode change leads to the start of the MIXED transmission mode
by sending a triggered signal and ComTxModeNumberOfRepetitions is config-
ured greater than or equal to 1, then there will be at least ComTxModeNumberOf-
Repetitions plus one transmission requests to the PDU Router at the beginning of the
MIXED transmission mode. See also SWS_Com_00305.
SWS_Com_00773 may lead to multiple retries for the same failed transmission re-
quest.
[SWS_Com_00774] ⌈The AUTOSAR COM module shall start the transmission dead-
line monitoring independently of possible retries. Subsequent retries shall not affect
transmission deadline monitoring.⌋ (SRS_Com_02037)
[SWS_Com_00776] ⌈The cycle timer for a cyclic transmission shall always start with
the first transmit attempt.⌋ (SRS_Com_02037)
The AUTOSAR COM module provides the possibility for the sender to indicate that it
is not able to provide a valid value for a corresponding signal, for example in case a
sensor is faulty. The AUTOSAR COM module allows defining a ComSignalDataIn-
validValue (ECUC_Com_00391) during configuration.
The data invalid values are configured per group signal see ECUC_Com_00520.
The VFB defines only one attribute for a complex data type. Therefore, the best
mapping of an invalidated complex data type to an invalidated signal group is to in-
validate all group signals of a signal group. Therefore, the RTE can also request to
invalidate the complete signal group by a call to Com_InvalidateSignalGroup
(SWS_Com_00557).
The reception deadline monitoring timer is also restarted in case of receiving an inva-
lid signal or signal group, see SWS_Com_00738.
The next call to Com_ReceiveSignal will return the last valid received signal or the
ComSignalInitValue in case no signal was received yet respectively.
The next call to Com_ReceiveSignalGroup will copy the last valid received group
signals or the ComSignalInitValues in case the signal group was not received yet
respectively into the shadow buffer.
Rules 1 and 3 are supported by the COM configuration. The maximum number of
supported I-PDU groups can be configured via ComSupportedIpduGroups
(ECUC_Com_00710).
[SWS_Com_00771] ⌈An I-PDU is active (started) if at least one I-PDU group is active
(started) it belongs to.⌋ (SRS_Com_00218)
For the AUTOSAR COM module, the nesting of I-PDU groups is purely conceptual
and must be resolved by an appropriate configuration and/ or usage of the AU-
TOSAR COM module.
For example, if an I-PDU “BUS1 RX Function1” belongs to I-PDU group “BUS1 RX”
and I-PDU group “BUS1 RX” is included in I-PDU group “BUS1” then I-PDU “BUS1
RX Function1” must also be included in I-PDU group “BUS1”. Such dependencies
need to be resolved at configuration time.
Once again, the COM module does not know or handle any grouping of I-PDUs. Any
I-PDU grouping must be handeld either via configuration or by the calling module.
Further, it is expected that the complete state handling of I-PDU groups is done out-
side of the AUTOSAR COM module, e.g. within the Basic Software Mode Manager.
In case of a state change, the module managing the I-PDU group states consistently
starts or stops the I-PDU groups via Com_IpduGroupStart and Com_IpduGroupStop.
The state of I-PDUs that are not assigned to any I-PDU group cannot be changed,
therefore they are started implicitly:
[SWS_Com_00840] ⌈If an I-PDU is not assigned to any I-PDU group, the AUTOSAR
COM shall start this I-PDU within Com_Init as if it would be started by
Com_IpduGroupStart with parameter Initialize set to true (see Chapter 7.3.5.2).⌋
(SRS_Com_00218)
Since the AUTOSAR COM never stops such an I-PDU implicitely and it is not
assigned to any I-PDU group, such an I-PDU can never be stopped.
By default all I-PDU groups are stopped, see SWS_Com_00444. A call to Com_Ipdu-
GroupStart starts an I-PDU group if it was previously stopped.
ECUC_Com_00263), the AUTOSAR COM module shall start the deadline monitoring
for these signals independently of the value of the initialize parameter.⌋
(SRS_Com_00218)
[SWS_Com_00877] ⌈If an I-PDU is not part of any I-PDU Group, it is started during
the initialization of COM. Its starting transmission mode shall be evaluated according
to the ComSignalInitValue of the signals contributing to its TMS.⌋ (SRS_Com_00218)
For this case, the evaluation can already be done at configuration time, since the
signals cannot be written before the initialization of COM.
In order to disable the transmission of an I-PDU, all I-PDU groups containing this
I-PDU needs to be stopped. Hence, to implement listen-only-mode, all I-PDU
groups containing transmission I-PDUs needs to be stopped. Receiving of I-PDUs
may also be stopped.
If a signal written to a stopped I-PDU would trigger the transmission of this I-PDU if it
were not stopped, then this trigger is not stored. After re-starting the corresponding
I-PDU group, such an old trigger does not lead to an immediate transmission of the
I-PDU.
[SWS_Com_00800] ⌈The AUTOSAR COM module shall ignore any transmit confir-
mations for a stopped I-PDU.⌋ (SRS_Com_00218)
The AUTOSAR COM module cannot prohibit the invocation of the Com_Trigger-
Transmit function. However, in case of a stopped I-PDU, the function Com_Trigger-
Transmit returns E_NOT_OK. See SWS_Com_00001.
A sequence chart with both indication options can be found in Chapter 9.3. The con-
figuration of these modes is defined in ECUC_Com_00119.
[SWS_Com_00870] ⌈In case of receiving a smaller I-PDU than the length derived via
the parameter ComPduIdRef, signals with size 0 shall be received if and only if their
configured position is less or equal to the received size of the partially received
I-PDU.⌋ (SRS_Com_02046)
If the received I-PDU length is smaller than the configured/ expected I-PDU length, it
needs to be prevented that signals are updated partially. On the other hand all com-
pletely received signals should be received and notified to the upper layer.
The above requirement prevents inconsistently received signal groups and therefore
inconsistently received complex data types.
The AUTOSAR COM module does not copy or handle additional received data for
not configured signals in case the received data length is greater than expected.
The AUTOSAR COM module inherits the minimum delay timer mechanism as de-
fined [17]. This mechanism is clarified and detailed in this chapter.
When an I-PDU is started, the MDT is re-initialized. Therefore, the MDT can be vio-
lated by stopping and starting I-PDUs rapidly.
The behavior of the transmission deadline monitoring timer is not affected by any
transmission delay caused by the minimum delay time supervision.
[SWS_Com_00471] ⌈No minimum delay time monitoring shall take place, if ComMin-
imumDelayTime is omitted or configured to 0.⌋ (SRS_Com_02037)
In case the minimum delay timer is currently not started, there is no way for the min-
imum delay timer to expire. Thus, optimized implementations might for example omit
monitoring the minimum delay time for periodic I-PDUs completely in case
ComEnableMDTForCyclicTransmission is configured to false, since the minimum
delay timer never gets started.
The running minimum delay timer is reloaded upon the reception of a successful TX-
confirmation of that I-PDU, unless the transmission was already delayed longer than
ComMinimumDelayTime at the reception of the confirmation. In normal case, there
will be no further transmission of that I-PDU by the AUTOSAR COM module unless
the loaded and started minimum delay has expired. See also Figures 2-4, 2-5 and 2-
7 in [17]. However, some exception exists: According to SWS_Com_00475 Com_-
TriggerTransmit does not interfere with the minimum delay timer. Further, the mini-
mum delay timer is reset if the transmission deadline monitoring timer expires; see
Chapter 2.3.4 in [17]. In addition, starting an I-PDU group resets the minimum delay
time timer of the included I-PDUs.
[SWS_Com_00812] ⌈If the minimum delay timer of an I-PDU is reset because the
transmission deadline monitoring timer expires and a postponed request for this
I-PDU exists, the AUTOSAR COM module shall immediately transmit this I-PDU.⌋
(SRS_Com_02037)
In the context of deadline monitoring for a signal group, it is handled like a signal.
The deadline monitoring parameters ComFirstTimeout and ComTimeout can be de-
fined in the configuration container ComSignal or ComSignalGroup.
The reception deadline monitoring can be enabled and disabled by the control of
I-PDU groups analogous to Chapter 7.3.5.1.
[SWS_Com_00291] ⌈For all signals and signal groups without update-bits within the
same I-PDU, the AUTOSAR COM module shall perform the reception deadline moni-
toring of the I-PDU using the smallest configured non-zero timeout parameter (Com-
FirstTimeout, ComTimeout) of the associated signals and signal groups.⌋
(SRS_Com_02089, SRS_Com_02058)
If all signals within an I-PDU with configured reception deadline monitoring have also
an update-bit configured, no reception deadline monitoring on I-PDU base needs to
be performed.
In case the ComSignalInitValue replaces the last received value, the last received
value is overwritten and gets lost. Therefore, the AUTOSAR COM module returns the
ComSignalInitValue for this signal until a new value is received.
When reception deadline monitoring of an I-PDU is disabled and the timer expires,
no error indication will be given to the RTE.
Disabling reception deadline monitoring does not stop the reception of an I-PDU.
[SWS_Com_00486] ⌈The AUTOSAR COM module shall silently ignore setting the
reception deadline monitoring of an I-PDU to enabled by Com_EnableReceptionDM,
in case the reception deadline monitoring is already enabled for this I-PDU.⌋
(SRS_Com_00192)
[SWS_Com_00225] ⌈The AUTOSAR COM module shall silently ignore setting the
reception deadline monitoring of an I-PDU to disabled by Com_DisableReceptionDM,
in case the reception deadline monitoring is already disabled for this I-PDU.⌋
(SRS_Com_00192)
The general idea of the AUTOSAR COM transmission deadline monitoring is to su-
pervise the lower layers and the bus but not the COM module itself. Hence, the
transmission monitoring timer is generally started, when the COM module sends an
I-PDU to the lower layer. This is independent of a transmission mode, a transfer
property or update-bits. In generally the transmission monitoring timer is not re-
started or reset if it is currently running.
The AUTOSAR COM module makes no distinction between signals with ComTrans-
ferProperty PENDING or TRIGGERED with respect to transmission deadline monitor-
ing.
SWS_Com_00878 does not consider a potential return code, thus the timer is started
even if the sent request fails immediately.
57 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
If the timer is already running a new send request does not reset or restart a running
timer, but the currently outstanding send request is monitored further on. Unless oth-
erwise specified, the timer is started regardless of the trigger that lead to a potential
I-PDU send request. Such triggers are for example a cyclic send request of a signal,
a Transmission Mode Switch, or an explicit I-PDU sent request via
Com_TriggerIPduSend.
[SWS_Com_00708] ⌈In case the transmission deadline monitoring timer expires for
an I-PDU with ComIPduCancellationSupport configured to TRUE, the AUTOSAR
COM module shall invoke PduR_ComCancelTransmit for that I-PDU.⌋
(SRS_Com_02107)
If the transmission deadline monitoring timer runs out, there will be a timeout notifica-
tion regardless of the reason. For example, the notification will even take place, if the
transmission was filtered out by an I-PDU callout.
As defined in [17] the monitoring timer has to be started upon completion of a call to
Com_SendSignal or Com_SendSignalGroup respectively if transmission deadline
monitoring is configured for the corresponding signal or signal group respectively.
For the transmission mode DIRECT and MIXED, it should be ensured that all
ComTxModeNumberOfRepetitions requests could be made within the configured
period (see Chapter 7.3.3.4).
As defined in [17], if the monitoring timer expires the RTE is notified with the config-
ured notification mechanism about that failure.
Signal groups can be configured statically. For each signal group a symbolic name
can be configured. See ECUC_Com_00345 for the configuration details.
The AUTOSAR COM module achieves the consistency of a signal group by means
of a shadow buffer mechanism, i.e. the RTE accesses the group signals in the shad-
ow buffer. If the shadow buffer needs to be synchronized with the I-PDU, the RTE
can trigger this explicitly with Com_SendSignalGroup or Com_ReceiveSignalGroup.
The synchronization is performed atomically.
7.4.1 Initialization
[SWS_Com_00484] ⌈By a call to Com_Init, the AUTOSAR COM module shall initial-
ize the shadow buffer of a signal group on sender-side.⌋ (SRS_BSW_00101)
Since it is not suspected that a well-formed SWC tries to read a group signal before a
call to Com_ReceiveSignalGroup, SWS_Com_00484 applies to the sender side only.
7.4.2 Transmission
Example with two group signals signal_a and signal_b, which belong to group_x:
7.4.3 Reception
A group signal can be received from the shadow buffer by calling the function
Com_ReceiveSignal after the signal group data has been copied to the shadow buff-
er by Com_ReceiveSignalGroup.
Example with two group signals signal_a and signal_b, which belong to group_x:
7.4.4 Notifications
Table 5 shows that all notification functions are only configurable for signal groups
but not for individual group signals. Chapter 7.3 defines the functional logic of the
notification methods for signals and signal groups. The prototypes for the configura-
ble notification functions are defined in Chapter 8.6.3.1.
The above requirement defines that certain APIs are not supported for signal groups
with array access. That is, these APIs must not be called for signal groups with array
access. If they are called illegally, the behavior is undefined.
In case the AUTOSAR Transformer approach is used the serialization and further
data processing is already done in the transformer chain. Since the transformer chain
already deals with a uint8-array representation of the communication data, the uint8-
array based access to signal groups allows to use the already serialized data and to
place it into the I-PDU without the need for COM to serialize the data again.
The AUTOSAR System Template [12] defines which signal group shall be handled in
the uint8-array based approach. If the System Template enables the uint8-array
based approach the Ecu configuration parameter ComSignalGroupArrayAccess
(ECUC_Com_10003) is set to true.
7.4.6.2 Initialization
[SWS_Com_00850] ⌈By a call to Com_Init, the AUTOSAR COM module shall initial-
ize the respective I-PDU buffer section of a signal group, that has ComSig-
nalGroupArrayAccess (ECUC_Com_10003) configured true, based on the ComSig-
nalInitValue of all included ComGroupSignals.⌋ (SRS_Com_02112,
SRS_BSW_00101)
7.4.6.3 Transmission
Since the signal group is provided in the uint8-array representation the transmission
mode selection needs to cope with this data representation when anayzing the group
signals.
In order to ease the Transmission Mode Selection only a subset of the filters from
SWS_Com_00602 are supported.
Two filters are exluded from the support of TMS for Com_SendSignalGroupArray:
• NEW_IS_WITHIN
• NEW_IS_OUTSIDE
7.4.6.4 Reception
UINT8_N is the only signal type that supports signals of a static size larger than 8
bytes. For dynamic length signals see Chapter 7.6.
Since the AUTOSAR COM module is not aware of the underlying bus properties, it
has to be configured if an I-PDU can be transmitted within a single L-PDU, e.g. one
CAN frame, or if it needs to be transmitted via TP, see also ECUC_Com_00761.
The AUTOSAR COM module is not able to prevent or to detect if too large I-PDUs
are sent to a specific bus transport protocol, because the AUTOSAR COM module
uses the bus-independent PDU Router interface. However, the AUTOSAR COM
module allows that the maximum length of the N-SDU of the underlying TPs can be
used and therefore the AUTOSAR COM module does not introduce any additional
length restrictions.
The AUTOSAR COM module sends large I-PDUs via the generic PduR APIs for up-
per layer modules that use transport protocol. For details of the AUTOSAR COM
module – PDU Router interface see Chapter 7.7. According to [10] the call-sequence
is:
The I-PDUs within the AUTOSAR COM module are statically configured. Therefore,
the complete memory of the I-PDU, even for very large I-PDUs, will be allocated.
This approach was taken in order to reduce the complexity of the large data type
handling.
If the utilized transportation protocol is also used for diagnosis, or other services, it
must support multiple users. This is at least supported by CAN TP and FlexRay TP.
[SWS_Com_00863] ⌈In case a large I-PDU is currently transmitted and the same
I-PDU is triggered for transmission again, the AUTOSAR COM shall skip the addi-
tionally send request and report the runtime error COM_E_SKIPPED_-
TRANSMISSION.⌋ (SRS_Com_02095)
This could for example happen in case a large I-PDU is sent out periodically and the
transmission is delayed over the next cycle.
The AUTOSAR COM module receives large I-PDUs via the generic PDU Router’s
APIs for upper layer modules that use transport protocol. For details of the
AUTOSAR COM module – PDU Router interface see Chapter 7.8. According to [10]
the call-sequence is:
[SWS_Com_00753] ⌈For dynamic length signals, the AUTOSAR COM module shall
only support the ComSignalType UINT8_DYN.⌋ (SRS_Com_02094,
SRS_Com_02098)
Restricting the type to a UINT8-array type also restricts the placement of the dynamic
length signal to byte boundaries.
All other signals, potentially including large signals, must be packed in front of the
dynamic length signal (see SWS_Com_00754, SWS_Com_00755 and
SWS_Com_00756). Therefore, it is not required to encode the length of the dynamic
length signal within the I-PDU. On receiver side, the length of the dynamic length
signal can be calculated from the length of the received I-PDU.
It is allowed to configure an update-bit for a dynamic length signal. In this case, the
update-bit must be located in front of the dynamic length signal, see also
SWS_Com_00755.
There is no restriction in the AUTOSAR COM module preventing the usage of signal
groups in combination with large or dynamic length signals.
Dynamic length signals are not restricted to be sent via transport protocol. However,
the maximum length of the I-PDU containing the dynamic length signal must respect
the bus-specifc restrictions.
In case of I-PDUs with dynamic length signals that shall be sent via CAN FD it is
recommended to use the Multi PDU Mapping feature of the IpduM. This avoids misin-
terpretation of the received length due to the discrete data lengths of CAN FD
frames.
For sending a dynamic length signal, the RTE needs to specify the actual length at
the send call. The corresponding API is Com_SendDynSignal (SWS_Com_00627).
The AUTOSAR COM module is able to send dynamic length I-PDUs via normal or
large I-PDUs. In any case, it needs to pass the length of the dynamic I-PDU to the
lower layers.
For receiving a dynamic length signal, the RTE needs to be informed about the actu-
al size.
Since, the length of a dynamic length signal is derived from the received length of the
I-PDU, the AUTOSAR COM module does not support the combination of dynamic
length I-PDUs and I-PDUs with metadata, see SWS_Com_00817.
7.7 Interface between AUTOSAR COM Module and the PDU Router
[17] leaves the interface between COM and the lower layers undefined. In AU-
TOSAR, the only lower layer that the AUTOSAR COM module interfaces to is the
PDU Router.
67 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
The AUTOSAR COM module uses the PDU Router in two different modes, depend-
ing on the type of the I-PDU it will be transported with the bus-specific transport pro-
tocol or without. If an I-PDU is supposed to be sent via TP, is configured per configu-
ration parameter ComIPduType.
[SWS_Com_00138] ⌈The AUTOSAR COM module shall send out I-PDUs by a call-
ing the PduR_ComTransmit function.⌋ (SRS_Com_02037)
[SWS_Com_00759] ⌈If the AUTOSAR COM module sends out an I-PDU with
ComIPduType configured to NORMAL, the AUTOSAR COM module shall expect to
be called by the PDU Router using Com's interfaces for modules that do not use TP.
See column normal I-PDUs in Table 6.⌋ (SRS_Com_02096)
[SWS_Com_00760] ⌈If the AUTOSAR COM module sends out an I-PDU with
ComIPduType configured to TP, the AUTOSAR COM module shall expect to be
called by the PDU Router using Com's interfaces for modules that use TP. See col-
umn TP I-PDUs in Table 6.⌋ (SRS_Com_02096)
The interaction diagram in Chapter 9.1 shows the interaction between the PDU
Router module and the AUTOSAR COM module for normal I-PDUs.
gives an overview, which API between the AUTOSAR COM module and the
Table 6
PDU Router is used for a concrete I-PDU with respect to the configured value of
ComIPduType. The API description itself is specified in Chapter 8.
7.8 Update-Bits
To enable the receiver of a signal/ signal group to identify whether the sender has
updated the data in this signal/ signal group before sending, the AUTOSAR COM
module supports update-bits.
The update-bits indicate whether the RTE on sender-side has updated a signal val-
ue, before the I-PDU, containing that signal, was transmitted to the PDU Router.
Update-bits are not allowed if transmission mode DIRECT is used with ComTxMode-
NumberOfRepetitions greater or equal 1 (see SWS_Com_00310).
[SWS_Com_00055] ⌈The AUTOSAR COM module shall handle the update-bit only
internally and not as part of the signal or signal group.⌋ (SRS_Com_02030)
The update-bits are not directly visible or accessible by AUTOSAR Software Compo-
nents.
Update-BIT
0 cleared/ data has not been updated
1 set/ data has been updated
[SWS_Com_00324] ⌈If a signal or signal group with an attached update bit is re-
ceived, the AUTOSAR COM module shall only process this signal, i.e. filter, notifica-
tion, signal based gateway, byte swapping, if the signal’s update bit is set.⌋
(SRS_Com_02030)
[SWS_Com_00802] ⌈If a signal or signal group with an attached update bit is re-
ceived and the update-bit is not set, the AUTOSAR COM module shall discard this
signal.⌋ (SRS_Com_02030)
If the signal has not been updated, the signal will not be routed via the signal gate-
way. It will only be discarded.
If the RTE reads a signal with an associated cleared update-bit, the init value or the
last received value is returned.
For the behavior of reception deadline monitoring on signals with update-bits, see
Chapter 7.3.6.1.
I-PDU counters are optional and can be configured per I-PDU. For the corresponding
configuration container see ECUC_Com_00592.
[SWS_Com_00688] ⌈The AUTOSAR COM module shall increase the I-PDU counter
of an I-PDU by one, with respect to counter wrap around, directly before the I-PDU is
sent out by PduR_ComTransmit. In case the return value of PduR_ComTransmit is
not equal to E_OK the update of the I-PDU counter shall be revoked (by decrement-
ing the I-PDU counter by one).⌋ (SRS_Com_02101)
after the corresponding PduR_ComTransmit all I-PDUs will contain the same counter
value. Thus, a deferred TriggerTransmit transmission can work, but a pure lower
layer driven TriggerTransmit use-case would not work in combination with an I-PDU
counter.
Example: If the I-PDU counter has 4 bits its possible values are 0 – 15. If an I-PDU
with a 4-bit sized counter is received and the received counter value is 15 the next
expected value is 0. The new expected value needs to be updated regardless if the
received value matches the actual expected value or not.
[SWS_Com_00727] ⌈In case a mismatch of the expected and the received I-PDU
counter is detected, the AUTOSAR COM module shall notify this mismatch by the
configured ComIPduCounterErrorNotification (ECUC_Com_00003) notification func-
tion.⌋ (SRS_Com_02102)
Example: In the example in Table 8, the I-PDU counter is 4-bit wide (values 0-15)
and ComIPduCounterThreshold is configured to 1:
Since the replication itself is done by the PduR, there is no special handling on send-
er side for AUTOSAR COM. However, it must be ensured that replicated I-PDUs
have configured an I-PDU counter, see SWS_Com_00834. This is required since the
voting at the receiver relies on the I-PDU counter.
At receiver side, the AUTOSAR COM module performs a voting about the multiple
replicated I-PDUs. The AUTOSAR COM module passes only signals of successfully
confirmed I-PDUs to the RTE. As stated above replicated I-PDUs need to have an
I-PDU counter configured. However, the ComIPduCounterThreshold must be config-
ured to 0, see ECUC_Com_00595. There is no use-case of mixing these two fea-
tures and the voting would be more complex.
[SWS_Com_00596] ⌈Only when the AUTOSAR COM module has received at least
ComIPduReplicationQuorum identical copies of a replicated I-PDU, it shall provide
the signals and/ or signal groups out of this I-PDU to the RTE.⌋ (SRS_Com_02103,
SRS_Com_02105, SRS_Com_02106)
A replicated I-PDU is configured as a normal I-PDU within the AUTOSAR COM mod-
ule’s configuration. The fan-out on sender-side is configured within the PduR configu-
ration. On reception-side, additionally up to two replicas of PDU-R PDUs (see
ECUC_Com_00601 ComIPduReplicaRef) and the necessary number of identically
received I-PDUs for successfully voting (see ECUC_Com_00600 ComIPduReplica-
tionQuorum) can be configured within the AUTOSAR COM module’s configuration.
The I-PDU counter will be handled for each replicated I-PDU separately as defined in
Chapter 7.9.
Since the I-PDUs do not contain a special checksum, it is expected, that the compar-
ison is performed by comparing the complete I-PDU byte by byte.
7.10.3 Constraints
Due to the approach of reusing already existing functionality, that is using the PduR
for the fan out, care must be taken to set up the system correctly. The PduR allows
fanning out the replicated I-PDUs on different busses. On the receiver side, these
I-PDUs are indicated to COM with the same I-PDU id. However, Com_RxIndication
(SWS_Com_00123) may not be called reentrant for the same I-PDU id. An easy way
to prevent this is to ensure that all I-PDUs are received by the same Interface mod-
ule, which results in using the same bus for all replicas. For the current AUTOSAR
stack, this is the recommend method. However, the system integrator could also
synchronize the reception path by other means.
Furthermore, since there is no mechanism to prevent updates from the upper layer to
an I-PDU, this approach of communication protection does not work in combination
of decoupled transmission, i.e. I-PDUs requested via Com_TriggerTransmit.
The AUTOSAR COM module’s signal gateway works with (group) signals and signal
groups.
The AUTOSAR COM module’s signal gateway supports only static routing for the
ComGwMapping configuration container (ECUC_Com_00544). It is only possible to
configure routes independently of the contents of the routed signals and signal
groups.
The destination of a signal or signal group can be configured either per ComGwDes-
tinationDescription container (ECUC_Com_00549), or via ComGwSignal reference
(ECUC_Com_00551). The transmission mode will be selected based on the TMCs of
other associated signals of the I-PDU. In case no signal contributes to the TMS cal-
culation, the transmission mode ComTxModeTrue (SWS_Com_00677) will be used.
[SWS_Com_00377] ⌈The AUTOSAR COM module’s signal gateway shall copy the
value of signals/ signal groups to be routed to the signals/ signal groups for transmis-
sion according to configuration, see ECUC_Com_00544.⌋ (SRS_PduR_06055,
SRS_PduR_06089)
The AUTOSAR COM module’s signal gateway does not support to process signals
or signal groups that are contained within a large I-PDU, see SWS_Com_00598.
[SWS_Com_00872] ⌈The Signal Gateway shall support the following I-PDU/ signal-
processing stages on the receiver side (see also Figure 6):
1) reset reception deadline monitoring timer for I-PDU based monitoring
2) I-PDU callout
3) check of update–bits
4) endianness conversion and sign extension
⌋ (SRS_PduR_06055, SRS_PduR_06089)
[SWS_Com_00873] ⌈The Signal Gateway shall support the following I-PDU/ signal-
processing stages on the sender side (see also Figure 6):
1) set of update-bits
2) endianness conversion and sign extension
3) I-PDU transmission mode selection
4) I-PDU callout
⌋ (SRS_PduR_06055, SRS_PduR_06089)
Stopping the receive I-PDU after the signals to be routed have been forwarded to the
transmit I-PDU will not prevent the transmit I-PDU from being transmitted unless it is
stopped as well.
Stopping the receive I-PDU after the signals groups to be routed have been forward-
ed to the transmit I-PDU will not prevent the transmit I-PDU from being transmitted
unless it is stopped as well.
[SWS_Com_00701] ⌈The AUTOSAR COM module’s signal gateway shall route sig-
nal and signal groups even if any configured reception deadline monitoring timeout
expired.⌋ (SRS_PduR_06089)
In case of a not in time received signal or signal group the AUTOSAR COM module’s
signal gateway will route these signal or signal group anyway.
[SWS_Com_00702] ⌈If both, the received signal/ signal group and the destination
signal/ signal group have an update-bit (ComUpdateBitPosition) configured and the
update-bit of the received signal/ signal group is set, the AUTOSAR COM module
75 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
shall route the signal/ signal group with the set update-bit and clear the update-bit of
the destination signal/ signal group after it was sent.⌋ (SRS_Com_02030)
[SWS_Com_00703] ⌈If the received signal/ signal group and the destination signal/
signal group have an update-bit (ComUpdateBitPosition) configured, and the update-
bit of the received signal/ signal group is not set, the AUTOSAR COM module shall
not route this signal/ signal group. ⌋ (SRS_Com_02030)
To protect interrupt routines used for I-PDU reception from incalculable and perhaps
expensive time usage, it is necessary to decouple the AUTOSAR COM module’s
signal gateway from interrupt routines.
[SWS_Com_00359] ⌈The AUTOSAR COM module shall execute all functions of its
signal gateway during the function call Com_MainFunctionRouteSignals
(SWS_Com_00400). During this function call, the AUTOSAR COM module’s signal
gateway shall check received and to be routed signals and signal groups and forward
them from the related receive I-PDUs to the related transmit I-PDUs.⌋
(SRS_BSW_00425, SRS_BSW_00432)
In the case, that a target I-PDU contains gated signals with ComTransferProperty
TRIGGERED that are newly received, the sending may be performed in either
Com_MainFunctionTx or Com_MainFunctionRouteSignals.
[SWS_Com_00539] ⌈The AUTOSAR COM module shall sent out an I-PDU at most
once while one call to Com_MainFunctionRouteSignals.⌋ (SRS_PduR_06055)
The concrete reaction of the AUTOSAR COM module with respect to error and return
values of called APIs is stated within the corresponding functional requirements.
Upper
RTE
Layer
From Rx side
AUTOSAR
endianness conversion and COM
sign extension
Transmission
Deadline Monitoring
Signal
Transfer
Properties I-PDU Minimum Delay
Time Monitoring
I-PDU Transmission
I-PDU Callout Mode Selection
Lower PDU
Layer
Router
signal internal representation signal network representation shadow buffer
signal group internal representation signal group network representation I-PDU
Upper
RTE
Layer
Com_Receive Com_Cbk Com_Cbk Com_Cbk
Com_ReceiveSignal
SignalGroup RxAck Inv RxTOut
Notification
To Tx side
notification detection
data invalidation
I-PDU Callout
Com_RxIndication
Lower PDU
Layer
Router
signal internal representation signal network representation shadow buffer
signal group internal representation signal group network representation I-PDU
Upper
RTE
Layer
Com_ReceiveSignal Com_ReceiveSignalGroup Com_SendSignal
notification detection
reset reception deadline
monitoring timer
for signal based monitoring
reception filtering
AUTOSAR
data invalidation Transmission COM
Signal Deadline
Based Monitoring
Gateway
endianness conversion
and sign extension
Depending on the concrete set update bits I-PDU Transmission
check Update Bits configuration an optimized
gateway signal flow may
Mode Selection
skip one or more processing endianness conversion
stages. and sign extension
I-PDU Callout I-PDU
reset reception deadline Minimum
monitoring timer Delay Time
for I-PDU based monitoring I-PDU Callout Monitoring
Com_RxIndication PduR_ComTransmit
Lower PDU
Layer Router
signal/ signal group signal/ signal group shadow buffer
internal representation network representation I-PDU
Figure 6: The AUTOSAR COM module’s interaction model for integrated Signal Gateway
The endianness conversion and sign extension on receiver side are needed to feed the TMS with a correct data format. This en-
dianness conversion is only necessary if the endianness of the Rx-bus differs from the endianness of the CPU. The endianness
conversion on the sender side is only necessary if the endianness of the Rx-bus differs from the endianness of the Tx-bus.
8 API Specification
[SWS_Com_00609] ⌈
Module Imported Type
ComStack_Types BufReq_ReturnType
PduIdType
PduInfoType
PduLengthType
RetryInfoType
Std_Types Std_ReturnType
Std_VersionInfoType
⌋ (SRS_BSW_00301)
8.2.1 Com_StatusType
[SWS_Com_00819] ⌈
Name: Com_StatusType
Type: Enumeration
Range: COM_INIT -- The AUTOSAR COM module is initialized and usable.
COM_UNINIT 0x00 The AUTOSAR COM module is not initialized or not
usable.
This shall be the default value after reset. This status
shall have the value 0.
Description: This is a status value returned by the API service Com_GetStatus().
⌋ (SRS_BSW_00335)
8.2.2 Com_SignalIdType
[SWS_Com_00820] ⌈
Name: Com_SignalIdType
Type: uint16
Range: 0..<SignalIdmax> -- Zero-based integer number
Description: The AUTOSAR COM module's signal object identifier.
⌋ (SRS_Com_02037, SRS_BSW_00441)
8.2.3 Com_SignalGroupIdType
[SWS_Com_00821] ⌈
Name: Com_SignalGroupIdType
Type: uint16
83 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
8.2.4 Com_IpduGroupIdType
[SWS_Com_00822] ⌈
Name: Com_IpduGroupIdType
Type: uint16
Range: 0..<IpduGroupId- -- Zero-based integer number; where IpduGroupId-max <
max> ComSupportedIPduGroups
Description: The AUTOSAR COM I-PDU module's group object identifier.
⌋ (SRS_Com_00218, SRS_BSW_00441)
8.2.5 Com_ConfigType
[SWS_Com_00825] ⌈
Name: Com_ConfigType
Type: Structure
Range: implementation The content of the initialization data structure is implementa-
specific tion specific
Description: This is the type of the data structure containing the initialization data for COM.
⌋ (SRS_BSW_00404, SRS_BSW_00441)
Most of the COM functions are non-reentrant with respect to a concrete object. E.g.
Com_SendSignal is not reentrant for the same signal, but reentrant for different sig-
nals. Hence, if there are multiple callers of the AUTOSAR COM module they need to
be synchronized on a system level, for example by using disjoint sets of signals and
I-PDU groups.
The AUTOSAR COM module does not define a special COM return type. The API
services return errors either by using the Std_ReturnType as defined in [5] or via a
uint8 value mapped according to Table 9.
[SWS_Com_00865]⌈
Name Description Type Value Defined in
E_OK the service has been accepted #define 0x00 Std_Types.h
E_NOT_OK invocation of service failed #define 0x01 Std_Types.h
COM_SERVICE_ the service is currently not available e.g. #define 0x80 Com.h
NOT_AVAILABLE the corresponding I-PDU group is stopped
(or a development error has been detect-
ed)
COM_BUSY Successful execution of this function is #define 0x81 Com.h
currently not possible, because a resource
is currently in use. For example, the buffer
of a large I-PDU is locked.
8.3.2.1 Com_Init
[SWS_Com_00432] ⌈
Service name: Com_Init
Syntax: void Com_Init(
const Com_ConfigType* config
)
Service ID[hex]: 0x01
Sync/Async: Synchronous
Reentrancy: Non Reentrant
Parameters (in): config Pointer to the AUTOSAR COM module's configuration data.
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: This service initializes internal and external interfaces and variables of the AUTO-
SAR COM module layer for the further processing.
After calling this function the inter-ECU communication is still disabled.
⌋ (SRS_BSW_00344, SRS_BSW_00404, SRS_BSW_00405, SRS_BSW_00101,
SRS_BSW_00358, SRS_BSW_00414)
The behavior of the AUTOSAR COM module is unspecified until a correct call to
Com_Init is made.
8.3.2.2 Com_DeInit
[SWS_Com_00130] ⌈
Service name: Com_DeInit
Syntax: void Com_DeInit(
void
)
Service ID[hex]: 0x02
Sync/Async: Synchronous
Reentrancy: Non Reentrant
Parameters (in): None
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: This service stops the inter-ECU communication. All started I-PDU groups are
stopped and have to be started again, if needed, after Com_Init is called.
By a call to Com_DeInit the AUTOSAR COM module is put into an not initialized
state.
⌋ (SRS_BSW_00336)
8.3.2.3 Com_IpduGroupStart
[SWS_Com_91001] ⌈
Service name: Com_IpduGroupStart
Syntax: void Com_IpduGroupStart(
Com_IpduGroupIdType IpduGroupId,
boolean initialize
)
Service ID[hex]: 0x03
Sync/Async: Synchronous
Reentrancy: Reentrant for different I-PDU groups. Non reentrant for the same I-PDU group.
IpduGroupId Id of I-PDU group to be started
Parameters (in): initialize flag to request initialization of the data in the I-PDUs of this I-
PDU group
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: Starts a preconfigured I-PDU group. For example, cyclic I-PDUs will be sent out
cyclically after the call of Com_IpduGroupStart(). If Initialize is true all I-PDUs of
the I-PDU group shall be (re-)initialized before the I-PDU group is started. That is
they shall behave like after a start-up of COM, for example the old_value of the
filter objects and shadow buffers of signal groups have to be (re-)initialized.
⌋ (SRS_Com_00218)
8.3.2.4 Com_IpduGroupStop
[SWS_Com_91002] ⌈
Service name: Com_IpduGroupStop
Syntax: void Com_IpduGroupStop(
Com_IpduGroupIdType IpduGroupId
)
Service ID[hex]: 0x04
Sync/Async: Synchronous
Reentrancy: Reentrant for different I-PDU groups. Non reentrant for the same I-PDU group.
Parameters (in): IpduGroupId Id of I-PDU group to be stopped
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: Stops a preconfigured I-PDU group. For example, cyclic I-PDUs will be stopped
after the call of Com_IpduGroupStop().
⌋ (SRS_Com_00218)
8.3.2.5 Com_EnableReceptionDM
[SWS_Com_91004] ⌈
Service name: Com_EnableReceptionDM
Syntax: void Com_EnableReceptionDM(
Com_IpduGroupIdType IpduGroupId
)
Service ID[hex]: 0x06
Sync/Async: Synchronous
Reentrancy: Reentrant for different I-PDU groups. Non reentrant for the same I-PDU group.
Parameters (in): IpduGroupId Id of I-PDU group where reception DM shall be enabled.
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: Enables the reception deadline monitoring for the I-PDUs within the given I-PDU
group.
⌋ (SRS_Com_00192)
8.3.2.6 Com_DisableReceptionDM
[SWS_Com_91003] ⌈
Service name: Com_DisableReceptionDM
Syntax: void Com_DisableReceptionDM(
Com_IpduGroupIdType IpduGroupId
)
Service ID[hex]: 0x05
Sync/Async: Synchronous
Reentrancy: Reentrant for different I-PDU groups. Non reentrant for the same I-PDU group.
Parameters (in): IpduGroupId Id of I-PDU group where reception DM shall be disabled.
Parameters (in- None
out):
8.3.2.7 Com_GetStatus
[SWS_Com_00194] ⌈
Service name: Com_GetStatus
Syntax: Com_StatusType Com_GetStatus(
void
)
Service ID[hex]: 0x07
Sync/Async: Synchronous
Reentrancy: Reentrant
Parameters (in): None
Parameters (in- None
out):
Parameters (out): None
Com_StatusType COM_UNINIT: the AUTOSAR COM module is not initialized and
Return value: not usable
COM_INIT: the AUTOSAR COM module is initialized and usable
Description: Returns the status of the AUTOSAR COM module.
⌋ (SRS_BSW_00331)
8.3.2.8 Com_GetVersionInfo
[SWS_Com_00426] ⌈
Service name: Com_GetVersionInfo
Syntax: void Com_GetVersionInfo(
Std_VersionInfoType* versioninfo
)
Service ID[hex]: 0x09
Sync/Async: Synchronous
Reentrancy: Reentrant
Parameters (in): None
Parameters (in- None
out):
Parameters (out): versioninfo Pointer to where to store the version information of this module.
Return value: None
Description: Returns the version information of this module.
⌋ (SRS_BSW_00407, SRS_BSW_00003)
8.3.3.1 Com_SendSignal
[SWS_Com_00197] ⌈
Service name: Com_SendSignal
Syntax: uint8 Com_SendSignal(
Com_SignalIdType SignalId,
const void* SignalDataPtr
)
Service ID[hex]: 0x0a
Sync/Async: Asynchronous
Reentrancy: Non Reentrant for the same signal. Reentrant for different signals.
SignalId Id of signal to be sent.
Parameters (in):
SignalDataPtr Reference to the signal data to be transmitted.
Parameters (in- None
out):
Parameters (out): None
uint8 E_OK: service has been accepted
COM_SERVICE_NOT_AVAILABLE: corresponding I-PDU group
Return value: was stopped (or service failed due to development error)
COM_BUSY: in case the TP-Buffer is locked for large data types
handling
Description: The service Com_SendSignal updates the signal object identified by SignalId with
the signal referenced by the SignalDataPtr parameter.
⌋ (SRS_Com_02037)
8.3.3.2 Com_SendDynSignal
[SWS_Com_00627] ⌈
Service name: Com_SendDynSignal
Syntax: uint8 Com_SendDynSignal(
Com_SignalIdType SignalId,
const void* SignalDataPtr,
uint16 Length
)
Service ID[hex]: 0x21
Sync/Async: Asynchronous
Reentrancy: Non Reentrant for the same signal. Reentrant for different signals.
89 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
8.3.3.3 Com_ReceiveSignal
[SWS_Com_00198] ⌈
Service name: Com_ReceiveSignal
Syntax: uint8 Com_ReceiveSignal(
Com_SignalIdType SignalId,
void* SignalDataPtr
)
Service ID[hex]: 0x0b
Sync/Async: Synchronous
Reentrancy: Non Reentrant for the same signal. Reentrant for different signals.
Parameters (in): SignalId Id of signal to be received.
Parameters (in- None
out):
SignalDataPtr Reference to the location where the received signal data shall be
Parameters (out):
stored
uint8 E_OK: service has been accepted
COM_SERVICE_NOT_AVAILABLE: corresponding I-PDU group
Return value:
was stopped (or service failed due to development error)
COM_BUSY: in case the TP-Buffer is locked for large data types
90 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
handling
Description: Com_ReceiveSignal copies the data of the signal identified by SignalId to the
location specified by SignalDataPtr.
⌋ (SRS_Com_02037)
8.3.3.4 Com_ReceiveDynSignal
[SWS_Com_00690] ⌈
Service name: Com_ReceiveDynSignal
Syntax: uint8 Com_ReceiveDynSignal(
Com_SignalIdType SignalId,
void* SignalDataPtr,
uint16* Length
)
Service ID[hex]: 0x22
Sync/Async: Synchronous
Reentrancy: Non Reentrant for the same signal. Reentrant for different signals.
Parameters (in): SignalId Id of signal to be received.
Parameters (in- Length in: maximum length that could be received
out): out: length of the dynamic length signal
SignalDataPtr reference to the location where the received signal data shall be
Parameters (out):
stored
uint8 E_OK: service has been accepted
E_NOT_OK: in case the Length (as in-parameter) is smaller than
the received length of the dynamic length signal
Return value:
COM_SERVICE_NOT_AVAILABLE: corresponding I-PDU group
was stopped (or service failed due to development error)
COM_BUSY: in case the TP-Buffer is locked
Description: Com_ReceiveDynSignal copies the data of the signal identified by SignalId to the
location specified by SignalDataPtr and stores the length of the dynamical length
signal at the position given by the Length parameter.
⌋ (SRS_Com_02092, SRS_Com_02095)
[SWS_Com_00724] ⌈In case, the Length (as in-parameter) is smaller than the re-
ceived length of the dynamic length signal, Com_ReceiveDynSignal shall not copy
any data to the position referenced by SignalDataPtr.⌋ (SRS_Com_02092)
91 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
8.3.3.5 Com_SendSignalGroup
[SWS_Com_00200] ⌈
Service name: Com_SendSignalGroup
Syntax: uint8 Com_SendSignalGroup(
Com_SignalGroupIdType SignalGroupId
)
Service ID[hex]: 0x0d
Sync/Async: Asynchronous
Reentrancy: Non Reentrant for the same group signal. Reentrant for different group signals.
Parameters (in): SignalGroupId Id of signal group to be sent.
Parameters (in- None
out):
Parameters (out): None
uint8 E_OK: service has been accepted
COM_SERVICE_NOT_AVAILABLE: corresponding I-PDU group
Return value: was stopped (or service failed due to development error)
COM_BUSY: in case the TP-Buffer is locked for large data types
handling
Description: The service Com_SendSignalGroup copies the content of the associated shadow
buffer to the associated I-PDU.
⌋ (SRS_Com_02041)
8.3.3.6 Com_ReceiveSignalGroup
[SWS_Com_00201] ⌈
Service name: Com_ReceiveSignalGroup
Syntax: uint8 Com_ReceiveSignalGroup(
Com_SignalGroupIdType SignalGroupId
)
Service ID[hex]: 0x0e
Sync/Async: Synchronous
Reentrancy: Non Reentrant for the same group signal. Reentrant for different group signals.
Parameters (in): SignalGroupId Id of signal group to be received.
Parameters (in- None
out):
Parameters (out): None
uint8 E_OK: service has been accepted
COM_SERVICE_NOT_AVAILABLE: corresponding I-PDU group
Return value: was stopped (or service failed due to development error)
COM_BUSY: in case the TP-Buffer is locked for large data types
handling
Description: The service Com_ReceiveSignalGroup copies the received signal group from the
I-PDU to the shadow buffer.
⌋ (SRS_Com_02041)
92 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
After this call, the group signals could be copied from the shadow buffer to the RTE
by calling Com_ReceiveSignal.
[SWS_Com_00461] ⌈The AUTOSAR COM module shall always copy the last known
data, or the ComSignalInitValue(s) if not yet written, of the I-PDU to the shadow buff-
er by a call to Com_ReceiveSignalGroup even if the I-PDU is stopped and COM_-
SERVICE_NOT_AVAILABLE is returned.⌋ (SRS_Com_02041)
8.3.3.7 Com_SendSignalGroupArray
[SWS_Com_00851] ⌈
Service name: Com_SendSignalGroupArray
Syntax: uint8 Com_SendSignalGroupArray(
Com_SignalGroupIdType SignalGroupId,
const uint8* SignalGroupArrayPtr
)
Service ID[hex]: 0x23
Sync/Async: Asynchronous
Reentrancy: Non Reentrant for the same signal group. Reentrant for different signal groups.
SignalGroupId Id of signal group to be sent.
Parameters (in):
SignalGroupArrayPtr Reference to the signal group array.
Parameters (in- None
out):
Parameters (out): None
uint8 E_OK: service has been accepted
COM_SERVICE_NOT_AVAILABLE: corresponding I-PDU
group was stopped (or service failed due to development
Return value:
error)
COM_BUSY: in case the TP-Buffer is locked for large data
types handling
Description: The service Com_SendSignalGroupArray copies the content of the provided Sig-
nalGroupArrayPtr to the associated I-PDU. The provided data shall correspond to
the array representation of the signal group.
⌋ (SRS_Com_02112, SRS_Com_02041)
8.3.3.8 Com_ReceiveSignalGroupArray
[SWS_Com_00854] ⌈
Service name: Com_ReceiveSignalGroupArray
Syntax: uint8 Com_ReceiveSignalGroupArray(
Com_SignalGroupIdType SignalGroupId,
uint8* SignalGroupArrayPtr
)
Service ID[hex]: 0x24
Sync/Async: Synchronous
Reentrancy: Non Reentrant for the same signal group. Reentrant for different signal groups.
Parameters (in): SignalGroupId Id of signal group to be received.
Parameters (in- None
out):
SignalGroupArrayPtr reference to the location where the received signal group
Parameters (out):
array shall be stored
uint8 E_OK: service has been accepted
COM_SERVICE_NOT_AVAILABLE: corresponding I-PDU
group was stopped (or service failed due to development
Return value: error)
COM_BUSY: in case the TP-Buffer is locked for large data
types
handling
Description: The service Com_ReceiveSignalGroupArray copies the received signal group
array representation from the PDU to the location designated by SignalGroupAr-
rayPtr.
⌋ (SRS_Com_02112, SRS_Com_02041)
[SWS_Com_00857] ⌈The AUTOSAR COM module shall always copy the last known
data, or the ComSignalInitValues if not yet written, of the I-PDU to the Sig-
nalGroupArrayPtr by a call to Com_ReceiveSignalGroupArray even if the I-PDU is
stopped and COM_SERVICE_NOT_AVAILABLE is returned.⌋ (SRS_Com_02041)
8.3.3.9 Com_InvalidateSignal
[SWS_Com_00203] ⌈
Service name: Com_InvalidateSignal
Syntax: uint8 Com_InvalidateSignal(
Com_SignalIdType SignalId
)
Service ID[hex]: 0x10
Sync/Async: Asynchronous
Reentrancy: Non Reentrant for the same signal. Reentrant for different signals.
Parameters (in): SignalId Id of signal to be invalidated.
Parameters (in- None
94 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
out):
Parameters (out): None
uint8 E_OK: service has been accepted
COM_SERVICE_NOT_AVAILABLE: corresponding I-PDU group is stop-
Return value: ped, no ComSignalDataInvalidValue is configured for the given signalId or
service fails due to development error
COM_BUSY: in case the TP-Buffer is locked
Description: The service Com_InvalidateSignal invalidates the signal with the given SignalId by
setting its value to its configured ComSignalDataInvalidValue.
⌋ (SRS_Com_02077)
See Chapter 7.4.4 for further information about the signal invalidation mechanism.
8.3.3.10 Com_InvalidateSignalGroup
[SWS_Com_00557] ⌈
Service name: Com_InvalidateSignalGroup
Syntax: uint8 Com_InvalidateSignalGroup(
Com_SignalGroupIdType SignalGroupId
)
Service ID[hex]: 0x1b
Sync/Async: Asynchronous
Reentrancy: Non Reentrant for the same signal group. Reentrant for different signal groups.
Parameters (in): SignalGroupId Id of signal group to be invalidated.
Parameters (in- None
out):
Parameters (out): None
uint8 E_OK: service has been accepted
COM_SERVICE_NOT_AVAILABLE: corresponding I-PDU group is
Return value: stopped, no ComSignalDataInvalidValue is configured for any of the
group signals or service fails due to development error
COM_BUSY: in case the TP-Buffer is locked
Description: The service Com_InvalidateSignalGroup invalidates all group signals of the signal
group with the given SignalGroupId by setting their values to their configured
ComSignalDataInvalidValues.
⌋ (SRS_Com_02077)
For further information about the signal invalidation mechanism, see Chapter 7.4.4.
8.3.3.11 Com_TriggerIPDUSend
[SWS_Com_00348] ⌈
Service name: Com_TriggerIPDUSend
Syntax: Std_ReturnType Com_TriggerIPDUSend(
PduIdType PduId
)
Service ID[hex]: 0x17
Sync/Async: Synchronous
Reentrancy: Non Reentrant
Parameters (in): PduId The I-PDU-ID of the I-PDU that shall be triggered for sending
Parameters (in- None
out):
Parameters (out): None
Std_ReturnType E_OK: I-PDU was triggered for transmission
Return value: E_NOT_OK: I-PDU is stopped, the transmission could not be
triggered
Description: By a call to Com_TriggerIPDUSend the I-PDU with the given ID is triggered for
transmission.
⌋ (SRS_Com_02037)
8.3.3.12 Com_TriggerIPDUSendWithMetaData
[SWS_Com_00858] ⌈
Service name: Com_TriggerIPDUSendWithMetaData
Syntax: Std_ReturnType Com_TriggerIPDUSendWithMetaData(
PduIdType PduId,
const uint8* MetaData
)
Service ID[hex]: 0x28
Sync/Async: Synchronous
Reentrancy: Non Reentrant
PduId The I-PDU-ID of the I-PDU that shall be triggered for
Parameters (in): sending
MetaData A pointer to the metadata for the triggered send-request
Parameters (in- None
out):
Parameters (out): None
Std_ReturnType E_OK: I-PDU was triggered for transmission
Return value: E_NOT_OK: I-PDU is stopped, the transmission could not
be triggered
Description: By a call to Com_TriggerIPDUSendWithMetaData the AUTOSAR COM module
updates its internal metadata for the I-PDU with the given ID by copying the meta-
data from the given position and with respect to length of the globally configured
MetaDataType of this I-PDU. Then the I-PDU is triggered for transmission.
⌋ (SRS_Com_02037)
8.3.3.13 Com_SwitchIpduTxMode
[SWS_Com_00784] ⌈
Service name: Com_SwitchIpduTxMode
Syntax: void Com_SwitchIpduTxMode(
PduIdType PduId,
boolean Mode
)
Service ID[hex]: 0x27
Sync/Async: Synchronous
Reentrancy: Reentrant for different PduIds. Non reentrant for the same PduId.
PduId Id of the I-PDU of which the transmission mode shall be changed.
Parameters (in):
Mode the transmission mode that shall be set.
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: The service Com_SwitchIpduTxMode sets the transmission mode of the I-PDU
referenced by PduId to Mode.
In case the transmission mode changes, the new mode shall immediately be
effective (see SWS_Com_00239).
In case the requested transmission mode was already active for this I-PDU, the
call will have no effect.
⌋ (SRS_Com_02082)
By mixing the signal based TMS and explicit TMS by Com_SwitchIpduTxMode for
the same I-PDU, it must be noted that the signal base TMS might switch back the
manual set mode during a call to Com_SendSignal or Com_SendSignalGroup for
this I-PDU. Therefore, mixing explicit and manual TMS for one I-PDU must be care-
fully designed, if used at all.
8.4.1 Com_TriggerTransmit
[SWS_Com_00001] ⌈
Service name: Com_TriggerTransmit
Syntax: Std_ReturnType Com_TriggerTransmit(
PduIdType TxPduId,
PduInfoType* PduInfoPtr
)
Service ID[hex]: 0x41
Sync/Async: Synchronous
Reentrancy: Reentrant for different PduIds. Non reentrant for the same PduId.
Parameters (in): TxPduId ID of the SDU that is requested to be transmitted.
PduInfoPtr Contains a pointer to a buffer (SduDataPtr) to where the SDU
Parameters (in- data shall be copied, and the available buffer size in SduLengh.
out): On return, the service will indicate the length of the copied SDU
data in SduLength.
Parameters (out): None
Std_ReturnType E_OK: SDU has been copied and SduLength indicates the num-
ber of copied bytes.
Return value:
E_NOT_OK: No SDU data has been copied. PduInfoPtr must not
be used since it may contain a NULL pointer or point to invalid
data.
Description: Within this API, the upper layer module (called module) shall check whether the
available data fits into the buffer size reported by PduInfoPtr->SduLength.
If it fits, it shall copy its data into the buffer provided by PduInfoPtr->SduDataPtr
and update the length of the actual copied data in PduInfoPtr->SduLength.
If not, it returns E_NOT_OK without changing PduInfoPtr.
⌋ (SRS_Com_02045)
Use case: This function is used e.g. by the LIN Master for sending out a LIN frame.
In this case, the trigger transmit can be initiated by the Master schedule table itself or
a received LIN header. The FlexRay Interface for requesting PDUs to be sent in stat-
ic part (synchronous to the FlexRay global time) also uses this function.
Once the PDU Router has successfully sent the I-PDU, the PDU Router will call
Com_TxConfirmation.
8.4.2 Com_RxIndication
[SWS_Com_00123] ⌈
Service name: Com_RxIndication
Syntax: void Com_RxIndication(
PduIdType RxPduId,
const PduInfoType* PduInfoPtr
)
Service ID[hex]: 0x42
Sync/Async: Synchronous
Reentrancy: Reentrant for different PduIds. Non reentrant for the same PduId.
RxPduId ID of the received PDU.
Parameters (in): PduInfoPtr Contains the length (SduLength) of the received PDU, a pointer to a
buffer (SduDataPtr) containing the PDU, and the MetaData related to
this PDU.
Parameters (in- None
out):
99 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
8.4.3 Com_TpRxIndication
[SWS_Com_00650] ⌈
Service name: Com_TpRxIndication
Syntax: void Com_TpRxIndication(
PduIdType id,
Std_ReturnType result
)
Service ID[hex]: 0x45
Sync/Async: Synchronous
Reentrancy: Reentrant
id Identification of the received I-PDU.
Parameters (in):
result Result of the reception.
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: Called after an I-PDU has been received via the TP API, the result indicates whe-
ther the transmission was successful or not.
⌋ (SRS_Com_02095)
8.4.4 Com_TxConfirmation
[SWS_Com_00124] ⌈
Service name: Com_TxConfirmation
Syntax: void Com_TxConfirmation(
PduIdType TxPduId,
Std_ReturnType result
)
Service ID[hex]: 0x40
Sync/Async: Synchronous
Reentrancy: Reentrant for different PduIds. Non reentrant for the same PduId.
TxPduId ID of the PDU that has been transmitted.
Parameters (in): result E_OK: The PDU was transmitted.
E_NOT_OK: Transmission of the PDU failed.
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: The lower layer communication interface module confirms the transmission of a
PDU, or the failure to transmit a PDU.
⌋ (SRS_Com_02044)
8.4.5 Com_TpTxConfirmation
[SWS_Com_00725] ⌈
Service name: Com_TpTxConfirmation
Syntax: void Com_TpTxConfirmation(
PduIdType id,
Std_ReturnType result
)
Service ID[hex]: 0x48
Sync/Async: Synchronous
Reentrancy: Reentrant
id Identification of the transmitted I-PDU.
Parameters (in):
result Result of the transmission of the I-PDU.
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: This function is called after the I-PDU has been transmitted on its network, the
result indicates whether the transmission was successful or not.
⌋ (SRS_Com_02095)
8.4.6 Com_StartOfReception
[SWS_Com_00691] ⌈
Service name: Com_StartOfReception
Syntax: BufReq_ReturnType Com_StartOfReception(
PduIdType id,
const PduInfoType* info,
PduLengthType TpSduLength,
PduLengthType* bufferSizePtr
)
Service ID[hex]: 0x46
Sync/Async: Synchronous
Reentrancy: Reentrant
id Identification of the I-PDU.
info Pointer to a PduInfoType structure containing the payload
data (without protocol information) and payload length of the
first frame or single frame of a transport protocol I-PDU re-
Parameters (in):
ception, and the MetaData related to this PDU. If neither
first/single frame data nor MetaData are available, this para-
meter is set to NULL_PTR.
TpSduLength Total length of the N-SDU to be received.
Parameters (in- None
out):
bufferSizePtr Available receive buffer in the receiving module. This para-
Parameters (out): meter will be used to compute the Block Size (BS) in the
transport protocol module.
BufReq_ReturnType BUFREQ_OK: Connection has been accepted. bufferSizePtr
Return value:
indicates the available receive buffer; reception is continued.
[SWS_Com_00657] ⌈If the internal AUTOSAR COM module’s buffer is currently not
locked and the parameter TpSduLength does not exceed the (maximum) expected
length, the function Com_StartOfReception shall write the complete size of the AU-
TOSAR COM module’s internal I-PDU buffer of the I-PDU with handle ComRxPduId
to the position given by RxBufferSizePtr.⌋ (SRS_Com_02095)
8.4.7 Com_CopyRxData
[SWS_Com_00692] ⌈
Service name: Com_CopyRxData
Syntax: BufReq_ReturnType Com_CopyRxData(
PduIdType id,
const PduInfoType* info,
PduLengthType* bufferSizePtr
)
Service ID[hex]: 0x44
Sync/Async: Synchronous
102 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
Reentrancy: Reentrant
id Identification of the received I-PDU.
info Provides the source buffer (SduDataPtr) and the number of
Parameters (in): bytes to be copied (SduLength).
An SduLength of 0 can be used to query the current amount
of available buffer in the upper layer module. In this case, the
SduDataPtr may be a NULL_PTR.
Parameters (in- None
out):
Parameters (out): bufferSizePtr Available receive buffer after data has been copied.
BufReq_ReturnType BUFREQ_OK: Data copied successfully
Return value: BUFREQ_E_NOT_OK: Data was not copied because an
error occurred.
Description: This function is called to provide the received data of an I-PDU segment (N-PDU)
to the upper layer.
Each call to this function provides the next part of the I-PDU data.
The size of the remaining buffer is written to the position indicated by bufferSi-
zePtr.
⌋ (SRS_Com_02095)
8.4.8 Com_CopyTxData
[SWS_Com_00693] ⌈
Service name: Com_CopyTxData
Syntax: BufReq_ReturnType Com_CopyTxData(
PduIdType id,
const PduInfoType* info,
const RetryInfoType* retry,
PduLengthType* availableDataPtr
)
Service ID[hex]: 0x43
Sync/Async: Synchronous
Reentrancy: Reentrant
id Identification of the transmitted I-PDU.
info Provides the destination buffer (SduDataPtr) and the number
of bytes to be copied (SduLength).
If not enough transmit data is available, no data is copied by
the upper layer module and BUFREQ_E_BUSY is returned.
The lower layer module may retry the call.
An SduLength of 0 can be used to indicate state changes in
Parameters (in): the retry parameter or to query the current amount of
available data in the upper layer module. In this case, the
SduDataPtr may be a NULL_PTR.
retry This parameter is used to acknowledge transmitted data or
to retransmit data after transmission problems.
8.5.1 Com_MainFunctionRx
[SWS_Com_00398] ⌈
Service name: Com_MainFunctionRx
Syntax: void Com_MainFunctionRx(
void
)
Service ID[hex]: 0x18
Description: This function performs the processing of the AUTOSAR COM module's receive
processing that are not directly handled within the COM's functions invoked by the
8.5.2 Com_MainFunctionTx
[SWS_Com_00399] ⌈
Service name: Com_MainFunctionTx
Syntax: void Com_MainFunctionTx(
void
)
Service ID[hex]: 0x19
Description: This function performs the processing of the AUTOSAR COM module's transmis-
sion activities that are not directly handled within the COM's function invoked by
the RTE, for example Com_SendSignal.
⌋ (SRS_BSW_00425, SRS_BSW_00432)
8.5.3 Com_MainFunctionRouteSignals
[SWS_Com_00400] ⌈
Service name: Com_MainFunctionRouteSignals
Syntax: void Com_MainFunctionRouteSignals(
void
)
Service ID[hex]: 0x1a
Description: Calls the signal gateway part of the AUTOSAR COM module to forward received
signals to be routed.
⌋ (SRS_BSW_00425, SRS_BSW_00432)
Caveats of Com_MainFunctionRouteSignals:
The time between two consecutive calls (perhaps the related task/thread cy-
cle) affects directly the signal gateway latency.
The insertion of this call is necessary for decoupling receive interrupts and
signal gateway tasks.
Normally a cyclic task/ thread to call this function is configured. The cycle of
this task/thread directly affects the latency of the signal gateway.
This chapter defines all interfaces, which are required to fulfill the core functionality of
the module.
[SWS_Com_00669] ⌈
API function Description
PduR_ComTransmit Requests transmission of a PDU.
⌋ (SRS_BSW_00384)
This chapter defines all interfaces that are required to fulfill an optional functionality of
the module.
[SWS_Com_00670] ⌈
API function Description
Det_ReportError Service to report development errors.
Det_ReportRuntimeError Service to report runtime errors. If a callout has been configured then
this callout shall be called.
PduR_ComCancelTransmit Requests cancellation of an ongoing transmission of a PDU in a lower
layer communication module.
⌋ (SRS_BSW_00384)
[SWS_Com_00468] ⌈
Service name: Com_CbkTxAck
Syntax: void Com_CbkTxAck(
void
)
Sync/Async: Synchronous
Reentrancy: don't care
Parameters (in): None
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: This callback represents notification class 2 of [17]. It is called immediately after
successful transmission of the I-PDU containing the message.
⌋ (SRS_BSW_00359, SRS_BSW_00360)
Com_CbkTxAck is called on sender side only. It can be configured for signals and
signal groups.
[SWS_Com_00491] ⌈
Service name: Com_CbkTxErr
Syntax: void Com_CbkTxErr(
void
)
Sync/Async: Synchronous
Reentrancy: don't care
Parameters (in): None
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: This callback corresponds to notification class 4 of [17]. It is called in case the
transmission is not possible because the corresponding I-PDU group is stopped.
⌋ (SRS_BSW_00359, SRS_BSW_00360)
[SWS_Com_00554] ⌈
Service name: Com_CbkTxTOut
Syntax: void Com_CbkTxTOut(
void
)
Sync/Async: Synchronous
107 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
Com_CbkTxTOut is called on sender side only. It can be configured for signals and
signal groups.
[SWS_Com_00555] ⌈
Service name: Com_CbkRxAck
Syntax: void Com_CbkRxAck(
void
)
Sync/Async: Synchronous
Reentrancy: don't care
Parameters (in): None
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: This callback represents notification class 1 of [17]. It is called immediately after
the message has been stored in the receiving message object.
⌋ (SRS_BSW_00359, SRS_BSW_00360)
Com_CbkRxAck is called on receiver side only. It can be configured for signals and
signal groups.
[SWS_Com_00556] ⌈
Service name: Com_CbkRxTOut
Syntax: void Com_CbkRxTOut(
void
)
Sync/Async: Synchronous
Reentrancy: don't care
Com_CbkRxTOut is called on receiver side only. It can be configured for signals and
signal groups.
[SWS_Com_00536] ⌈
Service name: Com_CbkInv
Syntax: void Com_CbkInv(
void
)
Sync/Async: Synchronous
Reentrancy: don't care
Parameters (in): None
Parameters (in- None
out):
Parameters (out): None
Return value: None
Description: This callback function corresponds to SWS_Com_00680. It is called after recepti-
on of an invalid signal or signal group respectively.
⌋ (SRS_BSW_00359, SRS_BSW_00360, SRS_Com_02079)
Com_CbkInv is called on receiver side only. It can be configured for signals, group
signals and signal groups.
[SWS_Com_00726] ⌈
Service name: Com_CbkCounterErr
Syntax: void Com_CbkCounterErr(
PduIdType ComPduId,
uint8 ExpectedCounter,
uint8 ReceivedCounter
)
Sync/Async: Synchronous
Reentrancy: don' t care
109 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
As specified in [17], if the I-PDU callout returns false the I-PDU will not be processed
any further.
[SWS_Com_00700] ⌈
Service name: Com_RxIpduCallout
Syntax: boolean Com_RxIpduCallout(
PduIdType PduId,
const PduInfoType* PduInfoPtr
)
Service ID[hex]: 0x2A
Sync/Async: Synchronous
Reentrancy: don't care
PduId ID of the received I-PDU.
Parameters (in): PduInfoPtr Contains the length (SduLength) of the received I-PDU and a pointer to
the data of the I-PDU (SduDataPtr).
Parameters (in- None
out):
Parameters (out): None
boolean true: I-PDU will be processed normal
Return value:
false: I-PDU will not be processed any further
Description: The I-PDU callout on receiver side can be configured to implement user-defined
receive filtering mechanisms.
⌋ (SRS_Com_02037)
[SWS_Com_00816] ⌈The AUTOSAR COM module shall forward all data of the re-
ceived I-PDU (i.e. the complete I-PDU as provided by the PduR) in the
Com_RxIpduCallout.⌋ (SRS_Com_02037)
110 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
[SWS_Com_00346] ⌈
Service name: Com_TxIpduCallout
Syntax: boolean Com_TxIpduCallout(
PduIdType PduId,
PduInfoType* PduInfoPtr
)
Service ID[hex]: 0x29
Sync/Async: Synchronous
Reentrancy: don't care
Parameters (in): PduId ID of the transmitted I-PDU.
Parameters (in- PduInfoPtr Contains the length (SduLength) of the transmitted I-PDU and a
out): pointer to the data of the I-PDU (SduDataPtr).
Parameters (out): None
boolean true: I-PDU will be processed normal
Return value:
false: I-PDU will not be processed any further
Description: The I-PDU callout on sender side can be configured for example to implement
user-defined transmission filtering or user-defined pre-transmission-processing of
the outgoing I-PDU.
⌋ (SRS_Com_02037)
[SWS_Com_00381] ⌈The AUTOSAR COM module shall not support that other AU-
TOSAR COM module’s APIs than Com_TriggerIPDUSend, Com_TriggerIPDUSend-
WithMetaData, Com_SendSignal and Com_SendSignalGroup can be called out of
an I-PDU callout.⌋ (SRS_Com_02037)
For TP I-PDUs, the I-PDU callout functions are handled similar to the I-PDU callout
functions of normal I-PDUs and are supported both on transmitter and receiver side.
Note that for example the requirement SWS_Com_00719 does not consider the con-
figured ComIPduType.
111 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
9 Sequence Diagrams
A sequence diagram of the underlying communication stack can be found in [17].
9.1 Interface between the AUTOSAR COM Module and the PDU
Router
The following chart shows the communication between the AUTOSAR COM module
and the PDU Router.
«module» «module»
Com PduR
Internal
processing()
internal
processing()
E_OK()
internal
processing()
Com_TriggerTransmit(Std_ReturnType, PduIdType, PduInfoType*)
Internal
processing()
Com_TxConfirmation(PduIdType, Std_ReturnType)
Internal
processing()
E_OK()
Com_TxConfirmation(PduIdType, Std_ReturnType)
Internal
processing()
Figure 7: Interactions between the AUTOSAR COM module and the PDU router
alt Unpacking
[Unpack.Immediate] Com_TxConfirmation(PduIdType, Std_ReturnType)
Rte_COMCbkTAck_signalX()
internal
processing()
Rte_COMCbkTAck_signalY()
internal
processing()
[Unpack.Deferred]
Com_TxConfirmation(PduIdType, Std_ReturnType)
set
flag()
check
flag()
[flag set]
Rte_COMCbkTAck_signalX()
internal
processing()
Rte_COMCbkTAck_signalY()
internal
processing()
Figure 8: Confirmation handling between the PDU Router, the AUTOSAR COM module and
the RTE
alt Unpacking
Rte_COMCbk_signalX()
internal
processing()
Rte_COMCbk_signalY()
internal
processing()
[Unpack.Deferred]
Com_RxIndication(PduIdType, PduInfoType*)
check
flag()
[flag set]
Rte_COMCbk_signalX()
internal
processing()
Rte_COMCbk_signalY()
internal
processing()
Figure 9: Indication handling between the PDU Router, the AUTOSAR COM module and the
RTE
10 Configuration Specification
For an overview of the AUTOSAR COM module’s configuration, see Figure 10.
+parameter +parameter
+container
ComConfig :EcucParamConfContainerDef
ComTxIPdu : ComGroupSignal :
EcucParamConfContainerDef EcucParamConfContainerDef
upperMultiplicity = 1 lowerMultiplicity = 0
lowerMultiplicity = 0 upperMultiplicity = * +parameter +parameter
ComGwTimeBase : ComRxTimeBase :
+destination
+subContainer +subContainer +subContainer +subContainer EcucFloatParamDef EcucFloatParamDef
lowerMultiplicity = 1
+reference upperMultiplicity = *
ComGwSignal :
+reference +reference EcucParamConfContainerDef
upperMultiplicity = 1
lowerMultiplicity = 0
+choice
ComGwSourceDescription :
EcucParamConfContainerDef
upperMultiplicity = 1 +choice
lowerMultiplicity = 0
ComGwDestinationDescription :
EcucParamConfContainerDef
upperMultiplicity = 1
lowerMultiplicity = 0
10.1.2 Com
Included Containers
Container Name Multiplicity Scope / Dependency
This container contains the configuration parameters and sub
ComConfig 1
containers of the AUTOSAR COM module.
Contains the general configuration parameters of the AUTO-
ComGeneral 1
SAR COM module.
10.1.3 ComGeneral
Multiplicity 0..1
Type EcucBooleanParamDef
Default value false
Post-Build Variant Multipli-
false
city
Post-Build Variant Value false
Multiplicity Configuration Pre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local
minLength 1
regularExpression --
Post-Build Variant Multipli-
false
city
Post-Build Variant Value false
Multiplicity Configuration Pre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local
No Included Containers
10.1.4 ComConfig
Included Containers
Container Name Multiplicity Scope / Dependency
Each instance of this container defines one mapping of the
ComGwMapping 0..*
integrated Signal Gateway.
See ECUC_Com_00340, if there is no ComIpdu container
ComIPdu 0..* included no IPDUs are defined. In this case no communication
via the AUTOSAR COM module is possible.
See ECUC_Com_00341, if there is no ComIPduGroup contai-
ComIPduGroup 0..* ner included then no IPDU group is defined. In this case no
communication via the AUTOSAR COM module is possible.
See ECUC_Com_00344, if there is no ComSignal container
ComSignal 0..*
included no single signals are defined.
See ECUC_Com_00345, if there is no ComSignalGroup con-
ComSignalGroup 0..*
tainer included no signal groups are defined.
ComTimeBase 1 Contains the timebase parameters for Tx, Rx and routing.
10.1.5 ComTimeBase
Post-build time --
Scope / Dependency scope: ECU
No Included Containers
10.1.6 ComFilter
NEVER --
NEW_IS_OUTSIDE --
NEW_IS_WITHIN --
ONE_EVERY_N --
Post-Build Vari-
false
ant Value
Value Configura- Pre-compile time X VARIANT-PRE-COMPILE
tion Class Link time X VARIANT-LINK-TIME,
VARIANT-POST-BUILD
Post-build time --
Scope / Depen- scope: local
dency
Post-build time --
Scope / Dependency scope: local
Type EcucIntegerParamDef
Range 2 .. 4294967295
Default value --
Post-Build Variant Multipli-
true
city
Post-Build Variant Value true
Multiplicity Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: local
No Included Containers
10.1.7 ComIPdu
Name ComIPduCallout
Parent Container ComIPdu
Description This parameter defines the existence and the name of a callout function for
the corresponding I-PDU. If this parameter is omitted no I-PDU callout
shall take place for the corresponding I-PDU.
Multiplicity 0..1
Type EcucFunctionNameDef
Default value --
maxLength --
minLength --
regularExpression --
Post-Build Variant Multipli-
false
city
Post-Build Variant Value false
Multiplicity Configuration Pre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local
Name ComIPduTriggerTransmitCallout
Parent Container ComIPdu
Description If there is a trigger transmit callout defined for this I-PDU this parameter
contains the name of the callout function.
Multiplicity 0..1
Type EcucFunctionNameDef
Default value --
maxLength --
minLength --
regularExpression --
Post-Build Variant Multipli-
false
city
Post-Build Variant Value false
Multiplicity Configuration Pre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local
Name ComIPduSignalGroupRef
Parent Container ComIPdu
Description References to all signal groups contained in this I-Pdu
Multiplicity 0..*
Type Reference to [ ComSignalGroup ]
Post-Build Variant Multipli-
true
city
Post-Build Variant Value true
Multiplicity Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: local
Included Containers
Container Name Multiplicity Scope / Dependency
This optional container contains the configuration parameters
ComIPduCounter 0..1
of PDU Counter.
This optional container contains the information needed for
ComIPduReplication 0..1
each I-PDU replicated.
This container must be included if COM_IPDU_DIRECTION is
ComTxIPdu 0..1
configured to SEND.
10.1.8 ComIPduCounter
Description Position of PDU counter expressed in bits from start position of data con-
tent
of I-PDU (SDU). Note that PDU counter is not allowed to cross a byte
border.
The parameter ComIPduCounterStartPosition shall define the bit0 of the
first
byte like in little endian byte order.
Multiplicity 1
Type EcucIntegerParamDef
Range 0 .. 4294967295
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local
No Included Containers
10.1.9 ComIPduReplication
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: local
dependency: This value must be less or equal to the multiplicity of ( Co-
mIPduReplicaRef + 1).
No Included Containers
10.1.10 ComTxIPdu
Included Containers
Container Name Multiplicity Scope / Dependency
The referenced transmission mode object that is used when
ComTxModeFalse 0..1 the filtering state for this I-PDU evaluates to false.
The default is transmission mode None.
The referenced transmission mode object that is used when
ComTxModeTrue 0..1
the filtering state for this I-PDU evaluates to true.
10.1.11 ComIPduGroup
Range: 0 .. (ComSupportedIPduGroups-1)
Multiplicity 1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 65535
Default value --
Post-Build Variant Value false
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU
No Included Containers
10.1.12 ComSignal
Post-build time --
Value Configurati- Pre-compile time X VARIANT-PRE-COMPILE
on Class Link time X VARIANT-LINK-TIME, VARIANT-
POST-BUILD
Post-build time --
Scope / Depen- scope: local
dency
Name ComHandleId
Parent Container ComSignal
Description The numerical value used as the ID.
This ID identifies signals and signal groups in the COM APIs using
Com_SignalIdType or Com_SignalGroupIdType parameter respectively.
Multiplicity 0..1
Type EcucIntegerParamDef (Symbolic Name generated for this parameter)
Range 0 .. 65535
Default value --
Post-Build Variant Multipli-
false
city
Post-Build Variant Value false
Multiplicity Configuration Pre-compile time X All Variants
Class Link time --
Post-build time --
Value Configuration Class Pre-compile time X All Variants
Link time --
Post-build time --
Scope / Dependency scope: ECU
Range BIG_ENDIAN --
LITTLE_ENDIAN --
OPAQUE --
Post-Build Variant
true
Value
Value Configurati- Pre-compile time X VARIANT-PRE-COMPILE
on Class Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Depen- scope: local
dency
value.
TRIGGERED_ON_CHANGE_WITHOUT_REPETITION Depending on the trans-
mission mode, a write
access to this signal can
trigger the transmission of
the corresponding I-PDU
just once without a repeti-
tion, but only in case the
written value is different to
the locally stored (last sent
or initial value) in length or
value.
TRIGGERED_WITHOUT_REPETITION Depending on the trans-
mission mode, a write
access to this signal can
trigger the transmission of
the corresponding I-PDU
just once without a repeti-
tion.
Post-Build Vari-
true
ant Multiplicity
Post-Build Vari-
true
ant Value
Multiplicity Pre-compile time X VARIANT-PRE-
Configuration COMPILE
Class Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Value Configu- Pre-compile time X VARIANT-PRE-
ration Class COMPILE
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Depen- scope: local
dency
Included Containers
Container Name Multiplicity Scope / Dependency
This container contains the configuration parameters of the
AUTOSAR COM module's Filters.
ComFilter 0..1
Note: On sender side the container is used to specify the
transmission mode conditions.
10.1.13 ComSignalGroup
Multiplicity
Post-Build Variant
false
Value
Multiplicity Confi- Pre-compile time X VARIANT-PRE-COMPILE
guration Class Link time X VARIANT-LINK-TIME, VARIANT-
POST-BUILD
Post-build time --
Value Configurati- Pre-compile time X VARIANT-PRE-COMPILE
on Class Link time X VARIANT-LINK-TIME, VARIANT-
POST-BUILD
Post-build time --
Scope / Depen- scope: local
dency
Multiplicity 0..1
Type EcucFunctionNameDef
Default value --
maxLength --
minLength --
regularExpression --
Post-Build Variant Multipli-
false
city
Post-Build Variant Value false
Multiplicity Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class Link time X VARIANT-LINK-TIME, VARIANT-POST-
BUILD
Post-build time --
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time X VARIANT-LINK-TIME, VARIANT-POST-
BUILD
Post-build time --
Scope / Dependency scope: local
tSubstitutionValue
Post-Build Variant
false
Multiplicity
Post-Build Variant
false
Value
Multiplicity Confi- Pre-compile time X VARIANT-PRE-COMPILE
guration Class Link time X VARIANT-LINK-TIME, VARIANT-POST-
BUILD
Post-build time --
Value Configurati- Pre-compile time X VARIANT-PRE-COMPILE
on Class Link time X VARIANT-LINK-TIME, VARIANT-POST-
BUILD
Post-build time --
Scope / Depen- scope: local
dency
Included Containers
Container Name Multiplicity Scope / Dependency
This container contains the configuration parameters of group
ComGroupSignal 0..*
signals. I.e. signals that are included within a signal group.
10.1.14 ComGroupSignal
UINT8_DYN
the size shall be configured by ComSignalLength. For ComSignalTypes
FLOAT32 and
FLOAT64 the size is already defined by the signal type and therefore may
be omitted.
Multiplicity 0..1
Type EcucIntegerParamDef
Range 0 .. 64
Default value --
Post-Build Variant Multipli-
true
city
Post-Build Variant Value true
Multiplicity Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: local
address).
For the ComSignalType UINT8_DYN the dynamic length shall be set to the
number of configured characters. An empty string "" shall be interpreted as
0-sized dynamic signal.
Multiplicity 0..1
Type EcucStringParamDef
Default value --
maxLength --
minLength --
regularExpression --
Post-Build Variant Multipli-
false
city
Post-Build Variant Value false
Multiplicity Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class Link time X VARIANT-LINK-TIME, VARIANT-POST-
BUILD
Post-build time --
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time X VARIANT-LINK-TIME, VARIANT-POST-
BUILD
Post-build time --
Scope / Dependency scope: local
dependency: In case of UINT8_N the length of ComSignalDataInvalidVa-
lue has to be the same as ComSignalLength.
Name ComSignalType
Parent Container ComGroupSignal
Description The AUTOSAR type of the signal. Whether or not the signal is signed or unsigned
can be found by examining the value of this attribute.
This type could also be used to reserved appropriate storage in AUTOSAR COM.
Multiplicity 1
Type EcucEnumerationParamDef
Range BOOLEAN --
FLOAT32 --
FLOAT64 --
SINT16 --
SINT32 --
SINT64 --
SINT8 --
UINT16 --
UINT32 --
UINT64 --
UINT8 --
UINT8_DYN --
UINT8_N --
Post-Build Variant
false
Value
Value Configurati- Pre-compile time X VARIANT-PRE-COMPILE
on Class Link time X VARIANT-LINK-TIME, VARIANT-
POST-BUILD
Post-build time --
Scope / Depen- scope: local
dency
Type EcucStringParamDef
Default value --
maxLength --
minLength --
regularExpression --
Post-Build Variant Multipli-
true
city
Post-Build Variant Value true
Multiplicity Configuration Pre-compile time X VARIANT-PRE-COMPILE
Class Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Value Configuration Class Pre-compile time X VARIANT-PRE-COMPILE
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Dependency scope: local
Included Containers
Container Name Multiplicity Scope / Dependency
This container contains the configuration parameters of the
AUTOSAR COM module's filters.
ComFilter 0..1
Note: On sender side the container is used to specify the
transmission mode conditions.
10.1.15 ComTxMode
No Included Containers
10.1.16 ComTxModeTrue
Included Containers
Container Name Multiplicity Scope / Dependency
This container contains the configuration parameters of the
ComTxMode 1
AUTOSAR COM module's transmission modes.
10.1.17 ComTxModeFalse
Included Containers
Container Name Multiplicity Scope / Dependency
164 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
10.1.18 ComGwMapping
Included Containers
Container Name Multiplicity Scope / Dependency
Each instance of this choice container allows to define one
routing destination either by reference to an already configured
ComGwDestination 1..*
COM signal / signal group or by a destination description
container.
This choice container allows the definition of the gateway
source signal either by reference to an already configured
ComGwSource 1
COM signal / signal group or by a source description contai-
ner.
10.1.19 ComGwSource
Container Choices
Container Name Multiplicity Scope / Dependency
This container allows specifying a gateway source or destina-
ComGwSignal 0..1 tion respectively with a reference to a ComSignal, a Com-
GroupSignal or a ComSignalGroup.
Description of a gateway source. This container allows defi-
ning a gateway source without the configuration of a complete
ComGwSourceDescription 0..1
COM signal. This allows adding / changing gateway relations
post build without the configuration of new signals.
10.1.20 ComGwSourceDescription
Post-Build Variant
true
Value
Value Configurati- Pre-compile time X VARIANT-PRE-COMPILE
on Class Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Depen- scope: local
dency
UINT8_DYN --
UINT8_N --
Post-Build Variant
false
Value
Value Configurati- Pre-compile time X VARIANT-PRE-COMPILE
on Class Link time X VARIANT-LINK-TIME, VARIANT-
POST-BUILD
Post-build time --
Scope / Depen- scope: local
dency
No Included Containers
10.1.21 ComGwDestination
Container Choices
Container Name Multiplicity Scope / Dependency
Description of a gateway destination. This container allows
ComGwDestinationDescripti- defining a gateway destination without the configuration of a
0..1
on complete COM signal. This allows adding / changing gateway
relations post build without the configuration of new signals.
This container allows specifying a gateway source or destina-
ComGwSignal 0..1 tion respectively with a reference to a ComSignal, a Com-
GroupSignal or a ComSignalGroup.
10.1.22 ComGwDestinationDescription
Parent Contai-
ComGwDestinationDescription
ner
Description Defines if a write access to this signal can trigger the transmission of the correspon-
ding I-PDU. If the I-PDU is triggered, depends also on the transmission mode of the
corresponding I-PDU.
Multiplicity 0..1
Type EcucEnumerationParamDef
Range PENDING A write access to this
signal never triggers the
transmission of the cor-
responding I-PDU.
TRIGGERED Depending on the trans-
mission mode, a write
access to this signal can
trigger the transmission of
the corresponding I-PDU.
TRIGGERED_ON_CHANGE Depending on the trans-
mission mode, a write
access to this signal can
trigger the transmission of
the corresponding I-PDU,
but only in case the written
value is different to the
locally stored (last sent or
initial value) in length or
value.
TRIGGERED_ON_CHANGE_WITHOUT_REPETITION Depending on the trans-
mission mode, a write
access to this signal can
trigger the transmission of
the corresponding I-PDU
just once without a repeti-
tion, but only in case the
written value is different to
the locally stored (last sent
or initial value) in length or
value.
TRIGGERED_WITHOUT_REPETITION Depending on the trans-
mission mode, a write
access to this signal can
trigger the transmission of
the corresponding I-PDU
just once without a repeti-
tion.
Post-Build Vari-
true
ant Multiplicity
Post-Build Vari-
true
ant Value
Multiplicity Pre-compile time X VARIANT-PRE-
Configuration COMPILE
Class Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Value Configu- Pre-compile time X VARIANT-PRE-
ration Class COMPILE
Link time X VARIANT-LINK-TIME
Post-build time X VARIANT-POST-BUILD
Scope / Depen- scope: local
dency
Included Containers
Container Name Multiplicity Scope / Dependency
This container contains the configuration parameters of the
AUTOSAR COM module's Filters.
ComFilter 0..1
Note: On sender side the container is used to specify the
transmission mode conditions.
10.1.23 ComGwSignal
No Included Containers
[SWS_Com_00401] ⌈It is illegal for any two of the following parameters to have the
same value:
shortName of a ComSignal
shortName of a ComSignalGroup
shortName of a ComGroupSignal
shortName of a ComIPdu
shortName of a ComIPduGroup
⌋ (SRS_Com_02067)
[SWS_Com_00402] ⌈It is illegal for any of the following parameters not to be formu-
lated according to C’s identifier rules:
shortName of a ComSignal
shortName of a ComSignalGroup
shortName of a ComGroupSignal
shortName of a ComIPdu
shortName of a ComIPduGroup
ComNotification
ComErrorNotification
ComTimeoutNotification
ComInvalidNotification
ComIPduCallout
⌋ (SRS_Com_02067)
More than one signal can be packed into an I-PDU as long as the following packing
rules are fulfilled:
It is explicitly allowed that a ComSignal/ ComGroupSignal may have the size 0, see
ECUC_Com_00158.
[SWS_Com_00785] ⌈The ComBitSize of a (group) signal shall not extend past the
size of its configured ComSignalType.⌋ (SRS_Com_02067)
For example, the ComBitSize of a signal with ComSignalType UINT8 shall not ex-
ceed 8 bits.
[SWS_Com_00365] ⌈It shall not be allowed to configure signal groups for routing
with data type differences between receive and transmit signal group. A sub-setting
of signal groups (as defined in SWS_Com_00735) shall be supported.⌋
(SRS_Com_02067)
How the signals of signal groups are placed within an I-PDU is not restricted. It is
allowed to define interlaced signal groups, or to place other signals within the wholes
of a signal group.
The above restriction is necessary, since the length of the dynamic length signal
could not be derived correctly, when the I-PDU contains additional metadata.
Since the FlexRay Interface does only support even values for the I-PDU length, it is
not recommend to configure dynamic length I-PDU to be send via FrIf. Instead, the
FlexRay TP module should be used to transport dynamic length I-PDUs via FlexRay.
[SWS_Com_00871] ⌈All I-PDUs that are contained within one I-PDU group shall
have the same ComIPduDirection.⌋ (SRS_Com_00218)
Since the nesting of I-PDU groups is only conceptual (see Chapter 7.3.5.1), the
above requirements restricts also all nested I-PDU groups to have the same
ComIPduDirection.
12 Appendix A
This appendix contains use cases with different transmission modes and the neces-
sary configuration for these. Table 10 shows the notation of the use case diagrams.
Notation Description
tc, tc1, tc2 cycle times
td cycle time of N-Times sent signals
tr minimum SW reaction time of COM-Layer due to internal main cycle time
V Value:
x stands for an arbitrary value/ value range,
a…w for specific values / value ranges, defined by the user, with
a <> b, range a is disjoint from range b.
request from RTE to the COM-Layer
Use case 1 shows an I-PDU that is sent out cyclically with a cycle time tc. This I-PDU
consists of signals that all have the ComTransferProperty PENDING. It is configured
that the transmission takes place when the TMS evaluates to true.
tc tc tc tc tc
Figure 11: Use case 1, TM periodic (without TMS switch, see Chapter 7.3.3.2)
ComSignal
ComTransferProperty PENDING or TRIGGERED
(TRIGGERED has no influence)
ComFilter
ComFilterAlgorithm ALWAYS
ComIPdu
ComIPduDirection SEND
ComTxModeTrue
ComTxModeTimePeriod tc
ComTxModeMode PERIODIC
ComTxIPdu
ComMinimumDelayTime 0 or omitted
Use case 2 shows an I-PDU which is sent out three times whenever a value is given
by the upper (Com_SendSignal or Com_SendSignalGroup). The time between two
transmissions is td. This I-PDU consists of signals, which all have the ComTransfer-
Property TRIGGERED. It is configured that the transmission takes place when the
TMS evaluates to true.
Figure 12: Use case 2, TM DIRECT (N-Times) here n = 2 (without TMS switch)
ComGeneral
ComEnableMDTForCyclicTransmission true
ComSignal
ComTransferProperty TRIGGERED
ComFilter
ComFilterAlgorithm ALWAYS
ComIPdu
ComIPduDirection SEND
ComTxModeTrue
ComTxModeMode DIRECT
ComTxModeNumberOfRepetitions 2
ComTxModeRepetitionPeriod td
ComTxIPdu
ComMinimumDelayTime dt
If there is a new send request by the RTE before the ongoing repetition cycle is com-
pleted, the new repetition cycle is started and the rest of the last one is discarded.
Use case 3 shows an I-PDU which is send out cyclically with a cycle time t c1 if value
v = a (TMS evaluates to true) and with a cycle time tc2 if value v = b (TMS evaluates
to false). The I-PDU consists of signals, which all have the ComTransferProperty
PENDING.
ComGeneral
ComEnableMDTForCyclicTransmission true
ComSignal
ComTransferProperty PENDING or TRIGGERED
(TRIGGERED has no influence)
ComFilter
ComFilterAlgorithm any filter mapping value a to true and value b
to false
ComIPdu
ComIPduDirection SEND
ComTxModeTrue
ComTxModeMode PERIODIC
ComTxModeTimePeriod tc1
ComTxModeFalse
ComTxModeMode PERIODIC
ComTxModeTimePeriod tc2
ComTxIPdu
ComMinimumDelayTime dt
The TMS switch caused by the new value v = b, starts a new cycle within the next
main function and the new value is sent out. Nevertheless, the minimum delay time
dt has to be taken into account, since ComEnableMDTForCyclicTransmission is set
to true.
For the parameter ComFilterAlgorithm, the following filters defined in [17] can be
used for this use-case:
MASKED_NEW_EQUALS_X
MASKED_NEW_DIFFERS_X
MASKED_NEW_DIFFERS_MASKED_OLD
NEW_IS_WITHIN
NEW_IS_OUTSIDE
Use case 4 shows an I-PDU which is send out cyclically with a cycle time t c if value v
= a (TMS evaluates to true) and if value v = b (TMS evaluates to false) it is sent out
three times whenever the value is given by the RTE. The time between two transmis-
sions is td. The I-PDU consists of signals that all have the ComTransferProperty
TRIGGERED.
Figure 14: Use case 4 scenario a, TM periodic + DIRECT/N-Times, here n = 2 (with TMS switch)
Figure 15: Use case 4 scenario b, TM periodic + DIRECT/N-Times, here n = 2 (with TMS switch)
ComGeneral
ComEnableMDTForCyclicTransmission True
ComSignal
ComTransferProperty TRIGGERED
ComFilter
ComFilterAlgorithm any filter mapping value a to true and value b
to false
ComIPdu
ComIPduDirection SEND
ComTxModeTrue
ComTxModeMode PERIODIC
ComTxModeTimePeriod tc
ComTxModeFalse
ComTxModeMode DIRECT
ComTxModeNumberOfRepetitions 2
ComTxModeRepetitionPeriod td
ComTxIPdu
ComMinimumDelayTime dt
After the switch from ComTxModeMode DIRECT to PERIODIC the cycle is started
within the next main function and the new value a is sent out with respect to ComMin-
imumDelayTime dt.
Use case 5 shows an I-PDU which is send out cyclically with a cycle time tc and if the
value (the same or a new one) is given by the RTE it is also sent out directly three
times. The time between two of these three transmissions is always td. The I-PDU
consists of signals that all have the ComTransferProperty TRIGGERED.
Figure 16: Use case 5 scenario a, TM MIXED, here n = 2 (without TMS switch)
Figure 17: Use case 5 scenario b, TM MIXED, here n = 2 (without TMS switch)
ComGeneral
ComEnableMDTForCyclicTransmission true
ComSignal
ComTransferProperty TRIGGERED
ComFilter
ComFilterAlgorithm ALWAYS
ComIPdu
ComIPduDirection SEND
ComTxModeTrue
ComTxModeMode MIXED
ComTxModeTimePeriod tc
184 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
ComTxModeNumberOfRepetitions 2
ComTxModeRepetitionPeriod td
ComTxIPdu
ComMinimumDelayTime dt
If the next transmission caused by the periodic part of the ComTxModeMode MIXED
should take place within the timeout dt (ComMinimumDelayTime) after a transmis-
sion of the DIRECT (N-Times) part, this sent out is delayed until the minimum delay
time is elapsed. However, after that the next period of the periodic part is shortened
so that there is only an intermediate phase shift of the periodic part but no continuous
one.
Use case 6 shows an I-PDU which is send out cyclically with a cycle time tc2 if value
v = b (TMS evaluates to false). If value v = a (TMS evaluates to true) it is sent out
cyclically with a cycle time tc1 and whenever the value v = a is given by the RTE it is
also sent out directly three times. The time between two of these three transmissions
is always td. The I-PDU consists of signals that all have the ComTransferProperty
TRIGGERED.
Figure 18: Use Case 6, TM MIXED, here n= 2 + periodic (with TMS switch)
ComGeneral
ComEnableMDTForCyclicTransmission true
ComSignal
ComTransferProperty TRIGGERED
ComFilter
ComFilterAlgorithm any filter mapping value a to true and value b
to false
ComIPdu
ComIPduDirection SEND
ComTxModeTrue
ComTxModeMode MIXED
ComTxModeTimePeriod tc1
ComTxModeNumberOfRepetitions 2
ComTxModeRepetitionPeriod td
ComTxModeFalse
ComTxModeMode PERIODIC
ComTxModeTimePeriod tc2
ComTxIPdu
ComMinimumDelayTime dt
185 of 187 Document ID 015: AUTOSAR_SWS_COM
– AUTOSAR confidential –
Specification of Communication
AUTOSAR CP Release 4.3.1
A usage of this in practice is for example the signal of the button that controls the
window-lift motor. If the button is not pressed, there is a long cycle time tc1 with this
information. If it is pressed this information is distributed with a short cycle time tc2. If
the button is released again, starting with the next main function this information is
distributed three times with td and after that, again the long cycle time is used.
Figure 19: Use case 7 scenario a, TM MIXED, here n = 1 (without TMS switch)
Figure 20: Use case 7 scenario b, TM MIXED, here n = 1 (without TMS switch)
Figure 21: Use case 7 scenario c, TM MIXED, here n = 1 (without TMS switch)
ComGeneral
ComEnableMDTForCyclicTransmission False
ComSignal
ComTransferProperty TRIGGERED
ComFilter
ComFilterAlgorithm ALWAYS
ComIPdu
ComIPduDirection SEND
ComTxModeTrue
ComTxModeMode MIXED
ComTxModeTimePeriod tc
ComTxModeNumberOfRepetitions 1
ComTxModeRepetitionPeriod td
ComTxIPdu
ComMinimumDelayTime dt
In contrary to use case 5, here the minimum delay timer is neither started for the
periodic transmissions of the cyclic part nor for the repeated transmissions of the
direct part of the Mixed mode. This can result in two consecutive transmissions within
the timespan dt as shown in the scenarios b and c.