Serves as a parameter container for the evaluation and processing of UDS 0x28 communication control requests.
AI-GENERATEDunreviewedModel: gemini-3.8-flash-medium · Effort: medium · Temperature: not controllable · Prompt: edde1b3d434eProvenanceOpen questions (3)
translated from the German guidegemini-3.8-flash-low · 2026-10-13 · German original
Serves as a parameter container for the evaluation and processing of UDS 0x28 communication control requests.
The data structure bundles all input parameters of a UDS service request 0x28 for adaptive communication control according to [SWS_DM_00805]. Upon arrival of such a diagnostic message, the platform deserializes the control and communication types as well as the node identification and passes the populated structure to the corresponding service handler. The application software evaluates the contained values to specifically influence the transmission and reception behavior of defined network segments (AUTOSAR_AP_SWS_Diagnostics §8.7.2 “Struct: ComCtrlRequestParamsType”). As a stateless data container, the structure possesses no concurrency synchronization of its own, which is why accesses should remain within the execution context of the handler.
Context
The structure ara::diag::CommunicationControl::ComCtrlRequestParamsType is a central data transfer type within the functional diagnostic interface of AUTOSAR Adaptive [SWS_DM_00805]. It is declared in the header file ara/diag/communication_control.h and serves as a standardized parameter container encapsulating all input parameters of a diagnostic request of the UDS service 0x28 (CommunicationControl) (AUTOSAR_AP_SWS_Diagnostics §8.7.2 “Struct: ComCtrlRequestParamsType”).
In the overall system, the structure acts as an intermediary between AUTOSAR Diagnostic Management and the adaptive application software responsible for vehicle-specific communication control. Incoming diagnostic commands from external testers are deserialized at the platform level and passed to the application via this structure. The structure comprises three public member variables (AUTOSAR_AP_SWS_Diagnostics §8.7.2.1 “Public Member Variables”):
As an elementary C++ structure (struct) [SWS_DM_00805], ComCtrlRequestParamsType exhibits the characteristics of a simple value type (Plain Old Data / POD). It has no internal state machine, no virtual function pointers, and no dynamically allocated memory areas (AUTOSAR_AP_SWS_Diagnostics §8.7.2.1 “Public Member Variables”).
An instance is typically created transiently by the Diagnostic Management framework: As soon as a UDS 0x28 message has been received and formally validated, the stack instantiates the structure and initializes the member variables with the decoded payload (Interpretation: Object creation is entirely the responsibility of the middleware as part of request acceptance). Question Q-1abe8049ce5759f2 (open) Ownership is strictly limited to the context of the method call. The platform usually passes the instance by value or const reference to the service handler of the application; the receiving application does not take permanent ownership of the instance.
Accordingly, no lifecycle phases or complex state transitions exist. The destruction of the instance occurs automatically upon leaving the scope of the respective callback call. In terms of concurrency, ComCtrlRequestParamsType does not implement its own synchronization mechanisms. Since the members are usually evaluated in a read-only manner by the application software after initialization by the platform, access is expected to be thread-safe provided that the instance is passed thread-locally to the processing context (Interpretation: No external locks are required for evaluation). Question Q-d654753d06273bca (open)
Reception of the diagnostic message: An external diagnostic tester sends a UDS 0x28 request to the ECU. The Adaptive Diagnostic Management receives the data packet at transport layer.
Deserialization and instantiation: The diagnostic stack parses the payload, creates an instance of ComCtrlRequestParamsType[SWS_DM_00805], and assigns the transmitted values to the fields controlType[SWS_DM_01562], communicationType[SWS_DM_01563], and nodeIdentificationNumber[SWS_DM_01564].
Handoff to the service handler: The middleware forwards the instance to the implemented callback method of the CommunicationControl interface in the adaptive application.
Parameter evaluation and execution: The adaptive application reads out the structure. Based on the nodeIdentificationNumber[SWS_DM_01564], it is determined whether the node itself or a subnet is addressed. Subsequently, the corresponding transmission and reception modes are activated or deactivated via controlType[SWS_DM_01562] and communicationType[SWS_DM_01563].
Acknowledgment: After successful execution, the application confirms the process to Diagnostic Management, which transmits the standard-compliant positive UDS response to the diagnostic tester.
gemini-3.8-flash-low· 2026-10-13 · German original