|
| 1 | +<?xml version="1.0" encoding="UTF-8" standalone="no"?> |
| 2 | +<!--Custom BLE GATT--> |
| 3 | +<gatt gatt_caching="true" generic_attribute_service="true" header="gatt_db.h" name="Custom BLE GATT" out="gatt_db.c" prefix="gattdb_"> |
| 4 | + |
| 5 | + <!--Generic Access--> |
| 6 | + <service advertise="false" name="Generic Access" requirement="mandatory" sourceId="org.bluetooth.service.generic_access" type="primary" uuid="1800"> |
| 7 | + <informativeText>Abstract: The generic_access service contains generic information about the device. All available Characteristics are readonly. </informativeText> |
| 8 | + |
| 9 | + <!--Device Name--> |
| 10 | + <characteristic const="false" id="device_name" name="Device Name" sourceId="org.bluetooth.characteristic.gap.device_name" uuid="2A00"> |
| 11 | + <informativeText/> |
| 12 | + <value length="13" type="utf-8" variable_length="false">Empty Example</value> |
| 13 | + <properties> |
| 14 | + <read authenticated="false" bonded="false" encrypted="false"/> |
| 15 | + <write authenticated="false" bonded="false" encrypted="false"/> |
| 16 | + </properties> |
| 17 | + </characteristic> |
| 18 | + |
| 19 | + <!--Appearance--> |
| 20 | + <characteristic const="true" name="Appearance" sourceId="org.bluetooth.characteristic.gap.appearance" uuid="2A01"> |
| 21 | + <informativeText>Abstract: The external appearance of this device. The values are composed of a category (10-bits) and sub-categories (6-bits). </informativeText> |
| 22 | + <value length="2" type="hex" variable_length="false">0000</value> |
| 23 | + <properties> |
| 24 | + <read authenticated="false" bonded="false" encrypted="false"/> |
| 25 | + </properties> |
| 26 | + </characteristic> |
| 27 | + </service> |
| 28 | + |
| 29 | + <!--Device Information--> |
| 30 | + <service advertise="false" name="Device Information" requirement="mandatory" sourceId="org.bluetooth.service.device_information" type="primary" uuid="180A"> |
| 31 | + <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> |
| 32 | + |
| 33 | + <!--Manufacturer Name String--> |
| 34 | + <characteristic const="true" name="Manufacturer Name String" sourceId="org.bluetooth.characteristic.manufacturer_name_string" uuid="2A29"> |
| 35 | + <informativeText>Abstract: The value of this characteristic is a UTF-8 string representing the name of the manufacturer of the device. </informativeText> |
| 36 | + <value length="12" type="utf-8" variable_length="false">Silicon Labs</value> |
| 37 | + <properties> |
| 38 | + <read authenticated="false" bonded="false" encrypted="false"/> |
| 39 | + </properties> |
| 40 | + </characteristic> |
| 41 | + |
| 42 | + <!--Model Number String--> |
| 43 | + <characteristic const="true" name="Model Number String" sourceId="org.bluetooth.characteristic.model_number_string" uuid="2A24"> |
| 44 | + <informativeText>Abstract: The value of this characteristic is a UTF-8 string representing the model number assigned by the device vendor. </informativeText> |
| 45 | + <value length="10" type="utf-8" variable_length="false">Blue Gecko</value> |
| 46 | + <properties> |
| 47 | + <read authenticated="false" bonded="false" encrypted="false"/> |
| 48 | + </properties> |
| 49 | + </characteristic> |
| 50 | + |
| 51 | + <!--System ID--> |
| 52 | + <characteristic const="true" name="System ID" sourceId="org.bluetooth.characteristic.system_id" uuid="2A23"> |
| 53 | + <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> |
| 54 | + <value length="6" type="hex" variable_length="false">000102030405</value> |
| 55 | + <properties> |
| 56 | + <read authenticated="false" bonded="false" encrypted="false"/> |
| 57 | + </properties> |
| 58 | + </characteristic> |
| 59 | + </service> |
| 60 | + |
| 61 | + <!--CHIPoBLE--> |
| 62 | + <service advertise="false" name="CHIPoBLE" requirement="mandatory" sourceId="custom.type" type="primary" uuid="fff6"> |
| 63 | + <informativeText>Custom service</informativeText> |
| 64 | + |
| 65 | + <!--CHIPoBLEChar_Rx--> |
| 66 | + <characteristic const="false" id="CHIPoBLEChar_Rx" name="CHIPoBLEChar_Rx" sourceId="custom.type" uuid="18EE2EF5-263D-4559-959F-4F9C429F9D11"> |
| 67 | + <informativeText>Custom characteristic</informativeText> |
| 68 | + <value length="247" type="hex" variable_length="true">00</value> |
| 69 | + <properties> |
| 70 | + <read authenticated="false" bonded="false" encrypted="false"/> |
| 71 | + <write authenticated="false" bonded="false" encrypted="false"/> |
| 72 | + </properties> |
| 73 | + </characteristic> |
| 74 | + |
| 75 | + <!--CHIPoBLEChar_Tx--> |
| 76 | + <characteristic const="false" id="CHIPoBLEChar_Tx" name="CHIPoBLEChar_Tx" sourceId="custom.type" uuid="18EE2EF5-263D-4559-959F-4F9C429F9D12"> |
| 77 | + <informativeText>Custom characteristic</informativeText> |
| 78 | + <value length="247" type="hex" variable_length="true">00</value> |
| 79 | + <properties> |
| 80 | + <read authenticated="false" bonded="false" encrypted="false"/> |
| 81 | + <write authenticated="false" bonded="false" encrypted="false"/> |
| 82 | + <write_no_response authenticated="false" bonded="false" encrypted="false"/> |
| 83 | + <indicate authenticated="false" bonded="false" encrypted="false"/> |
| 84 | + </properties> |
| 85 | + </characteristic> |
| 86 | + |
| 87 | + <characteristic const="false" id="CHIPoBLEChar_C3" name="CHIPoBLEChar_C3" sourceId="custom.type" uuid="64630238-8772-45F2-B87D-748A83218F04"> |
| 88 | + <informativeText>Custom characteristic</informativeText> |
| 89 | + <value length="512" type="hex" variable_length="true">00</value> |
| 90 | + <properties> |
| 91 | + <read authenticated="false" bonded="false" encrypted="false"/> |
| 92 | + <write authenticated="false" bonded="false" encrypted="false"/> |
| 93 | + <write_no_response authenticated="false" bonded="false" encrypted="false"/> |
| 94 | + <indicate authenticated="false" bonded="false" encrypted="false"/> |
| 95 | + </properties> |
| 96 | + </characteristic> |
| 97 | + |
| 98 | + </service> |
| 99 | +</gatt> |
0 commit comments