# rbei-etas/busmaster architecture

> Architecture diagram of the GitHub repository rbei-etas/busmaster, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rbei-etas/busmaster
- Repository: https://github.com/rbei-etas/busmaster

## Overview

BUSMASTER is a Windows application for working with automotive communication buses, including CAN and LIN. The documented user path is to run the application in simulation mode or connect real CAN hardware after installing its vendor driver. Internally, the tree and sampled source show application/UI and plugin management, bus-driver interfaces, simulation and replay areas, and network-database abstractions. The README does not describe detailed runtime flows; arrows are limited to relationships visible in the README or supplied source references and excerpts.

Main entry points: [`Sources/BUSMASTER/Application/Application.cpp`](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/Application.cpp) (BUSMASTER App), [`Sources/BUSMASTER/Application/BusmasterPluginManager.cpp`](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/BusmasterPluginManager.cpp) (Plugin Manager), [`Sources/BUSMASTER/Application/ClientManager.cpp`](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/ClientManager.cpp) (Client Manager), [`Sources/Kernel/BusmasterDriverInterface/DIL_J1939/NodeConManager.cpp`](https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDriverInterface/DIL_J1939/NodeConManager.cpp) (J1939 Connections)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application"]
  node_application["BUSMASTER App<br/>[Application.cpp]"]
  node_plugin["Plugin Manager"]
  node_ui["UI Creators<br/>[UICreator.cpp]"]
  node_client["Client Manager<br/>[ClientManager.cpp]"]
end

subgraph group_bus["Bus Interfaces"]
  node_driver["CAN Driver API<br/>[BaseDIL_CAN.h]"]
  node_controller["CAN Controller API"]
  node_j1939["J1939 Connections<br/>[NodeConManager.cpp]"]
end

subgraph group_sim["Simulation and Replay"]
  node_simulation["Node Simulation<br/>[ExecuteManager.cpp]"]
  node_sim_context["Simulation Context<br/>[GlobalObj.h]"]
  node_replay["Replay Manager<br/>[ReplayManager.cpp]"]
end

subgraph group_data["Network Data"]
  node_network_api["Network Service API"]
  node_database_loader["Database Loader<br/>[AccessDBManager.h]"]
  node_cluster_model["Cluster Model<br/>[ICluster.h]"]
  node_lin_database["LIN Database Manager"]
end

node_user(("Operator"))

node_user -->|"uses"| node_application
node_plugin -->|"creates UI"| node_ui
node_application -.->|"uses interface"| node_driver
node_simulation -->|"uses context"| node_sim_context
node_j1939 -.->|"signals status"| node_network_api
node_database_loader -.->|"loads clusters"| node_cluster_model
node_client -.->|"extracts signals"| node_application

click node_application "https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/Application.cpp"
click node_plugin "https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/BusmasterPluginManager.cpp"
click node_ui "https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/UI/UICreator.cpp"
click node_client "https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/ClientManager.cpp"
click node_driver "https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDriverInterface/Include/BaseDIL_CAN.h"
click node_controller "https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDriverInterface/Include/BaseDIL_CAN_Controller.h"
click node_j1939 "https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDriverInterface/DIL_J1939/NodeConManager.cpp"
click node_simulation "https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/NodeSimEx/ExecuteManager.cpp"
click node_sim_context "https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/NodeSimEx/GlobalObj.h"
click node_replay "https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Replay/ReplayManager.cpp"
click node_network_api "https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDBNetwork/Include/IBMNetWorkGetService.h"
click node_database_loader "https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDBNetwork/AccessDBManager.h"
click node_cluster_model "https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/ProtocolDefinitions/ICluster.h"
click node_lin_database "https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/LDFEditor/LDFDatabaseManager.cpp"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_application,node_plugin,node_ui,node_client toneBlue
class node_driver,node_controller,node_j1939 toneAmber
class node_simulation,node_sim_context,node_replay toneMint
class node_network_api,node_database_loader,node_cluster_model,node_lin_database toneRose
class node_user toneIndigo
```

## Components

### Application

- [BUSMASTER App](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/Application.cpp): `Sources/BUSMASTER/Application/Application.cpp`
- [Plugin Manager](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/BusmasterPluginManager.cpp): `Sources/BUSMASTER/Application/BusmasterPluginManager.cpp`
- [UI Creators](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/UI/UICreator.cpp): `Sources/BUSMASTER/Application/UI/UICreator.cpp`
- [Client Manager](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Application/ClientManager.cpp): `Sources/BUSMASTER/Application/ClientManager.cpp`

### Bus Interfaces

- [CAN Driver API](https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDriverInterface/Include/BaseDIL_CAN.h): `Sources/Kernel/BusmasterDriverInterface/Include/BaseDIL_CAN.h`
- [CAN Controller API](https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDriverInterface/Include/BaseDIL_CAN_Controller.h): `Sources/Kernel/BusmasterDriverInterface/Include/BaseDIL_CAN_Controller.h`
- [J1939 Connections](https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDriverInterface/DIL_J1939/NodeConManager.cpp): `Sources/Kernel/BusmasterDriverInterface/DIL_J1939/NodeConManager.cpp`

### Simulation and Replay

- [Node Simulation](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/NodeSimEx/ExecuteManager.cpp): `Sources/BUSMASTER/NodeSimEx/ExecuteManager.cpp`
- [Simulation Context](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/NodeSimEx/GlobalObj.h): `Sources/BUSMASTER/NodeSimEx/GlobalObj.h`
- [Replay Manager](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/Replay/ReplayManager.cpp): `Sources/BUSMASTER/Replay/ReplayManager.cpp`

### Network Data

- [Network Service API](https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDBNetwork/Include/IBMNetWorkGetService.h): `Sources/Kernel/BusmasterDBNetwork/Include/IBMNetWorkGetService.h`
- [Database Loader](https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/BusmasterDBNetwork/AccessDBManager.h): `Sources/Kernel/BusmasterDBNetwork/AccessDBManager.h`
- [Cluster Model](https://github.com/rbei-etas/busmaster/blob/master/Sources/Kernel/ProtocolDefinitions/ICluster.h): `Sources/Kernel/ProtocolDefinitions/ICluster.h`
- [LIN Database Manager](https://github.com/rbei-etas/busmaster/blob/master/Sources/BUSMASTER/LDFEditor/LDFDatabaseManager.cpp): `Sources/BUSMASTER/LDFEditor/LDFDatabaseManager.cpp`

### Other components

- **Operator**

## Connections

- Operator → BUSMASTER App: uses
- Plugin Manager → UI Creators: creates UI (evidence: `Sources/BUSMASTER/Application/BusmasterPluginManager.cpp`)
- BUSMASTER App → CAN Driver API: uses interface
- Node Simulation → Simulation Context: uses context (evidence: `Sources/BUSMASTER/NodeSimEx/GlobalObj.h`)
- J1939 Connections → Network Service API: signals status
- Database Loader → Cluster Model: loads clusters (evidence: `Sources/Kernel/BusmasterDBNetwork/AccessDBManager.h`)
- Client Manager → BUSMASTER App: extracts signals
