DaVinci的DBC配置参考

  在使用DaVinci工具时,我们要对DBC进行预处理。虽然DBC和DaVinci都来自Vector,但是DBC不一定会严格遵守/符合Vector/Davinci的相关要求。

DBC配置项:

1、GenMsgILSupport值

  应用层的相关值要定义为 Yes;
  NM/Diag相关的报文需要定义为No;

2、诊断参数:

  DiagState Functional (UDS) request CanTp Normal addressing will be used
  DiagRequest Physical Request CanTp Normal addressing will be used
  DiagResponse Physical Response CanTp Normal addressing will be used

诊断回复配置
在这里插入图片描述

诊断物理寻址请求
在这里插入图片描述

诊断功能寻址请求
在这里插入图片描述

3、节点配置须知

  DBC的诊断相关必须配置收发节点,否则DaVinci不予支持,会丢失CANTP的配置;

4、网络管理须知

  NmAsrNode Yes/No
  NmNode 配置为 Yes/No

其他参考:

GenMsgILSupportYes
“MsgType”“”
GenMsgSendTypeCyclic
NmAsrNodeNo
DiagStateFunctional (UDS) request CanTp Normal addressing will be used
DiagRequestRequest CanTp Normal addressing will be used
DiagResponsePhysical Response CanTp Normal addressing will be used
DiagFdOnlyNo
ECU will respond to diag requests in both formats CAN 2.0 and CAN-FD
Yes
ECU will respond to diag requests in CANFD format only
BusTypeCAN FD
VFrameFormatStandardCAN_FD

属性参考:

Attribute NameObject TypeTypeValues and Ranges (Bold = default)Description
Baud rateNetworkInteger0…500000…1000000CAN Baud rate of the network in bits/s.
SamplePointMinNetworkInteger50…75…100For details please refer to [6]: “Sample Point”. This parameter is optional.
SamplePointMaxNetworkInteger50…90…100For details please refer to [6]: “Sample Point”. This parameter is optional.
SyncJumpWidthMinNetworkInteger1…4For details please refer to [6]: “Resynchronization Jump Width”. This parameter is optional.
SyncJumpWidthMaxNetworkInteger1…4For details please refer to [6]: “Resynchronization Jump Width”. This parameter is optional.
NBTMinNetworkInteger6…8…25For details please refer to [6]: “Number of Time Quanta”. This parameter is optional.
NBTMaxNetworkInteger8…21…25For details please refer to [6]: “Number of Time Quanta”. This parameter is optional.
ManufacturerNetworkStringVectorIndicates the OEM. Value must be “Vector”.
DBNameNetworkStringCANSpecifies the name of the network. Must be different for any CAN, LIN and FlexRay network within one ECU.
BusTypeNetworkStringCAN/CAN FDDefinition of CAN-2.0 and CAN-FD networks. Must be set to “CAN FD”, if there is at least one CAN-FD message.
VFrameFormatMessageEnumCAN Standard
CAN Extended
CAN FD Standard
CAN FD Extended
Indicates kind of CAN message. Hint:This attribute is available for each message without declaration in attribute definitions. Its display text is “ID-Format” or “Type”.

参考文献

TechnicalReference_DbcRules_Vector.pdf
[AutoSar]BSW_Com03 DBC详解 (一)
[AutoSar]BSW_Com03 DBC详解 (二)
AUTOSAR实战教程 - 通信协议栈CAN_CANIF_PDUR_CANTP_COM_XCP_ECUC配置一网打尽

  • 15
    点赞
  • 14
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值