a2dp_source不能与esp32作为ap模式共存

18780252819
Posts: 4
Joined: Mon Jun 15, 2020 1:47 pm

a2dp_source不能与esp32作为ap模式共存

Postby 18780252819 » Wed Jun 17, 2020 8:33 pm

需求:1.a2dp_source 进行声音播放;
2.wifi 的ap模式建立TCP server;
3.通过wifi控制a2dp_source 的连接与断开;

实际现象:1.先打开ESP32蓝牙连接音箱,然后再连接wifi。此时两者都能正常工作;
2.wifi和蓝牙正常工作后断开音箱电源,此时wifi也会跟着断开;(异常)
3.打开蓝牙但是不连接音箱,此时wifi无法连接;(异常)

关于这个类似的问题有其他坛友也提出过,但是并未得到解决,viewtopic.php?t=1323

KBFEDE
Posts: 8
Joined: Sun Apr 26, 2020 8:56 am

Re: a2dp_source不能与esp32作为ap模式共存

Postby KBFEDE » Thu Jun 18, 2020 3:22 am

你好,我这边写了一个小 demo,你可以把邮箱给我么?这里没有办法发送 13MB 的附件。
coex 是不受 profile 限制的,只是 BTDM controller 的操作,所以我觉得可能是因为应用层没有配置正确。

我试了在 a2dp 连接上之后,进行 wifi(sta)连接AP;或者在 wifi 连接上AP 之后去连接 a2dp 都是可以的,而且我这边还加上了 ble scan。
因为我这边环境的原因,我是在 IDF release/v3.3 上编译的,master 上大同小异,可能只有个别的 API 有改动。

18780252819
Posts: 4
Joined: Mon Jun 15, 2020 1:47 pm

Re: a2dp_source不能与esp32作为ap模式共存

Postby 18780252819 » Thu Jun 18, 2020 3:37 am

你好:
非常感谢您的及时回答。邮箱:851945975@qq.com

18780252819
Posts: 4
Joined: Mon Jun 15, 2020 1:47 pm

Re: a2dp_source不能与esp32作为ap模式共存

Postby 18780252819 » Thu Jun 18, 2020 7:21 am

你好:
请问是否可以将你的demo发我一份作为参考?我使用了esp-idf-v3.3.1;esp-idf-v3.3.1;esp-idf-v4.0.1;esp-idf-v4.1-beta2版本编译都不能满足要求。我邮箱:851945975@qq.com

KBFEDE
Posts: 8
Joined: Sun Apr 26, 2020 8:56 am

Re: a2dp_source不能与esp32作为ap模式共存

Postby KBFEDE » Wed Jul 08, 2020 8:03 am

The demos are upload here: https://github.com/Wth-Esp/coex_demo

Thank you.

Who is online

Users browsing this forum: No registered users and 46 guests