Files
HDMI-Tester/.agent/workflows/cli-tester.md

1.1 KiB

description
description
HDMI Tester CLI Simulator Workflow

This workflow explains how to use the simulator.py tool to test the HDMI Head Unit logic without physical hardware.

Prerequisites

  1. Ensure the Web UI is running:
    npm run dev
    
  2. (Optional) Create a virtual environment and install requirements:
    pip install requests
    

1. Register a New Device

// turbo Run this command to send the initial registration request to the server:

python3 firmware/simulator.py register

After running this, go to the Admin Panel to enroll the device.

2. Send a Mock Test Result

// turbo Once the device is enrolled, you can send a mock HDMI test:

python3 firmware/simulator.py test

3. Switch Modes & Slots

// turbo Toggle between DEV and PROD modes, or swap A/B slots:

python3 firmware/simulator.py mode-prod
python3 firmware/simulator.py swap

4. Continuous Simulation Loop

// turbo To keep the device alive and reporting periodically:

python3 firmware/simulator.py loop