Skip to content

EATT manual connection & multiple channels initial support #2055

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

szymon-czapracki
Copy link
Contributor

New syscfg options for multiple EATT channels.
Introduce multiple channels to ble_eatt structure.
Add new API function for connecting EATT on demand.
Add new shell command for manually connecting EATT channels.

@github-actions github-actions bot added host size/M Medium PR labels Jun 25, 2025
Introduce BLE_EATT_AUTO_CONNECT syscfg option
to allow manual EATT connection setup

Introduce a configurable limit for maximum number
of L2CAP channels per connection
@szymon-czapracki szymon-czapracki force-pushed the eatt_manual_connection branch 2 times, most recently from a4c3fc3 to 4389896 Compare June 25, 2025 11:52
Extend ble_eatt struct with channel array and channel count.
Add helper functions for channel indexing and lookup.
Update ble_eatt_find to search all channels for matching CID.
Add channel allocation logic on connect event.
Replace direct channel access with indexed lookup.
Refactor ble_eatt_tx and L2CAP ev-handler to support multiple channels.
Introduce ble_eatt_connect() API to allow manual setup EATT.
This change enables explicit control over EATT channel creation.

The function validates the connection handle and requested channel
count, supports requesting all channels by passing 0

Add declaration of ble_eatt_connect() to the ble_att.h header.
Introduc a new shell command `gatt_eatt_connect` to allow manual
connection of multiple EATT channels per connection.

The command parses the connection handle and requested number of channels,
displays basic usage help, and calls the internal `ble_eatt_connect()` API.

Register the command in the shell, add parameter descriptions and
declaration in `cmd_gatt.h`.
@szymon-czapracki szymon-czapracki force-pushed the eatt_manual_connection branch from 4389896 to 0fe92a4 Compare June 25, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant