All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFCv2 0/2] Attribute database dump
@ 2014-06-02 13:19 Jakub Tyszkowski
  2014-06-02 13:19 ` [RFCv2 1/2] shared/gatt-db: Add databse dump Jakub Tyszkowski
  2014-06-02 13:19 ` [RFCv2 2/2] android/gatt: Add test command for database dump Jakub Tyszkowski
  0 siblings, 2 replies; 6+ messages in thread
From: Jakub Tyszkowski @ 2014-06-02 13:19 UTC (permalink / raw)
  To: linux-bluetooth; +Cc: Jakub Tyszkowski

RFCv2 changes:
	* added check for not used attribute slots (in case more attributes were
		reserved using gatt_db_add_service than actually used)

RFC1 message:

This allows to dump attributes database content for debug purposes and PTS tests
needs.

Android API does not provide attribute handle information that is needes to
pass some PTS test cases. To avoid adding more and more logs to the daemon
databse, database dump is provided. This will simplify executing writes and
reads on some specific handles, which are requested by PTS and previously
required calling multiple API functions in haltest only to find proper attribute
to write to, or read from.

This dumps db in the following format:

[ att database dump start ]
attr_hnd: 00001, uuid: 2800, perm: 0000000, val_len: 00002, attr_value: 00 18                                            ..
attr_hnd: 00002, uuid: 2803, perm: 0000000, val_len: 00005, attr_value: 02 03 00 00 2a                                   ....*
attr_hnd: 00003, uuid: 2a00, perm: 0000001, val_len: 00000, attr_value: <read_cb>
.
.
.
attr_hnd: 00024, uuid: 2803, perm: 0000000, val_len: 00005, attr_value: 20 19 00 05 2a                                    ...*
attr_hnd: 00025, uuid: 2a05, perm: 0000001, val_len: 00000, attr_value:
attr_hnd: 00026, uuid: 2902, perm: 0000001, val_len: 00000, attr_value: <write_cb>
<empty>
<empty>
.
.
.
<empty>
[ att database dump end ]

Jakub Tyszkowski (2):
  shared/gatt-db: Add databse dump
  android/gatt: Add test command for database dump

 android/gatt.c       |  4 ++++
 android/hal-msg.h    |  1 +
 src/shared/gatt-db.c | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 src/shared/gatt-db.h |  1 +
 4 files changed, 58 insertions(+)

--
2.0.0

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-03  9:24 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-02 13:19 [RFCv2 0/2] Attribute database dump Jakub Tyszkowski
2014-06-02 13:19 ` [RFCv2 1/2] shared/gatt-db: Add databse dump Jakub Tyszkowski
2014-06-02 13:19 ` [RFCv2 2/2] android/gatt: Add test command for database dump Jakub Tyszkowski
2014-06-02 15:05   ` Marcel Holtmann
2014-06-03  7:58     ` Tyszkowski Jakub
2014-06-03  9:24       ` Marcel Holtmann

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.