Autosar udp网络管理的翻译

文件名是:AUTOSAR_PRS_UDPNetworkManagementProtocol.pdf

1 Introduction and overview

本篇说明主要详细说明了Autosar UDP网络(UdpNm)的operational states, message format and semantics。

UdpNm可以与TCP/IP协议栈完美结合,也就是说不考虑同TCP/IP协议栈分离的物理层。

UdpNm是同硬件无关的协议,它可以在基于TCP/IP的系统上运行。UdpNm的主要目的是协调网络的normal operation and bus-sleep mode之间的通信。

而且它提供了一种可以检测当前所有节点的状态或者说是检测节点是否进入sleep状态的服务,该服务包含了一些核心并可供选择的特性。

Autosar udp网络管理的翻译

1.1 Limitations

  1. 在NM-Cluster中,一个UdpNm对应一个NM-Cluster,一个节点对应一个UdpNm。
  2. UdpNm只能应用在基于TCP/IP的系统中。

1.2 Dependencies to other protocol layers

UdpNm使用TCP/IP去发送和接收NM messages。

1.3 Dependencies to the upper layers

Upper layer使用UdpNm服务控制发送和接收NM messages功能的开关。

此外,upper layers利用这些接口可以知道UdpNm operational modes的变化。

2 Use Cases

No use case in UdpNm_PRS document.

3 Requirements Traceability

pass

4 Definition of terms and acronyms

Autosar udp网络管理的翻译

5 Protocol specification

5.1 Network management algorithm

AUTOSAR UdpNm是去中心化的,所以每一个网络节点是同等的。

AUTOSAR UdpNm algorithm主要基于周期性发送NM packets。NM packets是广播发送的,所以每个节点都能监听到。只要有节点发送NM packets就说明NM-cluster目前是wake态,或者说不让它进入sleep状态。如果有节点想要进入sleep,则需要停止发送NM packets。但是如果收到了其他节点发来的NM packets,必须推迟进入sleep。最后,如果经过一段时间,节点没有收到NM packets,所有的节点从transmition进入到sleep modes。

如果有节点需要进行bus-communication,它可以通过发送NM packets保持NM-cluster awake状态。

对于每一个节点,只要需要进行bus-communication,都得周期性发送NM messages。除了需要进行bus-communication之外,其他的情况都不要发送NM messages。

5.2 Network states

AUTOSAR UdpNm的Network states类似于状态机。包括requested和released。

ECU在网络进入Bus-Sleep Mode之前都需要持续通信。

理由:也许有其他的ECU一直在request。

[PRS_UdpNm_00104] If the network is requested, the UdpNm module shall change
network state to ‘requested’. (RS_Nm_00047)
[PRS_UdpNm_00105] If the network is released, the UdpNm module shall change
network state to ‘released’. (RS_Nm_00047)

5.3 Operational Modes

下面讲AUTOSAR UdpNm的operational modes。

[PRS_UdpNm_00092] The AUTOSAR UdpNm shall contain three operational modes
visible at the modules interface:
Network Mode
Prepare Bus-Sleep Mode
Bus-Sleep Mode
()

下图是UML状态图。绿色表示Mode变化过程,红色表示 error handling,蓝色表示optional node detection。
Autosar udp网络管理的翻译

5.3.1 Network Mode

[PRS_UdpNm_00094] The Network Mode shall consist of three internal states:
Repeat Message State
Normal Operation State
Ready Sleep State
()

[PRS_UdpNm_00095] When the Network Mode is entered from Bus-Sleep Mode or
Prepare Bus-Sleep Mode, the Repeat Message State shall be entered. ()

[PRS_UdpNm_00096] When the Network Mode is entered, the NM-Timeout Timer
UdpNmTimeoutTime shall be started. (RS_Nm_00149)

[PRS_UdpNm_00098] Upon successful reception of an NM message in Network
Mode, the NM-Timeout Timer shall be restarted. (RS_Nm_00149)

[PRS_UdpNm_00099] Upon transmission of an NM message in Network Mode, the
NM-Timeout Timer shall be restarted. (RS_Nm_00149)

5.3.1.1 Repeat Message State