AUTOSAR之CanNm全局配置概述

目录

1.英文术语

2.缩写表 

3.CanNm全局配置参数

     CanNm

CanNmGlobalConfig

3.1.CanNmBusLoadReductionEnabled

3.2.CanNmBusSynchronizationEnabled

3.3.CanNmComControlEnabled

3.4.CanNmComUserDataSupport

3.5.CanNmCoordinatorSyncSupport

3.6.CanNmDevErrorDetect

3.7.CanNmDynamicPncToChannelMappingSupport

3.8.CanNmGlobalPnSupport

3.9.CanNmImmediateRestartEnabled

3.10.CanNmImmediateTxConfEnabled

3.11.CanNmMainFunctionPeriod

3.12.CanNmPassiveModeEnabled

3.13.CanNmPduRxIndicationEnabled

3.14.CanNmPnShutdownMessageRetransmissionDuration

3.15.CanNmPnSyncShutdownErrorReactionEnabled

3.16.CanNmRemoteSleepIndEnabled

3.17.CanNmStateChangeIndEnabled

3.18.CanNmUserDataEnabled

3.19.CanNmVersionInfoApi


1.英文术语

英文术语翻译
Network Management网络管理
Source Node Identifier

简称SNI,节点源地址

Control Bit Vector

简称CBV,网络管理报文中的控制字节

PDU transmission ability is disabled

意思是网络管理报文传输功能已被CanNm_DisableCommunication服务禁用

Repeat Message Request Bit Indication

重复请求报文指示,CanNm_RxIndication通过识别接收到网络管理报文(NM PDU)中控制字节(CBV)的重复报文请求位(Repeat Message Request Bit)来确认该指示

2.缩写表 

缩写解释
CanIfCAN接口(CAN Interface)的缩写
NM PDU

网络管理报文

CanNmCAN网络管理(CAN Network Management)的缩写
CBV控制字节(网络管理报文中的第二个字节)
CWU整车唤醒(Car Wakeup)
NM网络管理(Network Management)
SNI节点源地址(Source Node Identifier)
PNC部分网络集群(Partial Network Cluster)
PNI部分网络信息(Partial Network Information)
PNL部分网络学习(Partial Network Learning)
SWS全称Software specification,意思是软件规范

3.CanNm全局配置参数

CanNm

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00087:

Module Name

模块名

CanNm

Module Description

模块描述

CanNm模块的配置参数

Post-Build Variant Support

true

Supported Config Variants

支持的配置变量

VARIANT-LINK-TIME,VARIANT-POST-BUILD,VARIANT-PRE-COMPILE

Included Containers

CanNm模块配置类

Container Name

配置类名

MultiplicityScope/Dependency

CanNmGloalConfig

CanNm全局配置

1(唯一)

此CanNm模块配置类是用来配置CanNm模块的全局配置参数的。

这个配置类和其内部包含的配置参数映射到C语言设置CanNm_ConfigType类型的数据中去,最终传递到CanNm_Init函数中。

CanNmGlobalConfig

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00001:

Container Name

配置类名

CanNmGlobalConfig

Parent Container

父系(被包含在)

CanNm

Description

描述

此CanNm模块配置类是用来配置CanNm模块的全局配置参数的。

这个配置类和其内部包含的配置参数映射到C语言设置CanNm_ConfigType类型的数据中去,最终传递到CanNm_Init函数中。

Configuration Parameters

配置参数(下面我们将介绍此配置类的配置参数)

3.1.CanNmBusLoadReductionEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00040:

Name

命名

CanNmBusLoadReductionEnabled

Parent Container

父系(被包含在)

CanNmGlobalConfig

Description

描述

预处理开关,用于启用降低总线负载机制

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--(根据需求配置)

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

所有变量

Link time--
Post-build time--
Scope/Dependency

scope:local

dependency: CanNmBusLoadReductionEnabled = false if CanNmPassiveModeEnabled == true or CanNmGlobalPnSupport == true

相关性:如果CanNmPassiveModeEnabled == true(支持被动模式)或CanNmGlobalPnSupport == true(启用部分网络),则CanNmBusLoadReductionEnabled = false(不启用降低总线负载机制)。

3.2.CanNmBusSynchronizationEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00006:

Name

命名

CanNmBusSynchronizationEnabled

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理开关,启用总线同步支持。此功能仅适用于网关节点

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--(根据需求设置)

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scope:ECU

适用范围:ECU

dependency: If (CanNmPassiveModeEnabled ==False) then Equal(NmBusSynchronizationEnabled) else Equal(False)

