求助:pipeline_a2dp_source_stream 例程执行到蓝牙的地方就出问题,是不是板子蓝牙的部分坏掉了?

NiceAlpha
Posts: 4
Joined: Sun Oct 16, 2022 9:49 am

求助:pipeline_a2dp_source_stream 例程执行到蓝牙的地方就出问题,是不是板子蓝牙的部分坏掉了?

Postby NiceAlpha » Wed Nov 23, 2022 9:14 am

有没有大佬给看一下,这是不是板子坏了?
板子是 ESP32-LyraTD-MSC V2.2
早先的时候还能跑pipeline_a2dp_source_stream这个例程,后来跑代码的时候有一次忘记改 Audio HAL了,那时候应该是默认设置的ESP32 Lyrat V4.3 不知道是不是把板子给烧坏了

我试了下官方的例程
pipeline_wav_amr_sdcard还是能正常运行的。感觉好像就是蓝牙这里有问题。
pipeline_a2dp_source_stream这个程序,不打开我的耳机和他连接的时候还正常运行,一直在检测附近的蓝牙设备,一旦我开启蓝牙耳机与他连接,就直接开始连接,然后断开连接。

耳机我试了一下,也没什么问题,耳机连接我其他的设备都是能正常使用的。
串口输入如下:(感觉关键的报错信息已经标红)
I (0) cpu_start: Starting scheduler on APP CPU.
I (1615) spiram: Reserving pool of 32K of internal memory for DMA/internal allocations
I (1645) BLUETOOTH_SOURCE_EXAMPLE: [ 1 ] Mount sdcard
I (2155) BLUETOOTH_SOURCE_EXAMPLE: [ 2 ] Start codec chip
W (3155) SPI: MCS ret:0,Status:1
I (3155) BLUETOOTH_SOURCE_EXAMPLE: [3.0] Create audio pipeline for playback
I (3155) BLUETOOTH_SOURCE_EXAMPLE: [3.1] Create fatfs stream to read data from sdcard
I (3165) BLUETOOTH_SOURCE_EXAMPLE: [3.2] Create mp3 decoder to decode mp3 file
I (3165) BLUETOOTH_SOURCE_EXAMPLE: [3.3] Create Bluetooth stream
I (3635) BLUETOOTH_SOURCE_EXAMPLE: [3.4] Register all elements to audio pipeline
I (3645) BLUETOOTH_SOURCE_EXAMPLE: [3.5] Link it together [sdcard]-->fatfs_stream-->mp3_decoder-->bt_stream-->[bt sink]
W (3645) BT_BTC: A2DP Enable with AVRC
I (3655) BLUETOOTH_SOURCE_EXAMPLE: [3.6] Set up uri (file as fatfs_stream, mp3 as mp3 decoder, and default output is i2s)
I (3665) BLUETOOTH_SOURCE_EXAMPLE: [3.7] Create bt peripheral
I (3665) BLUETOOTH_SOURCE_EXAMPLE: Discovery started.
I (3675) BLUETOOTH_SOURCE_EXAMPLE: [3.8] Start bt peripheral
I (3685) BLUETOOTH_SOURCE_EXAMPLE: [ 4 ] Set up event listener
I (3695) BLUETOOTH_SOURCE_EXAMPLE: [4.1] Listening event from all elements of pipeline
I (3695) BLUETOOTH_SOURCE_EXAMPLE: [4.2] Listening event from peripherals
I (3705) BLUETOOTH_SOURCE_EXAMPLE: [ 5 ] Start audio_pipeline
I (3715) BLUETOOTH_SOURCE_EXAMPLE: [ 6 ] Listen for all pipeline events
I (4605) BLUETOOTH_SOURCE_EXAMPLE: [ * ] Receive music info from mp3 decoder, sample_rates=44100, bits=16, ch=2

I (14815) BLUETOOTH_SOURCE_EXAMPLE: Scanned device: 20:74:cf:ee:51:81
I (14825) BLUETOOTH_SOURCE_EXAMPLE: --Class of Device: 0x240418
I (14835) BLUETOOTH_SOURCE_EXAMPLE: --RSSI: -62
I (14835) BLUETOOTH_SOURCE_EXAMPLE: --Name: OpenMove by AfterShokz
I (14845) BLUETOOTH_SOURCE_EXAMPLE: need device name OpenMove by AfterShokz
I (14855) BLUETOOTH_SOURCE_EXAMPLE: Found a target device, address 20:74:cf:ee:51:81, name OpenMove by AfterShokz
I (14865) BLUETOOTH_SOURCE_EXAMPLE: Cancel device discovery ...
I (14865) BLUETOOTH_SOURCE_EXAMPLE: Device discovery stopped.
I (14875) BLUETOOTH_SOURCE_EXAMPLE: a2dp connecting to peer: OpenMove by AfterShokz
I (14885) BLUETOOTH_SOURCE_EXAMPLE: Device discovery failed, continue to discover...
I (14895) BLUETOOTH_SOURCE_EXAMPLE: Device discovery failed, continue to discover...
W (14905) BT_APPL: reset flags
I (14905) BLUETOOTH_SOURCE_EXAMPLE: Discovery started.
I (16535) BLUETOOTH_SOURCE_EXAMPLE: Scanned device: 20:74:cf:ee:51:81
I (16535) BLUETOOTH_SOURCE_EXAMPLE: --Class of Device: 0x240418
I (16545) BLUETOOTH_SOURCE_EXAMPLE: --RSSI: -58
I (16545) BLUETOOTH_SOURCE_EXAMPLE: --Name: OpenMove by AfterShokz
I (16555) BLUETOOTH_SOURCE_EXAMPLE: need device name OpenMove by AfterShokz
I (16565) BLUETOOTH_SOURCE_EXAMPLE: Found a target device, address 20:74:cf:ee:51:81, name OpenMove by AfterShokz
I (16575) BLUETOOTH_SOURCE_EXAMPLE: Cancel device discovery ...
I (16585) BLUETOOTH_SOURCE_EXAMPLE: Device discovery stopped.
I (16585) BLUETOOTH_SOURCE_EXAMPLE: a2dp connecting to peer: OpenMove by AfterShokz
W (18105) BT_HCI: hcif conn complete: hdl 0x81, st 0x0
W (18275) BT_HCI: hci cmd send: disconnect: hdl 0x81, rsn:0x13
W (18275) BT_APPL: bta_dm_act no entry for connected service cbs
W (18275) BT_BTC: BTA_AV_OPEN_EVT::FAILED status: 3


W (18285) BLUETOOTH_SOURCE_EXAMPLE: [ * ] Bluetooth disconnected or suspended
I (18285) BLUETOOTH_SOURCE_EXAMPLE: Discovery started.
I (18295) BLUETOOTH_SOURCE_EXAMPLE: [ 7 ] Stop audio_pipeline

Who is online

Users browsing this forum: No registered users and 75 guests