DBC_File_Format_Documentation(6)
时间:2025-04-21
时间:2025-04-21
Vector 公司的 DBC 文件格式说明。这类DBC文件可以作为整车CAN网络的描述文件,可以描述各个CAN message(包括ID、传递参数的物理含义等)。
value_table = 'VAL_TABLE_' value_table_name {value_description}
';' ;
value_table_name = C_identifier ;
7.1 Value Descriptions (Value Encodings)
A value description defines a textual description for a single value. This value may either be a signal raw value transferred on the bus or the value of an environment variable in a remaining bus simulation.
value_description = double char_string ;
8 Message Definitions
The message section defines the names of all frames in the cluster as well as their properties and the signals transferred on the frames.
messages = {message} ;
message = BO_ message_id message_name ':' message_size trans-
mitter {signal} ;
message_id = unsigned_integer ;
The message's CAN-ID. The CAN-ID has to be unique within the DBC file. If the most significant bit of the CAN-ID is set, the ID is an extended CAN ID. The ex-tended CAN ID can be determined by masking out the most significant bit with the mask 0xCFFFFFFF.
message_name = C_identifier ;
The names defined in this section have to be unique within the set of messages.
message_size = unsigned_integer ;
The message_size specifies the size of the message in bytes.
transmitter = node_name | 'Vector__XXX' ;
The transmitter name specifies the name of the node transmitting the message. The sender name has to be defined in the set of node names in the node section. If the massage shall have no sender, the string 'Vector__XXX' has to be given here.
8.1 Signal Definitions
The message's signal section lists all signals placed on the message, their position in the message's data field and their properties.
signal = 'SG_' signal_name multiplexer_indicator ':' start_bit '|'
signal_size '@' byte_order value_type '(' factor ',' offset ')'
'[' minimum '|' maximum ']' unit receiver {',' receiver} ;
signal_name = C_identifier ;
The names defined here have to be unique for the signals of a single message.
上一篇:杭钢烧结污染整体防治实践