This commit is contained in:
2026-03-13 13:03:29 -04:00
parent 2a90b2d79d
commit efc57d658d
2 changed files with 34 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
*.user

View File

@@ -1,3 +1,34 @@
# dbc
# dbc parser skeleton
some experiments with parsing dbc files
A minimal DBC parser skeleton for the **FrameTap** project.
The purpose of this module is to read a DBC file and convert it into a simple internal representation that can later be:
- displayed as a tree
- connected to `Qt Model/View`
- used for signal selection
- extended toward runtime CAN frame decoding
---
## Overview
The architecture is intentionally simple:
1. `dbc_parser` reads a DBC file
2. parsed data is stored in `DbcDatabase`
3. `dbc_tree_builder` converts it into a `TreeNode` hierarchy
4. the resulting tree can later be adapted to `QAbstractItemModel`
This keeps the parser independent from Qt and makes it easier to test and evolve.
---
## Currently supported
### Frame definitions
Supported frame lines:
```text
BO_ 256 EngineData: 8 EEC1