Help Needed: Updating BLE Connection Parameters on ESP32-C6

Emerico12
Posts: 1
Joined: Mon Dec 09, 2024 10:22 pm

Help Needed: Updating BLE Connection Parameters on ESP32-C6

Postby Emerico12 » Tue Dec 10, 2024 12:46 am

MCU: ESP32C6
Framework: Arduino
Current BLE Library: framework-arduinoespressif32/libraries/BLE/src/BLEDevice.h

Hello everyone,

I recently started working on a BLE project where I’m establishing a connection between an nRF52840 (acting as a server/peripheral) and an ESP32-C6 (acting as a client/central). While the connection is stable, I’m facing challenges with updating connection parameters, specifically:
  • PHY
  • Connection Interval
  • Data Length
The nRF52840 sends the requests to update these parameters, but I’m unsure how to handle (accept) these requests on the ESP32-C6 while using the BLEDevice library.

I haven’t found a popular or reliable method for updating BLE connection parameters with this library, and I noticed that NimBLE-Arduino https://github.com/h2zero/NimBLE-Arduino doesn’t yet support the ESP32-C6 (only supports ESP32, ESP32-C3, and ESP32-S3).

Questions:
  • Does anyone know how to manage these requests using the BLEDevice library?
  • Should I consider using NimBLE C++ instead?
  • Should I switch to the Espressif BLE framework (Bluedroid) and integrate it inside my Arduino project? (Although for some reason I am seeing that all the Espressif’s Bluedroid stack use sdkconfig.defaults files for devices like the ESP32-C2, ESP32-C3, and ESP32-S3—but not the ESP32-C6. https://github.com/espressif/esp-idf/tr ... edroid/ble
For context, I’m using the Arduino framework for the entire project, but I’d be open to integrating a better solution.

I’d greatly appreciate any guidance or suggestions, I could really use some help on this topic.

Thank you!

Who is online

Users browsing this forum: ChatGPT-User, Google [Bot] and 1 guest