-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TW#24578] A2DP SINK example not working with notebook, but with phone #2191
Comments
A new Secure Simple Pairing module was recently added to idf and it's enabled by default in A2DP example. If I understood you correctly it was working properly with notebook some time ago... |
I am facing the exact same issue - only that in my case it's a Amazon FireTV Stick that is disconnecting.
Update: Apparently I made a mistake running menuselect - or there was something else wrong... With the current master (1c7a8b3) now both version (with and without SSP) work for me... |
Upgraded esp-idf to cc8ad72: Now with Notebook (OSX and Win7) I have no problem, Here is the trace: I (184) boot: compile time 16:33:26
I (189) boot: Enabling RNG early entropy source...
I (206) boot: SPI Speed : 40MHz
I (219) boot: SPI Mode : DIO
I (231) boot: SPI Flash Size : 4MB
I (244) boot: Partition Table:
I (255) boot: ## Label Usage Type ST Offset Length
I (278) boot: 0 nvs WiFi data 01 02 00009000 00006000
I (301) boot: 1 phy_init RF data 01 01 0000f000 00001000
I (325) boot: 2 factory factory app 00 00 00010000 00100000
I (348) boot: End of partition table
I (361) esp_image: segment 0: paddr=0x00010020 vaddr=0x3f400020 size=0x284d4 (165076) map
I (745) esp_image: segment 1: paddr=0x000384fc vaddr=0x3ffbdb60 size=0x02f18 ( 12056) load
I (776) esp_image: segment 2: paddr=0x0003b41c vaddr=0x3ffc0a78 size=0x00000 ( 0) load
I (778) esp_image: segment 3: paddr=0x0003b424 vaddr=0x40080000 size=0x00400 ( 1024) load
0x40080000: _WindowOverflow4 at /Users/pad/micro/esp32/esp-idf-dev/components/freertos/xtensa_vectors.S:1685
I (803) esp_image: segment 4: paddr=0x0003b82c vaddr=0x40080400 size=0x047e4 ( 18404) load
I (875) esp_image: segment 5: paddr=0x00040018 vaddr=0x400d0018 size=0x8c9f4 (575988) map
0x400d0018: _flash_cache_start at ??:?
I (2118) esp_image: segment 6: paddr=0x000cca14 vaddr=0x40084be4 size=0x0d2a4 ( 53924) load
0x40084be4: huart_flow_on at ??:?
I (2258) esp_image: segment 7: paddr=0x000d9cc0 vaddr=0x400c0000 size=0x00000 ( 0) load
I (2260) esp_image: segment 8: paddr=0x000d9cc8 vaddr=0x50000000 size=0x00000 ( 0) load
I (2344) boot: Loaded app from partition at offset 0x10000
I (2344) boot: Disabling RNG early entropy source...
I (2348) cpu_start: Pro cpu up.
I (2357) cpu_start: Starting app cpu, entry point is 0x40081024
0x40081024: call_start_cpu1 at /Users/pad/micro/esp32/esp-idf-dev/components/esp32/cpu_start.c:226
I (1) cpu_start: App cpu up.
I (2391) heap_init: Initializing. RAM available for dynamic allocation:
I (2411) heap_init: At 3FFAFF10 len 000000F0 (0 KiB): DRAM
I (2430) heap_init: At 3FFB6388 len 00001C78 (7 KiB): DRAM
I (2449) heap_init: At 3FFB9A20 len 00004108 (16 KiB): DRAM
I (2468) heap_init: At 3FFBDB5C len 00000004 (0 KiB): DRAM
I (2487) heap_init: At 3FFCF348 len 00010CB8 (67 KiB): DRAM
I (2506) heap_init: At 3FFE0440 len 00003BC0 (14 KiB): D/IRAM
I (2526) heap_init: At 3FFE4350 len 0001BCB0 (111 KiB): D/IRAM
I (2546) heap_init: At 40091E88 len 0000E178 (56 KiB): IRAM
I (2566) cpu_start: Pro cpu start user code
I (181) cpu_start: Starting scheduler on PRO CPU.
I (0) cpu_start: Starting scheduler on APP CPU.
I (224) I2S: DMA Malloc info, datalen=blocksize=240, dma_buf_count=6
I (224) I2S: PLL_D2: Req RATE: 44100, real rate: 44642.000, BITS: 16, CLKM: 14, BCK: 8, MCLK: 11289966.924, SCLK: 1428544.000000, diva: 64, divb: 11
I (234) BTDM_INIT: BT controller compile version [b2b2ea8]
I (244) system_api: Base MAC address is not set, read default base MAC address from BLK0 of EFUSE
I (314) phy: phy_version: 3960, 5211945, Jul 18 2018, 10:40:07, 0, 0
I (12414) BT_AV: authentication success: iPhone di Eugenia
I (12424) BT_AV: c0 f2 fb cc f6 2e
I (12864) BT_AV: ESP_BT_GAP_CFM_REQ_EVT Please compare the numeric value: 346430
Task watchdog got triggered. The following tasks did not reset the watchdog in time:
- IDLE (CPU 0)
Tasks currently running:
CPU 0: btuT
CPU 1: IDLE ```
|
I do have same issues on BT disconnecting occasionally with such log:
tried reconnecting
Happens occasionally in random order, tired most configuration combinations, (core0/1, BTDM, BR/EDR only, BT stack sizes and priority combinations), with no effect. Unfortunately can't describe how to reproduce this random situation |
Hi @pad52 @pufstudio @pc-coholic @Elektrik1
|
…ackport 3.1) A cherry-pick of MR !3366 Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it. Closes #2191
@blueMoodBHD, this is happening for me on Android device (galaxy S7, 8.0 Oreo), and latest checkout does not solve this issue.
|
@Elektrik1 We find a bug in sniff mode, it will disconnect after enter sniff mode. we will fix it, soon. For now, if it is a Android device, turn off and turn on the Bluetooth will fix it. And if it is a iphone device, restart your phone will fix it. |
Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it. Closes espressif/esp-idf#2191
…ackport 3.1) A cherry-pick of MR !3366 Create a new pending queue, then re-submit pending requests in old pending queue,preventing new events being inserted into it. Closes espressif/esp-idf#2191
I'm still experiencing this issue with IDF 3.2. Has it really been fixed? |
Environment
Problem Description
In last esp-idf the sink example works with (some) phone but not with (some) notebooks.
If I try to connect some notebook (I tried with two) to play sound with Bluetooth A2DP the connection happens but no sound, after a little I get Disconnected.
My notebook is using OSX, the other notebook that I tried was Windows, and got the same problem.
With an Android Phone everything works as expected.
Expected Behavior
In esp-idf c1c49b6 I got no problems regardless of the device I was using, everything just works.
Actual Behavior
This is the log, turning on the A2DP and AVRCP debug asserts in menuconfig:
USING A NOTEBOOK:
USING A PHONE:
Steps to repropduce
Update to esp-idf 1e40891c
make & flash a2dp sink example
I'm using an external audio i2s codec.
The text was updated successfully, but these errors were encountered: