DEENESPTFRRUARHIKOZHNL

struct ara::diag::DoIPEntityIdentification::EntityId

[SWS_DM_01363] Upstream: RS_Diag_00026

struct EntityId {...};

Entity Identification value ( EID ) as defined in ISO 13400-2 [2].

Literaturverzeichnis SWS Diagnostics: [2] ISO 13400-2:2019 – Road vehicles – Diagnostic communication over Internet Protocol (DoIP) – Part 2: Network and transport layer requirements and services (Edition 2, Release 2019-12) – www.iso.org

Header-Datei#include "ara/diag/doip_entity_identification.h"
Forwarding-Header#include "ara/diag/diag_fwd.h"
Scopeclass ara::diag::DoIPEntityIdentification

User GuideAI-GENERATED

Encapsulates the six-byte entity identification (EID) for DoIP vehicle identification according to ISO 13400-2.
AI-GENERATED unreviewed Model: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: 7deb2263acbf Provenance Open questions (1)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original

Encapsulates the six-byte entity identification (EID) for DoIP vehicle identification according to ISO 13400-2.

The structure ara::diag::DoIPEntityIdentification::EntityId serves as a data container for the six-byte entity identification (EID) of a DoIP instance according to ISO 13400-2 ([SWS_DM_01496]). When configured accordingly, the Diagnostic Manager retrieves this identifier from the adaptive application via the method ara::diag::DoIPEntityIdentification::GetEntityId to embed it in DoIP protocol messages such as the vehicle announcement message ([SWS_DM_01361]). Should the interface not yet be available or the retrieval fail, a mandatory constraint is a fallback to the fixed replacement value consisting entirely of bytes with the value 0xFF ([SWS_DM_01528]).

Context

The data structure ara::diag::DoIPEntityIdentification::EntityId serves to represent the standardized entity identification (EID) for diagnostic communication over Internet Protocol (DoIP) according to ISO 13400-2 ([SWS_DM_01496], AUTOSAR_AP_SWS_Diagnostics §8.33 “Header: ara/diag/doip_entity_identification.h”). Within the AUTOSAR Adaptive Platform, it is defined as a public struct type within the API class ara::diag::DoIPEntityIdentification ([SWS_DM_01362], [SWS_DM_01496]).

Its primary responsibility consists of encapsulating the exactly six-byte identification value of a DoIP entity ([SWS_DM_01496]). In the platform architecture, three main actors interact: First, the adaptive application, which manages the entity identification or reads it from hardware. Second, the interface class ara::diag::DoIPEntityIdentification, which provides the method for providing the identifier ([SWS_DM_01362]). Third, the Diagnostic Manager (DM), which retrieves the EID in the context of vehicle identification for outgoing DoIP messages ([SWS_DM_01361], AUTOSAR_AP_SWS_Diagnostics §8.33 “Providing EID in DoIP protocol messages using Application Interface”).

dm Diagnostic Manager api ara::diag::DoIPEntityIdentification dm->api GetEntityId() eid EntityId api->eid provides app Adaptive Application app->api bietet an eid->dm 6-Byte-Kennung

Context diagram: Integration of EntityId between Diagnostic Manager, interface class, and adaptive application. Sources: [SWS_DM_01361], [SWS_DM_01496].

Lifecycle

As a data structure with the single member entityIdentification of type ara::core::Array<std::uint8_t, 6>, EntityId exhibits the properties of a lightweight C++ value object ([SWS_DM_01496]). Interpretation: Due to the lack of dynamic resource allocation, the structure is likely to support regular copy and move operations by default and not be subject to complex internal state transitions. Question Q-4a6f7d6e7368b436 (open)

Instantiation of EntityId is performed by the adaptive application as soon as the Diagnostic Manager queries the identity data via calling ara::diag::DoIPEntityIdentification::GetEntityId ([SWS_DM_01361]). The lifetime of an instance is typically bound to the return and processing cycle of the method call. While the enclosing service class ara::diag::DoIPEntityIdentification possesses explicit constructors ([SWS_DM_01364], AUTOSAR_AP_SWS_Diagnostics §8.33.1.1.2.1 “DoIPEntityIdentification”) and destructors ([SWS_DM_01365], AUTOSAR_AP_SWS_Diagnostics §8.33.1.1.1.1 “Destructor”), the value object EntityId is automatically deallocated upon leaving the scope after the Diagnostic Manager reads the field data.

Usage Path

