You are on page 1of 6

Specification of Diagnostic Event Manager

V4.2.0
R4.0 Rev 3

LOWER-LIMIT=0;
UPPER-LIMIT=1;
0 -> DEM_CYCLE_STATE_START
1 -> DEM_CYCLE_STATE_END
}

ImplementationDataType Dem_DTCStatusMaskType {
LOWER-LIMIT = 0;
UPPER-LIMIT = 255;
}

// refer to chapter 8.2.1.6


ImplementationDataType Dem_IndicatorStatusType {
LOWER-LIMIT=0;
UPPER-LIMIT=3;
0 -> DEM_INDICATOR_OFF
1 -> DEM_INDICATOR_CONTINUOUS
2 -> DEM_INDICATOR_BLINKING
3 -> DEM_INDICATOR_BLINK_CONT
}

ImplementationDataType Dem_MaxDataValueType {
CATEGORY = ARRAY;
subElement {
CATEGORY = TYPE_REFERENCE;
implementationDataType ELEMENT-TYPE-REF = uint8;
ARRAY-SIZE = [size of largest Extended data record / DID];
}
}

The following types are not shown up in the service ports of the client components,
because they are implemented as port defined argument values, which are part of
the internal behaviour of the Dem Service. So, the ECU dependency of these types is
not visible for the client SW-Cs.

ImplementationDataType Dem_OperationCycleIdType {
LOWER-LIMIT = 0;
UPPER-LIMIT = <N - 1>;
};

ImplementationDataType Dem_IndicatorIdType {
LOWER-LIMIT = 0;
UPPER-LIMIT = <N - 1>;
};

// refer to chapter 8.2.1.16


ImplementationDataType Dem_RatioIdType {
LOWER-LIMIT = 0;
UPPER-LIMIT = <N - 1>;
};

// refer to chapter 8.2.1.9