相关性:如果CanNmPassiveModeEnabled==False(不支持被动模式),则可配置总线同步支持是启用还是不启用;如果如果CanNmPassiveModeEnabled==true(支持被动模式),则强制不启用总线同步支持

3.3.CanNmComControlEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00013:

Name

命名

CanNmComControlEnabled

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理开关,用于配置是否支持ISO14229通信控制服务。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--(根据需求配置)

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scpope:ECU

适用范围:ECU

dependency: If (CanNmPassiveModeEnabled == False) then Equal(NmComControlEnabled) else Equal(False)

相关性:如果CanNmPassiveModeEnabled==False(不支持被动模式),则可配置是否支持ISO14229通信控制服务,如果如果CanNmPassiveModeEnabled==true(支持被动模式),则强制不支持ISO14229通信控制服务。

3.4.CanNmComUserDataSupport

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00044:

Name

命名

CanNmComUserDataSupport

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理开关(C语言宏定义),用于启用Com用户数据的发送路径。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--(根据需求配置)

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scope: ECU

适用范围:ECU

dependency: If CanNmPassiveModeEnabled == True OR if all bytes of the NM PDU are used for NM System Bytes and for the PNC bit vector and no space is left for user data, then CanNmComUserDataSupport shall be set to False.

相关性:如果CANNMPassessModeEnabled==True(支持被动模式),或者如果NM PDU的所有字节用于NM系统字节和PNC位向量,并且没有为用户数据留下空间,则CanNmComUserDataSupport应设置为False。

3.5.CanNmCoordinatorSyncSupport

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00080:

Name

命名

CanNmCoordinatorSyncSupport

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

启用/禁用协调器同步支持。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scope:ECU

dependency: CanNmCoordinatorSyncSupport has to be set to FALSE if CanNmPassiveModeEnabled is set to TRUE.

相关性:如果CanNmPassiveModeEnabled设置为TRUE,则必须将CanNmCoordinatorSyncSupport设置为FALSE。

3.6.CanNmDevErrorDetect

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00002:

Name

命名

CanNmDevErrorDetect

Parent Container

父系(被包含在)

CanNmGlobalConfig

Description

描述

打开或关闭开发错误检测和通知。

  • true:打开开发错误检测和通知
  • false:关闭开发错误检测和通知

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

false

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

所有变量

Link time--
Post-build time--
Scope/Dependencyscope:local

3.7.CanNmDynamicPncToChannelMappingSupport

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00094:

Name

命名

CanNmDynamicPncToChannelMappingSupport

Parent Container

父系(被包含在)

CanNmGlobalConfig

Description

描述

预处理开关,用来使能动态PNC到通道映射处理。

False:动态PNC到通道的映射不使能

True:动态PNC到通道的映射使能

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--(根据需求配置)

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

所有变量

Link time--
Post-build time--
Scope/Dependency

scope:ECU

dependency: CanNmDynamicPncToChannelMappingSupport == TRUE only allowed if CanNmGlobalPnSupport == TRUE and CanNmPassiveModeEnabled == FALSE

相关性:仅当CanNmGlobalPnSupport ==TRUE且CanNmPassiveModeEnabled==FALSE时,才允许CanNmDynamicPncToChannelMappingSupport==TRUE

3.8.CanNmGlobalPnSupport

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00086:

Name

命名

CanNmGlobalPnSupport

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理开关(C语言宏定义),用于启用部分网络(partial networking)。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

false

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependencyscope:local

3.9.CanNmImmediateRestartEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00009:

Name

命名

CanNmImmediateRestartEnabled

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理开关,用于在准备总线休眠模式下根据总线通信请求立即传输NM PDU。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--(根据需求配置)

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scope:local

范围:

dependency:

依赖性:如果CannPassiveModeEnabled==true,则不得定义

3.10.CanNmImmediateTxConfEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00041:

Name

命名

CanNmImmediateTxConfEnabled

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

启用/禁用即时发送确认。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scope:ECU

适用范围:ECU

dependency:CanNmImmediateTxconfEnabled shall not be enabled if CanNmPasiveModeEnabled is enabled.

相关性:如果启用了CanNmPasiveModeEnabled,则不应启用CanNmImmediateTxConfEnabled。

3.11.CanNmMainFunctionPeriod

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00032:

Name

命名

CanNmMainFunctionPeriod

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

CanNm_MainFunction函数的调用周期。

Multiplicity

多样性

1

Type

类型

EcucFloatParamDef

Range

范围

【0..INF】

Default value

默认值

--

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

VARIANT-PRE-COMPILE

Link timeXVARIANT-LINK-TIME,VARIANT-POST-BUILD
Post-build time--
Scope/Dependency

