函数 ChannelReestablished [SWS_DM_00313] Upstream: RS_AP_00120, RS_AP_00121, RS_AP_00122, RS_Diag_04147, RS_Diag_04168
virtual void ChannelReestablished (GlobalChannelIdentifier global ChannelId) noexcept=0;
Notification call from the given transport protocol channel, that it has been reestablished since the last (Re)Start from the UdsTransportProtocolHandler to which this channel belongs. To activate this notification a previous call to UdsTransportProtocolHandler::Notify Reestablishment() has to be done. See further documentation at UdsTransport ProtocolHandler::NotifyReestablishment().
使用
类 apext::diag::uds_transport::UdsTransportProtocolMgr 的方法 ChannelReestablished 用作 UDS 传输协议实现向 Diagnostic Management (DM) 的反馈,表明通信通道在(重新)启动后再次可用 [SWS_DM_00313]。一旦检测到由 ChannelID 表示的网络通道重新可用,传输协议实现就恰好调用此方法一次 [SWS_DM_00358]。作为参数传递 globalChannelId,其由自身 handlerIdent 与 ChannelID 组成的元组构成 [SWS_DM_00358]。
交互和生命周期
通知的前提条件是先前调用过 NotifyReestablishment [SWS_DM_00313],[SWS_DM_00356]。典型的用例是执行 ECU 重置(UDS 服务 0x11)并带有在重启后发送肯定响应的选项 [SWS_DM_00326]。为了确保在 DM 重启后也能收到通知,通知请求必须由传输协议进行持久化存储 [SWS_DM_00359]。
错误处理与并发
该函数没有返回值,并被指定为 noexcept(exception safe)[SWS_DM_00313]。由于该接口被归类为非线程安全(not thread-safe)[SWS_DM_00313],调用处理程序可能必须对访问进行外部同步。 问题 Q-aaf14893457cceb6 (未决)作为时间限制,DM 仅在调用 UdsTransportProtocolHandler::Start 之后才允许处理对 ChannelReestablished 的调用 [SWS_DM_01744]。
本文字由 AI 基于 AUTOSAR 规范 R25-11 自动生成。
实现者指南即将推出(复杂度 I2)
| Header-Datei | #include "apext/diag/uds_transport/protocol_mgr.h" |
|---|---|
| Scope | class apext::diag::uds_transport::UdsTransportProtocolMgr |
| Exception-Sicherheit | exception safe |
| Thread-Sicherheit | not thread-safe |
Parameter (in)
| Parameter | Beschreibung |
|---|---|
| globalChannelId | transport protocol channel, which is available again. |
Rückgabewert
| Typ | Beschreibung |
|---|---|
| None |
Request a governed re-review of this record. The record is not changed immediately.
- Record
AUTOSAR/AP/record/SWS_DM_00313- Status
- valid/unmigrated
- Version
AUTOSAR/AP/record/SWS_DM_00313@rel:R25-11#bad7f6fd- Content hash
bad7f6fd- Source
- https://www.autosar.org/fileadmin/standards/R25-11/AP/AUTOSAR_AP_SWS_Diagnostics.pdf#nameddest=SWS_DM_00313
Status: valid/unmigrated
Version: rel:R25-11#4c5b70ac
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_00313@rel:R25-11#4c5b70ac
Recorded Revisions (8):
- R25-11
rel:R25-11#dacc8bb22026-09-30 - R19-11
rel:R19-11#acd4155f2026-10-14 - R20-11
rel:R20-11#9235fd502026-10-14 - R21-11
rel:R21-11#b392eb2d2026-10-14 - R22-11
rel:R22-11#b01162a42026-10-14 - R23-11
rel:R23-11#f88cee172026-10-14 - R24-11
rel:R24-11#867edbc12026-10-14 - R25-11
rel:R25-11#4c5b70ac2026-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 · 德文原文