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
+5
-3
@@ -10,8 +10,10 @@
|
||||
// once it answers; the list is saved again then (bridge_set_renamed_cb).
|
||||
// "dmx:<id>" a DMX bridge (bridge_dmx.h, linux only): the "dmx_bridge" record id's fixtures, each a
|
||||
// led-driver of its own, sent as Art-Net, sACN or USB-DMX at 40 Hz.
|
||||
// "browser" the rig page the host build serves at /sim/ (linux target only): the simulated drivers
|
||||
// run in the browser and get the frames over the page's WebSocket (sim_rig.c).
|
||||
// "browser" the rig page at /sim/: the simulated drivers run in the browser and get the frames over the
|
||||
// page's WebSocket (sim_rig.c). Always running on esp32p4, whatever the list says.
|
||||
// "c6" the ESP32-P4-Nano's own C6 radio (bridge_hosted.h, esp32p4 only). Always running on
|
||||
// that target, whatever the list says: the P4 has no ESP-NOW of its own.
|
||||
// While one runs, nothing goes out over the air.
|
||||
|
||||
#include <stdbool.h>
|
||||
@@ -36,7 +38,7 @@ esp_err_t bridge_set_all(const char addrs[][BRIDGE_ADDR_MAX], size_t n, bridge_r
|
||||
// Called when a bridge's address changed by itself (a USB board became "usb:<mac>"): save the list
|
||||
void bridge_set_renamed_cb(void (*cb)(void));
|
||||
bool bridge_active(void);
|
||||
// A frame the rig page's drivers sent: src_mac(6) + packet (linux; sim_rig.c). Dropped unless "browser" runs.
|
||||
// A frame the rig page's drivers sent: src_mac(6) + packet (sim_rig.c). Dropped unless "browser" runs.
|
||||
void bridge_browser_rx(const uint8_t *frame, int len);
|
||||
// The driver with this MAC was heard on the browser bridge since start: a simulated driver of the rig page
|
||||
bool bridge_mac_is_browser(const uint8_t mac[6]);
|
||||
|
||||
Reference in new issue
Block a user