ImplementationDataType Dem_DTCOriginType {
LOWER-LIMIT = 1;
UPPER-LIMIT = 4;
1 -> DEM_DTC_ORIGIN_PRIMARY_MEMORY
2 -> DEM_DTC_ORIGIN_MIRROR_MEMORY
3 -> DEM_DTC_ORIGIN_PERMANENT_MEMORY
4 -> DEM_DTC_ORIGIN_SECONDARY_MEMORY

125 of 265 Document ID 019: AUTOSAR_SWS_DiagnosticEventManager


- AUTOSAR confidential -
Specification of Diagnostic Event Manager
V4.2.0
R4.0 Rev 3

8.2 Type definitions


The following Data Types shall be used for the functions defined in this specification.

8.2.1 Dem data types

8.2.1.1 Dem_ConfigType

Name: Dem_ConfigType
Type: Structure
Element: void implementation --
specific
Description: This type of the external data structure shall contain the post build initialization
data for the Dem.

8.2.1.2 Dem_EventIdType

Name: Dem_EventIdType
Type: uint16
Range: 1...65535 -- Internal identifier of a diagnostic event
Remark: 0 is not a valid value
Description: Identification of an event by assigned EventId. The EventId is assigned by the
Dem.
Example:
1 refers to monitor x,
2 refers to monitor y, etc.

8.2.1.3 Dem_EventStatusType

Name: Dem_EventStatusType
Type: uint8
Range: DEM_EVENT_STATUS_PASSED 0x00 Monitor reports qualified test result
passed.
DEM_EVENT_STATUS_FAILED 0x01 Monitor reports qualified test result
126 of 265 Document ID 019: AUTOSAR_SWS_DiagnosticEventManager
- AUTOSAR confidential -
Specification of Diagnostic Event Manager
V4.2.0
R4.0 Rev 3

failed.
DEM_EVENT_STATUS_PREPASSED 0x02 Monitor reports non-qualified test result
pre-passed (debounced
DEM_EVENT_STATUS_PREFAILED 0x03 Monitor reports non-qualified test result
pre-failed (debounced Dem-internally).
0x04 reserved
-
0xFF
Description: This type contains all monitor test result values, which can be reported via
Dem_ReportErrorStatus() and Dem_SetEventStatus().

8.2.1.4 Dem_EventStatusExtendedType

Name: Dem_EventStatusExtendedType
Type: uint8
Range: range 0x00..0xFF the possible range from 0x00 to 0xFF
allows for all combinations of the
individual status bits
DEM_UDS_STATUS_TF 0x01 bit 0: TestFailed
DEM_UDS_STATUS_TFTOC 0x02 bit 1: TestFailedThisOperationCycle
DEM_UDS_STATUS_PDTC 0x04 bit 2: PendingDTC
DEM_UDS_STATUS_CDTC 0x08 bit 3: ConfirmedDTC
DEM_UDS_STATUS_TNCSLC 0x10 bit 4: TestNotCompletedSinceLastClear
DEM_UDS_STATUS_TFSLC 0x20 bit 5: TestFailedSinceLastClear
DEM_UDS_STATUS_TNCTOC 0x40 bit 6:
TestNotCompletedThisOperationCycle
DEM_UDS_STATUS_WIR 0x80 bit 7: WarningIndicatorRequested
Description: In this data-type each bit has an individual meaning. The bit is set to 1 when the
condition holds. For example, if the 2nd bit (0x02) is set to 1, this means that the test
failed this operation cycle. If the bit is set to 0, it has not yet failed this cycle.

8.2.1.5 Dem_OperationCycleStateType

Name: Dem_OperationCycleStateType
Type: uint8
Range: DEM_CYCLE_STATE_START 0x00 Start/restart the operation cycle
DEM_CYCLE_STATE_END 0x01 End the operation cycle
Description: This type contains operation cycle state values, which can be reported via
Dem_SetOperationCycleState().

127 of 265 Document ID 019: AUTOSAR_SWS_DiagnosticEventManager


- AUTOSAR confidential -
Specification of Diagnostic Event Manager
V4.2.0
R4.0 Rev 3

8.2.1.6 Dem_IndicatorStatusType

Name: Dem_IndicatorStatusType
Type: uint8
Range: DEM_INDICATOR_OFF 0x00 Indicator off mode
DEM_INDICATOR_CONTINUOUS 0x01 Indicator continuously on mode
DEM_INDICATOR_BLINKING 0x02 Indicator blinking mode
DEM_INDICATOR_BLINK_CONT 0x03 Indicator blinking or continuously on mode
Description: Indicator mode returned by Dem_GetIndicatorStatus()

8.2.1.7 Dem_DTCGroupType

Name: Dem_DTCGroupType
Type: uint32
Range: DEM_DTC_GROUP_BODY_DTCS --selects group of body DTCs
DEM_DTC_GROUP_CHASSIS_DTCS --selects group of chassis
DTCs
DEM_DTC_GROUP_NETWORK_COM_DTCS -- selects group of network
communication DTCs
DEM_DTC_GROUP_POWERTRAIN_DTCS -- selects group of powertrain
DTCs
DEM_DTC_GROUP_EMISSION_REL_DTCS 0x000000 selects group of OBD-
relevant DTCs
DEM_DTC_GROUP_ALL_DTCS 0xffffff 0xFFFFFF: selects all DTCs
Description: Selects a group of DTCs.

8.2.1.8 Dem_DTCKindType

Name: Dem_DTCKindType
Type: uint8
Range: DEM_DTC_KIND_ALL_DTCS 0x01 Select all DTCs
DEM_DTC_KIND_EMISSION_REL_DTCS 0x02 Select OBD-relevant DTCs
Description: --

8.2.1.9 Dem_DTCFormatType

128 of 265 Document ID 019: AUTOSAR_SWS_DiagnosticEventManager


- AUTOSAR confidential -
Specification of Diagnostic Event Manager
V4.2.0
R4.0 Rev 3

Name: Dem_DTCFormatType
Type: uint8
Range: DEM_DTC_FORMAT_OBD 0 selects the 2-byte OBD DTC format (refer to
DemObdDTC)
DEM_DTC_FORMAT_UDS 1 selects the 3-byte UDS DTC format (refer to
DemUdsDTC)
Description: Selects/specifies the format of the DTC value.

8.2.1.10 Dem_DTCOriginType

Name: Dem_DTCOriginType
Type: uint8
Range: DEM_DTC_ORIGIN_PRIMARY_MEMORY 0x01 Event information located in the
primary memory
DEM_DTC_ORIGIN_MIRROR_MEMORY 0x02 Event information located in the
mirror memory
DEM_DTC_ORIGIN_PERMANENT_MEMORY 0x03 The Event information is
located in the permanent
memory
DEM_DTC_ORIGIN_SECONDARY_MEMORY 0x04 Event information located in the
secondary memory
Description: This enum is used to define the location of the events. The definition and use of
the different memory types is OEM-specific.

8.2.1.11 Dem_DTCRequestType

Name: Dem_DTCRequestType
Type: uint8
Range: DEM_FIRST_FAILED_DTC 0x01 first failed DTC requested
DEM_MOST_RECENT_FAILED_DTC 0x02 most recent failed DTC requested
DEM_FIRST_DET_CONFIRMED_DTC 0x03 first detected confirmed DTC
requested
DEM_MOST_REC_DET_CONFIRMED_DTC 0x04 most recently detected confirmed
DTC requested
Description: --

8.2.1.12 Dem_DTCTranslationFormatType

Name: Dem_DTCTranslationFormatType
129 of 265 Document ID 019: AUTOSAR_SWS_DiagnosticEventManager
- AUTOSAR confidential -
Specification of Diagnostic Event Manager
V4.2.0
R4.0 Rev 3

Type: uint8
Range: DEM_DTC_TRANSLATION_ISO15031_6 0x00 ISO15031-6 DTC format
DEM_DTC_TRANSLATION_ISO14229_1 0x01 ISO14229-1 DTC format
DEM_DTC_TRANSLATION_SAEJ1939_73 0x02 SAEJ1939-73 DTC format
DEM_DTC_TRANSLATION_ISO11992_4 0x03 ISO11992-4 DTC format
Description: DTC translation format as defined in ISO14229-1 Service 0x19 returned by
Dem_GetTranslationType().

8.2.1.13 Dem_DTCSeverityType

Name: Dem_DTCSeverityType
Type: uint8
Range: DEM_SEVERITY_NO_SEVERITY 0x00 No severity information
available
DEM_SEVERITY_MAINTENANCE_ONLY 0x20 maintenance required
DEM_SEVERITY_CHECK_AT_NEXT_HALT 0x40 check at next halt
DEM_SEVERITY_CHECK_IMMEDIATELY 0x80 Check immediately
Description: Defines the type of a DTCSeverityMask according to ISO14229-1.

8.2.1.14 Dem_FilterForFDCType

Name: Dem_FilterForFDCType
Type: uint8
Range: DEM_FILTER_FOR_FDC_YES 0x00 Fault Detection Counter information used
DEM_FILTER_FOR_FDC_NO 0x01 Fault Detection Counter information not used
Description: --

8.2.1.15 Dem_FilterWithSeverityType

Name: Dem_FilterWithSeverityType
Type: uint8
Range: DEM_FILTER_WITH_SEVERITY_YES 0x00 Severity information used
DEM_FILTER_WITH_SEVERITY_NO 0x01 Severity information not used
Description: --

130 of 265 Document ID 019: AUTOSAR_SWS_DiagnosticEventManager


- AUTOSAR confidential -

You might also like