dart_dbc_parser 2.0.0 copy "dart_dbc_parser: ^2.0.0" to clipboard
dart_dbc_parser: ^2.0.0 copied to clipboard

A package can be used to decode and encode CAN messages with the use of a DBC file.

This package can be used to decode and encode CAN messages with the use of a DBC file.

Features #

DBC parsing, CAN decoding, CAN encoding

Usage #

You first have to create a DBC database

File file1 = File("Path to DBC file");
...
File filen = File("Path to DBC file");
DBCDatabase can = await DBCDatabase.loadFromFile([file1, ..., filen]);

Then you can decode byte level can messages

Uint8List bytes = Uint8List(10);
...
List<MapEntry<int, Map<String, num>>> decoded = can.decode(bytes);

Or encode them

List<MapEntry<int, Map<String, num>>> messages = [];
...
Uint8List encoded = can.encode(messages);
3
likes
160
points
26
downloads

Publisher

unverified uploader

Weekly Downloads

A package can be used to decode and encode CAN messages with the use of a DBC file.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

More

Packages that depend on dart_dbc_parser