The controller runs an AP (SSID = hostname, 192.168.5.1) next to ESP-NOW, on by default. Network settings gain an on/off switch (ap_enabled) and an optional WPA2 password (ap_password, 8-63 chars; empty is open). A button on D7 (GPIO44) held at boot forces the AP on. Wi-Fi now starts before Ethernet, and a missing W5500 no longer aborts the boot: the web server and mDNS start anyway so the AP stays usable. Network tuning found while testing over the AP: HTTP backlog 10 and 12 open sockets (the default 5 dropped the 6th SYN, a 1 s stall on every page load), larger TCP and Wi-Fi buffers, and IPv6 link-local addresses so mDNS answers AAAA queries (browsers waited about a second for them). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
CONFIG_IDF_TARGET="esp32s3"
|
|
# XIAO ESP32S3 USB-C is wired to the native USB Serial/JTAG
|
|
CONFIG_ESP_CONSOLE_USB_SERIAL_JTAG=y
|
|
CONFIG_ETH_USE_SPI_ETHERNET=y
|
|
CONFIG_ETH_SPI_ETHERNET_W5500=y
|
|
# XIAO ESP32S3 Plus: 16 MB flash and 8 MB octal PSRAM (ESP32-S3R8)
|
|
CONFIG_ESPTOOLPY_FLASHSIZE_16MB=y
|
|
CONFIG_SPIRAM=y
|
|
CONFIG_SPIRAM_MODE_OCT=y
|
|
CONFIG_SPIRAM_SPEED_80M=y
|
|
CONFIG_PARTITION_TABLE_CUSTOM=y
|
|
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME="partitions.csv"
|
|
CONFIG_PARTITION_TABLE_FILENAME="partitions.csv"
|
|
CONFIG_COMPILER_OPTIMIZATION_SIZE=y
|
|
CONFIG_FREERTOS_HZ=1000
|
|
CONFIG_ESP_WIFI_ESPNOW_MAX_ENCRYPT_NUM=7
|
|
CONFIG_ESPNOW_CHANNEL=5
|
|
CONFIG_BEAT_TEST_GPIO=4
|
|
# A new OTA image must confirm itself (ota_confirm_later) or the bootloader goes back to the old one
|
|
CONFIG_BOOTLOADER_APP_ROLLBACK_ENABLE=y
|
|
# /ws (browser websocket)
|
|
CONFIG_HTTPD_WS_SUPPORT=y
|
|
CONFIG_HTTPD_WS_POST_HANDSHAKE_CB_SUPPORT=y
|
|
CONFIG_ESP_SYSTEM_EVENT_TASK_STACK_SIZE=8192
|
|
CONFIG_LWIP_TCP_SND_BUF_DEFAULT=16384
|
|
CONFIG_LWIP_TCP_WND_DEFAULT=16384
|
|
CONFIG_LWIP_TCP_RECVMBOX_SIZE=12
|
|
CONFIG_ESP_WIFI_STATIC_RX_BUFFER_NUM=16
|
|
CONFIG_ESP_WIFI_DYNAMIC_RX_BUFFER_NUM=64
|
|
CONFIG_ESP_WIFI_DYNAMIC_TX_BUFFER_NUM=64
|
|
CONFIG_ESP_WIFI_TX_BA_WIN=16
|
|
CONFIG_ESP_WIFI_RX_BA_WIN=16
|
|
CONFIG_LWIP_MAX_SOCKETS=16
|