Skip to content

Optimize discovery

Luiz Augusto von Dentz linux-bluetooth 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest10 patches 0 repliesNew
  2. v110 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10shared/gatt-db: Add gatt_db_get_servicesrc/shared/gatt-db.c src/shared/gatt-db.h+21 -30 replies
2/10shared/gatt-db: Add gatt_db_service_insert_includedsrc/shared/gatt-db.c src/shared/gatt-db.h+36 -80 replies
3/10shared/gatt-client: Insert included attribute with handlesrc/shared/gatt-client.c+1 -10 replies
4/10shared/gatt-db: Add gatt_db_insert_includedsrc/shared/gatt-db.c src/shared/gatt-db.h+17 -00 replies
5/10shared/gatt-client: Simplify included discoverysrc/shared/gatt-client.c+42 -880 replies
6/10unit/test-gatt: Adjust the PDUs to the new behaviorunit/test-gatt.c+6 -140 replies
7/10shared/gatt-db: Add gatt_db_insert_characteristicsrc/shared/gatt-db.c src/shared/gatt-db.h+32 -00 replies
8/10shared/gatt-db: Add gatt_db_insert_descriptorsrc/shared/gatt-db.c src/shared/gatt-db.h+29 -00 replies
9/10shared/gatt-client: Simplify characteristics discoverysrc/shared/gatt-client.c+41 -980 replies
10/10unit/test-gatt: Adjust the PDUs for characteristic discoveryunit/test-gatt.c+27 -330 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 00/10] Optimize discovery

From: Luiz Augusto von Dentz <[email protected]>

This reduces quite a bit the complexity of GATT discovery while reducing the amount traffic, this is achieved by using breadth-first like lookup.

Bellow is the traces with using Zephyr peripheral sample which uses a somewhat small MTU (65 bytes), it probably has even better results when using bigger MTU.

v2: Fix failing when attribute have already been discovered, result are pretty much the same except for the range is now adjusted properly.

Luiz Augusto von Dentz (10):
shared/gatt-db: Add gatt_db_get_service shared/gatt-db: Add gatt_db_service_insert_included shared/gatt-client: Insert included attribute with handle shared/gatt-db: Add gatt_db_insert_included shared/gatt-client: Simplify included discovery unit/test-gatt: Adjust the PDUs to the new behavior shared/gatt-db: Add gatt_db_insert_characteristic shared/gatt-db: Add gatt_db_insert_descriptor shared/gatt-client: Simplify characteristics discovery unit/test-gatt: Adjust the PDUs for characteristic discovery

 src/shared/gatt-client.c | 257 ++++++++++++++---------------------------------
 src/shared/gatt-db.c     | 116 +++++++++++++++++++--
 src/shared/gatt-db.h     |  30 ++++++
 unit/test-gatt.c         |  80 ++++++---------
 4 files changed, 245 insertions(+), 238 deletions(-)
Signature · 1 line
2.9.3