-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgatt.xml
166 lines (140 loc) · 14.4 KB
/
gatt.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!--Custom BLE GATT-->
<gatt gatt_caching="true" generic_attribute_service="true" header="gatt_db.h" name="Custom BLE GATT" out="gatt_db.c" prefix="gattdb_">
<!--Generic Access-->
<service advertise="false" name="Generic Access" requirement="mandatory" sourceId="org.bluetooth.service.generic_access" type="primary" uuid="1800">
<informativeText>Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. </informativeText>
<!--Device name-->
<characteristic id="device_name" name="Device name" sourceId="org.bluetooth.characteristic.gap.device_name" uuid="2A00">
<informativeText/>
<value length="13" type="utf-8" variable_length="false">PMWS</value>
<properties read="true" read_requirement="optional" write="true" write_requirement="optional"/>
</characteristic>
<!--Appearance-->
<characteristic name="Appearance" sourceId="org.bluetooth.characteristic.gap.appearance" uuid="2A01">
<informativeText>Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). </informativeText>
<value length="2" type="hex" variable_length="false">0000</value>
<properties const="true" const_requirement="optional" read="true" read_requirement="optional"/>
</characteristic>
</service>
<!--ECEN5823 Encryption Test-->
<service advertise="false" name="ECEN5823 Encryption Test" requirement="mandatory" sourceId="custom.type" type="primary" uuid="00000001-38c8-433e-87ec-652a2d136289">
<informativeText>Custom service</informativeText>
<!--ECEN5823 Encrypted Button State-->
<characteristic id="button_state" name="ECEN5823 Encrypted Button State" sourceId="custom.type" uuid="00000002-38c8-433e-87ec-652a2d136289">
<informativeText>Custom characteristic</informativeText>
<value length="1" type="hex" variable_length="false">0x00</value>
<properties encrypted_read="true" encrypted_read_requirement="optional" indicate="true" indicate_requirement="optional"/>
</characteristic>
</service>
<!--Inertial Measurement Unit-->
<service advertise="true" name="Inertial Measurement Unit" requirement="mandatory" sourceId="custom.type" type="primary" uuid="00000001-38c8-433e-87ec-652a2d136294">
<informativeText>Custom service</informativeText>
<!--Axis orientation-->
<characteristic id="y_axis_value" name="Axis orientation" sourceId="custom.type" uuid="00000001-38c8-433e-87ec-652a2d136295">
<informativeText>Custom characteristic</informativeText>
<value length="2" type="hex" variable_length="false">0x00</value>
<properties indicate="true" indicate_requirement="optional"/>
</characteristic>
</service>
<!--User Control-->
<service advertise="true" name="User Control" requirement="mandatory" sourceId="custom.type" type="primary" uuid="00000001-38c8-433e-87ec-652a2d136296">
<informativeText>Custom service</informativeText>
<!--Time until Trigger-->
<characteristic id="seconds" name="Time until Trigger" sourceId="custom.type" uuid="00000001-38c8-433e-87ec-652a2d136297">
<informativeText>Custom characteristic</informativeText>
<value length="1" type="hex" variable_length="false">0x00</value>
<properties indicate="true" indicate_requirement="optional"/>
</characteristic>
</service>
<!--Device Information-->
<service advertise="false" name="Device Information" requirement="mandatory" sourceId="org.bluetooth.service.device_information" type="primary" uuid="180A">
<informativeText>Abstract: The Device Information Service exposes manufacturer and/or vendor information about a device. Summary: This service exposes manufacturer information about a device. The Device Information Service is instantiated as a Primary Service. Only one instance of the Device Information Service is exposed on a device. </informativeText>
<!--Manufacturer Name String-->
<characteristic name="Manufacturer Name String" sourceId="org.bluetooth.characteristic.manufacturer_name_string" uuid="2A29">
<informativeText>Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. </informativeText>
<value length="12" type="utf-8" variable_length="false">Silicon Labs</value>
<properties const="true" const_requirement="optional" read="true" read_requirement="optional"/>
</characteristic>
<!--Model Number String-->
<characteristic name="Model Number String" sourceId="org.bluetooth.characteristic.model_number_string" uuid="2A24">
<informativeText>Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. </informativeText>
<value length="10" type="utf-8" variable_length="false">Blue Gecko</value>
<properties const="true" const_requirement="optional" read="true" read_requirement="optional"/>
</characteristic>
<!--System ID-->
<characteristic name="System ID" sourceId="org.bluetooth.characteristic.system_id" uuid="2A23">
<informativeText>Abstract: The SYSTEM ID characteristic consists of a structure with two fields. The first field are the LSOs and the second field contains the MSOs. This is a 64-bit structure which consists of a 40-bit manufacturer-defined identifier concatenated with a 24 bit unique Organizationally Unique Identifier (OUI). The OUI is issued by the IEEE Registration Authority (http://standards.ieee.org/regauth/index.html) and is required to be used in accordance with IEEE Standard 802-2001.6 while the least significant 40 bits are manufacturer defined. If System ID generated based on a Bluetooth Device Address, it is required to be done as follows. System ID and the Bluetooth Device Address have a very similar structure: a Bluetooth Device Address is 48 bits in length and consists of a 24 bit Company Assigned Identifier (manufacturer defined identifier) concatenated with a 24 bit Company Identifier (OUI). In order to encapsulate a Bluetooth Device Address as System ID, the Company Identifier is concatenated with 0xFFFE followed by the Company Assigned Identifier of the Bluetooth Address. For more guidelines related to EUI-64, refer to http://standards.ieee.org/develop/regauth/tut/eui64.pdf. Examples: If the system ID is based of a Bluetooth Device Address with a Company Identifier (OUI) is 0x123456 and the Company Assigned Identifier is 0x9ABCDE, then the System Identifier is required to be 0x123456FFFE9ABCDE. </informativeText>
<value length="6" type="hex" variable_length="false">000102030405</value>
<properties const="true" const_requirement="optional" read="true" read_requirement="optional"/>
</characteristic>
</service>
<!--Silicon Labs OTA-->
<service advertise="false" name="Silicon Labs OTA" requirement="mandatory" sourceId="com.silabs.service.ota" type="primary" uuid="1D14D6EE-FD63-4FA1-BFA4-8F47B42119F0">
<informativeText>Abstract: The Silicon Labs OTA Service enables over-the-air firmware update of the device. </informativeText>
<!--Silicon Labs OTA Control-->
<characteristic id="ota_control" name="Silicon Labs OTA Control" sourceId="com.silabs.characteristic.ota_control" uuid="F7BF3564-FB6D-4E53-88A4-5E37E0326063">
<informativeText>Abstract: Silicon Labs OTA Control. </informativeText>
<value length="1" type="user" variable_length="false"/>
<properties write="true" write_requirement="optional"/>
</characteristic>
</service>
<!--Health Thermometer-->
<service advertise="false" id="health_thermometer" name="Health Thermometer" requirement="mandatory" sourceId="org.bluetooth.service.health_thermometer" type="primary" uuid="1809">
<informativeText>Abstract: The Health Thermometer service exposes temperature and other data from a thermometer intended for healthcare and fitness applications. Summary: The Health Thermometer service is instantiated as a Primary Service. There are one or more instantiations of the Health Thermometer service per device claiming conformance with this specification. </informativeText>
<!--Temperature Measurement-->
<characteristic id="temperature_measurement" name="Temperature Measurement" sourceId="org.bluetooth.characteristic.temperature_measurement" uuid="2A1C">
<informativeText/>
<value length="17" type="hex" variable_length="false"/>
<properties indicate="true" indicate_requirement="mandatory" notify="false" notify_requirement="excluded" read="false" read_requirement="excluded" reliable_write="false" reliable_write_requirement="excluded" write="false" write_no_response="false" write_no_response_requirement="excluded" write_requirement="excluded"/>
<!--Client Characteristic Configuration-->
<descriptor id="client_characteristic_configuration" name="Client Characteristic Configuration" sourceId="org.bluetooth.descriptor.gatt.client_characteristic_configuration" uuid="2902">
<properties read="true" read_requirement="mandatory" write="true" write_requirement="mandatory"/>
<value length="2" type="hex" variable_length="false"/>
</descriptor>
</characteristic>
<!--Temperature Type-->
<characteristic id="temperature_type" name="Temperature Type" sourceId="org.bluetooth.characteristic.temperature_type" uuid="2A1D">
<informativeText>Abstract: The Temperature Type characteristic is an enumeration that indicates where the temperature was measured. Summary: These Temperature Type values correspond to the Temperature Type descriptions used in ISO/IEEE 11073-10408-2008. </informativeText>
<value length="1" type="hex" variable_length="false"/>
<properties indicate="false" indicate_requirement="excluded" notify="false" notify_requirement="excluded" read="true" read_requirement="mandatory" reliable_write="false" reliable_write_requirement="excluded" write="false" write_no_response="false" write_no_response_requirement="excluded" write_requirement="excluded"/>
</characteristic>
<!--Intermediate Temperature-->
<characteristic id="intermediate_temperature" name="Intermediate Temperature" sourceId="org.bluetooth.characteristic.intermediate_temperature" uuid="2A1E">
<informativeText>Abstract: The Intermediate Temperature characteristic has the same format as the Temperature Measurement characteristic. However, due to a different context, the Value field is referred to as the Intermediate Temperature Value field. </informativeText>
<value length="17" type="hex" variable_length="false"/>
<properties indicate="false" indicate_requirement="excluded" notify="true" notify_requirement="mandatory" read="false" read_requirement="excluded" reliable_write="false" reliable_write_requirement="excluded" write="false" write_no_response="false" write_no_response_requirement="excluded" write_requirement="excluded"/>
<!--Client Characteristic Configuration-->
<descriptor id="client_characteristic_configuration_2" name="Client Characteristic Configuration" sourceId="org.bluetooth.descriptor.gatt.client_characteristic_configuration" uuid="2902">
<properties read="true" read_requirement="mandatory" write="true" write_requirement="mandatory"/>
<value length="2" type="hex" variable_length="false"/>
</descriptor>
</characteristic>
<!--Measurement Interval-->
<characteristic id="measurement_interval" name="Measurement Interval" sourceId="org.bluetooth.characteristic.measurement_interval" uuid="2A21">
<informativeText>Abstract: The Measurement Interval characteristic defines the time between measurements. Summary: This characteristic is capable of representing values from 1 second to 65535 seconds which is equal to 18 hours, 12 minutes and 15 seconds. </informativeText>
<value length="2" type="hex" variable_length="false"/>
<properties indicate="false" indicate_requirement="optional" notify="false" notify_requirement="excluded" read="true" read_requirement="mandatory" reliable_write="false" reliable_write_requirement="excluded" write="false" write_no_response="false" write_no_response_requirement="excluded" write_requirement="optional"/>
<!--Client Characteristic Configuration-->
<descriptor id="client_characteristic_configuration_3" name="Client Characteristic Configuration" sourceId="org.bluetooth.descriptor.gatt.client_characteristic_configuration" uuid="2902">
<properties read="true" read_requirement="mandatory" write="true" write_requirement="mandatory"/>
<value length="2" type="hex" variable_length="false"/>
</descriptor>
<!--Valid Range-->
<descriptor id="valid_range" name="Valid Range" sourceId="org.bluetooth.descriptor.valid_range" uuid="2906">
<properties read="true" read_requirement="mandatory" write="false" write_requirement="excluded"/>
<value length="4" type="hex" variable_length="false"/>
</descriptor>
</characteristic>
</service>
<!--Tx Power-->
<service advertise="true" id="tx_power" name="Tx Power" requirement="mandatory" sourceId="org.bluetooth.service.tx_power" type="primary" uuid="1804">
<informativeText>Abstract: This service exposes a device's current transmit power level when in a connection. Summary: The Tx Power service is instantiated as a Primary Service. There is only one instance of the Tx Power service on a device. There is exactly one instance of the Tx Power Level characteristic </informativeText>
<!--Tx Power Level-->
<characteristic id="tx_power_level" name="Tx Power Level" sourceId="org.bluetooth.characteristic.tx_power_level" uuid="2A07">
<informativeText>Abstract: The Transmit Power Level characteristic represents the current transmit power level in dBm, and the level ranges from -100 dBm to +20 dBm to a resolution of 1 dBm. Summary: The value of the characteristic is a signed 8 bit integer that has a fixed point exponent of 0. Examples: The value 0x12 is interpreted as +18dBm The value 0xEE is interpreted as -18dBm </informativeText>
<value length="1" type="hex" variable_length="false"/>
<properties indicate="false" indicate_requirement="excluded" notify="false" notify_requirement="excluded" read="true" read_requirement="mandatory" reliable_write="false" reliable_write_requirement="excluded" write="false" write_no_response="false" write_no_response_requirement="excluded" write_requirement="excluded"/>
</characteristic>
</service>
</gatt>