在好例子网,分享、交流、成长!
您当前所在位置:首页Others 开发实例一般编程问题 → AUTOSAR_SWS_CANNetworkManagement

AUTOSAR_SWS_CANNetworkManagement

一般编程问题

下载此实例

实例介绍

【实例简介】AUTOSAR_SWS_CANNetworkManagement

【实例截图】

【核心代码】

Table of Contents
1 Introduction and functional overview 10
2 Acronyms and Abbreviations 11
3 Related documentation 13
3.1 Input documents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.2 Related specification . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
4 Constraints and assumptions 14
4.1 Limitations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
4.2 Specific limitations of the current release . . . . . . . . . . . . . . . . . 14
4.3 Applicability to automotive domains . . . . . . . . . . . . . . . . . . . . 15
5 Dependencies to other modules 16
5.1 Interfaces to modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
5.1.1 ComM, CanNm, J1939Nm, FrNm, UdpNm, generic bus spe-
cific NM layers and CDD . . . . . . . . . . . . . . . . . . . . 18
5.1.2 Error handling modules . . . . . . . . . . . . . . . . . . . . . 18
5.1.3 BSW Scheduler . . . . . . . . . . . . . . . . . . . . . . . . . 18
5.2 File structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
5.2.1 Code file structure . . . . . . . . . . . . . . . . . . . . . . . . 19
5.2.2 Header file structure . . . . . . . . . . . . . . . . . . . . . . . 19
6 Requirements traceability 20
7 Functional specification 39
7.1 Base functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
7.2 NM Coordinator functionality . . . . . . . . . . . . . . . . . . . . . . . . 40
7.2.1 Applicability of the NM Coordinator functionality . . . . . . . 40
7.2.2 Keeping coordinated busses alive . . . . . . . . . . . . . . . 41
7.2.3 Shutdown of coordinated busses . . . . . . . . . . . . . . . . 42
7.2.4 Coordination of nested sub-busses . . . . . . . . . . . . . . 44
7.2.5 Calculation of shutdown timers . . . . . . . . . . . . . . . . . 47
7.2.6 Synchronization Use Case 1 - Synchronous command . . . 48
7.2.7 Synchronization Use Case 2 - Synchronous initiation . . . . 48
7.2.8 Synchronization Use Case 3 - Synchronous network sleep . 49
7.2.8.1 Examples . . . . . . . . . . . . . . . . . . . . . . . . 50
7.3 Wakeup and abortion of the coordinated shutdown . . . . . . . . . . . 51
7.3.1 External network wakeup . . . . . . . . . . . . . . . . . . . . 51
7.3.2 Coordinated wakeup . . . . . . . . . . . . . . . . . . . . . . . 52
7.3.3 Abortion of the coordinated shutdown . . . . . . . . . . . . . 52
7.4 Partial Network functionality . . . . . . . . . . . . . . . . . . . . . . . . 54
7.4.1 PNC bit vector filter algorithm . . . . . . . . . . . . . . . . . . 54
7.4.2 Aggregation of PNC requests . . . . . . . . . . . . . . . . . . 56
6 of 133 Document ID 228: AUTOSAR_SWS_NetworkManagementInterface
Specification of Network Management Interface
AUTOSAR CP R21-11
7.4.2.1 Aggregation of internal and external Partial Network
Cluster . . . . . . . . . . . . . . . . . . . . . . . . . . 56
7.4.2.2 Aggregation of external Partial Network Cluster . . . 59
7.4.3 EIRA / ERA state and PNC reset timer handling . . . . . . . 60
7.4.4 Synchronized PNC shutdown functionality . . . . . . . . . . 62
7.5 Prerequisites of bus specific Network Management modules . . . . . . 63
7.5.1 Prerequisites for basic functionality . . . . . . . . . . . . . . 64
7.5.2 Prerequisites for NM Coordinator functionality . . . . . . . . 65
7.5.3 Prerequisites of Partial Network functionality . . . . . . . . . 67
7.5.3.1 Prerequisite for aggregation of PNC requests . . . . 67
7.5.3.2 Prerequisites for synchronized PNC shutdown func-
tionality . . . . . . . . . . . . . . . . . . . . . . . . . 67
7.5.4 Configuration of global parameters for bus specific networks 68
7.6 NM_BUSNM_LOCALNM . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.7 Multicore Distribution . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
7.8 Additional Functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
7.8.1 Nm_CarWakeUpIndication . . . . . . . . . . . . . . . . . . . 69
7.8.2 Nm_StateChangeNotification . . . . . . . . . . . . . . . . . . 69
7.9 Error classification . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.9.1 Development Errors . . . . . . . . . . . . . . . . . . . . . . . 70
7.9.2 Runtime Errors . . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.9.3 Transient Faults . . . . . . . . . . . . . . . . . . . . . . . . . 70
7.9.4 Production Errors . . . . . . . . . . . . . . . . . . . . . . . . 71
7.9.5 Extended Production Errors . . . . . . . . . . . . . . . . . . . 71
8 API specification 72
8.1 Imported types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
8.2 Type definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
8.2.1 Nm_ModeType . . . . . . . . . . . . . . . . . . . . . . . . . . 72
8.2.2 Nm_StateType . . . . . . . . . . . . . . . . . . . . . . . . . . 72
8.2.3 Nm_BusNmType . . . . . . . . . . . . . . . . . . . . . . . . . 73
8.2.4 Nm_ConfigType . . . . . . . . . . . . . . . . . . . . . . . . . 73
8.3 Function definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
8.3.1 Standard services provided by NM Interface . . . . . . . . . 74
8.3.1.1 Nm_Init . . . . . . . . . . . . . . . . . . . . . . . . . 74
8.3.1.2 Nm_PassiveStartUp . . . . . . . . . . . . . . . . . . 75
8.3.1.3 Nm_NetworkRequest . . . . . . . . . . . . . . . . . 75
8.3.1.4 Nm_NetworkRelease . . . . . . . . . . . . . . . . . . 76
8.3.2 Communication control services provided by NM Interface . 77
8.3.2.1 Nm_DisableCommunication . . . . . . . . . . . . . . 77
8.3.2.2 Nm_EnableCommunication . . . . . . . . . . . . . . 78
8.3.3 Partial Network services provided by NM Interface . . . . . . 79
8.3.3.1 Nm_RequestSynchronizedPncShutdown . . . . . . . 79
8.3.3.2 Nm_UpdateIRA . . . . . . . . . . . . . . . . . . . . . 80
8.3.4 Extra services provided by NM Interface . . . . . . . . . . . . 80
8.3.4.1 Nm_SetUserData . . . . . . . . . . . . . . . . . . . . 80
7 of 133 Document ID 228: AUTOSAR_SWS_NetworkManagementInterface
Specification of Network Management Interface
AUTOSAR CP R21-11
8.3.4.2 Nm_GetUserData . . . . . . . . . . . . . . . . . . . 81
8.3.4.3 Nm_GetPduData . . . . . . . . . . . . . . . . . . . . 82
8.3.4.4 Nm_RepeatMessageRequest . . . . . . . . . . . . . 83
8.3.4.5 Nm_GetNodeIdentifier . . . . . . . . . . . . . . . . . 84
8.3.4.6 Nm_GetLocalNodeIdentifier . . . . . . . . . . . . . . 85
8.3.4.7 Nm_CheckRemoteSleepIndication . . . . . . . . . . 85
8.3.4.8 Nm_GetState . . . . . . . . . . . . . . . . . . . . . . 86
8.3.4.9 Nm_GetVersionInfo . . . . . . . . . . . . . . . . . . . 87
8.3.4.10 Nm_PnLearningRequest . . . . . . . . . . . . . . . . 88
8.4 Call-back notifications . . . . . . . . . . . . . . . . . . . . . . . . . . . 88
8.4.1 Standard Call-back notifications . . . . . . . . . . . . . . . . 89
8.4.1.1 Nm_NetworkStartIndication . . . . . . . . . . . . . . 89
8.4.1.2 Nm_NetworkMode . . . . . . . . . . . . . . . . . . . 89
8.4.1.3 Nm_BusSleepMode . . . . . . . . . . . . . . . . . . 90
8.4.1.4 Nm_PrepareBusSleepMode . . . . . . . . . . . . . . 90
8.4.1.5 NM_SynchronizeMode . . . . . . . . . . . . . . . . . 91
8.4.1.6 Nm_RemoteSleepIndication . . . . . . . . . . . . . . 91
8.4.1.7 Nm_RemoteSleepCancellation . . . . . . . . . . . . 92
8.4.1.8 Nm_SynchronizationPoint . . . . . . . . . . . . . . . 93
8.4.1.9 Nm_CoordReadyToSleepIndication . . . . . . . . . . 93
8.4.1.10 Nm_CoordReadyToSleepCancellation . . . . . . . . 94
8.4.1.11 Nm_ForwardSynchronizedPncShutdown . . . . . . . 94
8.4.1.12 Nm_PncBitVectorRxIndication . . . . . . . . . . . . . 95
8.4.1.13 Nm_PncBitVectorTxIndication . . . . . . . . . . . . . 96
8.4.2 Extra Call-back notifications . . . . . . . . . . . . . . . . . . 96
8.4.2.1 Nm_PduRxIndication . . . . . . . . . . . . . . . . . . 97
8.4.2.2 Nm_StateChangeNotification . . . . . . . . . . . . . 97
8.4.2.3 Nm_RepeatMessageIndication . . . . . . . . . . . . 98
8.4.2.4 Nm_TxTimeoutException . . . . . . . . . . . . . . . 99
8.4.2.5 Nm_CarWakeUpIndication . . . . . . . . . . . . . . . 99
8.5 Scheduled functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
8.5.1 Nm_MainFunction . . . . . . . . . . . . . . . . . . . . . . . . 100
8.6 Expected interfaces . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
8.6.1 Mandatory Interfaces . . . . . . . . . . . . . . . . . . . . . . 100
8.6.2 Optional Interfaces . . . . . . . . . . . . . . . . . . . . . . . . 101
8.6.3 Configurable Interfaces . . . . . . . . . . . . . . . . . . . . . 103
8.6.3.1 NmCarWakeUpCallout . . . . . . . . . . . . . . . . . 103
8.7 Version Check . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
9 Sequence diagrams 104
9.1 Basic functionality . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
9.2 Seq of NM Coordinator functionality . . . . . . . . . . . . . . . . . . . . 104
9.3 Sequence of Partial network functionality . . . . . . . . . . . . . . . . . 106
10 Configuration specification 108
10.1 How to read this chapter . . . . . . . . . . . . . . . . . . . . . . . . . . 108
10.2 Configuration parameters . . . . . . . . . . . . . . . . . . . . . . . . . 108
8 of 133 Document ID 228: AUTOSAR_SWS_NetworkManagementInterface
Specification of Network Management Interface
AUTOSAR CP R21-11
10.2.1 Nm . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 109
10.3 Global configurable parameters . . . . . . . . . . . . . . . . . . . . . . 109
10.3.1 NmGlobalConfig . . . . . . . . . . . . . . . . . . . . . . . . . 109
10.3.2 NmGlobalConstants . . . . . . . . . . . . . . . . . . . . . . . 111
10.3.3 NmGlobalProperties . . . . . . . . . . . . . . . . . . . . . . . 112
10.3.4 NmGlobalFeatures . . . . . . . . . . . . . . . . . . . . . . . . 115
10.4 Channel configurable parameters . . . . . . . . . . . . . . . . . . . . . 122
10.4.1 NmChannelConfig . . . . . . . . . . . . . . . . . . . . . . . . 122
10.4.2 NmPnFilterMaskByte . . . . . . . . . . . . . . . . . . . . . . 129
10.4.3 NmBusType . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
10.4.4 NmGenericBusNmConfig . . . . . . . . . . . . . . . . . . . . 130
10.4.5 NmStandardBusNmConfig . . . . . . . . . . . . . . . . . . . 131
10.5 Published Information . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
A Not applicable requirements 133

网友评论

发表评论

(您的评论需要经过审核才能显示)

查看所有0条评论>>

小贴士

感谢您为本站写下的评论,您的评论对其它用户来说具有重要的参考价值,所以请认真填写。

  • 类似“顶”、“沙发”之类没有营养的文字,对勤劳贡献的楼主来说是令人沮丧的反馈信息。
  • 相信您也不想看到一排文字/表情墙,所以请不要反馈意义不大的重复字符,也请尽量不要纯表情的回复。
  • 提问之前请再仔细看一遍楼主的说明,或许是您遗漏了。
  • 请勿到处挖坑绊人、招贴广告。既占空间让人厌烦,又没人会搭理,于人于己都无利。

关于好例子网

本站旨在为广大IT学习爱好者提供一个非营利性互相学习交流分享平台。本站所有资源都可以被免费获取学习研究。本站资源来自网友分享,对搜索内容的合法性不具有预见性、识别性、控制性,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,平台无法对用户传输的作品、信息、内容的权属或合法性、安全性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论平台是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二与二十三条之规定,若资源存在侵权或相关问题请联系本站客服人员,点此联系我们。关于更多版权及免责申明参见 版权及免责申明

;
报警