The regular usage of EntityId follows a defined sequence in the diagnostic protocol flow:

  • Configuration check: The Diagnostic Manager checks the attribute DoIpNetworkConfiguration.eidRetrieval. If DoIpEidRetrievalEnum.eidUseApi is stored there, the DM must mandatorily retrieve the identifier via the API ([SWS_DM_01361]).
  • Retrieval via API: The Diagnostic Manager calls the method ara::diag::DoIPEntityIdentification::GetEntityId ([SWS_DM_01361]).
  • Data provision: The application creates an instance of EntityId, populates the member entityIdentification with the 6-byte identifier according to ISO 13400-2 ([SWS_DM_01496]), and passes the structure.
  • Protocol usage: The Diagnostic Manager extracts the identifier and inserts it into DoIP messages such as the vehicle announcement message ([SWS_DM_01361], AUTOSAR_AP_SWS_Diagnostics §8.33 “Providing EID in DoIP protocol messages using Application Interface”).
Retrieval of the EntityId for DoIP protocol messagesDiagnostic ManagerDoIPEntityIdentificationAdaptive ApplicationUse Case: Configuration checkCheck eidRetrieval == eidUseApiUse Case: EID-AbrufGetEntityId()Ermittlung anfordernaltInterface availableBereitstellung EntityIdEntityId with 6-byte arrayEID in DoIP-Nachrichten einbettenInterface not available / errorFailure during retrievalFallback: set EID to 0xFF

Sequence diagram: Flow during retrieval and further processing of EntityId including error fallback. Sources: [SWS_DM_01361], [SWS_DM_01496], [SWS_DM_01528].

Error Scenarios

A central error scenario arises when the interface ara::diag::DoIPEntityIdentification is not yet offered by the adaptive application at the required query time or retrieval via GetEntityId fails ([SWS_DM_01528], AUTOSAR_AP_SWS_Diagnostics §8.33 “Providing EID in DoIP protocol messages using Application Interface”).

In order not to permanently block sending DoIP messages, the specification mandates fallback value behavior in this case: The Diagnostic Manager must transmit a 6-byte EID field with the fixed value 0xFF 0xFF 0xFF 0xFF 0xFF 0xFF instead of the regular application data ([SWS_DM_01528]). At the type level, the fixed array ara::core::Array<std::uint8_t, 6> precludes length errors and buffer overflows at compile time ([SWS_DM_01496]).

This guide was created by an AI system based on the AUTOSAR AP R25-11 specification and editorially reviewed.

UML class diagram

Hohle Dreieckspfeile = Vererbung (zeigt zur Basisklasse); Klicken öffnet die jeweilige Klassenseite.

G nara__diag__DoIPEntityIdentification__EntityId720 «struct» EntityId + entityIdentification

Constants

Entity Identification value.

ara::core::Array<std::uint8_t, 6> entityIdentification;

Documentation of constants / variables

variable entityIdentification [SWS_DM_01496] Upstream: RS_Diag_00026

ara::core::Array<std::uint8_t, 6> entityIdentification;

Entity Identification value.

Header-Datei#include "ara/diag/doip_entity_identification.h"
Scopestruct ara::diag::DoIPEntityIdentification::EntityId
SymbolentityIdentification
Typara::core::Array< std::uint8_t, 6 >

Request a governed re-review of this record. The record is not changed immediately.

Record
AUTOSAR/AP/record/SWS_DM_01496
Status
valid/unmigrated
Version
AUTOSAR/AP/record/SWS_DM_01496@rel:R25-11#427b10f4
Content hash
427b10f4
Source
https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_01496
Status: valid/unmigrated Version: rel:R25-11#ae348f9f Versionshistorie & Revisions (1 transition, 5 revision)
Current State
valid/unmigrated
Reason
mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record
Campaign
2026-08-13-status-backfill
Active Version
AUTOSAR/AP/record/SWS_DM_01496@rel:R25-11#ae348f9f
Point-in-Time History:
Recorded Revisions (5):
  • R25-11rel:R25-11#427b10f42026-09-30
  • R22-11rel:R22-11#fa5843222026-10-14
  • R23-11rel:R23-11#ae348f9f2026-10-14
  • R24-11rel:R24-11#ae348f9f2026-10-14
  • R25-11rel:R25-11#ae348f9f2026-10-14 active
DateActorTransitionReason / RationaleCampaign
2026-08-13toolnone → valid/unmigratedmechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record2026-08-13-status-backfill