# tumo07/vehicle-dashboard-cluster architecture

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

- Interactive diagram: https://gitdiagram.com/tumo07/vehicle-dashboard-cluster
- Repository: https://github.com/tumo07/vehicle-dashboard-cluster

## Overview

This is a distributed smart-vehicle dashboard simulator: Qt or the CAN monitor initiates commands, a central ECU validates and arbitrates them, and front/rear BCMs drive actuators while reporting sensors and faults. The translator bridges the PC’s UART link to CAN. The README documents the overall bus topology and turn-signal synchronization; sampled firmware confirms selected command/report behavior. Several listed capabilities, including the F407 variant, radar, diagnostics, and monitor injection, are represented at subsystem level where their implementation was not fully sampled.

Main entry points: [`front_bcm_firmware/Logic_F411/Core/Src/main.c`](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/Logic_F411/Core/Src/main.c) (Front actuator logic), [`main_mcu_firmware/Central_ECU_F407/Core/Src/main.c`](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/main_mcu_firmware/Central_ECU_F407/Core/Src/main.c) (Central ECU), [`rear_bcm_firmware/Core/Src/main.c`](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/rear_bcm_firmware/Core/Src/main.c) (Rear actuators and radar), [`translator_firmware/CAN_UART_Gateway/Core/Src/main.c`](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/translator_firmware/CAN_UART_Gateway/Core/Src/main.c) (CAN/UART bridge)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_hmi["Dashboard and tools"]
  node_dashboard["Qt dashboard<br/>[controller.cpp]"]
  node_qtservice["UART service<br/>[services.cpp]"]
  node_monitor["CAN monitor<br/>[can_monitor.py]"]
  node_translator["CAN/UART bridge<br/>[main.c]"]
end

subgraph group_coord["Central coordination"]
  node_central["Central ECU<br/>[main.c]"]
  node_centralblue["BluePill ECU variant<br/>[main.c]"]
  node_centraltest["Test node<br/>[main.c]"]
end

subgraph group_front["Front BCM"]
  node_frontlogic["Front actuator logic<br/>[main.c]"]
  node_frontlights["Headlight control<br/>[headlight.c]"]
  node_frontturn["Turn and wiper control<br/>[turnsignal.c]"]
  node_frontbridge["Front CAN bridge<br/>[main.c]"]
end

subgraph group_rear["Rear BCM"]
  node_rear["Rear actuators and radar<br/>[main.c]"]
  node_nucleo["Nucleo firmware<br/>[main.c]"]
end

subgraph group_protocol["Bus protocol"]
  node_shared["Shared CAN definitions<br/>[can_messages.h]"]
  node_canbus["CAN bus"]
end

node_driver(("Driver"))
node_vehicle["Vehicle inputs and actuators"]
node_pc["PC serial connection"]

node_driver -->|"operates"| node_dashboard
node_dashboard -.->|"uses serial service"| node_qtservice
node_qtservice -->|"USB/UART frames"| node_translator
node_pc -->|"UART link"| node_translator
node_monitor -->|"injects commands"| node_canbus
node_translator -->|"bridges frames"| node_canbus
node_canbus -->|"delivers commands"| node_central
node_central -->|"dispatches execution"| node_canbus
node_canbus -->|"delivers CAN frames"| node_frontbridge
node_frontbridge -->|"forwards UART pulse"| node_frontlogic
node_canbus -->|"delivers commands"| node_rear
node_frontlogic -->|"initializes"| node_frontlights
node_frontlogic -->|"initializes"| node_frontturn
node_frontlogic -->|"UART bridge setup"| node_frontbridge
node_frontlogic -->|"reads inputs, drives outputs"| node_vehicle
node_rear -->|"reads sensors, drives actuators"| node_vehicle
node_rear -->|"reports status"| node_canbus
node_canbus -->|"delivers BCM reports"| node_central
node_central -->|"status reaches dashboard"| node_translator
node_canbus -->|"turn status updates"| node_dashboard
node_central -->|"broadcasts blink tick"| node_canbus
node_canbus -->|"synchronized turn tick"| node_frontlogic
node_canbus -->|"synchronized turn tick"| node_rear
node_centralblue -.->|"coordinates variant"| node_canbus
node_centraltest -.->|"test-node traffic"| node_canbus
node_nucleo -.->|"CAN firmware traffic"| node_canbus
node_shared -.->|"defines message IDs"| node_central
node_shared -.->|"defines message IDs"| node_frontlogic
node_shared -.->|"defines message IDs"| node_rear

