# inotbarnacle/id6_apps_prerelease architecture

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

- Interactive diagram: https://gitdiagram.com/inotbarnacle/id6_apps_prerelease
- Repository: https://github.com/inotbarnacle/id6_apps_prerelease

## Overview

This repository provides iDrive 6 apps for BMW NBT Evo head units, plus desktop installation and a compatibility collector. The main user workflow is: choose apps on a computer, verify firmware and connection prerequisites, install them to the head unit, then use their menus to display vehicle data or request vehicle controls. Native apps separate menu/plugin code from diagnostic workers; workers communicate with vehicle systems through shared diagnostic transport and, for some dashboards, local telemetry. README documents several capabilities whose implementation was not sampled, so those are represented at subsystem level; edges without source evidence are omitted.

Main entry points: [`source/native/src/common/diag_link.c`](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/common/diag_link.c) (Diagnostic Link), [`source/tools/trio-collector/collect.go`](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/tools/trio-collector/collect.go) (Trio Collector), [`source/tools/desktop-installer/install.go`](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/tools/desktop-installer/install.go) (Desktop Installer), [`source/tools/desktop-installer/enet.go`](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/tools/desktop-installer/enet.go) (ENET Connection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_install["Installation"]
  node_installer["Desktop Installer<br/>[install.go]"]
  node_enet["ENET Connection<br/>[enet.go]"]
end

subgraph group_apps["iDrive Apps"]
  node_boost["BoostDeck<br/>[boost_deck.cpp]"]
  node_warm["WarmDeck<br/>[warm_deck.cpp]"]
  node_launch["LaunchDeck<br/>[launch_deck.cpp]"]
  node_shift["ShiftDeck<br/>[shift_deck.cpp]"]
  node_hybrid["HybridDeck<br/>[hybrid_deck.cpp]"]
  node_tuning["Tuning Suites<br/>[mhd_maps.cpp]"]
  node_faults["Engine Fault Codes<br/>[engine_codes.cpp]"]
  node_xdrive["xDrive Control<br/>[xdrive_control.cpp]"]
  node_roadjet["Road Jet<br/>[road_jet.cpp]"]
  node_beamer["BEAMer<br/>[beamer.cpp]"]
end

subgraph group_diagnostics["Diagnostics"]
  node_worker["Boost Diagnostic Worker"]
  node_faultworker["Fault-Code Worker"]
  node_driveworker["xDrive Worker"]
  node_diaglink["Diagnostic Link<br/>[diag_link.c]"]
  node_lease["Diagnostic Lease<br/>[diagnostic_lease.h]"]
  node_most["MOST DSI Client<br/>[dsi_client.c]"]
end

subgraph group_telemetry["Telemetry and Display"]
  node_hud["HUD Gauges<br/>[gauge_core.c]"]
end

subgraph group_collection["Compatibility Collection"]
  node_collector["Trio Collector<br/>[collect.go]"]
end

node_driver(("Car Owner"))
node_computer(("Computer Agent"))
node_headunit["NBT Evo Head Unit"]
node_vehicle["Vehicle ECUs"]
node_ssh["Temporary SSH"]
node_email(("Support Email"))

node_driver -->|"chooses apps"| node_computer
node_computer -->|"runs installer"| node_installer
node_installer -->|"connects over"| node_enet
node_enet -->|"installs apps"| node_headunit
node_driver -->|"opens dashboard"| node_boost
node_driver -->|"opens dashboard"| node_warm
node_driver -->|"starts timing"| node_launch
node_driver -->|"opens dashboard"| node_shift
node_driver -->|"opens dashboard"| node_hybrid
node_driver -->|"chooses controls"| node_tuning
node_driver -->|"reads fault memory"| node_faults
node_driver -->|"requests mode"| node_xdrive
node_driver -->|"plays game"| node_roadjet
node_driver -->|"selects lighting"| node_beamer
node_driver -->|"enables overlay"| node_hud
node_boost -.->|"launches worker"| node_worker
node_faults -->|"launches worker"| node_faultworker
node_xdrive -.->|"launches worker"| node_driveworker
node_worker -->|"uses transport"| node_diaglink
node_faultworker -->|"uses transport"| node_diaglink
node_driveworker -->|"uses transport"| node_diaglink
node_diaglink -->|"coordinates access"| node_lease
node_diaglink -->|"uses fallback"| node_most
node_diaglink -.->|"sends diagnostics"| node_vehicle
node_computer -->|"runs collector"| node_collector
node_ssh -->|"enables collection"| node_collector
node_collector -->|"sends ZIP"| node_email

click node_installer "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/tools/desktop-installer/install.go"
click node_enet "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/tools/desktop-installer/enet.go"
click node_boost "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/boost_deck.cpp"
click node_warm "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/warm_deck.cpp"
click node_launch "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/launch_deck.cpp"
click node_shift "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/shift_deck.cpp"
click node_hybrid "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/hybrid_deck.cpp"
click node_tuning "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/mhd_maps.cpp"
click node_faults "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/engine_codes.cpp"
click node_xdrive "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/xdrive_control.cpp"
click node_roadjet "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/road_jet.cpp"
click node_beamer "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/beamer.cpp"
click node_hud "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/common/gauge_core.c"
click node_worker "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/workers/boost_deck_worker.c"
click node_faultworker "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/workers/engine_codes_worker.c"
click node_driveworker "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/workers/xdrive_control_worker.c"
click node_diaglink "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/common/diag_link.c"
click node_lease "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/common/diagnostic_lease.h"
click node_most "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/common/most/dsi_client.c"
click node_collector "https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/tools/trio-collector/collect.go"

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_installer,node_enet toneBlue
class node_boost,node_warm,node_launch,node_shift,node_hybrid,node_tuning,node_faults,node_xdrive,node_roadjet,node_beamer toneAmber
class node_worker,node_faultworker,node_driveworker,node_diaglink,node_lease,node_most toneMint
class node_hud toneRose
class node_collector,node_driver,node_computer,node_headunit,node_vehicle,node_ssh,node_email toneIndigo
```

## Components

### Installation

- [Desktop Installer](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/tools/desktop-installer/install.go): `source/tools/desktop-installer/install.go`
- [ENET Connection](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/tools/desktop-installer/enet.go): `source/tools/desktop-installer/enet.go`

### iDrive Apps

- [BoostDeck](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/boost_deck.cpp): `source/native/src/plugins/boost_deck.cpp`
- [WarmDeck](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/warm_deck.cpp): `source/native/src/plugins/warm_deck.cpp`
- [LaunchDeck](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/launch_deck.cpp): `source/native/src/plugins/launch_deck.cpp`
- [ShiftDeck](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/shift_deck.cpp): `source/native/src/plugins/shift_deck.cpp`
- [HybridDeck](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/hybrid_deck.cpp): `source/native/src/plugins/hybrid_deck.cpp`
- [Tuning Suites](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/mhd_maps.cpp): `source/native/src/plugins/mhd_maps.cpp`
- [Engine Fault Codes](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/engine_codes.cpp): `source/native/src/plugins/engine_codes.cpp`
- [xDrive Control](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/xdrive_control.cpp): `source/native/src/plugins/xdrive_control.cpp`
- [Road Jet](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/road_jet.cpp): `source/native/src/plugins/road_jet.cpp`
- [BEAMer](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/plugins/beamer.cpp): `source/native/src/plugins/beamer.cpp`

### Diagnostics

- [Boost Diagnostic Worker](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/workers/boost_deck_worker.c): `source/native/src/workers/boost_deck_worker.c`
- [Fault-Code Worker](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/workers/engine_codes_worker.c): `source/native/src/workers/engine_codes_worker.c`
- [xDrive Worker](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/workers/xdrive_control_worker.c): `source/native/src/workers/xdrive_control_worker.c`
- [Diagnostic Link](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/common/diag_link.c): `source/native/src/common/diag_link.c`
- [Diagnostic Lease](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/common/diagnostic_lease.h): `source/native/src/common/diagnostic_lease.h`
- [MOST DSI Client](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/common/most/dsi_client.c): `source/native/src/common/most/dsi_client.c`

### Telemetry and Display

- [HUD Gauges](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/native/src/common/gauge_core.c): `source/native/src/common/gauge_core.c`

### Compatibility Collection

- [Trio Collector](https://github.com/inotbarnacle/id6_apps_prerelease/blob/main/source/tools/trio-collector/collect.go): `source/tools/trio-collector/collect.go`

### Other components

- **Car Owner**
- **Computer Agent**
- **NBT Evo Head Unit**
- **Vehicle ECUs**
- **Temporary SSH**
- **Support Email**

## Connections

- Car Owner → Computer Agent: chooses apps (evidence: `README.md`)
- Computer Agent → Desktop Installer: runs installer (evidence: `README.md`)
- Desktop Installer → ENET Connection: connects over (evidence: `README.md`)
- ENET Connection → NBT Evo Head Unit: installs apps (evidence: `README.md`)
- Car Owner → BoostDeck: opens dashboard (evidence: `README.md`)
- Car Owner → WarmDeck: opens dashboard (evidence: `README.md`)
- Car Owner → LaunchDeck: starts timing (evidence: `README.md`)
- Car Owner → ShiftDeck: opens dashboard (evidence: `README.md`)
- Car Owner → HybridDeck: opens dashboard (evidence: `README.md`)
- Car Owner → Tuning Suites: chooses controls (evidence: `README.md`)
- Car Owner → Engine Fault Codes: reads fault memory (evidence: `README.md`)
- Car Owner → xDrive Control: requests mode (evidence: `README.md`)
- Car Owner → Road Jet: plays game (evidence: `README.md`)
- Car Owner → BEAMer: selects lighting (evidence: `README.md`)
- Car Owner → HUD Gauges: enables overlay (evidence: `README.md`)
- BoostDeck → Boost Diagnostic Worker: launches worker
- Engine Fault Codes → Fault-Code Worker: launches worker (evidence: `source/native/src/plugins/engine_codes.cpp`)
- xDrive Control → xDrive Worker: launches worker
- Boost Diagnostic Worker → Diagnostic Link: uses transport (evidence: `source/native/src/workers/boost_deck_worker.c`)
- Fault-Code Worker → Diagnostic Link: uses transport (evidence: `source/native/src/workers/engine_codes_worker.c`)
- xDrive Worker → Diagnostic Link: uses transport (evidence: `source/native/src/workers/xdrive_control_worker.c`)
- Diagnostic Link → Diagnostic Lease: coordinates access (evidence: `source/native/src/common/diag_link.c`)
- Diagnostic Link → MOST DSI Client: uses fallback (evidence: `source/native/src/common/diag_link.c`)
- Diagnostic Link → Vehicle ECUs: sends diagnostics
- Computer Agent → Trio Collector: runs collector (evidence: `README.md`)
- Temporary SSH → Trio Collector: enables collection (evidence: `README.md`)
- Trio Collector → Support Email: sends ZIP (evidence: `README.md`)
