From 38b202e810eed01954ca217202e8391446e44bd6 Mon Sep 17 00:00:00 2001 From: Grzegorz Kolodziejczyk Date: Fri, 1 Apr 2016 18:12:54 +0200 Subject: [PATCH] Bluetooth: tester: Update server commands with sequence params Most iuts data base are intended to have its attribute database builded in sequence and its constant (except attribute values, parameters, permissions). Patch allows btp specification to cover also devices which cannot assign an ID right after issuing add attribute command or set attribute component (which points to defined attribute ID). Change-Id: Ie8e5ed223609cca2b6e3fb8444065f33b1408142 Signed-off-by: Grzegorz Kolodziejczyk --- tests/bluetooth/tester/btp_spec.txt | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/tests/bluetooth/tester/btp_spec.txt b/tests/bluetooth/tester/btp_spec.txt index e0efdbd7210..b0e924bbbbc 100644 --- a/tests/bluetooth/tester/btp_spec.txt +++ b/tests/bluetooth/tester/btp_spec.txt @@ -553,6 +553,15 @@ Commands and responses: UUID (2 or 16 octets) Response parameters: Characteristic_ID (2 octets) + Possible values for Service_ID: + 0x0000 = Add in sequence + 0x0001-0xffff = Add to service + + Possible response parameters: + 0x0000 = Relative ID, will be set after + start_server + 0x0001-0xffff = ID in db + Possible values for the Properties parameter are a bit-wise of the following bits: @@ -595,6 +604,15 @@ Commands and responses: UUID (2 or 16 octets) Response parameters: Descriptor_ID (2 octets) + Possible values for Characteristic_ID: + 0x0000 = Add in sequence + 0x0001-0xffff = Add to characteristic + + Possible response parameters: + 0x0000 = Relative ID, will be set after + start_server + 0x0001-0xffff = ID in db + This command is used to add new characteristic descriptor to GATT Server. The command shall be used right after Add Characteristic or previous Add Descriptor command. @@ -622,6 +640,11 @@ Commands and responses: Value (1-512 octets) Response parameters: + Possible values for Characteristic_ID: + 0x0000 = Set last attribute in db value + 0x0001-0xffff = Set value of attribute + under ID + This command is used to set the value of characteristic or descriptor. @@ -656,6 +679,12 @@ Commands and responses: Encryption_Key_Size (1 octet) Response parameters: + Possible values for Attribute_ID: + 0x0000 = Set encryption key of last + added attribute + 0x0001-0xffff = Set enctryption of + attribute under ID + This command is used to set required Encryption Key Size of an attribute. It shall be used only if encryption or authentication is needed to have access to this attribute. Otherwise an error