在使用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
其他参考:
GenMsgILSupport | Yes |
---|---|
“MsgType” | “” |
GenMsgSendType | Cyclic |
NmAsrNode | No |
DiagState | Functional (UDS) request CanTp Normal addressing will be used |
DiagRequest | Request CanTp Normal addressing will be used |
DiagResponse | Physical Response CanTp Normal addressing will be used |
DiagFdOnly | No 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 |
BusType | CAN FD |
VFrameFormat | StandardCAN_FD |
属性参考:
Attribute Name | Object Type | Type | Values and Ranges (Bold = default) | Description |
---|---|---|---|---|
Baud rate | Network | Integer | 0…500000…1000000 | CAN Baud rate of the network in bits/s. |
SamplePointMin | Network | Integer | 50…75…100 | For details please refer to [6]: “Sample Point”. This parameter is optional. |
SamplePointMax | Network | Integer | 50…90…100 | For details please refer to [6]: “Sample Point”. This parameter is optional. |
SyncJumpWidthMin | Network | Integer | 1…4 | For details please refer to [6]: “Resynchronization Jump Width”. This parameter is optional. |
SyncJumpWidthMax | Network | Integer | 1…4 | For details please refer to [6]: “Resynchronization Jump Width”. This parameter is optional. |
NBTMin | Network | Integer | 6…8…25 | For details please refer to [6]: “Number of Time Quanta”. This parameter is optional. |
NBTMax | Network | Integer | 8…21…25 | For details please refer to [6]: “Number of Time Quanta”. This parameter is optional. |
Manufacturer | Network | String | Vector | Indicates the OEM. Value must be “Vector”. |
DBName | Network | String | CAN | Specifies the name of the network. Must be different for any CAN, LIN and FlexRay network within one ECU. |
BusType | Network | String | CAN/CAN FD | Definition of CAN-2.0 and CAN-FD networks. Must be set to “CAN FD”, if there is at least one CAN-FD message. |
VFrameFormat | Message | Enum | CAN 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配置一网打尽