# qorvo/qmatter architecture

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

- Interactive diagram: https://gitdiagram.com/qorvo/qmatter
- Repository: https://github.com/qorvo/qmatter

## Overview

QMatter is a QPG6105 IoT development kit, with Matter device examples as its central product workflow and BLE, peripheral-driver, bootloader, and RF-test references alongside them. A Matter end device is commissioned into a Thread-based Matter network through a Border Router and controller; the README specifically identifies the light example as the preprogrammed starting point. The graph preserves the documented product branches and sampled implementation layers. Most unsampled application wiring is not asserted, so only documented workflow links and visible source references are shown.

Main entry points: [`Applications/Matter/light/src/LightingManager.cpp`](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/light/src/LightingManager.cpp) (Light device), [`Applications/Matter/base`](https://github.com/qorvo/qmatter/tree/v1.0.2/Applications/Matter/base) (Matter base app), [`Applications/Matter/thermostaticRadiatorValve/src/ThermostaticRadiatorValveManager.cpp`](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/thermostaticRadiatorValve/src/ThermostaticRadiatorValveManager.cpp) (Thermostatic valve), [`Applications/Bluetooth_LE/peripheral/src/main.c`](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Bluetooth_LE/peripheral/src/main.c) (BLE peripheral app)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_matter["Matter devices"]
  node_matter_base["Matter base app"]
  node_matter_shared["Matter runtime<br/>[main.cpp]"]
  node_matter_light["Light device"]
  node_light_task["Light app task<br/>[AppTask.cpp]"]
  node_matter_lock["Lock device"]
  node_matter_switch["Switch device<br/>[SwitchManager.cpp]"]
  node_switch_binding["Switch binding"]
  node_matter_trv["Thermostatic valve"]
  node_trv_sensor["Temperature sensing"]
  node_matter_zcl["ZCL callbacks<br/>[ZclCallbacks.cpp]"]
end

subgraph group_ble["Bluetooth LE"]
  node_ble_app["BLE peripheral app<br/>[main.c]"]
  node_ble_peripheral["Peripheral behavior<br/>[BlePeripheral.c]"]
  node_ble_ota["BLE OTA client<br/>[BleOtaClient.c]"]
  node_ble_controller["BLE controller<br/>[gpBle.h]"]
  node_ble_activity["BLE activity scheduling"]
end

subgraph group_device["Peripherals"]
  node_peripheral_apps["Peripheral examples"]
  node_peripheral_drivers["Peripheral drivers"]
end

subgraph group_platform["Platform services"]
  node_ext_storage["External storage<br/>[gpExtStorage.c]"]
  node_scheduler["Event scheduler<br/>[gpSched.h]"]
end

subgraph group_boot_test["Boot and testing"]
  node_bootloader["User bootloader"]
  node_ptc["Product test component<br/>[main.c]"]
end

node_developer(("Product developer"))
node_controller(("Matter controller"))
node_border_router["Thread Border Router"]

node_developer -->|"starts with"| node_matter_light
node_matter_light -->|"joins network via"| node_border_router
node_controller -->|"commissions"| node_matter_light
node_matter_shared -.->|"shared application runtime"| node_matter_base
node_matter_lock -->|"references app task"| node_matter_base
node_matter_trv -->|"uses app task"| node_matter_base
node_matter_trv -->|"uses temperature measurement"| node_trv_sensor
node_matter_light -.->|"uses lighting manager"| node_light_task
node_matter_switch -->|"uses binding handler"| node_switch_binding
node_ble_app -->|"uses peripheral module"| node_ble_peripheral
node_ble_ota -->|"uses peripheral API"| node_ble_peripheral
node_ble_activity -->|"uses BLE API"| node_ble_controller
node_peripheral_apps -.->|"demonstrate drivers"| node_peripheral_drivers
node_ble_app -->|"schedules events"| node_scheduler
node_ext_storage -->|"schedules erase polling"| node_scheduler

click node_matter_base "https://github.com/qorvo/qmatter/tree/v1.0.2/Applications/Matter/base"
click node_matter_shared "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/shared/src/main.cpp"
click node_matter_light "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/light/src/LightingManager.cpp"
click node_light_task "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/light/src/AppTask.cpp"
click node_matter_lock "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/lock/src/BoltLockManager.cpp"
click node_matter_switch "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/switch/src/SwitchManager.cpp"
click node_switch_binding "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/switch/src/binding-handler.cpp"
click node_matter_trv "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/thermostaticRadiatorValve/src/ThermostaticRadiatorValveManager.cpp"
click node_trv_sensor "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/thermostaticRadiatorValve/src/temperature_measurement.c"
click node_matter_zcl "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/light/src/ZclCallbacks.cpp"
click node_ble_app "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Bluetooth_LE/peripheral/src/main.c"
click node_ble_peripheral "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Bluetooth_LE/peripheral/src/BlePeripheral.c"
click node_ble_ota "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Bluetooth_LE/peripheral/src/BleOtaClient.c"
click node_ble_controller "https://github.com/qorvo/qmatter/blob/v1.0.2/Components/Qorvo/BleController/gpBle/inc/gpBle.h"
click node_ble_activity "https://github.com/qorvo/qmatter/blob/v1.0.2/Components/Qorvo/BleController/gpBleActivityManager/src/gpBleActivityManager_Simple.c"
click node_peripheral_apps "https://github.com/qorvo/qmatter/tree/v1.0.2/Applications/Peripherals"
click node_peripheral_drivers "https://github.com/qorvo/qmatter/tree/v1.0.2/Applications/Peripherals"
click node_ext_storage "https://github.com/qorvo/qmatter/blob/v1.0.2/Components/Qorvo/BaseUtils/gpExtStorage/src/gpExtStorage.c"
click node_scheduler "https://github.com/qorvo/qmatter/blob/v1.0.2/Components/Qorvo/OS/gpSched/inc/gpSched.h"
click node_bootloader "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Bootloader/src/userModeBootloader.c"
click node_ptc "https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/PTC/src/main.c"

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_matter_base,node_matter_shared,node_matter_light,node_light_task,node_matter_lock,node_matter_switch,node_switch_binding,node_matter_trv,node_trv_sensor,node_matter_zcl toneBlue
class node_ble_app,node_ble_peripheral,node_ble_ota,node_ble_controller,node_ble_activity toneAmber
class node_peripheral_apps,node_peripheral_drivers,node_border_router toneMint
class node_ext_storage,node_scheduler toneRose
class node_bootloader,node_ptc,node_developer,node_controller toneIndigo
```

## Components

### Matter devices

- [Matter base app](https://github.com/qorvo/qmatter/tree/v1.0.2/Applications/Matter/base): `Applications/Matter/base`
- [Matter runtime](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/shared/src/main.cpp): `Applications/Matter/shared/src/main.cpp`
- [Light device](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/light/src/LightingManager.cpp): `Applications/Matter/light/src/LightingManager.cpp`
- [Light app task](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/light/src/AppTask.cpp): `Applications/Matter/light/src/AppTask.cpp`
- [Lock device](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/lock/src/BoltLockManager.cpp): `Applications/Matter/lock/src/BoltLockManager.cpp`
- [Switch device](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/switch/src/SwitchManager.cpp): `Applications/Matter/switch/src/SwitchManager.cpp`
- [Switch binding](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/switch/src/binding-handler.cpp): `Applications/Matter/switch/src/binding-handler.cpp`
- [Thermostatic valve](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/thermostaticRadiatorValve/src/ThermostaticRadiatorValveManager.cpp): `Applications/Matter/thermostaticRadiatorValve/src/ThermostaticRadiatorValveManager.cpp`
- [Temperature sensing](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/thermostaticRadiatorValve/src/temperature_measurement.c): `Applications/Matter/thermostaticRadiatorValve/src/temperature_measurement.c`
- [ZCL callbacks](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Matter/light/src/ZclCallbacks.cpp): `Applications/Matter/light/src/ZclCallbacks.cpp`

### Bluetooth LE

- [BLE peripheral app](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Bluetooth_LE/peripheral/src/main.c): `Applications/Bluetooth_LE/peripheral/src/main.c`
- [Peripheral behavior](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Bluetooth_LE/peripheral/src/BlePeripheral.c): `Applications/Bluetooth_LE/peripheral/src/BlePeripheral.c`
- [BLE OTA client](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Bluetooth_LE/peripheral/src/BleOtaClient.c): `Applications/Bluetooth_LE/peripheral/src/BleOtaClient.c`
- [BLE controller](https://github.com/qorvo/qmatter/blob/v1.0.2/Components/Qorvo/BleController/gpBle/inc/gpBle.h): `Components/Qorvo/BleController/gpBle/inc/gpBle.h`
- [BLE activity scheduling](https://github.com/qorvo/qmatter/blob/v1.0.2/Components/Qorvo/BleController/gpBleActivityManager/src/gpBleActivityManager_Simple.c): `Components/Qorvo/BleController/gpBleActivityManager/src/gpBleActivityManager_Simple.c`

### Peripherals

- [Peripheral examples](https://github.com/qorvo/qmatter/tree/v1.0.2/Applications/Peripherals): `Applications/Peripherals`
- [Peripheral drivers](https://github.com/qorvo/qmatter/tree/v1.0.2/Applications/Peripherals): `Applications/Peripherals`

### Platform services

- [External storage](https://github.com/qorvo/qmatter/blob/v1.0.2/Components/Qorvo/BaseUtils/gpExtStorage/src/gpExtStorage.c): `Components/Qorvo/BaseUtils/gpExtStorage/src/gpExtStorage.c`
- [Event scheduler](https://github.com/qorvo/qmatter/blob/v1.0.2/Components/Qorvo/OS/gpSched/inc/gpSched.h): `Components/Qorvo/OS/gpSched/inc/gpSched.h`

### Boot and testing

- [User bootloader](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/Bootloader/src/userModeBootloader.c): `Applications/Bootloader/src/userModeBootloader.c`
- [Product test component](https://github.com/qorvo/qmatter/blob/v1.0.2/Applications/PTC/src/main.c): `Applications/PTC/src/main.c`

### Other components

- **Product developer**
- **Matter controller**
- **Thread Border Router**

## Connections

- Product developer → Light device: starts with (evidence: `README.md`)
- Light device → Thread Border Router: joins network via (evidence: `README.md`)
- Matter controller → Light device: commissions (evidence: `README.md`)
- Matter runtime → Matter base app: shared application runtime
- Lock device → Matter base app: references app task (evidence: `Applications/Matter/lock/src/BoltLockManager.cpp`)
- Thermostatic valve → Matter base app: uses app task (evidence: `Applications/Matter/thermostaticRadiatorValve/src/ThermostaticRadiatorValveManager.cpp`)
- Thermostatic valve → Temperature sensing: uses temperature measurement (evidence: `Applications/Matter/thermostaticRadiatorValve/src/ThermostaticRadiatorValveManager.cpp`)
- Light device → Light app task: uses lighting manager
- Switch device → Switch binding: uses binding handler (evidence: `Applications/Matter/switch/src/SwitchManager.cpp`)
- BLE peripheral app → Peripheral behavior: uses peripheral module (evidence: `Applications/Bluetooth_LE/peripheral/src/main.c`)
- BLE OTA client → Peripheral behavior: uses peripheral API (evidence: `Applications/Bluetooth_LE/peripheral/src/BleOtaClient.c`)
- BLE activity scheduling → BLE controller: uses BLE API (evidence: `Components/Qorvo/BleController/gpBleActivityManager/src/gpBleActivityManager_Simple.c`)
- Peripheral examples → Peripheral drivers: demonstrate drivers (evidence: `README.md`)
- BLE peripheral app → Event scheduler: schedules events (evidence: `Applications/Bluetooth_LE/peripheral/src/main.c`)
- External storage → Event scheduler: schedules erase polling (evidence: `Components/Qorvo/BaseUtils/gpExtStorage/src/gpExtStorage.c`)
