-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BLE: Need API to get Data Length Extension status if it's Bluetooth 4.2 or above. #9263
Comments
Internal Jira reference: https://jira.arm.com/browse/MBOCUSTRIA-388 |
cc @ARMmbed/mbed-os-pan |
@kaiser-ren We plan to introduce something a bit different: right after connection we want to initiate an MTU negotiation between the ends of the connection. The GATT client (I'm not so sure for server) APIs already take advantage of the MTU size negotiated so there is nothing else to worry about from a developer perspective. @paul-szczepanek-arm Would it be possible to expose a public API to get the MTU size of a given connection ? Or we can fire an event when the MTU size change. |
@pan- Thanks for the update. It would be awesome to have APIs to get negotiated ATT_MTU size, but it's not enough for developers to calculated throughput. For example when ATT_MTU is 185 bytes:
|
And I just did a test between Nordic nRF52840 and iPhone8:
So, API about data packet length is important. |
@kaiser-ren We intend to provide both information: packet size and ATT_MTU size in the form of events as the value is negotiated by both ends. DLE negotiation is enabled by default on ports using the cordio stack; it should be enabled for builds using the Cordio link layer on Nordic targets. For softdevice build I don't think it is enabled yet. |
@pan- I'm so glad to hear it: providing both information.
` |
Hello @pan- , |
@kaiser-ren Please have a look at #9537 . |
Hi @kaiser-ren, the MTU PR has been merged to master. As for your original question you can check features like Data Length Extension with Gap::isFeatureSupported() |
Hi @paul-szczepanek-arm , thank you so much to notify me about this, well done! |
Description
Data Length Extension (DLE) was introduced in Bluetooth v4.2, but this feature is optional which means that some kits are 4.2, but they don't have DLE feature.
So developer need API to get DLE status, when has DLE status, it's possible to estimate the top-proof of the connection throughput.
Issue request type
The text was updated successfully, but these errors were encountered: