[RFCv2 0/2] Attribute database dump

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

 



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
--
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