开发板ESP32-LyraT-Mini_V1.2运行经典蓝牙 HFP 例程pipeline_hfp_stream异常,没有声音输出
Posted: Thu Jun 11, 2026 1:30 pm
Executing action: monitor
Running idf_monitor in directory /home/king/esp32/work/pipeline_hfp_stream
Executing "/home/king/.espressif/python_env/idf5.5_py3.10_env/bin/python /home/king/esp32/esp-adf-v2.8/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 /home/king/esp32/work/pipeline_hfp_stream/build/pipeline_hfp_stream_example.elf /home/king/esp32/work/pipeline_hfp_stream/build/bootloader/bootloader.elf -m '/home/king/.espressif/python_env/idf5.5_py3.10_env/bin/python' '/home/king/esp32/esp-adf-v2.8/esp-idf/tools/idf.py'"...
--- esp-idf-monitor 1.9.0 on /dev/ttyUSB0 115200
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
I (13) boot: ESP-IDF v5.5.4 2nd stage bootloader
I (13) boot: compile time Jun 11 2026 20:51:04
I (13) boot: Multicore bootloader
I (14) boot: chip revision: v3.1
I (16) boot.esp32: SPI Speed : 40MHz
I (20) boot.esp32: SPI Mode : DIO
I (24) boot.esp32: SPI Flash Size : 8MB
I (27) boot: Enabling RNG early entropy source...
I (32) boot: Partition Table:
I (34) boot: ## Label Usage Type ST Offset Length
I (41) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (47) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (54) boot: 2 factory factory app 00 00 00010000 00300000
I (60) boot: End of partition table
I (64) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=2ce70h (183920) map
I (134) esp_image: segment 1: paddr=0003ce98 vaddr=3ffbdb60 size=03180h ( 12672) load
I (139) esp_image: segment 2: paddr=00040020 vaddr=400d0020 size=aad24h (699684) map
I (378) esp_image: segment 3: paddr=000ead4c vaddr=3ffc0ce0 size=01d4ch ( 7500) load
I (381) esp_image: segment 4: paddr=000ecaa0 vaddr=40080000 size=18664h ( 99940) load
I (421) esp_image: segment 5: paddr=0010510c vaddr=50000000 size=00020h ( 32) load
I (433) boot: Loaded app from partition at offset 0x10000
I (433) boot: Disabling RNG early entropy source...
I (444) cpu_start: Multicore app
I (452) cpu_start: GPIO 3 and 1 are used as console UART I/O pins
I (453) cpu_start: Pro cpu start user code
I (453) cpu_start: cpu freq: 160000000 Hz
I (455) app_init: Application information:
I (458) app_init: Project name: pipeline_hfp_stream_example
I (464) app_init: App version: 1
I (467) app_init: Compile time: Jun 11 2026 20:50:57
I (472) app_init: ELF file SHA256: 747e8f0f0...
I (477) app_init: ESP-IDF: v5.5.4
I (481) efuse_init: Min chip rev: v0.0
I (484) efuse_init: Max chip rev: v3.99
I (488) efuse_init: Chip rev: v3.1
I (493) heap_init: Initializing. RAM available for d
I (504) heap_init: At 3FFB7468 len 00000B98 (2 KiB): DRAM
I (509) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (514) heap_init: At 3FFCCAA8 len 00013558 (77 KiB): DRAM
I (519) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (525) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (530) heap_init: At 40098664 len 0000799C (30 KiB): IRAM
I (537) spi_flash: detected chip: generic
I (539) spi_flash: flash io: dio
I (543) coexist: coex firmware version: 093e3d2
I (547) main_task: Started on CPU0
I (550) main_task: Calling app_main()
I (578) HFP_EXAMPLE: [ 1 ] init Bluetooth
I (580) BTDM_INIT: BT controller compile version [83df000]
I (580) BTDM_INIT: Using main XTAL as clock source
I (582) BTDM_INIT: Bluetooth MAC: d4:e9:f4:e4:c8:ce
I (588) phy_init: phy_version 4863,a3a4459,Oct 28 2025,14:30:06
E (1279) HFP_STREAM: APP HFP invalid event 22
I (1283) HFP_STREAM: HF_CLIENT EVT: 22
I (1286) HFP_EXAMPLE: [ 2 ] Start codec chip
W (1290) i2c_bus_v2: I2C master handle is NULL, will createin Slave mode
I (1316) DRV8311: CFG I2S: mode = 3, bits = 1, fmt = 0, samples = 7
I (1343) AUDIO_HAL: Codec mode is 3, Ctrl:1
I (1350) HFP_EXAMPLE: [ 3 ] Create audio pipeline for playback
I (1351) HFP_EXAMPLE: [3.1] Create i2s stream to write data to codec chip and read data from codec chip
I (1358) HFP_EXAMPLE: [3.2] Get hfp stream
I (1358) HFP_STREAM: outgoing stream init
I (1362) HFP_STREAM: incoming stream init
I (1365) HFP_EXAMPLE: [3.2] Register all elements to audio pipeline
I (1371) HFP_EXAMPLE: [3.3] Link it together [Bluetooth]-->hfp_in_stream-->i2s_stream_writer-->[codec_chip]
I (1381) AUDIO_PIPELINE: link el->rb, el:0x3ffd86e0, tag:incoming, rb:0x3ffd8a8c
I (1388) AUDIO_PIPELINE: link el->rb, el:0x3ffd6798, tag:i2s_reader, rb:0x3ffdabdc
I (1395) HFP_EXAMPLE: [ 4 ] Initialize peripherals
I (1400) HFP_EXAMPLE: [ 5 ] Set up event listener
I (1404) HFP_EXAMPLE: [5.1] Listening event from all elements of pipeline
I (1411) HFP_EXAMPLE: [5.2] Listening event from peripherals
I (1416) HFP_EXAMPLE: [ 6 ] Listen for all pipeline events
W (33660) BT_HCI: hcif conn complete: hdl 0x81, st 0x0
W (33684) BT_HCI: hcif link supv_to changed: hdl 0x81, supv_to 8000
W (37140) BT_APPL: new conn_srvc id:27, app_id:1
I (37155) HFP_STREAM: APP HFP event: CONNECTION_STATE_EVT
I (37165) HFP_STREAM: --Connection state connected, peer feats 0x0, chld_feats 0x0
I (37216) HFP_STREAM: APP HFP event: CALL_IND_EVT
I (37217) HFP_STREAM: --Call indicator NO call in progress
I (37217) HFP_STREAM: APP HFP event: CALL_SETUP_IND_EVT
I (37220) HFP_STREAM: --Call setup indicator NONE
I (37227) HFP_STREAM: APP HFP event: NETWORK_STATE_EVT
I (37230) HFP_STREAM: --NETWORK state available
I (37241) HFP_STREAM: APP HFP event: SIGNAL_STRENGTH_IND_EVT
I (37241) HFP_STREAM: --Signal strength: 5
I (37243) HFP_STREAM: APP HFP event: ROAMING_STATUS_IND_EVT
I (37251) HFP_STREAM: --ROAMING: inactive
I (37253) HFP_STREAM: APP HFP event: BATTERY_LEVEL_IND_EVT
I (37259) HFP_STREAM: --Battery level 5
I (37262) HFP_STREAM: APP HFP event: CALL_HELD_IND_EVT
I (37268) HFP_STREAM: --Call held indicator NONE held
I (37271) HFP_STREAM: APP HFP event: CONNECTION_STATE_EVT
I (37276) HFP_STREAM: --Connection state slc_connected, peer feats 0xf6f, chld_feats 0x2b
I (37284) HFP_STREAM: APP HFP event: INBAND_RING_TONE_EVT
I (37292) HFP_STREAM: --Inband ring state Provided
W (44460) BT_HCI: hcif mode change: hdl 0x81, mode 2, intv 792, status 0x0
W (48153) BT_HCI: hcif mode change: hdl 0x81, mode 0, intv 0, status 0x0
I (48163) HFP_STREAM: APP HFP event: CALL_SETUP_IND_EVT
I (48164) HFP_STREAM: --Call setup indicator OUTGOING_DIALING
I (48164) HFP_STREAM: APP HFP event: CALL_SETUP_IND_EVT
I (48174) HFP_STREAM: --Call setup indicator OUTGOING_ALERTING
I (48178) HFP_STREAM: APP HFP event: AUDIO_STATE_EVT
I (48179) HFP_STREAM: --Audio state connected_msbc
I (48184) HFP_EXAMPLE: bt_app_hf_client_audio_open type = 1
I (48191) AUDIO_ELEMENT: [incoming-0x3ffd86e0] Element task created
I (48195) AUDIO_THREAD: The i2s_writer task allocate stack on internal memory
I (48202) AUDIO_ELEMENT: [i2s_writer-0x3ffd7604] Element task created
I (48208) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:126764 Bytes
I (48216) AUDIO_ELEMENT: [i2s_writer] AEL_MSG_CMD_RESUME,state:1
I (48223) AUDIO_PIPELINE: Pipeline started
I (48226) AUDIO_THREAD: The i2s_reader task allocate stack on internal memory
I (48232) AUDIO_ELEMENT: [i2s_reader-0x3ffd6798] Element task created
I (48238) AUDIO_ELEMENT: [outgoing-0x3ffd8384] Element task created
I (48244) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:118960 Bytes
I (48252) AUDIO_ELEMENT: [i2s_reader] AEL_MSG_CMD_RESUME,state:1
E (48258) AUDIO_ELEMENT: [i2s_reader] Read IO type ringbuf but ringbuf not set
E (48265) AUDIO_ELEMENT: [i2s_reader] ERROR_PROCESS, AEL_IO_FAIL
W (48270) AUDIO_ELEMENT: [i2s_reader] audio_element_on_cmd_error,3
I (48279) AUDIO_PIPELINE: Pipeline started
日志输出如上,蓝牙连接手机通话没有声音输出,输入。问问各位大神是啥问题。
Running idf_monitor in directory /home/king/esp32/work/pipeline_hfp_stream
Executing "/home/king/.espressif/python_env/idf5.5_py3.10_env/bin/python /home/king/esp32/esp-adf-v2.8/esp-idf/tools/idf_monitor.py -p /dev/ttyUSB0 -b 115200 --toolchain-prefix xtensa-esp32-elf- --target esp32 --revision 0 /home/king/esp32/work/pipeline_hfp_stream/build/pipeline_hfp_stream_example.elf /home/king/esp32/work/pipeline_hfp_stream/build/bootloader/bootloader.elf -m '/home/king/.espressif/python_env/idf5.5_py3.10_env/bin/python' '/home/king/esp32/esp-adf-v2.8/esp-idf/tools/idf.py'"...
--- esp-idf-monitor 1.9.0 on /dev/ttyUSB0 115200
--- Quit: Ctrl+] | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
I (13) boot: ESP-IDF v5.5.4 2nd stage bootloader
I (13) boot: compile time Jun 11 2026 20:51:04
I (13) boot: Multicore bootloader
I (14) boot: chip revision: v3.1
I (16) boot.esp32: SPI Speed : 40MHz
I (20) boot.esp32: SPI Mode : DIO
I (24) boot.esp32: SPI Flash Size : 8MB
I (27) boot: Enabling RNG early entropy source...
I (32) boot: Partition Table:
I (34) boot: ## Label Usage Type ST Offset Length
I (41) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (47) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (54) boot: 2 factory factory app 00 00 00010000 00300000
I (60) boot: End of partition table
I (64) esp_image: segment 0: paddr=00010020 vaddr=3f400020 size=2ce70h (183920) map
I (134) esp_image: segment 1: paddr=0003ce98 vaddr=3ffbdb60 size=03180h ( 12672) load
I (139) esp_image: segment 2: paddr=00040020 vaddr=400d0020 size=aad24h (699684) map
I (378) esp_image: segment 3: paddr=000ead4c vaddr=3ffc0ce0 size=01d4ch ( 7500) load
I (381) esp_image: segment 4: paddr=000ecaa0 vaddr=40080000 size=18664h ( 99940) load
I (421) esp_image: segment 5: paddr=0010510c vaddr=50000000 size=00020h ( 32) load
I (433) boot: Loaded app from partition at offset 0x10000
I (433) boot: Disabling RNG early entropy source...
I (444) cpu_start: Multicore app
I (452) cpu_start: GPIO 3 and 1 are used as console UART I/O pins
I (453) cpu_start: Pro cpu start user code
I (453) cpu_start: cpu freq: 160000000 Hz
I (455) app_init: Application information:
I (458) app_init: Project name: pipeline_hfp_stream_example
I (464) app_init: App version: 1
I (467) app_init: Compile time: Jun 11 2026 20:50:57
I (472) app_init: ELF file SHA256: 747e8f0f0...
I (477) app_init: ESP-IDF: v5.5.4
I (481) efuse_init: Min chip rev: v0.0
I (484) efuse_init: Max chip rev: v3.99
I (488) efuse_init: Chip rev: v3.1
I (493) heap_init: Initializing. RAM available for d
I (504) heap_init: At 3FFB7468 len 00000B98 (2 KiB): DRAM
I (509) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (514) heap_init: At 3FFCCAA8 len 00013558 (77 KiB): DRAM
I (519) heap_init: At 3FFE0440 len 00003AE0 (14 KiB): D/IRAM
I (525) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (530) heap_init: At 40098664 len 0000799C (30 KiB): IRAM
I (537) spi_flash: detected chip: generic
I (539) spi_flash: flash io: dio
I (543) coexist: coex firmware version: 093e3d2
I (547) main_task: Started on CPU0
I (550) main_task: Calling app_main()
I (578) HFP_EXAMPLE: [ 1 ] init Bluetooth
I (580) BTDM_INIT: BT controller compile version [83df000]
I (580) BTDM_INIT: Using main XTAL as clock source
I (582) BTDM_INIT: Bluetooth MAC: d4:e9:f4:e4:c8:ce
I (588) phy_init: phy_version 4863,a3a4459,Oct 28 2025,14:30:06
E (1279) HFP_STREAM: APP HFP invalid event 22
I (1283) HFP_STREAM: HF_CLIENT EVT: 22
I (1286) HFP_EXAMPLE: [ 2 ] Start codec chip
W (1290) i2c_bus_v2: I2C master handle is NULL, will createin Slave mode
I (1316) DRV8311: CFG I2S: mode = 3, bits = 1, fmt = 0, samples = 7
I (1343) AUDIO_HAL: Codec mode is 3, Ctrl:1
I (1350) HFP_EXAMPLE: [ 3 ] Create audio pipeline for playback
I (1351) HFP_EXAMPLE: [3.1] Create i2s stream to write data to codec chip and read data from codec chip
I (1358) HFP_EXAMPLE: [3.2] Get hfp stream
I (1358) HFP_STREAM: outgoing stream init
I (1362) HFP_STREAM: incoming stream init
I (1365) HFP_EXAMPLE: [3.2] Register all elements to audio pipeline
I (1371) HFP_EXAMPLE: [3.3] Link it together [Bluetooth]-->hfp_in_stream-->i2s_stream_writer-->[codec_chip]
I (1381) AUDIO_PIPELINE: link el->rb, el:0x3ffd86e0, tag:incoming, rb:0x3ffd8a8c
I (1388) AUDIO_PIPELINE: link el->rb, el:0x3ffd6798, tag:i2s_reader, rb:0x3ffdabdc
I (1395) HFP_EXAMPLE: [ 4 ] Initialize peripherals
I (1400) HFP_EXAMPLE: [ 5 ] Set up event listener
I (1404) HFP_EXAMPLE: [5.1] Listening event from all elements of pipeline
I (1411) HFP_EXAMPLE: [5.2] Listening event from peripherals
I (1416) HFP_EXAMPLE: [ 6 ] Listen for all pipeline events
W (33660) BT_HCI: hcif conn complete: hdl 0x81, st 0x0
W (33684) BT_HCI: hcif link supv_to changed: hdl 0x81, supv_to 8000
W (37140) BT_APPL: new conn_srvc id:27, app_id:1
I (37155) HFP_STREAM: APP HFP event: CONNECTION_STATE_EVT
I (37165) HFP_STREAM: --Connection state connected, peer feats 0x0, chld_feats 0x0
I (37216) HFP_STREAM: APP HFP event: CALL_IND_EVT
I (37217) HFP_STREAM: --Call indicator NO call in progress
I (37217) HFP_STREAM: APP HFP event: CALL_SETUP_IND_EVT
I (37220) HFP_STREAM: --Call setup indicator NONE
I (37227) HFP_STREAM: APP HFP event: NETWORK_STATE_EVT
I (37230) HFP_STREAM: --NETWORK state available
I (37241) HFP_STREAM: APP HFP event: SIGNAL_STRENGTH_IND_EVT
I (37241) HFP_STREAM: --Signal strength: 5
I (37243) HFP_STREAM: APP HFP event: ROAMING_STATUS_IND_EVT
I (37251) HFP_STREAM: --ROAMING: inactive
I (37253) HFP_STREAM: APP HFP event: BATTERY_LEVEL_IND_EVT
I (37259) HFP_STREAM: --Battery level 5
I (37262) HFP_STREAM: APP HFP event: CALL_HELD_IND_EVT
I (37268) HFP_STREAM: --Call held indicator NONE held
I (37271) HFP_STREAM: APP HFP event: CONNECTION_STATE_EVT
I (37276) HFP_STREAM: --Connection state slc_connected, peer feats 0xf6f, chld_feats 0x2b
I (37284) HFP_STREAM: APP HFP event: INBAND_RING_TONE_EVT
I (37292) HFP_STREAM: --Inband ring state Provided
W (44460) BT_HCI: hcif mode change: hdl 0x81, mode 2, intv 792, status 0x0
W (48153) BT_HCI: hcif mode change: hdl 0x81, mode 0, intv 0, status 0x0
I (48163) HFP_STREAM: APP HFP event: CALL_SETUP_IND_EVT
I (48164) HFP_STREAM: --Call setup indicator OUTGOING_DIALING
I (48164) HFP_STREAM: APP HFP event: CALL_SETUP_IND_EVT
I (48174) HFP_STREAM: --Call setup indicator OUTGOING_ALERTING
I (48178) HFP_STREAM: APP HFP event: AUDIO_STATE_EVT
I (48179) HFP_STREAM: --Audio state connected_msbc
I (48184) HFP_EXAMPLE: bt_app_hf_client_audio_open type = 1
I (48191) AUDIO_ELEMENT: [incoming-0x3ffd86e0] Element task created
I (48195) AUDIO_THREAD: The i2s_writer task allocate stack on internal memory
I (48202) AUDIO_ELEMENT: [i2s_writer-0x3ffd7604] Element task created
I (48208) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:126764 Bytes
I (48216) AUDIO_ELEMENT: [i2s_writer] AEL_MSG_CMD_RESUME,state:1
I (48223) AUDIO_PIPELINE: Pipeline started
I (48226) AUDIO_THREAD: The i2s_reader task allocate stack on internal memory
I (48232) AUDIO_ELEMENT: [i2s_reader-0x3ffd6798] Element task created
I (48238) AUDIO_ELEMENT: [outgoing-0x3ffd8384] Element task created
I (48244) AUDIO_PIPELINE: Func:audio_pipeline_run, Line:359, MEM Total:118960 Bytes
I (48252) AUDIO_ELEMENT: [i2s_reader] AEL_MSG_CMD_RESUME,state:1
E (48258) AUDIO_ELEMENT: [i2s_reader] Read IO type ringbuf but ringbuf not set
E (48265) AUDIO_ELEMENT: [i2s_reader] ERROR_PROCESS, AEL_IO_FAIL
W (48270) AUDIO_ELEMENT: [i2s_reader] audio_element_on_cmd_error,3
I (48279) AUDIO_PIPELINE: Pipeline started
日志输出如上,蓝牙连接手机通话没有声音输出,输入。问问各位大神是啥问题。