P4-Nano: controller port with the C6 as ESP-NOW radio, and the simulator
The controller now builds for the Waveshare ESP32-P4-Nano only (plus the linux sim and the desktop); the S3 stays for the USB/network bridge in bridge/. - radio-c6/: C6 firmware, esp-hosted plus ESP-NOW over peer data. The P4 loads it from the slave_fw partition when the C6 runs another version (c6_update.c) - bridge_hosted.c: the C6 as the always-on "c6" bridge, and the P4 as a network bridge on UDP 8766 for the desktop - Ethernet on the P4's EMAC, ES8311 mic; default address 192.168.50.20. The W5500, INMP441 and direct ESP-NOW code is gone - The simulated rig at /sim/ is built into the board image, with an always-on "browser" bridge. Its frames go through a queue so a slow page cannot hold up the radio, and frames for simulated bars are not sent over the C6. Receiver buffers are on the heap; a bar's flash file is only written when it changes - HTTP server: more handlers, sockets and stack for the rig - docs/P4_NANO.md, README and Makefile updated; graphify output Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ba8e160aee
commit
4ab0c7c6d7
101 files changed
+3284
-971
No files matched your search
@@ -1,15 +1,15 @@
|
||||
# led-controller
|
||||
|
||||
ESP32-S3 controller for LED drivers: W5500 Ethernet, web UI, I2S microphone beat detection and an ESP-NOW link to the drivers. The firmware is C (ESP-IDF) at the repository root; see [`docs/BENCH_TEST.md`](docs/BENCH_TEST.md) for the bench tests.
|
||||
Controller for LED drivers on a Waveshare ESP32-P4-Nano: Ethernet, web UI, microphone beat detection and an ESP-NOW link to the drivers through the board's ESP32-C6 ([`docs/P4_NANO.md`](docs/P4_NANO.md)). The firmware is C (ESP-IDF) at the repository root; see [`docs/BENCH_TEST.md`](docs/BENCH_TEST.md) for the bench tests. The ESP32-S3 is only used as a bridge board now ([`bridge/`](bridge/README.md)).
|
||||
|
||||
It keeps profiles, zones, presets, device groups, sequences, palettes, patterns and outputs in its flash, and serves the web UI and JSON API ([`docs/API.md`](docs/API.md)). Zones play to device groups. Sequences advance on the beats the microphone detects, or on a BPM clock while audio is stopped. Profiles, presets and sequences import and export as JSON bundles.
|
||||
|
||||
## Build and flash
|
||||
|
||||
```bash
|
||||
make build # minify the web UI from web/, then build the firmware (ESP-IDF in Docker)
|
||||
make flash # flash over USB
|
||||
make ota [HOST=<ip>] # update firmware (web UI included) over Ethernet, no USB (POST /ota); HOST defaults to led-controller.local
|
||||
make build # minify the web UI from web/, then build the C6 radio and the controller (ESP-IDF in Docker)
|
||||
make flash # flash over USB (the controller and the C6 image)
|
||||
make ota [HOST=<ip>] # update firmware (web UI included) over Ethernet, no USB (POST /ota); HOST defaults to 192.168.50.20
|
||||
make monitor # serial console
|
||||
make test # driver unit tests and the C/Python envelope cross-check
|
||||
make test-api HOST=<ip> # HTTP API tests against a running controller (its data is restored afterwards)
|
||||
@@ -42,7 +42,7 @@ The controller advertises `<hostname>.local` over mDNS (default `led-controller`
|
||||
|
||||
`static_ips` is a list of networks to try, in order, each time the Ethernet link comes up. The first entry whose gateway answers ARP is used; if none does (or the list is empty) the controller uses DHCP. `netmask` defaults to `255.255.255.0`, `dns` to the gateway.
|
||||
|
||||
If DHCP gets no answer within 15 seconds, the controller takes `192.168.4.1/24`. For a cable straight from a PC, give the PC a static IP on that subnet, such as `192.168.4.2/24`, and open `http://192.168.4.1/`. The controller tries DHCP again only when the link next comes up.
|
||||
If DHCP gets no answer within 5 seconds, the controller takes `192.168.50.20/24` (menuconfig "ESP32-P4-Nano board"). For a cable straight from a PC, give the PC a static IP on that subnet, such as `192.168.50.10/24`, and open `http://192.168.50.20/`. The controller tries DHCP again only when the link next comes up.
|
||||
|
||||
```bash
|
||||
curl -X PUT http://led-controller.local/settings/settings -H 'Content-Type: application/json' -d '{
|
||||
|
||||
Reference in new issue
Block a user