HFP Tone Debug
Goal: Get the ESP-ADF Hands-Free Profile (HFP) player example to emit continuous audio so we can validate the capture/playback loop before moving to automated mux sweeping. We’re forcing a synthetic 1 kHz tone through the playback pipeline to prove the digital path works without relying on a phone connection. We are not able to get any tone or audio. Logs don't show audio_pipeline_run(...)
Hardware/Codec: AI-Thinker ESP32-A1S DevKit using the ES8388 codec (LINE2 for ADC input, DAC feeding headphone amp). Software targets ESP-IDF v5.5.2 with the ESP-ADF board profile CONFIG_AI_THINKER_ESP32_A1S_BOARD.
Pipelines/Elements:
Playback (pipeline_in): raw_stream tone source → i2s_stream_writer → ES8388 DAC.
Capture (pipeline_out): i2s_stream_reader (ES8388 ADC) → capture_gain (saturation/loopback mixer feed) → hfp_out_stream.
Loopback ring buffer feeds the mixer when not in tone mode; currently bypassed.
Protocols/Interfaces:
Bluetooth HFP over Classic BT using SCO over HCI (set via bt_cfg.bt_sco_datapath = ESP_SCO_DATA_PATH_HCI).
I2S port 0 in mono mode for both ADC and DAC, 16 kHz / 16-bit frames sized to 60 samples (matches SCO CVSD packet timing).
Current Sticking Point: After audio_pipeline_run() we only see the pipeline resume logs; no flow-diagnostic task output or tone logs appear, indicating the pipeline tasks never advance. We’ve added return-value logging around the audio_pipeline_run calls and are waiting on monitor output showing those values to decide the next instrumentation step.
Goal: Get the ESP-ADF Hands-Free Profile (HFP) player example to emit continuous audio
Who is online
Users browsing this forum: No registered users and 1 guest