# ayemkaan/suzuki-passthru-pro architecture

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

- Interactive diagram: https://gitdiagram.com/ayemkaan/suzuki-passthru-pro
- Repository: https://github.com/ayemkaan/suzuki-passthru-pro

## Overview

Suzuki PassThru Pro is a Windows diagnostic suite with an embedded web dashboard and native C++ server. The principal workflow is: a technician selects a vehicle or scans it, the server identifies ECUs and reads diagnostics over J2534, then presents DTCs, live telemetry, or service actions. The README also documents calibration, active-test, coding, immobilizer, and offline-capture capabilities. The graph reflects documented features and sampled calls; unsampled implementation details and browser-to-server wiring are not inferred beyond the README.

Main entry points: [`suzuki_diag_server.cpp`](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_diag_server.cpp) (Native server), [`suzuki_live.h`](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_live.h) (Live telemetry), [`index.html`](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/index.html) (Web dashboard), [`suzuki_identity.h`](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_identity.h) (ECU identity match)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_dashboard["Web dashboard<br/>[index.html]"]
end

subgraph group_diagnostics["Diagnostic engine"]
  node_server["Native server"]
  node_j2534["J2534 interface"]
  node_scan["ECU and DTC scan"]
  node_live["Live telemetry<br/>[suzuki_live.h]"]
  node_capture["Offline capture decode<br/>[suzuki_capture.h]"]
end

subgraph group_database["Vehicle data"]
  node_identity["ECU identity match<br/>[suzuki_identity.h]"]
  node_models["Vehicle matching<br/>[suzuki_models.h]"]
  node_dtc[("DTC catalog<br/>[suzuki_dtc.h]")]
  node_computed["Computed values<br/>[suzuki_computed.h]"]
  node_support["Parameter support<br/>[suzuki_support.h]"]
end

subgraph group_service["Service operations"]
  node_service["Service routines<br/>[suzuki_utilities.h]"]
end

node_technician(("Technician"))
node_vehicle["Vehicle ECUs"]

node_technician -->|"uses"| node_dashboard
node_dashboard -->|"requests diagnostics"| node_server
node_server -->|"runs scans"| node_scan
node_scan -->|"sends requests"| node_j2534
node_j2534 -.->|"communicates"| node_vehicle
node_scan -->|"looks up codes"| node_dtc
node_server -->|"matches identity"| node_identity
node_identity -->|"matches vehicle"| node_models
node_server -->|"serves telemetry"| node_live
node_live -->|"reads parameters"| node_j2534
node_live -->|"decodes values"| node_computed
node_live -->|"checks support"| node_support
node_server -->|"runs procedures"| node_service
node_service -->|"sends routines"| node_j2534
node_server -->|"decodes captures"| node_capture

click node_dashboard "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/index.html"
click node_server "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_diag_server.cpp"
click node_scan "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_diag_server.cpp"
click node_identity "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_identity.h"
click node_models "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_models.h"
click node_dtc "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_dtc.h"
click node_live "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_live.h"
click node_computed "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_computed.h"
click node_support "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_support.h"
click node_service "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_utilities.h"
click node_capture "https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_capture.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 toneBlue
class node_server,node_j2534,node_scan,node_live,node_capture toneAmber
class node_identity,node_models,node_dtc,node_computed,node_support toneMint
class node_service toneRose
class node_technician,node_vehicle toneIndigo
```

## Components

### User interface

- [Web dashboard](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/index.html): `index.html`

### Diagnostic engine

- [Native server](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_diag_server.cpp): `suzuki_diag_server.cpp`
- **J2534 interface**
- [ECU and DTC scan](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_diag_server.cpp): `suzuki_diag_server.cpp`
- [Live telemetry](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_live.h): `suzuki_live.h`
- [Offline capture decode](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_capture.h): `suzuki_capture.h`

### Vehicle data

- [ECU identity match](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_identity.h): `suzuki_identity.h`
- [Vehicle matching](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_models.h): `suzuki_models.h`
- [DTC catalog](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_dtc.h): `suzuki_dtc.h`
- [Computed values](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_computed.h): `suzuki_computed.h`
- [Parameter support](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_support.h): `suzuki_support.h`

### Service operations

- [Service routines](https://github.com/ayemkaan/suzuki-passthru-pro/blob/main/suzuki_utilities.h): `suzuki_utilities.h`

### Other components

- **Technician**
- **Vehicle ECUs**

## Connections

- Technician → Web dashboard: uses (evidence: `README.md`)
- Web dashboard → Native server: requests diagnostics (evidence: `README.md`)
- Native server → ECU and DTC scan: runs scans (evidence: `suzuki_diag_server.cpp`)
- ECU and DTC scan → J2534 interface: sends requests (evidence: `suzuki_diag_server.cpp`)
- J2534 interface → Vehicle ECUs: communicates (evidence: `README.md`)
- ECU and DTC scan → DTC catalog: looks up codes (evidence: `suzuki_diag_server.cpp`)
- Native server → ECU identity match: matches identity (evidence: `suzuki_diag_server.cpp`)
- ECU identity match → Vehicle matching: matches vehicle (evidence: `suzuki_identity.h`)
- Native server → Live telemetry: serves telemetry (evidence: `suzuki_diag_server.cpp`)
- Live telemetry → J2534 interface: reads parameters (evidence: `suzuki_live.h`)
- Live telemetry → Computed values: decodes values (evidence: `suzuki_live.h`)
- Live telemetry → Parameter support: checks support (evidence: `suzuki_live.h`)
- Native server → Service routines: runs procedures (evidence: `suzuki_utilities.h`)
- Service routines → J2534 interface: sends routines (evidence: `suzuki_utilities.h`)
- Native server → Offline capture decode: decodes captures (evidence: `suzuki_diag_server.cpp`)
