We have a product based on the ESP32-WROOM-32 that includes both ESP-NOW WiFi among many nodes, and a Bluetooth (BLE) link to an iPad.
In normal usage, we have around 25K of "free" RAM. However, when the BLE signal strength to the iPad is weak, our available RAM drops to almost 0 while transmitting BLE packets.
Also, when the BLE signal strength is weak, the ESP32 reports BT_GATT: No resources on the serial console.
It appears that the weak BLE signal strength causes the ESP to use up RAM. I assume this is due to BLE packets being queued in RAM because they cannot be sent at a high enough baud rate.
In addition, when BLE signal strength is weak, I find that my WiFi protocol (based on ESP-NOW) misses packets - even when we add many retries. It appears that WiFi is being starved and that the BLE module is consuming most of the radio time.
Questions: Is it possible to query the number of BLE messages waiting to be sent? For instance, I would like to stop adding new BLE packets to the transmit queue, if the BLE task cannot keep up.
Also, is it possible to keep the BLE task from starving the WIFi receive?
And are there any more suggestions on how to handle weak BLE signal strength so that it does not use up all RAM and starve WiFi?
Thanks!
Bluetooth (BLE) GATT errors when BLE Signal is weak
Jump to
- English Forum
- Explore
- News
- General Discussion
- FAQ
- Documentation
- Documentation
- Sample Code
- Discussion Forum
- ESP32-S31
- Hardware
- ESP-IDF
- ESP-BOX
- ESP-ADF
- ESP-MDF
- ESP-WHO
- ESP-SkaiNet
- ESP32 Arduino
- IDEs for ESP-IDF
- ESP-AT
- ESP IoT Solution
- ESP RainMaker
- Rust
- ESP8266
- Report Bugs
- Showcase
- Chinese Forum 中文社区
- 活动区
- 乐鑫活动专区
- 讨论区
- ESP32-S31 中文讨论版
- 喵伴 中文讨论版
- ESP-IDF 中文讨论版
- 《ESP32-C3 物联网工程开发实战》书籍讨论版
- 中文文档讨论版
- ESP-AT 中文讨论版
- ESP-BOX 中文讨论版
- ESP IoT Solution 中文讨论版
- ESP-ADF 中文讨论版
- ESP Mesh 中文讨论版
- ESP Cloud 中文讨论版
- ESP-WHO 中文讨论版
- ESP-SkaiNet 中文讨论版
- ESP 生产支持讨论版
- 硬件问题讨论
- 项目展示
Who is online
Users browsing this forum: Amazon [Bot], PetalBot and 1 guest
- All times are UTC
- Top
- Delete cookies
About Us
Espressif Systems is a fabless semiconductor company providing cutting-edge low power WiFi SoCs and wireless solutions for wireless communications and Internet of Things applications. ESP8266EX and ESP32 are some of our products.
Information
Espressif ESP32 ... Available now!