# arcanelantern/a7cii-open-gate-test architecture

> Architecture diagram of the GitHub repository arcanelantern/a7cii-open-gate-test, 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/arcanelantern/a7cii-open-gate-test
- Repository: https://github.com/arcanelantern/a7cii-open-gate-test

## Overview

This is a Sony A7C II firmware 2.01 field-test kit for temporarily enabling 4K and 5.7K open-gate recording, with optional C2 preview cycling and a De-Squeeze Display menu. The main workflow is user-selected options → apply orchestration → simulated plan check and guarded camera steps → temporary camera-memory changes. The desktop window runs the same apply script through a child process. Collection and firmware-modification work support compatibility checks and the optional menu/cycle features. Unsampled launchers and camera-step internals are represented only where the README or source index supports their roles.

Main entry points: [`windows/tools/camera_tests/CT6_memory_read_check/open_gate_apply_c2.py`](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/open_gate_apply_c2.py) (Apply planner), [`windows/tools/camera_tests/CT6_memory_read_check/ct6_level1_run.py`](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/ct6_level1_run.py) (Step runner), [`windows/tools/camera_tests/CT1_usb_first_contact/ct1_stage2_service.py`](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT1_usb_first_contact/ct1_stage2_service.py) (USB service session), [`windows/tools/camera_tests/CT6_memory_read_check/one_session.py`](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/one_session.py) (Single-session apply)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interfaces"]
  node_window["Desktop window"]
  node_child["Child runner<br/>[run_child.py]"]
end

subgraph group_apply["Apply and checks"]
  node_apply_script["Apply planner"]
  node_single_session["Single-session apply<br/>[one_session.py]"]
  node_step_runner["Step runner<br/>[ct6_level1_run.py]"]
  node_step_modes["Step plans<br/>[c2_level_run.py]"]
end

subgraph group_camera["Camera access"]
  node_collect["Build collector<br/>[c2_collect.py]"]
  node_usb_service["USB service session"]
  node_usb_rules["USB guards<br/>[ct1_common.py]"]
  node_sim_camera["Camera simulator<br/>[ct1_sim.py]"]
end

subgraph group_features["Camera features"]
  node_menu_payload["De-squeeze menu payload"]
  node_cycle_tables["C2 cycle tables<br/>[pool.h]"]
  node_menu_design["Menu design<br/>[menu.c]"]
  node_menu_emulator["Menu emulator<br/>[emu_dsq_menu_c2.py]"]
  node_menu_builder["Menu builder"]
end

node_user(("Operator"))
node_camera_device(("A7C II camera"))

node_user -->|"chooses options"| node_window
node_window -->|"starts process"| node_child
node_child -->|"runs script"| node_apply_script
node_user -->|"runs launcher"| node_apply_script
node_apply_script -->|"selects mode"| node_single_session
node_apply_script -->|"runs steps"| node_step_modes
node_apply_script -->|"checks build"| node_collect
node_single_session -->|"runs each step"| node_step_runner
node_step_modes -->|"runs step"| node_step_runner
node_step_runner -->|"uses service session"| node_usb_service
node_usb_service -->|"uses guards"| node_usb_rules
node_usb_service -->|"reads and writes"| node_camera_device
node_collect -->|"reads firmware files"| node_camera_device
node_collect -->|"uses service access"| node_usb_service
node_single_session -->|"simulates plan"| node_sim_camera
node_step_runner -->|"supports dry run"| node_sim_camera
node_apply_script -->|"can apply menu"| node_menu_payload
node_apply_script -->|"can apply cycle"| node_cycle_tables
node_menu_design -->|"shares cycle data"| node_cycle_tables
node_menu_emulator -->|"emulates design"| node_menu_design
node_menu_builder -->|"builds payload"| node_menu_design
node_menu_builder -.->|"generates payload"| node_menu_payload

click node_window "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/desktop/open_gate_window.py"
click node_child "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/desktop/run_child.py"
click node_apply_script "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/open_gate_apply_c2.py"
click node_single_session "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/one_session.py"
click node_step_runner "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/ct6_level1_run.py"
click node_step_modes "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/c2_level_run.py"
click node_collect "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/c2_collect.py"
click node_usb_service "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT1_usb_first_contact/ct1_stage2_service.py"
click node_usb_rules "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT1_usb_first_contact/ct1_common.py"
click node_sim_camera "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT1_usb_first_contact/ct1_sim.py"
click node_menu_payload "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/helper_pp/expected_pb_dsqmenu_c2_v1.h"
click node_cycle_tables "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/modding/lcdcycle_c2/pool.h"
click node_menu_design "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/modding/dsqmenu_c2/menu.c"
click node_menu_emulator "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/modding/dsqmenu_c2/emu_dsq_menu_c2.py"
click node_menu_builder "https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/modding/dsqmenu_c2/build_dsqmenu_pp.py"

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_window,node_child toneBlue
class node_apply_script,node_single_session,node_step_runner,node_step_modes toneAmber
class node_collect,node_usb_service,node_usb_rules,node_sim_camera toneMint
class node_menu_payload,node_cycle_tables,node_menu_design,node_menu_emulator,node_menu_builder toneRose
class node_user,node_camera_device toneIndigo
```

## Components

### User interfaces

- [Desktop window](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/desktop/open_gate_window.py): `desktop/open_gate_window.py`
- [Child runner](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/desktop/run_child.py): `desktop/run_child.py`

### Apply and checks

- [Apply planner](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/open_gate_apply_c2.py): `windows/tools/camera_tests/CT6_memory_read_check/open_gate_apply_c2.py`
- [Single-session apply](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/one_session.py): `windows/tools/camera_tests/CT6_memory_read_check/one_session.py`
- [Step runner](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/ct6_level1_run.py): `windows/tools/camera_tests/CT6_memory_read_check/ct6_level1_run.py`
- [Step plans](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/c2_level_run.py): `windows/tools/camera_tests/CT6_memory_read_check/c2_level_run.py`

### Camera access

- [Build collector](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/c2_collect.py): `windows/tools/camera_tests/CT6_memory_read_check/c2_collect.py`
- [USB service session](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT1_usb_first_contact/ct1_stage2_service.py): `windows/tools/camera_tests/CT1_usb_first_contact/ct1_stage2_service.py`
- [USB guards](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT1_usb_first_contact/ct1_common.py): `windows/tools/camera_tests/CT1_usb_first_contact/ct1_common.py`
- [Camera simulator](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT1_usb_first_contact/ct1_sim.py): `windows/tools/camera_tests/CT1_usb_first_contact/ct1_sim.py`

### Camera features

- [De-squeeze menu payload](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/camera_tests/CT6_memory_read_check/helper_pp/expected_pb_dsqmenu_c2_v1.h): `windows/tools/camera_tests/CT6_memory_read_check/helper_pp/expected_pb_dsqmenu_c2_v1.h`
- [C2 cycle tables](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/modding/lcdcycle_c2/pool.h): `windows/tools/modding/lcdcycle_c2/pool.h`
- [Menu design](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/modding/dsqmenu_c2/menu.c): `windows/tools/modding/dsqmenu_c2/menu.c`
- [Menu emulator](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/modding/dsqmenu_c2/emu_dsq_menu_c2.py): `windows/tools/modding/dsqmenu_c2/emu_dsq_menu_c2.py`
- [Menu builder](https://github.com/arcanelantern/a7cii-open-gate-test/blob/main/windows/tools/modding/dsqmenu_c2/build_dsqmenu_pp.py): `windows/tools/modding/dsqmenu_c2/build_dsqmenu_pp.py`

### Other components

- **Operator**
- **A7C II camera**

## Connections

- Operator → Desktop window: chooses options (evidence: `desktop/open_gate_window.py`)
- Desktop window → Child runner: starts process (evidence: `desktop/open_gate_window.py`)
- Child runner → Apply planner: runs script (evidence: `desktop/run_child.py`)
- Operator → Apply planner: runs launcher (evidence: `README.md`)
- Apply planner → Single-session apply: selects mode (evidence: `windows/tools/camera_tests/CT6_memory_read_check/open_gate_apply_c2.py`)
- Apply planner → Step plans: runs steps (evidence: `windows/tools/camera_tests/CT6_memory_read_check/open_gate_apply_c2.py`)
- Apply planner → Build collector: checks build (evidence: `windows/tools/camera_tests/CT6_memory_read_check/open_gate_apply_c2.py`)
- Single-session apply → Step runner: runs each step (evidence: `windows/tools/camera_tests/CT6_memory_read_check/one_session.py`)
- Step plans → Step runner: runs step (evidence: `windows/tools/camera_tests/CT6_memory_read_check/c2_level_run.py`)
- Step runner → USB service session: uses service session (evidence: `windows/tools/camera_tests/CT6_memory_read_check/ct6_level1_run.py`)
- USB service session → USB guards: uses guards (evidence: `windows/tools/camera_tests/CT1_usb_first_contact/ct1_stage2_service.py`)
- USB service session → A7C II camera: reads and writes (evidence: `README.md`)
- Build collector → A7C II camera: reads firmware files (evidence: `windows/tools/camera_tests/CT6_memory_read_check/c2_collect.py`)
- Build collector → USB service session: uses service access (evidence: `windows/tools/camera_tests/CT6_memory_read_check/c2_collect.py`)
- Single-session apply → Camera simulator: simulates plan (evidence: `windows/tools/camera_tests/CT6_memory_read_check/one_session.py`)
- Step runner → Camera simulator: supports dry run (evidence: `windows/tools/camera_tests/CT6_memory_read_check/ct6_level1_run.py`)
- Apply planner → De-squeeze menu payload: can apply menu (evidence: `README.md`)
- Apply planner → C2 cycle tables: can apply cycle (evidence: `README.md`)
- Menu design → C2 cycle tables: shares cycle data (evidence: `windows/tools/modding/dsqmenu_c2/menu.c`)
- Menu emulator → Menu design: emulates design (evidence: `windows/tools/modding/dsqmenu_c2/emu_dsq_menu_c2.py`)
- Menu builder → Menu design: builds payload (evidence: `windows/tools/modding/dsqmenu_c2/build_dsqmenu_pp.py`)
- Menu builder → De-squeeze menu payload: generates payload
