Messages

Messages form the input and output variables of processes and are used for inter-process communication. Unlike global variables, messages are protected variables in preemptive scheduling. If two concurrent processes both access the same message, data consistency is guaranteed, because each process works on its own copy. Messages are only available in modules and AUTOSAR SWCClosed AUTOSAR software component (singular; plural is SWCs). Depending on their usage, there are three different types of messages:

The first figure shows scalar messages in the block diagram editor. The colored arrow symbols mark the directions of the messages. Scope and other properties, which are marked by certain symbols on variables and parameters, are not marked.

The second figure shows non-scalar messages in the block diagram editor. The colored symbols mark the directions of the messages. Scope and other properties are not marked.

The generated initialization code for messages of array/matrix type is not affected by the setting of the Generating Sparse Arraystarget option.

For exported and local messages of scalar, array or matrix type, calibration access is set to read-only in the screenshots, indicated by the black bar at the left end of the message icons. Changing the calibration access makes the display change as shown for variables in Basic Scalar Elements.

Imported messages of the said types will inherit their properties from their exported counterparts.

For details on messages in AUTOSAR SWC, see Message Mapping.