click node_dashboard "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/qt_dashboard/Project2/Controllers/controller.cpp"
click node_qtservice "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/qt_dashboard/Project2/Services/services.cpp"
click node_monitor "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/can_monitor.py"
click node_translator "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/translator_firmware/CAN_UART_Gateway/Core/Src/main.c"
click node_central "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/main_mcu_firmware/Central_ECU_F407/Core/Src/main.c"
click node_centralblue "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/main_mcu_firmware/Central_ECU_BluePill/Core/Src/main.c"
click node_centraltest "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/main_mcu_firmware/Test_Node_BluePill/Core/Src/main.c"
click node_frontlogic "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/Logic_F411/Core/Src/main.c"
click node_frontlights "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/Logic_F411/Core/Src/headlight.c"
click node_frontturn "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/Logic_F411/Core/Src/turnsignal.c"
click node_frontbridge "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/TranslatorData_F103/Core/Src/main.c"
click node_rear "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/rear_bcm_firmware/Core/Src/main.c"
click node_nucleo "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/Nucleo_F446RE/Core/Inc/Core/Src/main.c"
click node_shared "https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/can_messages_shared/can_messages.h"

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_dashboard,node_qtservice,node_monitor,node_translator toneBlue
class node_central,node_centralblue,node_centraltest toneAmber
class node_frontlogic,node_frontlights,node_frontturn,node_frontbridge toneMint
class node_rear,node_nucleo toneRose
class node_shared,node_canbus,node_driver,node_vehicle,node_pc toneIndigo
```

## Components

### Dashboard and tools

- [Qt dashboard](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/qt_dashboard/Project2/Controllers/controller.cpp): `qt_dashboard/Project2/Controllers/controller.cpp`
- [UART service](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/qt_dashboard/Project2/Services/services.cpp): `qt_dashboard/Project2/Services/services.cpp`
- [CAN monitor](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/can_monitor.py): `front_bcm_firmware/can_monitor.py`
- [CAN/UART bridge](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/translator_firmware/CAN_UART_Gateway/Core/Src/main.c): `translator_firmware/CAN_UART_Gateway/Core/Src/main.c`

### Central coordination

- [Central ECU](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/main_mcu_firmware/Central_ECU_F407/Core/Src/main.c): `main_mcu_firmware/Central_ECU_F407/Core/Src/main.c`
- [BluePill ECU variant](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/main_mcu_firmware/Central_ECU_BluePill/Core/Src/main.c): `main_mcu_firmware/Central_ECU_BluePill/Core/Src/main.c`
- [Test node](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/main_mcu_firmware/Test_Node_BluePill/Core/Src/main.c): `main_mcu_firmware/Test_Node_BluePill/Core/Src/main.c`

### Front BCM

- [Front actuator logic](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/Logic_F411/Core/Src/main.c): `front_bcm_firmware/Logic_F411/Core/Src/main.c`
- [Headlight control](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/Logic_F411/Core/Src/headlight.c): `front_bcm_firmware/Logic_F411/Core/Src/headlight.c`
- [Turn and wiper control](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/Logic_F411/Core/Src/turnsignal.c): `front_bcm_firmware/Logic_F411/Core/Src/turnsignal.c`
- [Front CAN bridge](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/front_bcm_firmware/TranslatorData_F103/Core/Src/main.c): `front_bcm_firmware/TranslatorData_F103/Core/Src/main.c`

### Rear BCM

- [Rear actuators and radar](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/rear_bcm_firmware/Core/Src/main.c): `rear_bcm_firmware/Core/Src/main.c`
- [Nucleo firmware](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/Nucleo_F446RE/Core/Inc/Core/Src/main.c): `Nucleo_F446RE/Core/Inc/Core/Src/main.c`

### Bus protocol

- [Shared CAN definitions](https://github.com/tumo07/vehicle-dashboard-cluster/blob/main/can_messages_shared/can_messages.h): `can_messages_shared/can_messages.h`
- **CAN bus**

### Other components

- **Driver**
- **Vehicle inputs and actuators**
- **PC serial connection**

## Connections

- Driver → Qt dashboard: operates (evidence: `README.md`)
- Qt dashboard → UART service: uses serial service
- UART service → CAN/UART bridge: USB/UART frames (evidence: `README.md`)
- PC serial connection → CAN/UART bridge: UART link (evidence: `README.md`)
- CAN monitor → CAN bus: injects commands (evidence: `README.md`)
- CAN/UART bridge → CAN bus: bridges frames (evidence: `README.md`)
- CAN bus → Central ECU: delivers commands (evidence: `README.md`)
- Central ECU → CAN bus: dispatches execution
- CAN bus → Front CAN bridge: delivers CAN frames (evidence: `README.md`)
- Front CAN bridge → Front actuator logic: forwards UART pulse (evidence: `README.md`)
- CAN bus → Rear actuators and radar: delivers commands (evidence: `README.md`)
- Front actuator logic → Headlight control: initializes (evidence: `front_bcm_firmware/Logic_F411/Core/Src/main.c`)
- Front actuator logic → Turn and wiper control: initializes (evidence: `front_bcm_firmware/Logic_F411/Core/Src/main.c`)
- Front actuator logic → Front CAN bridge: UART bridge setup (evidence: `front_bcm_firmware/Logic_F411/Core/Src/main.c`)
- Front actuator logic → Vehicle inputs and actuators: reads inputs, drives outputs (evidence: `front_bcm_firmware/Logic_F411/Core/Src/main.c`)
- Rear actuators and radar → Vehicle inputs and actuators: reads sensors, drives actuators (evidence: `rear_bcm_firmware/Core/Src/main.c`)
- Rear actuators and radar → CAN bus: reports status (evidence: `rear_bcm_firmware/Core/Src/main.c`)
- CAN bus → Central ECU: delivers BCM reports (evidence: `README.md`)
- Central ECU → CAN/UART bridge: status reaches dashboard (evidence: `README.md`)
- CAN bus → Qt dashboard: turn status updates (evidence: `README.md`)
- Central ECU → CAN bus: broadcasts blink tick (evidence: `README.md`)
- CAN bus → Front actuator logic: synchronized turn tick (evidence: `README.md`)
- CAN bus → Rear actuators and radar: synchronized turn tick (evidence: `README.md`)
- BluePill ECU variant → CAN bus: coordinates variant
- Test node → CAN bus: test-node traffic
- Nucleo firmware → CAN bus: CAN firmware traffic
- Shared CAN definitions → Central ECU: defines message IDs (evidence: `main_mcu_firmware/Central_ECU_F407/Core/Src/main.c`)
- Shared CAN definitions → Front actuator logic: defines message IDs (evidence: `front_bcm_firmware/Logic_F411/Core/Src/main.c`)
- Shared CAN definitions → Rear actuators and radar: defines message IDs (evidence: `rear_bcm_firmware/Core/Src/main.c`)
