# openipc/builder architecture

> Architecture diagram of the GitHub repository openipc/builder, 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/openipc/builder
- Repository: https://github.com/openipc/builder

## Overview

OpenIPC Builder produces customized firmware for supported camera devices, with device-specific profiles and overlays alongside shared chip-family extensions. The documented workflow is to configure a device profile, build or obtain customized firmware, and use specialized features such as profile-based tweaking and QR-assisted Wi-Fi setup. The tree supports the device-customization structure; README statements support the broader capabilities. The sampled PTZ and motor programs show separate runtime controls, not the firmware-build pipeline, so unverified implementation links are omitted.

Main entry points: [`devices`](https://github.com/openipc/builder/tree/master/devices) (Device configurations), [`README.md`](https://github.com/openipc/builder/blob/master/README.md) (OpenIPC Builder), [`devices/common`](https://github.com/openipc/builder/tree/master/devices/common) (Shared device layers), [`package/kc110-board-support/src/ptz.c`](https://github.com/openipc/builder/blob/master/package/kc110-board-support/src/ptz.c) (KC110 PTZ control)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_profiles["Device profiles"]
  node_catalog["Supported devices<br/>[README.md]"]
  node_device_profiles["Device configurations"]
  node_shared_configs["Shared device layers"]
  node_device_overlays["Device overlays"]
end

subgraph group_platform["Platform extensions"]
  node_chip_extensions["Chip extensions"]
end

subgraph group_firmware["Firmware capabilities"]
  node_builder["OpenIPC Builder<br/>[README.md]"]
  node_tweaker["Profile tweaker<br/>[README.md]"]
  node_custom_firmware["Customized firmware<br/>[README.md]"]
  node_firmware_storage[("Firmware storage<br/>[README.md]")]
  node_qr_wifi["QR Wi-Fi setup<br/>[README.md]"]
end

subgraph group_runtime["Device runtime"]
  node_kc110_ptz["KC110 PTZ control<br/>[ptz.c]"]
  node_babysense_motors["Babysense motors<br/>[motor.c]"]
  node_h3c_motors["H3C motors<br/>[motor.c]"]
  node_demo["Welcome demo<br/>[demo-openipc.c]"]
end

node_engineer(("Firmware user"))
node_camera_user(("Camera operator"))

node_engineer -->|"uses"| node_builder
node_builder -->|"supports"| node_catalog
node_engineer -.->|"selects profile"| node_device_profiles
node_device_profiles -.->|"extends"| node_shared_configs
node_device_profiles -.->|"configures"| node_chip_extensions
node_device_profiles -.->|"customizes"| node_device_overlays
node_builder -.->|"builds"| node_custom_firmware
node_tweaker -->|"configures"| node_device_profiles
node_builder -->|"provides firmware"| node_firmware_storage
node_camera_user -->|"scans code"| node_qr_wifi
node_qr_wifi -->|"configures Wi-Fi"| node_custom_firmware
node_camera_user -.->|"runs commands"| node_kc110_ptz
node_camera_user -.->|"runs commands"| node_babysense_motors
node_camera_user -.->|"runs commands"| node_h3c_motors

click node_builder "https://github.com/openipc/builder/blob/master/README.md"
click node_catalog "https://github.com/openipc/builder/blob/master/README.md"
click node_device_profiles "https://github.com/openipc/builder/tree/master/devices"
click node_shared_configs "https://github.com/openipc/builder/tree/master/devices/common"
click node_chip_extensions "https://github.com/openipc/builder/tree/master/devices/common"
click node_device_overlays "https://github.com/openipc/builder/tree/master/devices"
click node_tweaker "https://github.com/openipc/builder/blob/master/README.md"
click node_custom_firmware "https://github.com/openipc/builder/blob/master/README.md"
click node_firmware_storage "https://github.com/openipc/builder/blob/master/README.md"
click node_qr_wifi "https://github.com/openipc/builder/blob/master/README.md"
click node_kc110_ptz "https://github.com/openipc/builder/blob/master/package/kc110-board-support/src/ptz.c"
click node_babysense_motors "https://github.com/openipc/builder/blob/master/devices/ssc333_lite_babysense-see-hd-ip206/general/package/sigmastar-motors/src/motor.c"
click node_h3c_motors "https://github.com/openipc/builder/blob/master/devices/ssc337_lite_h3c-tc2101/general/package/sigmastar-motors/src/motor.c"
click node_demo "https://github.com/openipc/builder/blob/master/package/demo-openipc/src/demo-openipc.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_catalog,node_device_profiles,node_shared_configs,node_device_overlays,node_engineer toneBlue
class node_chip_extensions toneAmber
class node_builder,node_tweaker,node_custom_firmware,node_firmware_storage,node_qr_wifi toneMint
class node_kc110_ptz,node_babysense_motors,node_h3c_motors,node_demo toneRose
class node_camera_user toneIndigo
```

## Components

### Device profiles

- [Supported devices](https://github.com/openipc/builder/blob/master/README.md): `README.md`
- [Device configurations](https://github.com/openipc/builder/tree/master/devices): `devices`
- [Shared device layers](https://github.com/openipc/builder/tree/master/devices/common): `devices/common`
- [Device overlays](https://github.com/openipc/builder/tree/master/devices): `devices`

### Platform extensions

- [Chip extensions](https://github.com/openipc/builder/tree/master/devices/common): `devices/common`

### Firmware capabilities

- [OpenIPC Builder](https://github.com/openipc/builder/blob/master/README.md): `README.md`
- [Profile tweaker](https://github.com/openipc/builder/blob/master/README.md): `README.md`
- [Customized firmware](https://github.com/openipc/builder/blob/master/README.md): `README.md`
- [Firmware storage](https://github.com/openipc/builder/blob/master/README.md): `README.md`
- [QR Wi-Fi setup](https://github.com/openipc/builder/blob/master/README.md): `README.md`

### Device runtime

- [KC110 PTZ control](https://github.com/openipc/builder/blob/master/package/kc110-board-support/src/ptz.c): `package/kc110-board-support/src/ptz.c`
- [Babysense motors](https://github.com/openipc/builder/blob/master/devices/ssc333_lite_babysense-see-hd-ip206/general/package/sigmastar-motors/src/motor.c): `devices/ssc333_lite_babysense-see-hd-ip206/general/package/sigmastar-motors/src/motor.c`
- [H3C motors](https://github.com/openipc/builder/blob/master/devices/ssc337_lite_h3c-tc2101/general/package/sigmastar-motors/src/motor.c): `devices/ssc337_lite_h3c-tc2101/general/package/sigmastar-motors/src/motor.c`
- [Welcome demo](https://github.com/openipc/builder/blob/master/package/demo-openipc/src/demo-openipc.c): `package/demo-openipc/src/demo-openipc.c`

### Other components

- **Firmware user**
- **Camera operator**

## Connections

- Firmware user → OpenIPC Builder: uses (evidence: `README.md`)
- OpenIPC Builder → Supported devices: supports (evidence: `README.md`)
- Firmware user → Device configurations: selects profile
- Device configurations → Shared device layers: extends
- Device configurations → Chip extensions: configures
- Device configurations → Device overlays: customizes
- OpenIPC Builder → Customized firmware: builds
- Profile tweaker → Device configurations: configures (evidence: `README.md`)
- OpenIPC Builder → Firmware storage: provides firmware (evidence: `README.md`)
- Camera operator → QR Wi-Fi setup: scans code (evidence: `README.md`)
- QR Wi-Fi setup → Customized firmware: configures Wi-Fi (evidence: `README.md`)
- Camera operator → KC110 PTZ control: runs commands
- Camera operator → Babysense motors: runs commands
- Camera operator → H3C motors: runs commands
