共存

[English]


Wi-Fi 和蓝牙共存时,支持哪些共存场景?

  支持的共存场景请参考 共存文档


Wi-Fi 和 ESP-BLE-MESH 共存时,为什么 Wi-Fi 吞吐量很低?

未搭载 PSRAM 的 ESP32-DevKitC 开发板,Wi-Fi 和 ESP-BLE-MESH 共存可以正常运行,但是吞吐率较低。当 Wi-Fi 和 ESP-BLE-MESH 共存时,搭载 PSRAM 的 ESP32-DevKitC 速率可以稳定在 1 Mbps 以上。

应使能 menuconfig 中的一些配置来支持 PSRAM:

  • ESP32-specific --> Support for external,SPI-connected RAM --> Try to allocate memories of Wi-Fi and LWIP...

  • Bluetooth --> Bluedriod Enable --> BT/BLE will first malloc the memory from the PSRAM

  • Bluetooth --> Bluedriod Enable --> Use dynamic memory allocation in BT/BLE stack.

  • Bluetooth --> Blutooth controller --> BLE full scan feature supported.

  • Wi-Fi --> Software controls Wi-Fi/Bluetooth coexistence --> Wi-Fi


ESP32 的 ESP-WIFI-MESH 和 Bluetooth® LE Mesh 可以同时支持吗?

不支持。

ESP32 的 ESP-WIFI-MESH 和 BLE 可以同时支持,或者 ESP32 Wi-Fi STA 模式和 BLE Mesh 可以同时支持。


ESP32 蓝牙和 Wi-Fi 能否同时使用?

ESP32 的 Wi-Fi 和蓝牙可共存,但需要分时控制,可在 menuconfig 中使能 Wi-Fi 和蓝牙共存设置。如下:

menuconfig -> Component config -> Wi-Fi -> Software controls WiFi/Bluetooth coexistence (Enable)


Wi-Fi、Bluetooth® LE 和 A2DP Sink 共存,进入 Bluetooth LE 扫描的时候音频数据接收会丢失、卡顿。怎么解决?

  • 使用 RingBuf 缓存音频数据

  • 暂停播放音乐,并增加提示音,例如:正在扫描设备。


BLE adverting (Connectable) + iBeacon sending(advertising) 可以共存吗??

IDF: release/v4.0以及以上版本 | CHIP: ESP32

  • 硬件上还未支持,应用层可以通过定时轮询发广播包的方式来完成。

IDF: release/v4.3 以及以上版本 | CHIP: ESP32-C3|ESP32-S3

  • 可以。