docs: P4-Nano controller and simulator, users API, README screenshots
README, API, help, P4_NANO and the sub-READMEs now describe the ESP32-P4-Nano controller and the simulator on it. API.md gains the users and permissions routes; BENCH_TEST and SPECIFICATION are marked historical. Screenshots of the simulator, sequence editor and pattern gallery. Graph rebuilt. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
8756315a7b
commit
e0c6c36996
32 files changed
+269751
-683
No files matched your search
+25
-6
@@ -20,8 +20,10 @@ PC <-------------------------------> ESP32-P4 <------------------------------
|
||||
to the P4. It does the same job as the USB bridge in `bridge/`, but over SDIO.
|
||||
- **Microphone:** the on-board mic goes through the ES8311 codec, set up over I2C with `esp_codec_dev`. The
|
||||
rest of the mic path (levels, beat detection, streaming) runs on the P4.
|
||||
- **Status:** `GET /status` lists the `c6` bridge (kind `c6`). It shows whether the C6 is linked, its MAC and
|
||||
channel, its counters, and which desktop is using the radio, if any.
|
||||
- **Status:** `GET /settings/bridge` lists the `c6` bridge (kind `c6`) and the `browser` one ([Simulator](#simulator)).
|
||||
For `c6` it shows whether the C6 is linked, its MAC and channel, its counters, and which desktop is using the
|
||||
radio, if any.
|
||||
- **Cores:** both P4 cores are used. The controller's tasks are not pinned to one.
|
||||
|
||||
## Build and flash
|
||||
|
||||
@@ -29,7 +31,8 @@ Use ESP-IDF v6.1 (`espressif/idf:v6.1`). The settings are `sdkconfig.defaults` a
|
||||
`partitions.csv`.
|
||||
|
||||
```bash
|
||||
make build # the web UI, radio-c6/ (C6) and the controller (P4)
|
||||
make sim-wasm # once, and after led-driver changes: the simulator's drivers
|
||||
make build # the web UI, the simulator, radio-c6/ (C6) and the controller (P4)
|
||||
make flash PORT=/dev/ttyACM0 # the controller, plus the C6 image into the slave_fw partition
|
||||
make log PORT=/dev/ttyACM0 # the console for 10 s (the board's USB-C port is a CH343 UART)
|
||||
make ota HOST=192.168.50.20 # later updates over Ethernet (not the C6 image: flash for that)
|
||||
@@ -41,12 +44,23 @@ over esp-hosted OTA and restarts the board. This takes about 10 seconds, and onl
|
||||
after a change. Never put the one-off updater in `scripts/c6-ota/host-v2` on the board again: it updates the
|
||||
C6 on every boot.
|
||||
|
||||
## Flash layout
|
||||
|
||||
`partitions.csv`, 16 MB:
|
||||
|
||||
| Partition | Size | What |
|
||||
| --- | --- | --- |
|
||||
| `ota_0`, `ota_1` | 3 MB each | the controller, web UI and simulator included |
|
||||
| `db` | 8.1 MB (0x820000) | LittleFS: the records, and the simulator's rooms and bars in `/db/sim` |
|
||||
| `slave_fw` | 1.75 MB | the C6 image |
|
||||
| `nvs`, `otadata`, `phy_init` | 36 KB | |
|
||||
|
||||
## Network
|
||||
|
||||
The board sits on a cable straight to the PC (192.168.50.10), so there is no DHCP server. At boot it tries:
|
||||
1. the settings `static_ips`
|
||||
2. DHCP, for 5 seconds
|
||||
3. **192.168.50.20/24**, with no gateway (menuconfig "ESP32-P4-Nano")
|
||||
3. **192.168.50.20/24**, with no gateway (menuconfig "ESP32-P4-Nano board")
|
||||
|
||||
The web UI is at http://192.168.50.20/.
|
||||
|
||||
@@ -89,10 +103,15 @@ The C6 keeps running `radio-c6`. Waveshare's demo uses an older esp-hosted, whic
|
||||
|
||||
## Simulator
|
||||
|
||||
The board serves the same simulated rig as the desktop at `/sim/` (Menu > Simulator). The bars run in the browser and
|
||||
The board serves the same simulated rig as the desktop at `/sim/` (Menu > Simulator; see `led-simulator/README.md`). The
|
||||
bars run in the browser and
|
||||
get the controller's frames from the `browser` bridge, which is always on next to `c6`. Frames addressed to simulated
|
||||
bars (MACs starting 02:51:4d) are not sent over the C6. A page that reads too slowly loses frames; the radio does not
|
||||
wait for it. Rooms and the bars' flash are in `/db/sim`.
|
||||
|
||||
`make build` packs the page from `led-simulator/web`. The bars' WebAssembly comes from `make sim-wasm`; without it
|
||||
`/sim/` only says how to build it.
|
||||
`/sim/` only says how to build it. `make build` reuses whatever WebAssembly is there, so run `make sim-wasm` again after
|
||||
led-driver changes.
|
||||
|
||||
Art-Net and DDP sent to the board reach the rig's network fixtures. The board's own outputs reach them too, aimed at
|
||||
`127.0.0.1`. DMX bridges (`dmx:<id>`) are in the host builds only.
|
||||
Reference in new issue
Block a user