dbc library

DBC file parsing and CAN signal decoding/encoding. Pure Dart; works with frames from any CanBus.

import 'package:can_bus_toolkit/dbc.dart';

final db = DbcDatabase.parse(dbcText);
final decoded = db.decode(frame);
print(decoded?['EngineSpeed']);

Classes

DbcDatabase
A parsed DBC file: decodes frames into signals and encodes signals into frames.
DbcMessage
A message definition (BO_).
DbcMultiplexed
The signal (mN) is present only when the multiplexor equals value.
DbcMultiplexing
Multiplexing role of a signal.
DbcMultiplexor
The signal (M) selects which multiplexed signals are present.
DbcNode
A network node (BU_).
DbcNotMultiplexed
The signal is always present.
DbcSignal
A signal definition (SG_).
DecodedMessage
A frame decoded with a DBC message definition.
DecodedSignal
One decoded signal value.

Enums

DbcByteOrder
Bit order of a DBC signal.
DbcValueType
How the raw bits of a signal are interpreted.

Exceptions / Errors

DbcParseException
A DBC file could not be parsed.