Step 4.2: PTP-paced AES67 RTP sender with 1 kHz test tone
- aes67_tx: TX task woken by an esp_timer every packet time; sends every packet whose last sample is in the past (PTP time), RTP ts = (sample index from PTP + clk_offset) mod 2^32, packets aligned to multiples of the packet size. Sends only while PTP is locked; resyncs on lock, clock step or > 20 ms lag. L24/L16 big-endian, TTL/DSCP/ multicast IF from config; a config save restarts TX. - Built-in 1 kHz tone at -18 dBFS, phase from the PTP sample index; aes67_tx_set_source() pull callback for later sources (underruns counted, padded with silence). status: tx_packets, underruns. - Verified with a receiver script on the PC: 1 ms L24 stereo 1000/s, 0 gaps, ts step 48, tone -18.00 dBFS within 1.2 LSB of the ideal PTP-phased sine; also L16 mono 0.333 ms, 0.125 ms (8000/s) and 4 ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
idf_component_register(SRCS "aes67_tx.c"
|
||||
INCLUDE_DIRS "include"
|
||||
PRIV_REQUIRES aes67_web lwip)
|
||||
PRIV_REQUIRES aes67_net aes67_ptp aes67_web esp_netif esp_timer lwip)
|
||||
|
||||
Reference in New Issue
Block a user