Optimize discovery
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest10 patches 0 repliesNew
- v110 patches 0 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/10 | shared/gatt-db: Add gatt_db_get_servicesrc/ src/ | +21 | 0 replies | |
| 2/10 | shared/gatt-db: Add gatt_db_service_insert_includedsrc/ src/ | +36 | 0 replies | |
| 3/10 | shared/gatt-client: Insert included attribute with handlesrc/ | +1 | 0 replies | |
| 4/10 | shared/gatt-db: Add gatt_db_insert_includedsrc/ src/ | +17 | 0 replies | |
| 5/10 | shared/gatt-client: Simplify included discoverysrc/ | +42 | 0 replies | |
| 6/10 | unit/test-gatt: Adjust the PDUs to the new behaviorunit/ | +6 | 0 replies | |
| 7/10 | shared/gatt-db: Add gatt_db_insert_characteristicsrc/ src/ | +32 | 0 replies | |
| 8/10 | shared/gatt-db: Add gatt_db_insert_descriptorsrc/ src/ | +29 | 0 replies | |
| 9/10 | shared/gatt-client: Simplify characteristics discoverysrc/ | +41 | 0 replies | |
| 10/10 | unit/test-gatt: Adjust the PDUs for characteristic discoveryunit/ | +27 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
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