How do determine of a BLE connection has Packet Data Length Extension feature enabled?

zapta1
Posts: 9
Joined: Sat Jan 21, 2023 12:10 am

How do determine of a BLE connection has Packet Data Length Extension feature enabled?

Postby zapta1 » Sat Feb 25, 2023 8:29 pm

Our app uses ESP32/ESPIDF/Bluedroid for BLE connection between a device and a PC. For proper throughput, the connection need to use the Packet Data Length Extension feature (see image below) to avoid fragmentation and reduce transfer rate.

Is it possible for the ESP firmware to query the Bluedroid stack if the connection has this feature enabled or not? This can be done for example using an API function call, or via one of the various event callback handlers of the Bluedroid stack.

Image

zapta1
Posts: 9
Joined: Sat Jan 21, 2023 12:10 am

Re: How do determine of a BLE connection has Packet Data Length Extension feature enabled?

Postby zapta1 » Sat Feb 25, 2023 9:10 pm

Seems to be related to this mask though I am not sure how to pass the value from the connection to the app.

https://github.com/espressif/esp-idf/bl ... fs.h#L1899

Who is online

Users browsing this forum: No registered users and 49 guests