* [PATCH 00/13] Android HAL GATT Server API Commands
@ 2014-02-27 13:28 Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 01/13] android/hal-gatt-api: Add Server Register Grzegorz Kolodziejczyk
` (13 more replies)
0 siblings, 14 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
This serie of hal-gatt-api patches updates hal-ipc-api document and
hal-msg header in parallel. Should be applied on top of GATT client
patches.
Grzegorz Kolodziejczyk (13):
android/hal-gatt-api: Add Server Register
android/hal-gatt-api: Add Server Unregister
android/hal-gatt-api: Add Server Connect
android/hal-gatt-api: Add Server Disconnect
android/hal-gatt-api: Add Server Service
android/hal-gatt-api: Add Server Included Service
android/hal-gatt-api: Add Server Characteristic
android/hal-gatt-api: Add Server Descriptor
android/hal-gatt-api: Add Server Start Service
android/hal-gatt-api: Add Server Stop Service
android/hal-gatt-api: Add Server Delete Service
android/hal-gatt-api: Add Server Send Indication
android/hal-gatt-api: Add Server Send Response
android/hal-ipc-api.txt | 119 ++++++++++++++++++++++++++++++++++++++++++++++++
android/hal-msg.h | 93 +++++++++++++++++++++++++++++++++++++
2 files changed, 212 insertions(+)
--
1.8.5.2
^ permalink raw reply [flat|nested] 15+ messages in thread
* [PATCH 01/13] android/hal-gatt-api: Add Server Register
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 02/13] android/hal-gatt-api: Add Server Unregister Grzegorz Kolodziejczyk
` (12 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 6 ++++++
android/hal-msg.h | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 9b2c8ae..25428f0 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1661,6 +1661,12 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x17 - Register Server command/response
+
+ Command parameters: UUID (16 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x18 - Unregister Server command/response
Opcode 0x19 - Connect Peripheral command/response
Opcode 0x1a - Disconnect Peripheral command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index e128553..e0bfd87 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -702,6 +702,11 @@ struct hal_cmd_gatt_client_test_command {
struct hal_gatt_test_params params;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_REGISTER 0x17
+struct hal_cmd_gatt_server_register {
+ uint8_t uuid[16];
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 02/13] android/hal-gatt-api: Add Server Unregister
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 01/13] android/hal-gatt-api: Add Server Register Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 03/13] android/hal-gatt-api: Add Server Connect Grzegorz Kolodziejczyk
` (11 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 6 ++++++
android/hal-msg.h | 5 +++++
2 files changed, 11 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 25428f0..176f325 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1668,6 +1668,12 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x18 - Unregister Server command/response
+
+ Command parameters: Server (4 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x19 - Connect Peripheral command/response
Opcode 0x1a - Disconnect Peripheral command/response
Opcode 0x1b - Add Service command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index e0bfd87..f0fae01 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -707,6 +707,11 @@ struct hal_cmd_gatt_server_register {
uint8_t uuid[16];
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_UNREGISTER 0x18
+struct hal_cmd_gatt_server_unregister {
+ int32_t server_if;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 03/13] android/hal-gatt-api: Add Server Connect
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 01/13] android/hal-gatt-api: Add Server Register Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 02/13] android/hal-gatt-api: Add Server Unregister Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 04/13] android/hal-gatt-api: Add Server Disconnect Grzegorz Kolodziejczyk
` (10 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 8 ++++++++
android/hal-msg.h | 7 +++++++
2 files changed, 15 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 176f325..f28ff8a 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1675,6 +1675,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x19 - Connect Peripheral command/response
+
+ Command parameters: Server (4 octets)
+ Remote address (6 octes)
+ Is Direct (1 octet)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x1a - Disconnect Peripheral command/response
Opcode 0x1b - Add Service command/response
Opcode 0x1c - Add Included Service command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index f0fae01..b423a94 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -712,6 +712,13 @@ struct hal_cmd_gatt_server_unregister {
int32_t server_if;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_CONNECT 0x19
+struct hal_cmd_gatt_server_connect {
+ int32_t server_if;
+ uint8_t bdaddr[6];
+ uint8_t is_direct;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 04/13] android/hal-gatt-api: Add Server Disconnect
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (2 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 03/13] android/hal-gatt-api: Add Server Connect Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 05/13] android/hal-gatt-api: Add Server Service Grzegorz Kolodziejczyk
` (9 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 8 ++++++++
android/hal-msg.h | 7 +++++++
2 files changed, 15 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index f28ff8a..7c89e9c 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1684,6 +1684,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x1a - Disconnect Peripheral command/response
+
+ Command parameters: Server (4 octets)
+ Remote address (6 octes)
+ Connection ID (1 octet)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x1b - Add Service command/response
Opcode 0x1c - Add Included Service command/response
Opcode 0x1d - Add Characteristic command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index b423a94..983a017 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -719,6 +719,13 @@ struct hal_cmd_gatt_server_connect {
uint8_t is_direct;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_DISCONNECT 0x1a
+struct hal_cmd_gatt_server_disconnect {
+ int32_t server_if;
+ uint8_t bdaddr[6];
+ int32_t conn_id;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 05/13] android/hal-gatt-api: Add Server Service
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (3 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 04/13] android/hal-gatt-api: Add Server Disconnect Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 06/13] android/hal-gatt-api: Add Server Included Service Grzegorz Kolodziejczyk
` (8 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 14 ++++++++++++++
android/hal-msg.h | 7 +++++++
2 files changed, 21 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 7c89e9c..9b1f8a6 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1693,6 +1693,20 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x1b - Add Service command/response
+
+ Command parameters: Server (4 octets)
+ GATT Service ID (18 octets)
+ Number of Handles (4 octet)
+
+ Valid GATT Service ID: GATT ID (17 octets)
+ Is Primary (1 octet)
+
+ Valid GATT ID: UUID (16 octets)
+ Instance ID (1 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x1c - Add Included Service command/response
Opcode 0x1d - Add Characteristic command/response
Opcode 0x1e - Add Descriptor command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 983a017..cb93514 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -726,6 +726,13 @@ struct hal_cmd_gatt_server_disconnect {
int32_t conn_id;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_ADD_SERVICE 0x1b
+struct hal_cmd_gatt_server_add_service {
+ int32_t server_if;
+ struct hal_gatt_srvc_id srvc_id;
+ int32_t num_handles;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 06/13] android/hal-gatt-api: Add Server Included Service
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (4 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 05/13] android/hal-gatt-api: Add Server Service Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 07/13] android/hal-gatt-api: Add Server Characteristic Grzegorz Kolodziejczyk
` (7 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 8 ++++++++
android/hal-msg.h | 7 +++++++
2 files changed, 15 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 9b1f8a6..c6b573a 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1708,6 +1708,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x1c - Add Included Service command/response
+
+ Command parameters: Server (4 octets)
+ Service handle (4 octets)
+ Included handle (4 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x1d - Add Characteristic command/response
Opcode 0x1e - Add Descriptor command/response
Opcode 0x1f - Start Service command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index cb93514..4f0ae30 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -733,6 +733,13 @@ struct hal_cmd_gatt_server_add_service {
int32_t num_handles;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_ADD_INC_SERVICE 0x1c
+struct hal_cmd_gatt_server_add_inc_service {
+ int32_t server_if;
+ int32_t service_handle;
+ int32_t included_handle;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 07/13] android/hal-gatt-api: Add Server Characteristic
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (5 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 06/13] android/hal-gatt-api: Add Server Included Service Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 08/13] android/hal-gatt-api: Add Server Descriptor Grzegorz Kolodziejczyk
` (6 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 10 ++++++++++
android/hal-msg.h | 9 +++++++++
2 files changed, 19 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index c6b573a..b5175ca 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1717,6 +1717,16 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x1d - Add Characteristic command/response
+
+ Command parameters: Server (4 octets)
+ Service handle (4 octets)
+ UUID (16 octets)
+ Properties (4 octets)
+ Permissions (4 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x1e - Add Descriptor command/response
Opcode 0x1f - Start Service command/response
Opcode 0x20 - Stop Service command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 4f0ae30..88228ad 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -740,6 +740,15 @@ struct hal_cmd_gatt_server_add_inc_service {
int32_t included_handle;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_ADD_CHARACTERISTIC 0x1d
+struct hal_cmd_gatt_server_add_characteristic {
+ int32_t server_if;
+ int32_t service_handle;
+ uint8_t uuid[16];
+ int32_t properties;
+ int32_t permissions;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 08/13] android/hal-gatt-api: Add Server Descriptor
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (6 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 07/13] android/hal-gatt-api: Add Server Characteristic Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 09/13] android/hal-gatt-api: Add Server Start Service Grzegorz Kolodziejczyk
` (5 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 9 +++++++++
android/hal-msg.h | 8 ++++++++
2 files changed, 17 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index b5175ca..24ff5de 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1728,6 +1728,15 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x1e - Add Descriptor command/response
+
+ Command parameters: Server (4 octets)
+ Service handle (4 octets)
+ UUID (16 octets)
+ Permissions (4 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x1f - Start Service command/response
Opcode 0x20 - Stop Service command/response
Opcode 0x21 - Delete Service command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 88228ad..e42b0a5 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -749,6 +749,14 @@ struct hal_cmd_gatt_server_add_characteristic {
int32_t permissions;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_ADD_DESCRIPTOR 0x1e
+struct hal_cmd_gatt_server_add_descriptor {
+ int32_t server_if;
+ int32_t service_handle;
+ uint8_t uuid[16];
+ int32_t permissions;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 09/13] android/hal-gatt-api: Add Server Start Service
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (7 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 08/13] android/hal-gatt-api: Add Server Descriptor Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 10/13] android/hal-gatt-api: Add Server Stop Service Grzegorz Kolodziejczyk
` (4 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 8 ++++++++
android/hal-msg.h | 7 +++++++
2 files changed, 15 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 24ff5de..812aac2 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1738,6 +1738,14 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x1f - Start Service command/response
+
+ Command parameters: Server (4 octets)
+ Service handle (4 octets)
+ Transport (4 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x20 - Stop Service command/response
Opcode 0x21 - Delete Service command/response
Opcode 0x22 - Send Indication command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index e42b0a5..d632911 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -757,6 +757,13 @@ struct hal_cmd_gatt_server_add_descriptor {
int32_t permissions;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_START_SERVICE 0x1f
+struct hal_cmd_gatt_server_start_service {
+ int32_t server_if;
+ int32_t service_handle;
+ int32_t transport;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 10/13] android/hal-gatt-api: Add Server Stop Service
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (8 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 09/13] android/hal-gatt-api: Add Server Start Service Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 11/13] android/hal-gatt-api: Add Server Delete Service Grzegorz Kolodziejczyk
` (3 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 7 +++++++
android/hal-msg.h | 6 ++++++
2 files changed, 13 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 812aac2..3104c06 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1747,6 +1747,13 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x20 - Stop Service command/response
+
+ Command parameters: Server (4 octets)
+ Service handle (4 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x21 - Delete Service command/response
Opcode 0x22 - Send Indication command/response
Opcode 0x23 - Send Response command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index d632911..0253f3a 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -764,6 +764,12 @@ struct hal_cmd_gatt_server_start_service {
int32_t transport;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_STOP_SERVICE 0x20
+struct hal_cmd_gatt_server_stop_service {
+ int32_t server_if;
+ int32_t service_handle;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 11/13] android/hal-gatt-api: Add Server Delete Service
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (9 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 10/13] android/hal-gatt-api: Add Server Stop Service Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 12/13] android/hal-gatt-api: Add Server Send Indication Grzegorz Kolodziejczyk
` (2 subsequent siblings)
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 7 +++++++
android/hal-msg.h | 6 ++++++
2 files changed, 13 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 3104c06..fac614e 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1755,6 +1755,13 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x21 - Delete Service command/response
+
+ Command parameters: Server (4 octets)
+ Service handle (4 octets)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x22 - Send Indication command/response
Opcode 0x23 - Send Response command/response
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 0253f3a..6598996 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -770,6 +770,12 @@ struct hal_cmd_gatt_server_stop_service {
int32_t service_handle;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_DELETE_SERVICE 0x21
+struct hal_cmd_gatt_server_delete_service {
+ int32_t server_if;
+ int32_t service_handle;
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 12/13] android/hal-gatt-api: Add Server Send Indication
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (10 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 11/13] android/hal-gatt-api: Add Server Delete Service Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 13/13] android/hal-gatt-api: Add Server Send Response Grzegorz Kolodziejczyk
2014-02-27 21:16 ` [PATCH 00/13] Android HAL GATT Server API Commands Szymon Janc
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 11 +++++++++++
android/hal-msg.h | 10 ++++++++++
2 files changed, 21 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index fac614e..18bf7ed 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1763,6 +1763,17 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
In case of an error, the error response will be returned.
Opcode 0x22 - Send Indication command/response
+
+ Command parameters: Server (4 octets)
+ Attribute handle (4 octets)
+ Connection ID (4 octets)
+ Length (4 octets)
+ Confirmation (4 octets)
+ Value (variable)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x23 - Send Response command/response
Opcode 0x81 - Register Client notification
diff --git a/android/hal-msg.h b/android/hal-msg.h
index 6598996..fd67fa1 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -776,6 +776,16 @@ struct hal_cmd_gatt_server_delete_service {
int32_t service_handle;
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_SEND_INDICATION 0x22
+struct hal_cmd_gatt_server_send_indication {
+ int32_t server_if;
+ int32_t attribute_handle;
+ int32_t conn_id;
+ int32_t len;
+ int32_t confirm;
+ uint8_t value[0];
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* [PATCH 13/13] android/hal-gatt-api: Add Server Send Response
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (11 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 12/13] android/hal-gatt-api: Add Server Send Indication Grzegorz Kolodziejczyk
@ 2014-02-27 13:28 ` Grzegorz Kolodziejczyk
2014-02-27 21:16 ` [PATCH 00/13] Android HAL GATT Server API Commands Szymon Janc
13 siblings, 0 replies; 15+ messages in thread
From: Grzegorz Kolodziejczyk @ 2014-02-27 13:28 UTC (permalink / raw)
To: linux-bluetooth
---
android/hal-ipc-api.txt | 17 +++++++++++++++++
android/hal-msg.h | 9 +++++++++
2 files changed, 26 insertions(+)
diff --git a/android/hal-ipc-api.txt b/android/hal-ipc-api.txt
index 18bf7ed..f3d5fd1 100644
--- a/android/hal-ipc-api.txt
+++ b/android/hal-ipc-api.txt
@@ -1776,6 +1776,23 @@ Android HAL name: "gatt" (BT_PROFILE_GATT_ID)
Opcode 0x23 - Send Response command/response
+ Command parameters: Connection ID (4 octets)
+ Transaction ID (4 octets)
+ Status (4 octets)
+ GATT Response (4 octets)
+
+ Valid GATT Response: GATT Value (607 octets)
+ Handle (2 octets)
+
+ Valid GATT Value: Value (600 octets)
+ Handle (2 octets)
+ Offset (2 octets)
+ Length (2 octets)
+ Authentication Request (1 octet)
+ Response parameters: <none>
+
+ In case of an error, the error response will be returned.
+
Opcode 0x81 - Register Client notification
Opcode 0x82 - Scan Result notification
Opcode 0x83 - Connect Device notification
diff --git a/android/hal-msg.h b/android/hal-msg.h
index fd67fa1..100ba96 100644
--- a/android/hal-msg.h
+++ b/android/hal-msg.h
@@ -786,6 +786,15 @@ struct hal_cmd_gatt_server_send_indication {
uint8_t value[0];
} __attribute__((packed));
+#define HAL_OP_GATT_SERVER_SEND_RESPONSE 0x23
+struct hal_cmd_gatt_server_send_response {
+ int32_t conn_id;
+ int32_t trans_id;
+ int32_t status;
+ uint8_t len;
+ uint8_t data[0];
+} __attribute__((packed));
+
/* Notifications and confirmations */
#define HAL_POWER_OFF 0x00
--
1.8.5.2
^ permalink raw reply related [flat|nested] 15+ messages in thread
* Re: [PATCH 00/13] Android HAL GATT Server API Commands
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
` (12 preceding siblings ...)
2014-02-27 13:28 ` [PATCH 13/13] android/hal-gatt-api: Add Server Send Response Grzegorz Kolodziejczyk
@ 2014-02-27 21:16 ` Szymon Janc
13 siblings, 0 replies; 15+ messages in thread
From: Szymon Janc @ 2014-02-27 21:16 UTC (permalink / raw)
To: Grzegorz Kolodziejczyk; +Cc: linux-bluetooth
Hi Grzegorz,
On Thursday 27 February 2014 14:28:38 Grzegorz Kolodziejczyk wrote:
> This serie of hal-gatt-api patches updates hal-ipc-api document and
> hal-msg header in parallel. Should be applied on top of GATT client
> patches.
>
> Grzegorz Kolodziejczyk (13):
> android/hal-gatt-api: Add Server Register
> android/hal-gatt-api: Add Server Unregister
> android/hal-gatt-api: Add Server Connect
> android/hal-gatt-api: Add Server Disconnect
> android/hal-gatt-api: Add Server Service
> android/hal-gatt-api: Add Server Included Service
> android/hal-gatt-api: Add Server Characteristic
> android/hal-gatt-api: Add Server Descriptor
> android/hal-gatt-api: Add Server Start Service
> android/hal-gatt-api: Add Server Stop Service
> android/hal-gatt-api: Add Server Delete Service
> android/hal-gatt-api: Add Server Send Indication
> android/hal-gatt-api: Add Server Send Response
>
> android/hal-ipc-api.txt | 119
> ++++++++++++++++++++++++++++++++++++++++++++++++ android/hal-msg.h |
> 93 +++++++++++++++++++++++++++++++++++++ 2 files changed, 212 insertions(+)
All patches applied, thanks.
--
Szymon K. Janc
szymon.janc@gmail.com
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2014-02-27 21:16 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-02-27 13:28 [PATCH 00/13] Android HAL GATT Server API Commands Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 01/13] android/hal-gatt-api: Add Server Register Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 02/13] android/hal-gatt-api: Add Server Unregister Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 03/13] android/hal-gatt-api: Add Server Connect Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 04/13] android/hal-gatt-api: Add Server Disconnect Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 05/13] android/hal-gatt-api: Add Server Service Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 06/13] android/hal-gatt-api: Add Server Included Service Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 07/13] android/hal-gatt-api: Add Server Characteristic Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 08/13] android/hal-gatt-api: Add Server Descriptor Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 09/13] android/hal-gatt-api: Add Server Start Service Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 10/13] android/hal-gatt-api: Add Server Stop Service Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 11/13] android/hal-gatt-api: Add Server Delete Service Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 12/13] android/hal-gatt-api: Add Server Send Indication Grzegorz Kolodziejczyk
2014-02-27 13:28 ` [PATCH 13/13] android/hal-gatt-api: Add Server Send Response Grzegorz Kolodziejczyk
2014-02-27 21:16 ` [PATCH 00/13] Android HAL GATT Server API Commands Szymon Janc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox