Main Content

AUTOSAR Communication

Configure communication ports and interfaces

The communication interface of an AUTOSAR software-component consists of well-defined ports. An AUTOSAR component communicates through its ports with other AUTOSAR software components or Basic Software (BSW) services. A port provides information to, or requires information from, its communication partners. Each port owned by the component maps to a communication interface, based on the component functional requirements. Communication interfaces include:

  • Sender-receiver (S-R) interface, for message passing

  • Client-server (C-S) interface, for function invocation

  • Mode-switch (M-S) interface, for managing mode-based execution

  • Nonvolatile (NV) data interface, for port-based access to NV data

  • Parameter interface, for port-based access to parameter data

  • Trigger interface, for managing trigger-based execution

To configure AUTOSAR communication for a component port, you create an AUTOSAR interface, map the port to the interface, and map Simulink® elements, such as a root inport or outport, to the AUTOSAR port as required by the type of interface. Use the AUTOSAR Dictionary and the Code Mappings editor or equivalent AUTOSAR property and map functions.

Blocks

Signal InvalidationControl AUTOSAR root outport data element invalidation

Functions

getDataDefaultsGet default end-to-end (E2E) protection method for AUTOSAR component model (Since R2022b)
setDataDefaultsSet default end-to-end (E2E) protection method for AUTOSAR component model (Since R2022b)
getDataTransferGet AUTOSAR mapping information for Simulink data transfer
mapDataTransferMap Simulink data transfer to AUTOSAR inter-runnable variable
getInternalDataPackagingGet default internal data packaging for AUTOSAR component model (Since R2021a)
setInternalDataPackagingSet default internal data packaging for AUTOSAR component model (Since R2021a)
getFunctionCallerGet AUTOSAR mapping information for Simulink function-caller block
mapFunctionCallerMap Simulink function-caller block to AUTOSAR client port and operation
overflowedDetermine when message queue overflows

Objects

autosar.api.getAUTOSARPropertiesConfigure AUTOSAR software component elements and properties
autosar.api.getSimulinkMappingMap Simulink elements to AUTOSAR elements

Topics

Sender-Receiver Communication

Client-Server Communication

Mode-Switch Communication

Nonvolatile Communication

Ports

Runnables and Events