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:
@@ -38,5 +38,6 @@ void app_main(void)
|
||||
project_cfg_register();
|
||||
ESP_ERROR_CHECK(aes67_ota_init());
|
||||
ESP_ERROR_CHECK(aes67_sdp_sap_init());
|
||||
ESP_ERROR_CHECK(aes67_tx_start());
|
||||
ESP_ERROR_CHECK(aes67_web_start());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user