feat: DDP frame sync over UDP broadcast, DDP acks, DDP enable setting
- Driver acks each completed DDP frame; the test waits for the acks before broadcasting the sync. - Sync listener on UDP 4049: a frame is held until the next sync, then shown. - DDP pixels are shown at full brightness, ignoring the device brightness settings. - "DDP and sync receive on" setting (NVS, network API, web UI); off ignores DDP and sync packets. - ddp_test.py: finds devices on the subnet, drives them in lockstep at a fixed rate, runs animations. - /api/ddp reports sync counters for diagnosis. - Includes in-progress WebSocket, multi-driver web UI and Wi-Fi work from the same tree. Co-Authored-By: Claude Haiku 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
47f4eba0d6
commit
4cd3bc7973
294 files changed
+48954
-301
No files matched your search
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2025-2026 Espressif Systems (Shanghai) CO LTD
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
#pragma once
|
||||
|
||||
#include <stddef.h>
|
||||
#include "sdkconfig.h"
|
||||
#include "mdns_private.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_MDNS_ENABLE_DEBUG_PRINTS
|
||||
#include "esp_log.h"
|
||||
|
||||
/* Define the debug macros for the mDNS module
|
||||
*/
|
||||
#ifdef CONFIG_MDNS_ENABLE_BROWSE
|
||||
#define DBG_BROWSE_RESULTS(result, browse) mdns_debug_printf_browse_result(result, browse)
|
||||
|
||||
#define DBG_BROWSE_RESULTS_WITH_MSG(result, ...) do { \
|
||||
ESP_LOGD("mdns", __VA_ARGS__); \
|
||||
mdns_debug_printf_browse_result_all(result); \
|
||||
} while(0)
|
||||
#else
|
||||
#define DBG_BROWSE_RESULTS(result, browse)
|
||||
#define DBG_BROWSE_RESULTS_WITH_MSG(result, ...)
|
||||
#endif /* CONFIG_MDNS_ENABLE_BROWSE */
|
||||
|
||||
#define DBG_TX_PACKET(packet, data, len) mdns_debug_tx_packet(packet, data, len)
|
||||
|
||||
#define DBG_RX_PACKET(packet, data, len) mdns_debug_rx_packet(packet, data, len)
|
||||
|
||||
#ifdef CONFIG_MDNS_ENABLE_BROWSE
|
||||
/**
|
||||
* @brief Print the browse results
|
||||
*/
|
||||
void mdns_debug_printf_browse_result(mdns_result_t *r_t, mdns_browse_t *b_t);
|
||||
|
||||
/**
|
||||
* @brief Print all the browse results
|
||||
*/
|
||||
void mdns_debug_printf_browse_result_all(mdns_result_t *r_t);
|
||||
#endif /* CONFIG_MDNS_ENABLE_BROWSE */
|
||||
|
||||
/**
|
||||
* @brief Print the tx packet
|
||||
*/
|
||||
void mdns_debug_tx_packet(mdns_tx_packet_t *p, uint8_t packet[MDNS_MAX_PACKET_SIZE], uint16_t index);
|
||||
|
||||
/**
|
||||
* @brief Print the rx packet
|
||||
*/
|
||||
void mdns_debug_rx_packet(mdns_rx_packet_t *packet, const uint8_t* data, uint16_t len);
|
||||
|
||||
#else
|
||||
|
||||
/* Define the dummy debug macros if debugging is OFF
|
||||
*/
|
||||
#define DBG_BROWSE_RESULTS(result, browse)
|
||||
#define DBG_BROWSE_RESULTS_WITH_MSG(result, ...)
|
||||
#define DBG_TX_PACKET(packet, data, len)
|
||||
#define DBG_RX_PACKET(packet, data, len)
|
||||
|
||||
#endif // CONFIG_MDNS_ENABLE_DEBUG_PRINTS
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
Reference in new issue
Block a user