फ़ंक्शन CommCtrlRequest [SWS_DM_00808] Upstream: RS_AP_00119, RS_AP_00138, RS_Diag_04170, RS_Diag_04278
virtual ara::core::Future< void > CommCtrlRequest (ComCtrlRequest ParamsType controlType, const MetaInfo &metaInfo, CancellationHandler cancellationHandler) noexcept=0;
Called for CommunicationControl (0x28) with any subfunction as subfunction value is part of the argument list.
UDS सेवा 0x28 (CommunicationControl) के डायग्नोस्टिक अनुरोधों को संसाधित करने के लिए शुद्ध वर्चुअल विधि ara::diag::CommunicationControl::CommCtrlRequest ([SWS_DM_00808]) को Diagnostic-Server-इंस्टेंस द्वारा कॉल किया जाता है ([SWS_DM_00865], SWS Diagnostics §7.3.2.8.10 “Service 0x28 – CommunicationControl”)। सबफ़ंक्शन सहित सभी UDS अनुरोध पैरामीटर संरचना controlType के माध्यम से बंडल किए गए रूप में पास किए जाते हैं ([SWS_DM_00808])। कॉल एक ara::core::Future<void> लौटाता है, जिसके द्वारा प्रसंस्करण एसिंक्रोनस रूप से होता है। पैरामीटर cancellationHandler के माध्यम से, एप्लिकेशन IsCanceled() का उपयोग करके रद्दीकरण स्थिति की क्वेरी कर सकता है या SetNotifier() के माध्यम से वार्तालाप रद्दीकरण के लिए कॉलबैक पंजीकृत कर सकता है ([SWS_DM_00808])।
यदि एप्लिकेशन बिना किसी त्रुटि के प्रसंस्करण पूरा करता है, तो Diagnostic Server एक सकारात्मक UDS प्रतिक्रिया भेजता है ([SWS_DM_00199])। यदि कोई त्रुटि होती है, तो इसे ISO 14229-1 के अनुसार ara::diag::DiagUdsNrcErrc के माध्यम से एक उपयुक्त Negative Response Code (NRC) के रूप में रिपोर्ट किया जाना चाहिए ([SWS_DM_00808]); सर्वर तब इस त्रुटि कोड के साथ सेवा अनुरोध का नकारात्मक उत्तर देता है ([SWS_DM_00866])। गैर-कॉन्फ़िगर किए गए सबफ़ंक्शनों को सर्वर पहले ही NRC 0x12 (kSubFunctionNotSupported) के साथ अस्वीकार कर देता है ([SWS_DM_00252])।
विधि को noexcept के साथ घोषित किया गया है और यह अपवाद-सुरक्षित है ([SWS_DM_00808], SWS Diagnostics §8.7.1.1.3.1 “CommCtrlRequest”)। इसकी थ्रेड सुरक्षा सशर्त है: क्या फ़ंक्शन को थ्रेड-सुरक्षित रूप से कार्यान्वित किया जाना चाहिए, यह इंस्टेंस के कंस्ट्रक्टर पैरामीटर ConcurrencyType द्वारा निर्धारित किया जाता है ([SWS_DM_00808])। Future के हल होने से पहले संचार मोड का वास्तविक स्विचिंग संभवतः पृष्ठभूमि में एसिंक्रोनस रूप से होता है। प्रश्न Q-8a8e1bd2585fa859 (खुला)
यह पाठ एक AI द्वारा बनाया और क्यूरेट किया गया था। सभी कथन विशेष रूप से AUTOSAR R25-11 के विनिर्देश दस्तावेज़ों पर आधारित हैं।
इम्प्लीमेंटर गाइड जल्द आएगी (जटिलता I1)
| Header-Datei | #include "ara/diag/communication_control.h" |
|---|---|
| Scope | class ara::diag::CommunicationControl |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | conditional whether the function has to be implemented thread safe or non-thread safe is determined by the ConcurrencyType given in the constructor |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| controlType | All UDS request parameters packed into a structure since it holds optional elements |
| metaInfo | MetaInfo of the request. |
| cancellationHandler | This parameter is used to • Query the current cancellation status by calling cancellationHandler.IsCanceled. Returns TRUE in case, the current conversation has been cancelled and FALSE otherwise. • Register a notifier function by calling cancellationHandler.SetNotifier. The registered notifier is called if the current conversation is cancelled. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| ara::core::Future< void > | Returns nothing or an error. |
Fehler
| Fehlercode | Beschreibung |
|---|---|
| Please use an applicable NRC, as defined in ISO 14229-1, using DiagUdsNrcErrc. | |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_00808- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_00808@rel:R25-11#cb0a0aad- Content hash
cb0a0aad- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00808
Status: valid/unmigrated
Version: rel:R25-11#727dd05b
Versionshistorie & Revisions (1 transition, 8 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_00808@rel:R25-11#727dd05b
Recorded Revisions (8):
- R25-11
rel:R25-11#424df4222026-09-30 - R19-11
rel:R19-11#70e59b9a2026-10-14 - R20-11
rel:R20-11#35c65b602026-10-14 - R21-11
rel:R21-11#aa3f917f2026-10-14 - R22-11
rel:R22-11#21c3e83e2026-10-14 - R23-11
rel:R23-11#62deb4992026-10-14 - R24-11
rel:R24-11#f7c711472026-10-14 - R25-11
rel:R25-11#727dd05b2026-10-14 active
Requirement Text as-of this release:
Curation Decisions:
Reachable Artifacts & Dependents:
| Date | Actor | Transition | Reason / Rationale | Campaign |
|---|---|---|---|---|
| 2026-08-13 | tool | none → valid/unmigrated | mechanically backfilled by migriere_status_backfill.py -- no per-field curation history exists yet for this record | 2026-08-13-status-backfill |
gemini-3.8-flash-low· 2026-10-13 · जर्मन मूल