Main Content

Diagnostic Service Component

Configure AUTOSAR Diagnostic Services and Runtime Environment (RTE) for emulation

  • Diagnostic Service Component block

Libraries:
AUTOSAR Blockset / Classic Platform / Basic Software / Diagnostic Event Manager (Dem)

Description

The Diagnostic Service Component block provides reference implementations of Diagnostic Event Manager (Dem) and Function Inhibition Manager (FiM) services supported by AUTOSAR Basic Software (BSW) caller blocks. When coupled with Dem and FiM caller blocks, the reference implementations enable you to configure and run system-level or composition-level simulations of AUTOSAR Dem and FiM service calls.

The block has prepopulated parameters, including RTE service ID parameters, Dem Counter-Based Debouncing parameters, and FiM inhibition condition parameters. Examine the parameter settings and, if necessary, make modifications based on how you are using the Dem or FiM service operations.

The RTE tab lists component client ports and their mapping to Dem or FiM service IDs for events, operation cycles, or functions with inhibition conditions. Each row in the table represents a call into Dem or FiM services from a Basic Software caller block, for which you can modify an ID value.

The Dem tab Counter-Based Debouncing parameters control the counter-based debounce algorithm provided by the Dem service reference implementations. During multiple simulations, you can adjust event step size and threshold parameters and observe the effects.

Use the counter-based debouncing parameters to determine when a monitored event has passed or failed. For each event ID, the software maintains a counter. When PREFAIL events arrive, the event ID counter increments by the Increment step size (default 1). When PREPASS events arrive, the event ID counter decrements by the Decrement step size (default 1). To determine the event ID counter thresholds at which an event fails or passes, use block parameters Failed threshold (default 2) and Passed threshold (default -1).

In the Dem reference implementations, the step size and threshold parameters apply globally to event IDs, not to individual IDs.

The FIM tab lists function identifiers (FIDs) and their associated inhibition conditions and client ports. The tab provides graphical controls for adding or removing inhibition conditions for a selected FID. For each inhibition condition, select ID and mask values.

Examples

Parameters

expand all

Each row in the RTE tab table represents a call into Dem or FiM services from a Basic Software caller block. Check the ID mappings for events, operation cycles, and functions with inhibition conditions. For events, calls that act on the same event use the same event ID. For an example of mapping Dem client ports to shared event IDs, see Simulate AUTOSAR Basic Software Services and Run-Time Environment.

Specify a fixed-step value that the Dem event ID counter increments by when PREFAIL events arrive.

Specify a fixed-step value that the Dem event ID counter decrements by when PREPASS events arrive.

Specify a Dem event ID counter threshold value to represent failed status. Events that reach this threshold are considered to have failed.

Specify a Dem event ID counter threshold value to represent passed status. Events that reach this threshold are considered to have passed.

In the FiM tab table, each row grouped under an FID represents an inhibition condition with an ID, one or more component client ports associated with the ID, and a mask. For each inhibition condition, you can modify the ID value. For examples of inhibition condition configuration, see Configure and Simulate AUTOSAR Function Inhibition Service Calls.

In the FiM tab table, each row grouped under an FID represents an inhibition condition with an ID, one or more component client ports associated with the ID, and a mask. For each inhibition condition, you can modify the mask value. For examples of inhibition condition configuration, see Configure and Simulate AUTOSAR Function Inhibition Service Calls.

Version History

Introduced in R2017b