How neme77/centauri-carbon-2-community works
This repository combines community firmware for the Centauri Carbon 2 with CC2 Control, a local browser-based printer interface and managed update capabilities. The principal user workflow is to operate the printer through the web UI: the app polls printer state, presents task-specific pages and dialogs, and exposes print preparation, bed levelling, filament, and update features. Firmware assembly and native-component delivery are separate supporting workflows. The sampled source shows selected startup, UI, and preview relationships; other README capabilities are retained without assuming unshown call paths.
Main entry points: package.py Control installer · App.tsx App shell · native_delivery.py Native delivery · main.tsx Web app entry
Components 25
Browser control
- Web app entry
cc2-control/web-src/src/main.tsx - App shell
cc2-control/web-src/src/App.tsx - Printer pages
cc2-control/web-src/src/pages - Print dialog
cc2-control/web-src/src/pages/print-dialog.tsx - UI state and API
cc2-control/web-src/src/lib/state.ts - Object preview UI
cc2-control/web-src/src/lib/object-preview.ts
Printer runtime
- Control service
cc2-control/src/main.c - Layer paths
cc2-control/src/gcode_layer_path.h - G-code object previews
cc2-control/src/gcode_object_preview.h - Print queue
cc2-control/src/queue.h - Bed plates
cc2-control/src/plates.h - Nozzle expansion
cc2-control/src/nozzle_expansion.h - Spool management
cc2-control/src/spools.h - Spoolman integration
cc2-control/src/spoolman.h - Cavity protocol
cc2-control/src/cavity_floor_protocol.h
Firmware and updates
- Firmware assembly
builder/current/core/firmware_builder.py - Printer startup staging
builder/current/core/startup_stock13.py - Camera component
builder/current/core/camera_component.py - Control installer
cc2-control/installer/package.py - Native delivery
cc2-control/installer/native_delivery.py - App binding
cc2-control/installer/app_binding_component.py - Network component
cc2-control/installer/network_component.py
RFID lifecycle
- RFID component
cc2-control/installer/rfid_component.py - Canvas transfer
experimental/canvas-rfid/transfer/app_transfer.h
Other components
- Printer operator
Connections 20
- Printer operator → Web app entry: uses
README.md - Web app entry → App shell: renders
cc2-control/web-src/src/main.tsx - Web app entry → UI state and API: polls state
cc2-control/web-src/src/main.tsx - App shell → Printer pages: shows page
cc2-control/web-src/src/App.tsx - App shell → Print dialog: renders
cc2-control/web-src/src/App.tsx - App shell → Object preview UI: uses
cc2-control/web-src/src/App.tsx - Control service → Layer paths: includes
cc2-control/src/main.c - Control service → G-code object previews: includes handler
cc2-control/src/main.c - G-code object previews → Layer paths: shares worker
cc2-control/src/gcode_object_preview.h - Object preview UI → G-code object previews: requests preview
- Firmware assembly → Camera component: references
builder/current/core/firmware_builder.py - Printer startup staging → Camera component: stages
builder/current/core/startup_stock13.py - Control installer → Native delivery: uses
cc2-control/installer/package.py - Control installer → App binding: uses
cc2-control/installer/package.py - Control installer → Network component: uses
cc2-control/installer/package.py - Control installer → RFID component: uses
cc2-control/installer/package.py - Native delivery → App binding: uses
cc2-control/installer/native_delivery.py - Native delivery → Network component: uses
cc2-control/installer/native_delivery.py - Native delivery → RFID component: uses
cc2-control/installer/native_delivery.py - Canvas transfer → Cavity protocol: uses protocol
experimental/canvas-rfid/lifecycle/stage_worker.c