0. 参考文档
Ref.1 AUTOSAR_EXP_LayeredSoftwareArchitecture.pdf
Ref.2 Communication\AUTOSAR_SWS_XCP.pdf
1. 概述
本文旨在介绍AUTOSAR标准中Com stack的基本情况,使读者对于AUTOSAR COM Stack有一个基本的认识。对于Com Stack中各个模块的具体情况,会在本专栏后续文章继续介绍。
2. Com stack
AUTOSAR 标准中, BSW Com stack 中涉及模块,自上向下 分别为Com, PDUR, EthIf, FlexRay 协议栈, CAN 协议栈, Lin协议栈。 分别为如下图中1, 2, 3,,4, 5处所示:
COM:
- Provides routing of individual signals or groups of signals between different I-PDUs
PDU Router:
- Provides routing of PDUs between different abstract communication controllers and upper layers
- Scale of the Router is ECU specific (down to no size if e.g. only one communication controller exists)
- Provides TP routing on-the-fly. Transfer of TP data is started before full TP data is buffered
3. ComM stack
AUTOSAR 标准中,ComM stack 用于管理Com通信,如使能,关闭通信功能。其包含如下模块:
Communication State Managers:
- Start and Shutdown the hardware units of the communication systems via the interfaces
- Control PDU groups
NM Coordinator:
- Synchronization of Network States of different communication channels connected to an ECU via the
network managements handled by the NM Coordinator
*State manager
- 此模块用于对应接口的状态机管理。
不同的数据链路层,使用不同的状态管理模块,如CAN 接口对应CanSM, Eth接口对应EthSM, Lin 接口对应Lin State Manager。
4. Dcm
Dcm,即Diagnostic Communication Manager,与Com stack强相关。PDUR将CANTP组装后的I-PDU直接传递给Dcm。
5. Xcp
统一标定协议(Universal Calibration Protocol), 与Com stack强相关。发送,接收报文直接与Interface层交互,如CanIf, EthIf.