Skip to content

WIP: extmod/btstack: Add support for persistant bonding. #6312

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

Closed
wants to merge 6 commits into from

Conversation

andrewleech
Copy link
Contributor

This is less finished than #6289 but does add basic support for persistent bonding.

It's based heavily on initial work by @jimmo to bring in most of the pairing infrastructure for btstack, with additional commits to add the filesystem interface for persistent bonding.

It does not use the same json backed file storage as my nimble PR above, opting at this stage to re-use btstack's own file format with updated bindings to the micropython file system.

Most btstack bonding ports use their "tlv" based storage system. A good portion of this relies on malloc/free however, for which there isn't currently an implementation set up for btstack. If btstack gets a similar dynamic memory allocator as nimble, this config system would likely be more reliable/performant based on my initial investigating - bindings to use tlv are included in this branch.

The currently enabled bindings however are based on a simpler single-file bonding interface picked from one of the posix ports: https://github.com/bluekitchen/btstack/blob/f07720a033c9fcfa856511634253b9889fa94cd8/platform/posix/le_device_db_fs.c

@andrewleech
Copy link
Contributor Author

Superseded by #6651

@andrewleech andrewleech closed this Dec 4, 2020
@dpgeorge dpgeorge added the extmod Relates to extmod/ directory in source label Dec 4, 2020
tannewt pushed a commit to tannewt/circuitpython that referenced this pull request May 12, 2022
…ings

test and adjust NeoPixel timings on multiple ports
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extmod Relates to extmod/ directory in source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy