-
Notifications
You must be signed in to change notification settings - Fork 52
/
Copy pathgatt_configuration.btconf
209 lines (187 loc) · 12.8 KB
/
gatt_configuration.btconf
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
<?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 const="false" id="device_name" name="Device Name" sourceId="org.bluetooth.characteristic.gap.device_name" uuid="2A00">
<value length="8" type="utf-8" variable_length="false">dtm_test</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Appearance-->
<characteristic const="true" 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>
<read authenticated="false" bonded="false" encrypted="false"/>
</properties>
</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 const="true" id="manufacturer_name_string" 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>
<read authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--System ID-->
<characteristic const="false" id="system_id" 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="8" type="hex" variable_length="false"/>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Firmware Revision String-->
<characteristic const="false" id="firmware_revision_string" name="Firmware Revision String" sourceId="org.bluetooth.characteristic.firmware_revision_string" uuid="2A26">
<informativeText>
Summary:
The value of this characteristic is a UTF-8 string representing the firmware revision for the firmware within the device.
</informativeText>
<value length="5" type="utf-8" variable_length="false">0.0.0</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Hardware Revision String-->
<characteristic const="false" id="hardware_revision_string" name="Hardware Revision String" sourceId="org.bluetooth.characteristic.hardware_revision_string" uuid="2A27">
<informativeText>
Summary:
The value of this characteristic is a UTF-8 string representing the hardware revision for the hardware within the device.
</informativeText>
<value length="3" type="utf-8" variable_length="false">000</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Model Number String-->
<characteristic const="false" id="model_number_string" 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="8" type="utf-8" variable_length="false">00000000</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
</service>
<!--Silicon Labs DTM control-->
<service advertise="true" name="Silicon Labs DTM control" requirement="mandatory" sourceId="custom.type" type="primary" uuid="0d8991ee-e355-47eb-8810-ea89a67dddeb">
<informativeText>Silicon Labs DTM control service contains characteristics to run a DTM test on the device. </informativeText>
<!--Silicon Labs DTM mode-->
<characteristic const="false" id="dtm_mode" name="Silicon Labs DTM mode" sourceId="custom.type" uuid="ceef39e8-590b-4b41-9345-fc5241124eef">
<informativeText>The DTM mode of the device (TX, CW or RX).</informativeText>
<description>set mode</description>
<value length="1" type="hex" variable_length="false">00</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Silicon Labs DTM duration-->
<characteristic const="false" id="dtm_duration" name="Silicon Labs DTM duration" sourceId="custom.type" uuid="5ed6dc96-d00c-4ee6-9904-2d8ef4869c3c">
<informativeText>The duration of the DTM test in seconds.</informativeText>
<description>set timer</description>
<value length="2" type="hex" variable_length="false">0000</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Silicon Labs DTM result-->
<characteristic const="false" id="dtm_result" name="Silicon Labs DTM result" sourceId="custom.type" uuid="84d0e28a-b25b-4188-896d-f3f6bd3425f6">
<informativeText>Stores the result of the DTM test.</informativeText>
<description>get result</description>
<value length="2" type="hex" variable_length="false">0000</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
</service>
<!--Silicon Labs DTM RX-->
<service advertise="false" name="Silicon Labs DTM RX" requirement="mandatory" sourceId="custom.type" type="primary" uuid="bace30ed-7375-4b90-accd-1867f7d0f073">
<informativeText>Silicon Labs DTM RX service contains characteristics to configure the device in DTM receiver mode.</informativeText>
<!--Silicon Labs DTM rx channel-->
<characteristic const="false" id="dtm_rx_channel" name="Silicon Labs DTM rx channel" sourceId="custom.type" uuid="7170ea45-b74a-49d9-8fb9-7d9b6b6e26c9">
<informativeText>Bluetooth channel to use.</informativeText>
<description>rx arg channel</description>
<value length="1" type="hex" variable_length="false">00</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Silicon Labs DTM rx phy-->
<characteristic const="false" id="dtm_rx_phy" name="Silicon Labs DTM rx phy" sourceId="custom.type" uuid="f133d930-eb80-4254-adbf-7915e90a554d">
<informativeText>PHY to use.</informativeText>
<description>rx arg phy</description>
<value length="1" type="hex" variable_length="false">00</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
</service>
<!--Silicon Labs DTM TX-->
<service advertise="false" name="Silicon Labs DTM TX" requirement="mandatory" sourceId="custom.type" type="primary" uuid="ef0ef18f-8a97-4021-9281-fddb09cd0f71">
<informativeText>Silicon Labs DTM TX service contains characteristics to configure the device in DTM transmitter mode.</informativeText>
<!--Silicon Labs DTM tx packet type-->
<characteristic const="false" id="dtm_tx_packet_type" name="Silicon Labs DTM tx packet type" sourceId="custom.type" uuid="31d511a9-a3f4-4cdd-b823-58b2ed1153d9">
<informativeText>Packet type to transmit. </informativeText>
<description>tx arg pkt type</description>
<value length="1" type="hex" variable_length="false">00</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Silicon Labs DTM tx length-->
<characteristic const="false" id="dtm_tx_length" name="Silicon Labs DTM tx length" sourceId="custom.type" uuid="e4a01204-d8c5-420f-ad9b-418692137ea0">
<informativeText>Packet length in bytes</informativeText>
<description>tx arg length</description>
<value length="1" type="hex" variable_length="false">00</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Silicon Labs DTM tx channel-->
<characteristic const="false" id="dtm_tx_channel" name="Silicon Labs DTM tx channel" sourceId="custom.type" uuid="1928cd35-1ac2-4acd-9c70-324cae69dbda">
<informativeText>Bluetooth channel to use.</informativeText>
<description>tx arg channel</description>
<value length="1" type="hex" variable_length="false">00</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Silicon Labs DTM tx phy-->
<characteristic const="false" id="dtm_tx_phy" name="Silicon Labs DTM tx phy" sourceId="custom.type" uuid="d559d164-9d6a-40d6-93e6-f0745d104a0a">
<informativeText>PHY to use.</informativeText>
<description>tx arg phy</description>
<value length="1" type="hex" variable_length="false">00</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
<!--Silicon Labs DTM tx power level-->
<characteristic const="false" id="dtm_tx_power" name="Silicon Labs DTM tx power level" sourceId="custom.type" uuid="a3932ee9-9fe4-49ab-ba6f-3e6be4fa74cc">
<informativeText>TX power level in unit dBm. </informativeText>
<description>tx arg power</description>
<value length="1" type="hex" variable_length="false">00</value>
<properties>
<read authenticated="false" bonded="false" encrypted="false"/>
<write authenticated="false" bonded="false" encrypted="false"/>
</properties>
</characteristic>
</service>
</gatt>