Attributes

Attributes can be specified for BU_Nodes, BO_Messages, and SG_Signals.

Syntax

Instance

Global
BA_ "AttributeName" "<Value>";
Node
BA_ "NodeAttributeName" BU_ NodeName "<Value>";
Message
BA_ "MessageAttributeName" BO_ 123 "<Value>";
Signal
BA_ "SignalAttributeName" SG_ SignalName "<Value>";
  • AttributeName must be defined before it can be used (see below)

Definition

Global
BA_DEF_ "<AttributeName>" <DataType> [Config];
Node
BA_DEF_ "<NodeAttributeName>" <DataType> [Config];
Message
BA_DEF_ "<MessageAttributeName>" <DataType> [Config];
Signal
BA_DEF_ "<SignalAttributeName>" <DataType> [Config];

Default Value

dbc
BA_DEF_DEF_ "<AttributeName>" "<DefaultValue>";

Data Types

NameDescriptionFormat
intdecimal integer<minimum> <maximum>
floatfloating point<minimum> <maximum>
stringstring literal"StandardCAN"
enumenumerated values"Value1", "Value2", ...

While the symbols are somewhat ambiguous, all attributes have 3 distinct parts:

  • BA_ The Attribute. Specifies type, NodeName/CAN-ID/SignalName, and value(s).
  • BA_DEF_ Attribute Definition. Specifies the type (BU_|BO_|SG_), name, data type, and value configuration.
  • SG_ Attribute Default Definition. Specifies the default value for the attribute if none is given.

Scoped Attributes

There are three main scopes with which attributes are most commonly defined: Global (or Network), Messages, and Signals.


Message Attributes

These are commonly used Message Attributes, which are widely accepted by industry software.

Definitions

Attribute NameTypeDefinition
VFrameFormatenumBA_DEF_ BO_ "VFrameFormat" ENUM "StandardCAN","ExtendedCAN","StandardFD","ExtendedFD";
SystemMessageLongSymbolstringBA_DEF_ BO_ "SystemMessageLongSymbol" STRING;
GenMsgCycleTimeintBA_DEF_ BO_ "GenMsgCycleTime" INT 0 10000;
GenMsgStartDelayTimeintBA_DEF_ BO_ "GenMsgStartDelayTime" INT <min=0> <max=10000>;
GenMsgDelayTimeintBA_DEF_ BO_ "GenMsgDelayTime" INT <min=0> <max=10000>;
GenMsgSendTypeenumBA_DEF_ BO_ "GenMsgSendType" ENUM "cyclic","triggered","cyclicAndTriggered","none";

Defaults

Attribute NameTypeDefault Value
VFrameFormatenumBA_DEF_DEF_ "VFrameFormat" "StandardCAN";
SystemMessageLongSymbolstringBA_DEF_DEF_ "SystemMessageLongSymbol";
GenMsgCycleTimeintBA_DEF_DEF_ "GenMsgCycleTime" 0;
GenMsgStartDelayTimeintBA_DEF_DEF_ "GenMsgStartDelayTime" 0;
GenMsgDelayTimeintBA_DEF_DEF_ "GenMsgDelayTime" 0;
GenMsgSendTypeenumBA_DEF_DEF_ "GenMsgSendType" "none";

Signal Attributes

These are commonly used Signal Attributes, which are widely accepted by industry software.

Definitions

Attribute NameTypeDefinition
SigTypeenumBA_DEF_ SG_ "SigType" ENUM "Default","Range","RangeSigned","Control","DTC";
SystemSignalLongSymbolstringBA_DEF_ SG_ "SystemSignalLongSymbol" STRING;
GenSigSendTypeenumBA_DEF_ SG_ "GenSigSendType" ENUM "none","Cyclic","OnWrite","OnChange";
GenSigILSupportenumBA_DEF_ SG_ "GenSigILSupport" ENUM "Yes","No";
GenSigCycleTimeintBA_DEF_ SG_ "GenSigCycleTime" INT <min=0> <max=10000> ;
GenSigDelayTimeintBA_DEF_ SG_ "GenSigDelayTime" INT <min=0> <max=10000> ;
GenSigStartDelayTimeintBA_DEF_ SG_ "GenSigStartDelayTime" INT <min=0> <max=10000> ;
GenSigStartValueintBA_DEF_ SG_ "GenSigStartValue" INT <min=0> <max>;
GenSigEVNamestringBA_DEF_ SG_ "GenSigEVName" STRING;

Defaults

Attribute NameTypeDefault
SigTypeenumBA_DEF_DEF_ "SigType" "Default";
SystemSignalLongSymbolstringBA_DEF_DEF_ "SystemSignalLongSymbol" "";
GenSigSendTypeenumBA_DEF_DEF_ "GenSigSendType" "none";
GenSigILSupportenumBA_DEF_DEF_ "GenSigILSupport" "Yes";
GenSigCycleTimeintBA_DEF_DEF_ "GenSigCycleTime" 0;
GenSigDelayTimeintBA_DEF_DEF_ "GenSigDelayTime" 0;
GenSigStartDelayTimeintBA_DEF_DEF_ "GenSigStartDelayTime" 0;
GenSigStartValueintBA_DEF_DEF_ "GenSigStartValue" 0;
GenSigEVNamestringBA_DEF_DEF_ "GenSigEVName" "Env@<Node>_@<Signal>";