scope:local

3.12.CanNmPassiveModeEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00010:

Name

命名

CanNmPassiveModeEnabled

Parent Container

父系(被包含在)

CanNmGlobalConfig

Description

描述

预处理开关(C语言宏定义),用于配置是否支持被动模式(Passive Mode)

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--(根据需求配置)

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

所有变量

Link time--
Post-build time--
Scope/Dependencyscope:ECU

3.13.CanNmPduRxIndicationEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00011:

Name

命名

CanNmPduRxIndicationEnabled

Parent Container

父系(被包含在)

CanNmGlobalConfig

Description

描述

预处理开关,用于启用PDU接收指示。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--(根据需求配置)

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

所有变量

Link time--
Post-build time--
Scope/Dependency

scope:ECU

dependency: calculationFormula = Equal(NmPduRxIndicationEnabled)

3.14.CanNmPnShutdownMessageRetransmissionDuration

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00098:

Name

命名

CanNmPnShutdownMessageRetransmissionDuration

Parent Container

父系(被包含在)

CanNmGlobalConfig

Description

描述

指定PN关机消息重传阶段的持续时间(秒),要PN关机消息无法成功发送且重传定时器正在运行,则应在每个受影响的NM通道上执行重传。该值应为CanNmMainFunctionPeriod的多重积分

Multiplicity

多样性

0..1

Type

类型

EcucFloatParamDef

Range

范围

【0.001..65.535】

Default value

默认值

--(根据需求配置)

Post-Build Variant Multiplicity

false

Post-Build Variant Value

false

Multiplicity Configuration Class

Pre-compile timeX

VARIANT-PRE-COMPILE

Link timeXVARIANT-LINK-TIME,VARIANT-POST-BUILD
Post-build time--

Value Configuration Class

值配置类型

Pre-compile timeX

VARIANT-PRE-COMPILE

Link timeXVARIANT-LINK-TIME,VARIANT-POST-BUILD
Post-build time--
Scope/Dependency

scope:local

dependency: * Only valid if CanNmSynchronizedPncShutdownEnabled == TRUE * CanNmPnShutdownMessageRetransmissionDuration ≤ CanNmPnResetTime

3.15.CanNmPnSyncShutdownErrorReactionEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00096:

Name

命名

CanNmPnSyncShutdownErrorReactionEnabled

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理器开关,如果顶层PNC协调器在NM信道上接收到PN关闭消息,所述NM信道指由PNC网关主动协调的通信信道。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scope: local

dependency: This parameter shall only be set to TRUE if CanNmSynchronizedPncShutdownEnabled is set to TRUE on at least one channel

3.16.CanNmRemoteSleepIndEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00055:

Name

命名

CanNmRemoteSleepIndEnabled

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理开关,用于启用远程睡眠指示。此功能仅适用于网关节点。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scope: local

dependency: calculationFormula = If (CanNmPassiveModeEnabled == False) then Equal(NmRemoteSleepIndEnabled) else Equal(False)

3.17.CanNmStateChangeIndEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00012:

Name

命名

CanNmStateChangeIndEnabled

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理开关,用于启用CAN NM状态更改通知。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

--

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scope: local

dependency: calculationFormula = Equal(NmStateChangeIndEnabled)

3.18.CanNmUserDataEnabled

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00004:

Name

命名

CanNmUserDataEnabled

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理开关,用于确定是否启用用户数据(User Data)

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

false(不启用)

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scpope:ECU

适用范围:ECU

dependency: CanNmUserDataEnabled shall be set to FALSE, if all bytes of the NM PDU are used for NM System Bytes and for the PNC bit vector and no space is left for user data. Otherwise the parameter shall be set according the following formular: calculationFormula =Equal(NmUserDataEnabled).

相关性:如果NM PDU的所有字节用于NM系统字节(SNI+CBV)PNC位向量,并且没有为用户数据留下空间,则CanNmUserDataEnabled应设置为FALSE。

3.19.CanNmVersionInfoApi

SWS Item

软件规范项(SWS编号)

ECUC_CanNm_00003:

Name

命名

CanNmVersionInfoApi

Parent Container

被包含在

CanNmGlobalConfig

Description

描述

预处理开关,用于启用版本信息API。

Multiplicity

多样性

1(唯一)

Type

类型

EcucBooleanParamDef

Default value

默认值

false

Post-Build Variant Value

false

Value Configuration Class

值配置类型

Pre-compile timeX

All Variants

Link time--
Post-build time--
Scope/Dependency

scope: ECU


版权声明:本文为qq_40242571原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。