Skip to content

Implement GATT for Zephyr _bleio - #11179

Merged
dhalbert merged 1 commit into
adafruit:mainfrom
tannewt:zephyr_gatt
Aug 7, 2026
Merged

Implement GATT for Zephyr _bleio#11179
dhalbert merged 1 commit into
adafruit:mainfrom
tannewt:zephyr_gatt

Conversation

@tannewt

@tannewt tannewt commented Aug 5, 2026

Copy link
Copy Markdown
Member

Tested with BSIM and on nRF54LM20DK. CharacteristicBuffer and PacketBuffer are implemented as well. This hasn't been tested for BLE workflow so it may need allocation tweaks.

Includes many other small fixes:

  • bsim tests are done with nRF54LM20bsim too.
  • bsim exe binaries are saved.
  • nRF7002DK loses bleio because it doesn't have space.
  • Other boards have their slot1 removed in favor of slot0 growing.
  • Fix UUID length and byte order issues.
  • Remove extra common_hal function for remote services.

Code gen by DeepSeek V4 Pro. All prompted and reviewed by me.

This is a bunch of work towards #9904, implementing _bleio. Pairing and bonding remains.

@tannewt tannewt mentioned this pull request Aug 5, 2026
@dhalbert

dhalbert commented Aug 6, 2026

Copy link
Copy Markdown
Collaborator

BLE workflow issues can be examined in the context of the fixes in #11178. But fine to merge this first and not try to add to #11178 or this for any fixes.

Tested with BSIM and on nRF54LM20DK. CharacteristicBuffer and
PacketBuffer are implemented as well. This hasn't been tested for BLE
workflow so it may need allocation tweaks.

Includes many other small fixes:
* bsim tests are done with nRF54LM20bsim too.
* bsim exe binaries are saved.
* nRF7002DK loses bleio because it doesn't have space.
* Other boards have their slot1 removed in favor of slot0 growing.
* Fix UUID length and byte order issues.
* Remove extra common_hal function for remote services.

Code gen by DeepSeek V4 Pro. All prompted and reviewed by me.

This is a bunch of work towards micropython#9904, implementing _bleio. Pairing and
bonding remains.
@tannewt

tannewt commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

Ok, I rebased this on top of the extmod stuff to remove the autogen changes here.

@tannewt
tannewt requested a review from dhalbert August 6, 2026 17:03
@tannewt

tannewt commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

CI is green!

@dhalbert dhalbert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks nice and clean, maybe due to good Zephyr API as well.

There are a bunch of printk()s in the code; did you mean to leave them in?

@tannewt

tannewt commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

I see them mostly in the sample code used in the tests. Generally, I'm not too worried about it because the port is very much in flux still. I'm ok cleaning them up later.

@tannewt
tannewt requested a review from dhalbert August 7, 2026 22:30

@dhalbert dhalbert left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent!

@dhalbert
dhalbert merged commit b883114 into adafruit:main Aug 7, 2026
687 of 690 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants