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
+23
-6
@@ -7,12 +7,19 @@ if(IDF_TARGET STREQUAL "linux")
|
||||
REQUIRES esp_http_server esp_timer esp_event cjson
|
||||
PRIV_REQUIRES mbedtls lwip esp_app_format)
|
||||
else()
|
||||
idf_component_register(SRCS "main.c" "mic.c" "beat.c" "beat_dsp.c" "espnow_tx.c" "bridge.c" "store.c" "api.c" "web.c" "envelope.c" "engine.c" "rel.c" "bench.c" "audio.c" "ota.c"
|
||||
"res_profile.c" "res_misc.c" "res_device.c" "res_group.c" "seqplay.c" "res_bundle.c" "audio_api.c" "patterns.c" "outputs.c" "dmx_wire.c" "ws.c" "ws_client.c" "wifi_drv.c" "res_dmx.c" "auth.c"
|
||||
INCLUDE_DIRS "." "../bridge/main"
|
||||
REQUIRES esp_eth esp_netif esp_event esp_driver_spi esp_driver_gpio nvs_flash app_update esp_app_format
|
||||
esp_http_server esp_timer esp_driver_i2s esp_wifi esp_rom cjson esp_driver_gpio
|
||||
PRIV_REQUIRES littlefs mdns mbedtls lwip w5500)
|
||||
# Waveshare ESP32-P4-Nano (docs/P4_NANO.md): internal EMAC Ethernet, ES8311 mic, and the C6 next to it for
|
||||
# Wi-Fi (esp-hosted) and ESP-NOW (bridge_hosted.c talking to radio-c6/)
|
||||
idf_component_register(SRCS "main.c" "mic.c" "beat.c" "beat_dsp.c" "espnow_tx.c" "bridge.c" "store.c" "api.c" "web.c" "envelope.c" "engine.c" "rel.c" "bench.c" "audio.c" "ota.c"
|
||||
"res_profile.c" "res_misc.c" "res_device.c" "res_group.c" "seqplay.c" "res_bundle.c" "audio_api.c" "patterns.c" "outputs.c" "dmx_wire.c" "ws.c" "ws_client.c" "wifi_drv.c" "res_dmx.c" "auth.c"
|
||||
"bridge_hosted.c" "c6_update.c"
|
||||
# the simulated rig at /sim/, shared with the host builds
|
||||
"../sim-controller/components/sim/sim_rig.c" "../sim-controller/components/sim/sim_net.c"
|
||||
INCLUDE_DIRS "." "../bridge/main"
|
||||
PRIV_INCLUDE_DIRS "../sim-controller/components/sim"
|
||||
REQUIRES esp_eth esp_netif esp_event esp_driver_gpio nvs_flash app_update esp_app_format
|
||||
esp_http_server esp_timer esp_driver_i2s esp_driver_i2c esp_wifi esp_rom cjson
|
||||
esp_hosted esp_wifi_remote esp_codec_dev esp_partition bootloader_support
|
||||
PRIV_REQUIRES littlefs mdns mbedtls lwip)
|
||||
endif()
|
||||
|
||||
# The gzipped web UI is embedded in the app image (run tools/build_web.sh first)
|
||||
@@ -20,3 +27,13 @@ if(NOT EXISTS ${COMPONENT_DIR}/../www_dist/www.pack)
|
||||
message(FATAL_ERROR "www_dist/www.pack is missing: run tools/build_web.sh (make build does)")
|
||||
endif()
|
||||
target_add_binary_data(${COMPONENT_LIB} ${COMPONENT_DIR}/../www_dist/www.pack BINARY)
|
||||
|
||||
# The simulated rig's page and drivers (tools/build_sim_web.sh), served at /sim/. The host build embeds its own
|
||||
# copy (the sim component). Without it the firmware still builds, and /sim/ says how to build the rig.
|
||||
if(NOT IDF_TARGET STREQUAL "linux")
|
||||
set(SIM_PACK ${COMPONENT_DIR}/../www_dist/sim.pack)
|
||||
if(NOT EXISTS ${SIM_PACK})
|
||||
file(WRITE ${SIM_PACK} "WWW1")
|
||||
endif()
|
||||
target_add_binary_data(${COMPONENT_LIB} ${SIM_PACK} BINARY)
|
||||
endif()
|
||||
Reference in new issue
Block a user