Open
Conversation
Author
|
Heya folks! I'm marking this as ready-for-review, hoping for an initial review pass. I reckon I saw somewhere (edit: #142 (comment)) that such a change requires implementation for two different platforms. I am not sure if I can commit to implementing this also for e.g. Linux, but if required I will see what I can do. Otherwise this PR can be left open as a working POC until someone contributes a relevant implementation for some other platform. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR adds the capability to perform an MTU Exchange procedure from the central (gatt client - usually), and the ability to configure an ATT_MTU up to 247 bytes (allowing 244 bytes of application data).
Configure(cfg Config) errormethod that allows setting some initialization options for the SoftDevice before it is enabled.ExchangeMTU(mtu uint16) (uint16, error)function was added to the Device interface, that can be called from the gatt client to initiate an MTU exchange procedure.I have tested this implementation on two nicenano_v2 boards.
In my tests, I have found updating the event length can allow for increased bandwidth, so I also implemented a way to configure it.
I have made some experiments with adding Data Length Extension as well, but I reckon some initial feedback would be welcome before I delve into starting a proper implementation of DLE.
Do let me know if you would like to have a working example (maybe also in the source code?) with a 247 MTU exchange + throughput test of sorts.
Lastly, I can only test on s140v7, so I can't really verify that the peripheral-only variant (s113v7) works as expected. If someone else could lend a hand I would appreciate that.
Refs:
Relevant: #200 (comment), #142 (comment)