[PATCH BlueZ v2 0/7] Introduce tools/btgatt-server and other bug fixes.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch set introduces tools/btgatt-server. This tool serves as a
standalone demo of combining shared/gatt-db, shared/gatt-server, and a
listening L2CAP socket on the ATT channel. The tool exposes the GAP and
GATT services, as well as a Heart Rate service. It's possible to hide/unhide
the latter to test Service Changed events.

The set also includes two small bug fixes for the way Service Changed
characteristics are handled by shared/gatt-client.

*v1: Fixed Luiz's comments:
     - Style fixes.
     - Make certain attribute values cached directly in gatt-db.
     - Added an ATT error response encoding API and packed struct.

*v2: Change bt_att_encode_error_rsp to bt_att_send_error_rsp.

Arman Uguray (7):
  shared/att: Add API for sending ATT error response.
  tools/btgatt-server: Introduce btgatt-server.
  tools/btgatt-server: Accept incoming connection and initialize server.
  tools/btgatt-server: Populate the database.
  tools/btgatt-server: Add command support and the notify command.
  tools/btgatt-server: Add Heart Rate service simulation.
  tools/btgatt-server: Add "heart-rate" command.

 .gitignore                |    1 +
 Makefile.tools            |    8 +
 src/shared/att-types.h    |   12 +
 src/shared/att.c          |   60 ++-
 src/shared/att.h          |    3 +
 src/shared/gatt-client.c  |    8 +-
 src/shared/gatt-helpers.c |    8 +-
 src/shared/gatt-server.c  |  208 +++------
 tools/btgatt-server.c     | 1088 +++++++++++++++++++++++++++++++++++++++++++++
 9 files changed, 1242 insertions(+), 154 deletions(-)
 create mode 100644 tools/btgatt-server.c

-- 
2.1.0.rc2.206.gedb03e5

--
To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Bluez Devel]     [Linux Wireless Networking]     [Linux Wireless Personal Area Networking]     [Linux ATH6KL]     [Linux USB Devel]     [Linux Media Drivers]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux