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

  • 10
    点赞
  • 63
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 4
    评论
Autosar汽车领域的一个行业标准,旨在提供一种统一的架构和方法来开发汽车软件。Autosar标准定义了一整套规范和接口,在汽车电子系统的开发过程中起到了重要的作用。 CANNMAutosar标准中的一个模块,用于实现Controller Area Network(CAN)总线上的网络管理功能。CANNM模块负责对网络中所有的节点进行协调和监控,并提供一种规范的方法来实现节点之间的通信。 达芬奇是一个广泛使用的集成开发环境(IDE),在Autosar开发中也可以使用达芬奇来配置和生成代码。 要配置CANNM模块,我们可以使用达芬奇提供的Autosar工具链。首先,我们需要在达芬奇中创建一个新的Autosar项目,并选择相应的目标平台。然后,我们需要导入Autosar标准库和Autosar模型。 接下来,我们可以使用达芬奇提供的图形化界面来配置CANNM模块。在界面中,我们可以设置节点的名称、地址和通信参数等。我们还可以定义网络中的集线器节点和信号量节点,以及节点之间的通信关系。 完成配置后,我们可以将CANNM模块的配置信息导出为AUTOSAR XML文件,并生成C代码。达芬奇会根据配置信息自动生成相应的代码,包括初始化函数、发送和接收函数等。 最后,我们可以将生成的代码下载到目标平台上,并在车辆中进行实际测试和验证。 总之,达芬奇配置CANNM模块是在Autosar开发中的重要步骤之一,它使开发人员能够方便地配置和生成CANNM模块的代码,从而实现节点之间的高效通信。
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

心骗小白话

和我一起成长吧

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值