2012-11-09 15:41:27

by Andrzej Kaczmarek

[permalink] [raw]
Subject: [PATCH] gatt: Update characteristic names translation table

---
attrib/client.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 44 insertions(+)

diff --git a/attrib/client.c b/attrib/client.c
index 55f2b3f..9d9bb30 100644
--- a/attrib/client.c
+++ b/attrib/client.c
@@ -109,26 +109,45 @@ static const struct {
const char *uuid;
const char *name;
} char_names[] = {
+ { "00002a5a-0000-1000-8000-00805f9b34fb", "Aggregate Input" },
{ "00002a43-0000-1000-8000-00805f9b34fb", "Alert Category ID" },
{ "00002a42-0000-1000-8000-00805f9b34fb", "Alert Category ID Bit Mask" },
{ "00002a06-0000-1000-8000-00805f9b34fb", "Alert Level" },
{ "00002a44-0000-1000-8000-00805f9b34fb", "Alert Notification Control Point" },
{ "00002a3f-0000-1000-8000-00805f9b34fb", "Alert Status" },
+ { "00002a58-0000-1000-8000-00805f9b34fb", "Analog Input" },
+ { "00002a59-0000-1000-8000-00805f9b34fb", "Analog Output" },
{ "00002a01-0000-1000-8000-00805f9b34fb", "Appearance" },
+ { "00002a19-0000-1000-8000-00805f9b34fb", "Battery Level" },
+ { "00002a1b-0000-1000-8000-00805f9b34fb", "Battery Level State" },
+ { "00002a1a-0000-1000-8000-00805f9b34fb", "Battery Power State" },
{ "00002a49-0000-1000-8000-00805f9b34fb", "Blood Pressure Feature" },
{ "00002a35-0000-1000-8000-00805f9b34fb", "Blood Pressure Measurement" },
{ "00002a38-0000-1000-8000-00805f9b34fb", "Body Sensor Location" },
+ { "00002a22-0000-1000-8000-00805f9b34fb", "Boot Keyboard Input Report" },
+ { "00002a32-0000-1000-8000-00805f9b34fb", "Boot Keyboard Output Report" },
+ { "00002a33-0000-1000-8000-00805f9b34fb", "Boot Mouse Input Report" },
+ { "00002a5c-0000-1000-8000-00805f9b34fb", "CSC Feature" },
+ { "00002a5b-0000-1000-8000-00805f9b34fb", "CSC Measurement" },
{ "00002a2b-0000-1000-8000-00805f9b34fb", "Current Time" },
{ "00002a08-0000-1000-8000-00805f9b34fb", "Date Time" },
{ "00002a0a-0000-1000-8000-00805f9b34fb", "Day Date Time" },
{ "00002a09-0000-1000-8000-00805f9b34fb", "Day of Week" },
{ "00002a00-0000-1000-8000-00805f9b34fb", "Device Name" },
+ { "00002a56-0000-1000-8000-00805f9b34fb", "Digital Input" },
+ { "00002a57-0000-1000-8000-00805f9b34fb", "Digital Output" },
{ "00002a0d-0000-1000-8000-00805f9b34fb", "DST Offset" },
+ { "00002a0b-0000-1000-8000-00805f9b34fb", "Exact Time 100" },
{ "00002a0c-0000-1000-8000-00805f9b34fb", "Exact Time 256" },
{ "00002a26-0000-1000-8000-00805f9b34fb", "Firmware Revision String" },
+ { "00002a51-0000-1000-8000-00805f9b34fb", "Glucose Feature" },
+ { "00002a18-0000-1000-8000-00805f9b34fb", "Glucose Measurement" },
+ { "00002a34-0000-1000-8000-00805f9b34fb", "Glucose Measurement Context" },
{ "00002a27-0000-1000-8000-00805f9b34fb", "Hardware Revision String" },
{ "00002a39-0000-1000-8000-00805f9b34fb", "Heart Rate Control Point" },
{ "00002a37-0000-1000-8000-00805f9b34fb", "Heart Rate Measurement" },
+ { "00002a4c-0000-1000-8000-00805f9b34fb", "HID Control Point" },
+ { "00002a4a-0000-1000-8000-00805f9b34fb", "HID Information" },
{ "00002a2a-0000-1000-8000-00805f9b34fb", "IEEE 11073-20601 Regulatory" },
{ "00002a36-0000-1000-8000-00805f9b34fb", "Intermediate Cuff Pressure" },
{ "00002a1e-0000-1000-8000-00805f9b34fb", "Intermediate Temperature" },
@@ -136,22 +155,47 @@ static const struct {
{ "00002a29-0000-1000-8000-00805f9b34fb", "Manufacturer Name String" },
{ "00002a21-0000-1000-8000-00805f9b34fb", "Measurement Interval" },
{ "00002a24-0000-1000-8000-00805f9b34fb", "Model Number String" },
+ { "00002a3e-0000-1000-8000-00805f9b34fb", "Network Availability" },
{ "00002a46-0000-1000-8000-00805f9b34fb", "New Alert" },
{ "00002a04-0000-1000-8000-00805f9b34fb", "Peripheral Preferred Connection Parameters" },
{ "00002a02-0000-1000-8000-00805f9b34fb", "Peripheral Privacy Flag" },
+ { "00002a50-0000-1000-8000-00805f9b34fb", "PnP ID" },
+ { "00002a4e-0000-1000-8000-00805f9b34fb", "Protocol Mode" },
+ { "00002a5f-0000-1000-8000-00805f9b34fb", "Pulse Oximetry Continuous Measurement" },
+ { "00002a62-0000-1000-8000-00805f9b34fb", "Pulse Oximetry Control Point" },
+ { "00002a61-0000-1000-8000-00805f9b34fb", "Pulse Oximetry Features" },
+ { "00002a60-0000-1000-8000-00805f9b34fb", "Pulse Oximetry Pulsatile Event" },
+ { "00002a5e-0000-1000-8000-00805f9b34fb", "Pulse Oximetry Spot-Check Measurement" },
{ "00002a03-0000-1000-8000-00805f9b34fb", "Reconnection Address" },
+ { "00002a52-0000-1000-8000-00805f9b34fb", "Record Access Control Point" },
{ "00002a14-0000-1000-8000-00805f9b34fb", "Reference Time Information" },
+ { "00002a3a-0000-1000-8000-00805f9b34fb", "Removable" },
+ { "00002a4d-0000-1000-8000-00805f9b34fb", "Report" },
+ { "00002a4b-0000-1000-8000-00805f9b34fb", "Report Map" },
{ "00002a40-0000-1000-8000-00805f9b34fb", "Ringer Control Point" },
{ "00002a41-0000-1000-8000-00805f9b34fb", "Ringer Setting" },
+ { "00002a54-0000-1000-8000-00805f9b34fb", "RSC Feature" },
+ { "00002a53-0000-1000-8000-00805f9b34fb", "RSC Measurement" },
+ { "00002a55-0000-1000-8000-00805f9b34fb", "SC Control Point" },
+ { "00002a4f-0000-1000-8000-00805f9b34fb", "Scan Interval Window" },
+ { "00002a31-0000-1000-8000-00805f9b34fb", "Scan Refresh" },
+ { "00002a3c-0000-1000-8000-00805f9b34fb", "Scientific Temperature in Celsius" },
+ { "00002a10-0000-1000-8000-00805f9b34fb", "Secondary Time Zone" },
+ { "00002a5d-0000-1000-8000-00805f9b34fb", "Sensor Location" },
{ "00002a25-0000-1000-8000-00805f9b34fb", "Serial Number String" },
{ "00002a05-0000-1000-8000-00805f9b34fb", "Service Changed" },
+ { "00002a3b-0000-1000-8000-00805f9b34fb", "Service Required" },
{ "00002a28-0000-1000-8000-00805f9b34fb", "Software Revision String" },
+ { "00002a3d-0000-1000-8000-00805f9b34fb", "String" },
{ "00002a47-0000-1000-8000-00805f9b34fb", "Supported New Alert Category" },
{ "00002a48-0000-1000-8000-00805f9b34fb", "Supported Unread Alert Category" },
{ "00002a23-0000-1000-8000-00805f9b34fb", "System ID" },
+ { "00002a1f-0000-1000-8000-00805f9b34fb", "Temperature in Celsius" },
+ { "00002a20-0000-1000-8000-00805f9b34fb", "Temperature in Fahrenheit" },
{ "00002a1c-0000-1000-8000-00805f9b34fb", "Temperature Measurement" },
{ "00002a1d-0000-1000-8000-00805f9b34fb", "Temperature Type" },
{ "00002a12-0000-1000-8000-00805f9b34fb", "Time Accuracy" },
+ { "00002a15-0000-1000-8000-00805f9b34fb", "Time Broadcast" },
{ "00002a13-0000-1000-8000-00805f9b34fb", "Time Source" },
{ "00002a16-0000-1000-8000-00805f9b34fb", "Time Update Control Point" },
{ "00002a17-0000-1000-8000-00805f9b34fb", "Time Update State" },
--
1.8.0



2012-11-12 12:04:39

by Andrzej Kaczmarek

[permalink] [raw]
Subject: Re: [PATCH] gatt: Update characteristic names translation table

Hi Anderson,

On 11/12/2012 12:41 PM, Anderson Lizardo wrote:
> Hi Andrzej,
>
> On Fri, Nov 9, 2012 at 11:41 AM, Andrzej Kaczmarek
> <[email protected]> wrote:
>> ---
>> attrib/client.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
>> 1 file changed, 44 insertions(+)
>
> Most characteristics you are adding here come from profiles which have
> not been adopted yet, so they are not publicly available.
>
> I would first wait for their adoption before adding here, as AFAIK it
> is still possible that their UUIDs might change before final adoption.

Sure, agree. I'll send v2 in a moment which will include only
characteristics from already adopted profiles.

BR,
Andrzej

2012-11-12 11:41:43

by Anderson Lizardo

[permalink] [raw]
Subject: Re: [PATCH] gatt: Update characteristic names translation table

Hi Andrzej,

On Fri, Nov 9, 2012 at 11:41 AM, Andrzej Kaczmarek
<[email protected]> wrote:
> ---
> attrib/client.c | 44 ++++++++++++++++++++++++++++++++++++++++++++
> 1 file changed, 44 insertions(+)

Most characteristics you are adding here come from profiles which have
not been adopted yet, so they are not publicly available.

I would first wait for their adoption before adding here, as AFAIK it
is still possible that their UUIDs might change before final adoption.

Best Regards,
--
Anderson Lizardo
Instituto Nokia de Tecnologia - INdT
Manaus - Brazil