# YoloCam S3 Linux Tools Linux control suite for the **YoloCam S3** USB webcam by YoloLiv (Yunxi Technology). Provides a CLI tool and a PySide6 GUI for full camera parameter control over the Yunxi protobuf protocol. ## Hardware The YoloCam S3 (VID:PID `46f8:0855`) is a composite USB device exposing: - **CDC NCM** network interface (192.168.126.10) for camera control - **UVC** video class interface for live video feed The camera runs BusyBox Linux on a HiSilicon HI3519DV500 SoC (aarch64, musl libc). ## Repository Structure ``` yolocam-lib/ Shared Python library (protocol, params, client, CLUT) yolocam-ctl/ CLI tool for camera control yolocam-gui/ PySide6 GUI application docs/ User and technical documentation ``` ## Quick Start ### Prerequisites - Linux with USB support for CDC NCM - Python 3.10+ - [uv](https://docs.astral.sh/uv/) (`curl -LsSf https://astral.sh/uv/install.sh | sh`) ### Installation ```bash make install ``` This creates an isolated virtual environment at `~/.local/share/yolocam/venv`, installs all three packages in editable mode, and symlinks `yolocam-ctl` and `yolocam-gui` to `~/.local/bin/`. For the GUI, also install PySide6 and OpenCV from system packages: ```bash make install-gui-deps ``` Plug in the YoloCam S3 via USB. The CDC NCM interface should auto-configure via DHCP (host gets 192.168.126.11). ### CLI ```bash yolocam-ctl status # Check camera connection yolocam-ctl list # List all parameters yolocam-ctl get brightness # Read a parameter yolocam-ctl set brightness 60 # Set a parameter yolocam-ctl iso 400 # Set ISO yolocam-ctl shutter 1000 # Set shutter to 1/1000s yolocam-ctl monitor # Watch real-time notifications ``` ![CLI status output](docs/screenshots/cli-status.png) ![CLI parameter listing](docs/screenshots/cli-get-all.png) ### GUI ```bash yolocam-gui ``` The GUI auto-connects to the camera and displays the UVC video feed alongside parameter controls for exposure, white balance, focus, zoom, color grading, and audio. ![GUI main window](docs/screenshots/gui-main.png) ![Color grading panel](docs/screenshots/gui-color-grading.png) ## Documentation See the `docs/` directory for: - [CLI User Guide](docs/cli-guide.md) - [GUI User Guide](docs/gui-guide.md) - [Protocol Technical Reference](docs/protocol-reference.md) - [Device Access (Telnet/FTP)](docs/device-access.md) ## Protocol Overview The camera is controlled via TCP on port 12345 using a custom dual-envelope wire format wrapping protobuf `Message` payloads. All communication happens over the CDC NCM USB network interface. Wire format: ``` OUTER (8B): [0x08] [client_type] [0x00] [0x00] [LE32 inner_size] INNER (6B): [0xA5] [BE32 proto_size] [XOR header_checksum] PAYLOAD: [serialized protobuf Message] TRAILER (2B):[XOR data_checksum] [0x5A] ``` See [Protocol Technical Reference](docs/protocol-reference.md) for complete details. ## License This project is licensed under the [GNU General Public License v3.0](https://www.gnu.org/licenses/gpl-3.0.html) or later. See the `LICENSE` file in each sub-project for the full license text.