Advertisement
Guest User

Config Bluetooth PSoC Flying Mouse

a guest
Apr 16th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 55.18 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-16"?>
  2. <CyBleConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" Version="1.30">
  3.   <OperationMode>Profile</OperationMode>
  4.   <CyProfile ID="1" DisplayName="HID over GATT" Name="HID over GATT" Type="org.bluetooth.profile.hid_over_gatt">
  5.     <CyProfileRole ID="2" DisplayName="HID Device" Name="HID Device">
  6.       <CyService ID="3" DisplayName="Generic Access" Name="Generic Access" Type="org.bluetooth.service.generic_access" UUID="1800">
  7.         <CyCharacteristic ID="4" DisplayName="Device Name" Name="Device Name" Type="org.bluetooth.characteristic.gap.device_name" UUID="2A00">
  8.           <Field Name="Name">
  9.             <DataFormat>utf8s</DataFormat>
  10.             <ByteLength>12</ByteLength>
  11.             <ValueType>BASIC</ValueType>
  12.             <GeneralValue>Flying Mouse</GeneralValue>
  13.             <ArrayValue />
  14.           </Field>
  15.           <Properties>
  16.             <Property Type="READ" Present="true" Mandatory="true" />
  17.           </Properties>
  18.           <Permission>
  19.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  20.           </Permission>
  21.         </CyCharacteristic>
  22.         <CyCharacteristic ID="5" DisplayName="Appearance" Name="Appearance" Type="org.bluetooth.characteristic.gap.appearance" UUID="2A01">
  23.           <Field Name="Category">
  24.             <DataFormat>16bit</DataFormat>
  25.             <ByteLength>2</ByteLength>
  26.             <ValueType>ENUM</ValueType>
  27.             <EnumValue>962</EnumValue>
  28.             <ArrayValue />
  29.           </Field>
  30.           <Properties>
  31.             <Property Type="READ" Present="true" Mandatory="true" />
  32.           </Properties>
  33.           <Permission>
  34.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  35.           </Permission>
  36.         </CyCharacteristic>
  37.         <CyCharacteristic ID="6" DisplayName="Peripheral Preferred Connection Parameters" Name="Peripheral Preferred Connection Parameters" Type="org.bluetooth.characteristic.gap.peripheral_preferred_connection_parameters" UUID="2A04">
  38.           <Field Name="Minimum Connection Interval">
  39.             <DataFormat>uint16</DataFormat>
  40.             <ByteLength>2</ByteLength>
  41.             <Range>
  42.               <IsDeclared>true</IsDeclared>
  43.               <Minimum>6</Minimum>
  44.               <Maximum>3200</Maximum>
  45.             </Range>
  46.             <ValueType>BASIC</ValueType>
  47.             <GeneralValue>0x0006</GeneralValue>
  48.             <ArrayValue />
  49.           </Field>
  50.           <Field Name="Maximum Connection Interval">
  51.             <DataFormat>uint16</DataFormat>
  52.             <ByteLength>2</ByteLength>
  53.             <Range>
  54.               <IsDeclared>true</IsDeclared>
  55.               <Minimum>6</Minimum>
  56.               <Maximum>3200</Maximum>
  57.             </Range>
  58.             <ValueType>BASIC</ValueType>
  59.             <GeneralValue>0x0006</GeneralValue>
  60.             <ArrayValue />
  61.           </Field>
  62.           <Field Name="Slave Latency">
  63.             <DataFormat>uint16</DataFormat>
  64.             <ByteLength>2</ByteLength>
  65.             <Range>
  66.               <IsDeclared>true</IsDeclared>
  67.               <Minimum>0</Minimum>
  68.               <Maximum>1000</Maximum>
  69.             </Range>
  70.             <ValueType>BASIC</ValueType>
  71.             <GeneralValue>0</GeneralValue>
  72.             <ArrayValue />
  73.           </Field>
  74.           <Field Name="Connection Supervision Timeout Multiplier">
  75.             <DataFormat>uint16</DataFormat>
  76.             <ByteLength>2</ByteLength>
  77.             <Range>
  78.               <IsDeclared>true</IsDeclared>
  79.               <Minimum>10</Minimum>
  80.               <Maximum>3200</Maximum>
  81.             </Range>
  82.             <ValueType>BASIC</ValueType>
  83.             <GeneralValue>0x01F4</GeneralValue>
  84.             <ArrayValue />
  85.           </Field>
  86.           <Properties>
  87.             <Property Type="READ" Present="true" Mandatory="true" />
  88.           </Properties>
  89.           <Permission>
  90.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  91.           </Permission>
  92.         </CyCharacteristic>
  93.         <Declaration>Primary</Declaration>
  94.         <IncludedServices />
  95.       </CyService>
  96.       <CyService ID="7" DisplayName="Generic Attribute" Name="Generic Attribute" Type="org.bluetooth.service.generic_attribute" UUID="1801">
  97.         <CyCharacteristic ID="8" DisplayName="Service Changed" Name="Service Changed" Type="org.bluetooth.characteristic.gatt.service_changed" UUID="2A05">
  98.           <CyDescriptor ID="91" DisplayName="Client Characteristic Configuration" Name="Client Characteristic Configuration" Type="org.bluetooth.descriptor.gatt.client_characteristic_configuration" UUID="2902">
  99.             <Field Name="Properties">
  100.               <DataFormat>16bit</DataFormat>
  101.               <ByteLength>2</ByteLength>
  102.               <Range>
  103.                 <IsDeclared>true</IsDeclared>
  104.                 <Minimum>0</Minimum>
  105.                 <Maximum>3</Maximum>
  106.               </Range>
  107.               <ValueType>BITFIELD</ValueType>
  108.               <Bit>
  109.                 <Index>0</Index>
  110.                 <Size>1</Size>
  111.                 <Value>0</Value>
  112.                 <Enumerations>
  113.                   <Enumeration key="0" value="Notifications disabled" />
  114.                   <Enumeration key="1" value="Notifications enabled" />
  115.                 </Enumerations>
  116.               </Bit>
  117.               <Bit>
  118.                 <Index>1</Index>
  119.                 <Size>1</Size>
  120.                 <Value>0</Value>
  121.                 <Enumerations>
  122.                   <Enumeration key="0" value="Indications disabled" />
  123.                   <Enumeration key="1" value="Indications enabled" />
  124.                 </Enumerations>
  125.               </Bit>
  126.               <ArrayValue />
  127.             </Field>
  128.             <Properties>
  129.               <Property Type="READ" Present="true" Mandatory="true" />
  130.               <Property Type="WRITE" Present="true" Mandatory="true" />
  131.             </Properties>
  132.             <Permission>
  133.               <AccessPermission>READ_WRITE</AccessPermission>
  134.               <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  135.             </Permission>
  136.           </CyDescriptor>
  137.           <Field Name="Start of Affected Attribute Handle Range">
  138.             <DataFormat>uint16</DataFormat>
  139.             <ByteLength>2</ByteLength>
  140.             <Range>
  141.               <IsDeclared>true</IsDeclared>
  142.               <Minimum>1</Minimum>
  143.               <Maximum>65535</Maximum>
  144.             </Range>
  145.             <ValueType>BASIC</ValueType>
  146.             <ArrayValue />
  147.           </Field>
  148.           <Field Name="End of Affected Attribute Handle Range">
  149.             <DataFormat>uint16</DataFormat>
  150.             <ByteLength>2</ByteLength>
  151.             <Range>
  152.               <IsDeclared>true</IsDeclared>
  153.               <Minimum>1</Minimum>
  154.               <Maximum>65535</Maximum>
  155.             </Range>
  156.             <ValueType>BASIC</ValueType>
  157.             <ArrayValue />
  158.           </Field>
  159.           <Properties>
  160.             <Property Type="READ" Present="true" Mandatory="true" />
  161.             <Property Type="INDICATE" Present="true" Mandatory="true" />
  162.           </Properties>
  163.           <Permission>
  164.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  165.           </Permission>
  166.         </CyCharacteristic>
  167.         <Declaration>Primary</Declaration>
  168.         <IncludedServices />
  169.       </CyService>
  170.       <CyService ID="9" DisplayName="Human Interface Device" Name="Human Interface Device" Type="org.bluetooth.service.human_interface_device" UUID="1812">
  171.         <CyCharacteristic ID="55" DisplayName="Protocol Mode" Name="Protocol Mode" Type="org.bluetooth.characteristic.protocol_mode" UUID="2A4E">
  172.           <Field Name="Protocol Mode Value">
  173.             <DataFormat>uint8</DataFormat>
  174.             <ByteLength>1</ByteLength>
  175.             <ValueType>ENUM</ValueType>
  176.             <EnumValue>1</EnumValue>
  177.             <ArrayValue />
  178.           </Field>
  179.           <Properties>
  180.             <Property Type="READ" Present="true" Mandatory="true" />
  181.             <Property Type="WRITE_WITHOUT_RESPONSE" Present="true" Mandatory="true" />
  182.           </Properties>
  183.           <Permission>
  184.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  185.           </Permission>
  186.         </CyCharacteristic>
  187.         <CyCharacteristic ID="14" DisplayName="Report Map" Name="Report Map" Type="org.bluetooth.characteristic.report_map" UUID="2A4B">
  188.           <Field Name="Report Map Value">
  189.             <DataFormat>uint8</DataFormat>
  190.             <ByteLength>0</ByteLength>
  191.             <ValueType>ARRAY</ValueType>
  192.             <ArrayValue>
  193.               <unsignedByte>5</unsignedByte>
  194.               <unsignedByte>1</unsignedByte>
  195.               <unsignedByte>9</unsignedByte>
  196.               <unsignedByte>2</unsignedByte>
  197.               <unsignedByte>161</unsignedByte>
  198.               <unsignedByte>1</unsignedByte>
  199.               <unsignedByte>9</unsignedByte>
  200.               <unsignedByte>1</unsignedByte>
  201.               <unsignedByte>161</unsignedByte>
  202.               <unsignedByte>0</unsignedByte>
  203.               <unsignedByte>133</unsignedByte>
  204.               <unsignedByte>1</unsignedByte>
  205.               <unsignedByte>149</unsignedByte>
  206.               <unsignedByte>5</unsignedByte>
  207.               <unsignedByte>117</unsignedByte>
  208.               <unsignedByte>1</unsignedByte>
  209.               <unsignedByte>5</unsignedByte>
  210.               <unsignedByte>9</unsignedByte>
  211.               <unsignedByte>25</unsignedByte>
  212.               <unsignedByte>1</unsignedByte>
  213.               <unsignedByte>41</unsignedByte>
  214.               <unsignedByte>5</unsignedByte>
  215.               <unsignedByte>21</unsignedByte>
  216.               <unsignedByte>0</unsignedByte>
  217.               <unsignedByte>37</unsignedByte>
  218.               <unsignedByte>1</unsignedByte>
  219.               <unsignedByte>129</unsignedByte>
  220.               <unsignedByte>2</unsignedByte>
  221.               <unsignedByte>149</unsignedByte>
  222.               <unsignedByte>1</unsignedByte>
  223.               <unsignedByte>117</unsignedByte>
  224.               <unsignedByte>3</unsignedByte>
  225.               <unsignedByte>129</unsignedByte>
  226.               <unsignedByte>1</unsignedByte>
  227.               <unsignedByte>117</unsignedByte>
  228.               <unsignedByte>8</unsignedByte>
  229.               <unsignedByte>149</unsignedByte>
  230.               <unsignedByte>3</unsignedByte>
  231.               <unsignedByte>5</unsignedByte>
  232.               <unsignedByte>1</unsignedByte>
  233.               <unsignedByte>9</unsignedByte>
  234.               <unsignedByte>48</unsignedByte>
  235.               <unsignedByte>9</unsignedByte>
  236.               <unsignedByte>49</unsignedByte>
  237.               <unsignedByte>9</unsignedByte>
  238.               <unsignedByte>56</unsignedByte>
  239.               <unsignedByte>21</unsignedByte>
  240.               <unsignedByte>129</unsignedByte>
  241.               <unsignedByte>37</unsignedByte>
  242.               <unsignedByte>127</unsignedByte>
  243.               <unsignedByte>129</unsignedByte>
  244.               <unsignedByte>6</unsignedByte>
  245.               <unsignedByte>5</unsignedByte>
  246.               <unsignedByte>12</unsignedByte>
  247.               <unsignedByte>10</unsignedByte>
  248.               <unsignedByte>56</unsignedByte>
  249.               <unsignedByte>2</unsignedByte>
  250.               <unsignedByte>149</unsignedByte>
  251.               <unsignedByte>1</unsignedByte>
  252.               <unsignedByte>117</unsignedByte>
  253.               <unsignedByte>8</unsignedByte>
  254.               <unsignedByte>21</unsignedByte>
  255.               <unsignedByte>129</unsignedByte>
  256.               <unsignedByte>37</unsignedByte>
  257.               <unsignedByte>127</unsignedByte>
  258.               <unsignedByte>129</unsignedByte>
  259.               <unsignedByte>6</unsignedByte>
  260.               <unsignedByte>192</unsignedByte>
  261.               <unsignedByte>192</unsignedByte>
  262.               <unsignedByte>5</unsignedByte>
  263.               <unsignedByte>1</unsignedByte>
  264.               <unsignedByte>9</unsignedByte>
  265.               <unsignedByte>6</unsignedByte>
  266.               <unsignedByte>161</unsignedByte>
  267.               <unsignedByte>1</unsignedByte>
  268.               <unsignedByte>133</unsignedByte>
  269.               <unsignedByte>2</unsignedByte>
  270.               <unsignedByte>5</unsignedByte>
  271.               <unsignedByte>7</unsignedByte>
  272.               <unsignedByte>25</unsignedByte>
  273.               <unsignedByte>224</unsignedByte>
  274.               <unsignedByte>41</unsignedByte>
  275.               <unsignedByte>231</unsignedByte>
  276.               <unsignedByte>21</unsignedByte>
  277.               <unsignedByte>0</unsignedByte>
  278.               <unsignedByte>37</unsignedByte>
  279.               <unsignedByte>1</unsignedByte>
  280.               <unsignedByte>117</unsignedByte>
  281.               <unsignedByte>1</unsignedByte>
  282.               <unsignedByte>149</unsignedByte>
  283.               <unsignedByte>8</unsignedByte>
  284.               <unsignedByte>129</unsignedByte>
  285.               <unsignedByte>2</unsignedByte>
  286.               <unsignedByte>149</unsignedByte>
  287.               <unsignedByte>1</unsignedByte>
  288.               <unsignedByte>117</unsignedByte>
  289.               <unsignedByte>8</unsignedByte>
  290.               <unsignedByte>129</unsignedByte>
  291.               <unsignedByte>1</unsignedByte>
  292.               <unsignedByte>149</unsignedByte>
  293.               <unsignedByte>5</unsignedByte>
  294.               <unsignedByte>117</unsignedByte>
  295.               <unsignedByte>1</unsignedByte>
  296.               <unsignedByte>5</unsignedByte>
  297.               <unsignedByte>8</unsignedByte>
  298.               <unsignedByte>25</unsignedByte>
  299.               <unsignedByte>1</unsignedByte>
  300.               <unsignedByte>41</unsignedByte>
  301.               <unsignedByte>5</unsignedByte>
  302.               <unsignedByte>145</unsignedByte>
  303.               <unsignedByte>2</unsignedByte>
  304.               <unsignedByte>149</unsignedByte>
  305.               <unsignedByte>1</unsignedByte>
  306.               <unsignedByte>117</unsignedByte>
  307.               <unsignedByte>3</unsignedByte>
  308.               <unsignedByte>145</unsignedByte>
  309.               <unsignedByte>1</unsignedByte>
  310.               <unsignedByte>149</unsignedByte>
  311.               <unsignedByte>6</unsignedByte>
  312.               <unsignedByte>117</unsignedByte>
  313.               <unsignedByte>8</unsignedByte>
  314.               <unsignedByte>21</unsignedByte>
  315.               <unsignedByte>0</unsignedByte>
  316.               <unsignedByte>37</unsignedByte>
  317.               <unsignedByte>101</unsignedByte>
  318.               <unsignedByte>5</unsignedByte>
  319.               <unsignedByte>7</unsignedByte>
  320.               <unsignedByte>25</unsignedByte>
  321.               <unsignedByte>0</unsignedByte>
  322.               <unsignedByte>41</unsignedByte>
  323.               <unsignedByte>101</unsignedByte>
  324.               <unsignedByte>129</unsignedByte>
  325.               <unsignedByte>0</unsignedByte>
  326.               <unsignedByte>192</unsignedByte>
  327.             </ArrayValue>
  328.           </Field>
  329.           <Properties>
  330.             <Property Type="READ" Present="true" Mandatory="true" />
  331.           </Properties>
  332.           <Permission>
  333.             <EncryptionPermissionRead>ENCRYPTION_REQUIRED</EncryptionPermissionRead>
  334.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  335.           </Permission>
  336.         </CyCharacteristic>
  337.         <CyCharacteristic ID="21" DisplayName="HID Information" Name="HID Information" Type="org.bluetooth.characteristic.hid_information" UUID="2A4A">
  338.           <Field Name="bcdHID">
  339.             <DataFormat>uint16</DataFormat>
  340.             <ByteLength>2</ByteLength>
  341.             <ValueType>BASIC</ValueType>
  342.             <GeneralValue>0x0101</GeneralValue>
  343.             <ArrayValue />
  344.           </Field>
  345.           <Field Name="bCountryCode">
  346.             <DataFormat>8bit</DataFormat>
  347.             <ByteLength>1</ByteLength>
  348.             <ValueType>ENUM</ValueType>
  349.             <ArrayValue />
  350.           </Field>
  351.           <Field Name="Flags">
  352.             <DataFormat>8bit</DataFormat>
  353.             <ByteLength>1</ByteLength>
  354.             <ValueType>BITFIELD</ValueType>
  355.             <Bit>
  356.               <Name>RemoteWake</Name>
  357.               <Index>0</Index>
  358.               <Size>1</Size>
  359.               <Value>1</Value>
  360.               <Enumerations>
  361.                 <Enumeration key="0" value="The device is not designed to be capable of providing wake-up signal to a HID host" />
  362.                 <Enumeration key="1" value="The device is designed to be capable of providing wake-up signal to a HID host" />
  363.               </Enumerations>
  364.             </Bit>
  365.             <Bit>
  366.               <Name>NormallyConnectable</Name>
  367.               <Index>1</Index>
  368.               <Size>1</Size>
  369.               <Value>1</Value>
  370.               <Enumerations>
  371.                 <Enumeration key="0" value="The device is not normally connectable" />
  372.                 <Enumeration key="1" value="The device is normally connectable" />
  373.               </Enumerations>
  374.             </Bit>
  375.             <ArrayValue />
  376.           </Field>
  377.           <Properties>
  378.             <Property Type="READ" Present="true" Mandatory="true" />
  379.           </Properties>
  380.           <Permission>
  381.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  382.           </Permission>
  383.         </CyCharacteristic>
  384.         <CyCharacteristic ID="22" DisplayName="HID Control Point" Name="HID Control Point" Type="org.bluetooth.characteristic.hid_control_point" UUID="2A4C">
  385.           <Field Name="HID Control Point Command">
  386.             <DataFormat>uint8</DataFormat>
  387.             <ByteLength>1</ByteLength>
  388.             <ValueType>ENUM</ValueType>
  389.             <ArrayValue />
  390.           </Field>
  391.           <Properties>
  392.             <Property Type="WRITE_WITHOUT_RESPONSE" Present="true" Mandatory="true" />
  393.           </Properties>
  394.           <Permission>
  395.             <AccessPermission>READ_WRITE</AccessPermission>
  396.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  397.           </Permission>
  398.         </CyCharacteristic>
  399.         <CyCharacteristic ID="56" DisplayName="Boot Mouse Input Report" Name="Boot Mouse Input Report" Type="org.bluetooth.characteristic.boot_mouse_input_report" UUID="2A33">
  400.           <CyDescriptor ID="62" DisplayName="Client Characteristic Configuration" Name="Client Characteristic Configuration" Type="org.bluetooth.descriptor.gatt.client_characteristic_configuration" UUID="2902">
  401.             <Field Name="Properties">
  402.               <DataFormat>16bit</DataFormat>
  403.               <ByteLength>2</ByteLength>
  404.               <Range>
  405.                 <IsDeclared>true</IsDeclared>
  406.                 <Minimum>0</Minimum>
  407.                 <Maximum>3</Maximum>
  408.               </Range>
  409.               <ValueType>BITFIELD</ValueType>
  410.               <Bit>
  411.                 <Index>0</Index>
  412.                 <Size>1</Size>
  413.                 <Value>0</Value>
  414.                 <Enumerations>
  415.                   <Enumeration key="0" value="Notifications disabled" />
  416.                   <Enumeration key="1" value="Notifications enabled" />
  417.                 </Enumerations>
  418.               </Bit>
  419.               <Bit>
  420.                 <Index>1</Index>
  421.                 <Size>1</Size>
  422.                 <Value>0</Value>
  423.                 <Enumerations>
  424.                   <Enumeration key="0" value="Indications disabled" />
  425.                   <Enumeration key="1" value="Indications enabled" />
  426.                 </Enumerations>
  427.               </Bit>
  428.               <ArrayValue />
  429.             </Field>
  430.             <Properties>
  431.               <Property Type="READ" Present="true" Mandatory="true" />
  432.               <Property Type="WRITE" Present="true" Mandatory="true" />
  433.             </Properties>
  434.             <Permission>
  435.               <AccessPermission>READ_WRITE</AccessPermission>
  436.               <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  437.             </Permission>
  438.           </CyDescriptor>
  439.           <Field Name="Boot Mouse Input Report Value">
  440.             <DataFormat>uint8</DataFormat>
  441.             <ByteLength>3</ByteLength>
  442.             <ValueType>ARRAY</ValueType>
  443.             <ArrayValue />
  444.           </Field>
  445.           <Properties>
  446.             <Property Type="READ" Present="true" Mandatory="true" />
  447.             <Property Type="WRITE" Present="false" Mandatory="false" />
  448.             <Property Type="NOTIFY" Present="true" Mandatory="true" />
  449.           </Properties>
  450.           <Permission>
  451.             <EncryptionPermissionRead>ENCRYPTION_REQUIRED</EncryptionPermissionRead>
  452.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  453.           </Permission>
  454.         </CyCharacteristic>
  455.         <CyCharacteristic ID="88" DisplayName="Boot Keyboard Input Report" Name="Boot Keyboard Input Report" Type="org.bluetooth.characteristic.boot_keyboard_input_report" UUID="2A22">
  456.           <CyDescriptor ID="89" DisplayName="Client Characteristic Configuration" Name="Client Characteristic Configuration" Type="org.bluetooth.descriptor.gatt.client_characteristic_configuration" UUID="2902">
  457.             <Field Name="Properties">
  458.               <DataFormat>16bit</DataFormat>
  459.               <ByteLength>2</ByteLength>
  460.               <Range>
  461.                 <IsDeclared>true</IsDeclared>
  462.                 <Minimum>0</Minimum>
  463.                 <Maximum>3</Maximum>
  464.               </Range>
  465.               <ValueType>BITFIELD</ValueType>
  466.               <Bit>
  467.                 <Index>0</Index>
  468.                 <Size>1</Size>
  469.                 <Value>0</Value>
  470.                 <Enumerations>
  471.                   <Enumeration key="0" value="Notifications disabled" />
  472.                   <Enumeration key="1" value="Notifications enabled" />
  473.                 </Enumerations>
  474.               </Bit>
  475.               <Bit>
  476.                 <Index>1</Index>
  477.                 <Size>1</Size>
  478.                 <Value>0</Value>
  479.                 <Enumerations>
  480.                   <Enumeration key="0" value="Indications disabled" />
  481.                   <Enumeration key="1" value="Indications enabled" />
  482.                 </Enumerations>
  483.               </Bit>
  484.               <ArrayValue />
  485.             </Field>
  486.             <Properties>
  487.               <Property Type="READ" Present="true" Mandatory="true" />
  488.               <Property Type="WRITE" Present="true" Mandatory="true" />
  489.             </Properties>
  490.             <Permission>
  491.               <AccessPermission>READ_WRITE</AccessPermission>
  492.               <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  493.             </Permission>
  494.           </CyDescriptor>
  495.           <Field Name="Boot Keyboard Input Report Value">
  496.             <DataFormat>uint8</DataFormat>
  497.             <ByteLength>8</ByteLength>
  498.             <ValueType>ARRAY</ValueType>
  499.             <ArrayValue />
  500.           </Field>
  501.           <Properties>
  502.             <Property Type="READ" Present="true" Mandatory="true" />
  503.             <Property Type="WRITE" Present="false" Mandatory="false" />
  504.             <Property Type="NOTIFY" Present="true" Mandatory="true" />
  505.           </Properties>
  506.           <Permission>
  507.             <EncryptionPermissionRead>ENCRYPTION_REQUIRED</EncryptionPermissionRead>
  508.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  509.           </Permission>
  510.         </CyCharacteristic>
  511.         <CyCharacteristic ID="90" DisplayName="Boot Keyboard Output Report" Name="Boot Keyboard Output Report" Type="org.bluetooth.characteristic.boot_keyboard_output_report" UUID="2A32">
  512.           <Field Name="Boot Keyboard Output Report Value">
  513.             <DataFormat>uint8</DataFormat>
  514.             <ByteLength>8</ByteLength>
  515.             <ValueType>ARRAY</ValueType>
  516.             <ArrayValue />
  517.           </Field>
  518.           <Properties>
  519.             <Property Type="READ" Present="true" Mandatory="true" />
  520.             <Property Type="WRITE" Present="true" Mandatory="true" />
  521.             <Property Type="WRITE_WITHOUT_RESPONSE" Present="true" Mandatory="true" />
  522.           </Properties>
  523.           <Permission>
  524.             <AccessPermission>READ_WRITE</AccessPermission>
  525.             <EncryptionPermissionRead>ENCRYPTION_REQUIRED</EncryptionPermissionRead>
  526.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  527.           </Permission>
  528.         </CyCharacteristic>
  529.         <CyCharacteristic ID="41" DisplayName="Report_Mouse" Name="Report" Type="org.bluetooth.characteristic.report" UUID="2A4D">
  530.           <CyDescriptor ID="42" DisplayName="Client Characteristic Configuration" Name="Client Characteristic Configuration" Type="org.bluetooth.descriptor.gatt.client_characteristic_configuration" UUID="2902">
  531.             <Field Name="Properties">
  532.               <DataFormat>16bit</DataFormat>
  533.               <ByteLength>2</ByteLength>
  534.               <Range>
  535.                 <IsDeclared>true</IsDeclared>
  536.                 <Minimum>0</Minimum>
  537.                 <Maximum>3</Maximum>
  538.               </Range>
  539.               <ValueType>BITFIELD</ValueType>
  540.               <Bit>
  541.                 <Index>0</Index>
  542.                 <Size>1</Size>
  543.                 <Value>0</Value>
  544.                 <Enumerations>
  545.                   <Enumeration key="0" value="Notifications disabled" />
  546.                   <Enumeration key="1" value="Notifications enabled" />
  547.                 </Enumerations>
  548.               </Bit>
  549.               <Bit>
  550.                 <Index>1</Index>
  551.                 <Size>1</Size>
  552.                 <Value>0</Value>
  553.                 <Enumerations>
  554.                   <Enumeration key="0" value="Indications disabled" />
  555.                   <Enumeration key="1" value="Indications enabled" />
  556.                 </Enumerations>
  557.               </Bit>
  558.               <ArrayValue />
  559.             </Field>
  560.             <Properties>
  561.               <Property Type="READ" Present="true" Mandatory="true" />
  562.               <Property Type="WRITE" Present="true" Mandatory="true" />
  563.             </Properties>
  564.             <Permission>
  565.               <AccessPermission>READ_WRITE</AccessPermission>
  566.               <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  567.             </Permission>
  568.           </CyDescriptor>
  569.           <CyDescriptor ID="54" DisplayName="Report Reference" Name="Report Reference" Type="org.bluetooth.descriptor.report_reference" UUID="2908">
  570.             <Field Name="Report ID">
  571.               <DataFormat>uint8</DataFormat>
  572.               <ByteLength>1</ByteLength>
  573.               <Range>
  574.                 <IsDeclared>true</IsDeclared>
  575.                 <Minimum>0</Minimum>
  576.                 <Maximum>255</Maximum>
  577.               </Range>
  578.               <ValueType>BASIC</ValueType>
  579.               <GeneralValue>1</GeneralValue>
  580.               <ArrayValue />
  581.             </Field>
  582.             <Field Name="Report Type">
  583.               <DataFormat>uint8</DataFormat>
  584.               <ByteLength>1</ByteLength>
  585.               <Range>
  586.                 <IsDeclared>true</IsDeclared>
  587.                 <Minimum>1</Minimum>
  588.                 <Maximum>3</Maximum>
  589.               </Range>
  590.               <ValueType>ENUM</ValueType>
  591.               <EnumValue>1</EnumValue>
  592.               <ArrayValue />
  593.             </Field>
  594.             <Properties>
  595.               <Property Type="READ" Present="true" Mandatory="true" />
  596.             </Properties>
  597.             <Permission />
  598.           </CyDescriptor>
  599.           <Field Name="Report Value">
  600.             <DataFormat>uint8</DataFormat>
  601.             <ByteLength>5</ByteLength>
  602.             <ValueType>ARRAY</ValueType>
  603.             <ArrayValue />
  604.           </Field>
  605.           <Properties>
  606.             <Property Type="READ" Present="true" Mandatory="true" />
  607.             <Property Type="WRITE" Present="false" Mandatory="false" />
  608.             <Property Type="NOTIFY" Present="true" Mandatory="true" />
  609.           </Properties>
  610.           <Permission>
  611.             <EncryptionPermissionRead>ENCRYPTION_REQUIRED</EncryptionPermissionRead>
  612.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  613.           </Permission>
  614.         </CyCharacteristic>
  615.         <CyCharacteristic ID="92" DisplayName="Report_Keyboard" Name="Report" Type="org.bluetooth.characteristic.report" UUID="2A4D">
  616.           <CyDescriptor ID="93" DisplayName="Client Characteristic Configuration" Name="Client Characteristic Configuration" Type="org.bluetooth.descriptor.gatt.client_characteristic_configuration" UUID="2902">
  617.             <Field Name="Properties">
  618.               <DataFormat>16bit</DataFormat>
  619.               <ByteLength>2</ByteLength>
  620.               <Range>
  621.                 <IsDeclared>true</IsDeclared>
  622.                 <Minimum>0</Minimum>
  623.                 <Maximum>3</Maximum>
  624.               </Range>
  625.               <ValueType>BITFIELD</ValueType>
  626.               <Bit>
  627.                 <Index>0</Index>
  628.                 <Size>1</Size>
  629.                 <Value>0</Value>
  630.                 <Enumerations>
  631.                   <Enumeration key="0" value="Notifications disabled" />
  632.                   <Enumeration key="1" value="Notifications enabled" />
  633.                 </Enumerations>
  634.               </Bit>
  635.               <Bit>
  636.                 <Index>1</Index>
  637.                 <Size>1</Size>
  638.                 <Value>0</Value>
  639.                 <Enumerations>
  640.                   <Enumeration key="0" value="Indications disabled" />
  641.                   <Enumeration key="1" value="Indications enabled" />
  642.                 </Enumerations>
  643.               </Bit>
  644.               <ArrayValue />
  645.             </Field>
  646.             <Properties>
  647.               <Property Type="READ" Present="true" Mandatory="true" />
  648.               <Property Type="WRITE" Present="true" Mandatory="true" />
  649.             </Properties>
  650.             <Permission>
  651.               <AccessPermission>READ_WRITE</AccessPermission>
  652.               <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  653.             </Permission>
  654.           </CyDescriptor>
  655.           <CyDescriptor ID="94" DisplayName="Report Reference" Name="Report Reference" Type="org.bluetooth.descriptor.report_reference" UUID="2908">
  656.             <Field Name="Report ID">
  657.               <DataFormat>uint8</DataFormat>
  658.               <ByteLength>1</ByteLength>
  659.               <Range>
  660.                 <IsDeclared>true</IsDeclared>
  661.                 <Minimum>0</Minimum>
  662.                 <Maximum>255</Maximum>
  663.               </Range>
  664.               <ValueType>BASIC</ValueType>
  665.               <GeneralValue>2</GeneralValue>
  666.               <ArrayValue />
  667.             </Field>
  668.             <Field Name="Report Type">
  669.               <DataFormat>uint8</DataFormat>
  670.               <ByteLength>1</ByteLength>
  671.               <Range>
  672.                 <IsDeclared>true</IsDeclared>
  673.                 <Minimum>1</Minimum>
  674.                 <Maximum>3</Maximum>
  675.               </Range>
  676.               <ValueType>ENUM</ValueType>
  677.               <EnumValue>1</EnumValue>
  678.               <ArrayValue />
  679.             </Field>
  680.             <Properties>
  681.               <Property Type="READ" Present="true" Mandatory="true" />
  682.             </Properties>
  683.             <Permission />
  684.           </CyDescriptor>
  685.           <Field Name="Report Value">
  686.             <DataFormat>uint8</DataFormat>
  687.             <ByteLength>8</ByteLength>
  688.             <ValueType>ARRAY</ValueType>
  689.             <ArrayValue />
  690.           </Field>
  691.           <Properties>
  692.             <Property Type="READ" Present="true" Mandatory="true" />
  693.             <Property Type="WRITE" Present="false" Mandatory="false" />
  694.             <Property Type="NOTIFY" Present="true" Mandatory="true" />
  695.           </Properties>
  696.           <Permission>
  697.             <EncryptionPermissionRead>ENCRYPTION_REQUIRED</EncryptionPermissionRead>
  698.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  699.           </Permission>
  700.         </CyCharacteristic>
  701.         <Declaration>Primary</Declaration>
  702.         <IncludedServices />
  703.       </CyService>
  704.       <CyService ID="23" DisplayName="Device Information" Name="Device Information" Type="org.bluetooth.service.device_information" UUID="180A">
  705.         <CyCharacteristic ID="24" DisplayName="Manufacturer Name String" Name="Manufacturer Name String" Type="org.bluetooth.characteristic.manufacturer_name_string" UUID="2A29">
  706.           <Field Name="Manufacturer Name">
  707.             <DataFormat>utf8s</DataFormat>
  708.             <ByteLength>21</ByteLength>
  709.             <ValueType>BASIC</ValueType>
  710.             <GeneralValue>Cypress Semiconductor</GeneralValue>
  711.             <ArrayValue />
  712.           </Field>
  713.           <Properties>
  714.             <Property Type="READ" Present="true" Mandatory="true" />
  715.           </Properties>
  716.           <Permission>
  717.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  718.           </Permission>
  719.         </CyCharacteristic>
  720.         <CyCharacteristic ID="28" DisplayName="Firmware Revision String" Name="Firmware Revision String" Type="org.bluetooth.characteristic.firmware_revision_string" UUID="2A26">
  721.           <Field Name="Firmware Revision">
  722.             <DataFormat>utf8s</DataFormat>
  723.             <ByteLength>7</ByteLength>
  724.             <ValueType>BASIC</ValueType>
  725.             <GeneralValue>1.0.0.0</GeneralValue>
  726.             <ArrayValue />
  727.           </Field>
  728.           <Properties>
  729.             <Property Type="READ" Present="true" Mandatory="true" />
  730.           </Properties>
  731.           <Permission>
  732.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  733.           </Permission>
  734.         </CyCharacteristic>
  735.         <CyCharacteristic ID="32" DisplayName="PnP ID" Name="PnP ID" Type="org.bluetooth.characteristic.pnp_id" UUID="2A50">
  736.           <Field Name="Vendor ID Source">
  737.             <DataFormat>uint8</DataFormat>
  738.             <ByteLength>1</ByteLength>
  739.             <Range>
  740.               <IsDeclared>true</IsDeclared>
  741.               <Minimum>1</Minimum>
  742.               <Maximum>2</Maximum>
  743.             </Range>
  744.             <ValueType>ENUM</ValueType>
  745.             <EnumValue>2</EnumValue>
  746.             <ArrayValue />
  747.           </Field>
  748.           <Field Name="Vendor ID">
  749.             <DataFormat>uint16</DataFormat>
  750.             <ByteLength>2</ByteLength>
  751.             <ValueType>BASIC</ValueType>
  752.             <GeneralValue>0x04B4</GeneralValue>
  753.             <ArrayValue />
  754.           </Field>
  755.           <Field Name="Product ID">
  756.             <DataFormat>uint16</DataFormat>
  757.             <ByteLength>2</ByteLength>
  758.             <ValueType>BASIC</ValueType>
  759.             <GeneralValue>0x5683</GeneralValue>
  760.             <ArrayValue />
  761.           </Field>
  762.           <Field Name="Product Version">
  763.             <DataFormat>uint16</DataFormat>
  764.             <ByteLength>2</ByteLength>
  765.             <ValueType>BASIC</ValueType>
  766.             <GeneralValue>0x0001</GeneralValue>
  767.             <ArrayValue />
  768.           </Field>
  769.           <Properties>
  770.             <Property Type="READ" Present="true" Mandatory="true" />
  771.           </Properties>
  772.           <Permission>
  773.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  774.           </Permission>
  775.         </CyCharacteristic>
  776.         <CyCharacteristic ID="79" DisplayName="Hardware Revision String" Name="Hardware Revision String" Type="org.bluetooth.characteristic.hardware_revision_string" UUID="2A27">
  777.           <Field Name="Hardware Revision">
  778.             <DataFormat>utf8s</DataFormat>
  779.             <ByteLength>7</ByteLength>
  780.             <ValueType>BASIC</ValueType>
  781.             <GeneralValue>1.0.0.3</GeneralValue>
  782.             <ArrayValue />
  783.           </Field>
  784.           <Properties>
  785.             <Property Type="READ" Present="true" Mandatory="true" />
  786.           </Properties>
  787.           <Permission>
  788.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  789.           </Permission>
  790.         </CyCharacteristic>
  791.         <CyCharacteristic ID="80" DisplayName="Serial Number String" Name="Serial Number String" Type="org.bluetooth.characteristic.serial_number_string" UUID="2A25">
  792.           <Field Name="Serial Number">
  793.             <DataFormat>utf8s</DataFormat>
  794.             <ByteLength>12</ByteLength>
  795.             <ValueType>BASIC</ValueType>
  796.             <GeneralValue>123456789012</GeneralValue>
  797.             <ArrayValue />
  798.           </Field>
  799.           <Properties>
  800.             <Property Type="READ" Present="true" Mandatory="true" />
  801.           </Properties>
  802.           <Permission>
  803.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  804.           </Permission>
  805.         </CyCharacteristic>
  806.         <CyCharacteristic ID="81" DisplayName="Software Revision String" Name="Software Revision String" Type="org.bluetooth.characteristic.software_revision_string" UUID="2A28">
  807.           <Field Name="Software Revision">
  808.             <DataFormat>utf8s</DataFormat>
  809.             <ByteLength>16</ByteLength>
  810.             <ValueType>BASIC</ValueType>
  811.             <GeneralValue>PSoC Creator 3.1</GeneralValue>
  812.             <ArrayValue />
  813.           </Field>
  814.           <Properties>
  815.             <Property Type="READ" Present="true" Mandatory="true" />
  816.           </Properties>
  817.           <Permission>
  818.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  819.           </Permission>
  820.         </CyCharacteristic>
  821.         <CyCharacteristic ID="87" DisplayName="Model Number String" Name="Model Number String" Type="org.bluetooth.characteristic.model_number_string" UUID="2A24">
  822.           <Field Name="Model Number">
  823.             <DataFormat>utf8s</DataFormat>
  824.             <ByteLength>6</ByteLength>
  825.             <ValueType>BASIC</ValueType>
  826.             <GeneralValue>CY5682</GeneralValue>
  827.             <ArrayValue />
  828.           </Field>
  829.           <Properties>
  830.             <Property Type="READ" Present="true" Mandatory="true" />
  831.           </Properties>
  832.           <Permission>
  833.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  834.           </Permission>
  835.         </CyCharacteristic>
  836.         <Declaration>PrimarySingleInstance</Declaration>
  837.         <IncludedServices />
  838.       </CyService>
  839.       <CyService ID="37" DisplayName="Battery Service" Name="Battery Service" Type="org.bluetooth.service.battery_service" UUID="180F">
  840.         <CyCharacteristic ID="38" DisplayName="Battery Level" Name="Battery Level" Type="org.bluetooth.characteristic.battery_level" UUID="2A19">
  841.           <CyDescriptor ID="61" DisplayName="Characteristic Presentation Format" Name="Characteristic Presentation Format" Type="org.bluetooth.descriptor.gatt.characteristic_presentation_format" UUID="2904">
  842.             <Field Name="Format">
  843.               <DataFormat>8bit</DataFormat>
  844.               <ByteLength>1</ByteLength>
  845.               <Range>
  846.                 <IsDeclared>true</IsDeclared>
  847.                 <Minimum>0</Minimum>
  848.                 <Maximum>27</Maximum>
  849.               </Range>
  850.               <ValueType>ENUM</ValueType>
  851.               <EnumValue>4</EnumValue>
  852.               <ArrayValue />
  853.             </Field>
  854.             <Field Name="Exponent">
  855.               <DataFormat>sint8</DataFormat>
  856.               <ByteLength>1</ByteLength>
  857.               <ValueType>BASIC</ValueType>
  858.               <GeneralValue>1</GeneralValue>
  859.               <ArrayValue />
  860.             </Field>
  861.             <Field Name="Unit">
  862.               <DataFormat>uint16</DataFormat>
  863.               <ByteLength>2</ByteLength>
  864.               <ValueType>ENUM</ValueType>
  865.               <EnumValue>10157</EnumValue>
  866.               <ArrayValue />
  867.             </Field>
  868.             <Field Name="Namespace">
  869.               <DataFormat>8bit</DataFormat>
  870.               <ByteLength>1</ByteLength>
  871.               <Range>
  872.                 <IsDeclared>true</IsDeclared>
  873.                 <Minimum>0</Minimum>
  874.                 <Maximum>1</Maximum>
  875.               </Range>
  876.               <ValueType>ENUM</ValueType>
  877.               <EnumValue>1</EnumValue>
  878.               <ArrayValue />
  879.             </Field>
  880.             <Field Name="Description">
  881.               <DataFormat>16bit</DataFormat>
  882.               <ByteLength>2</ByteLength>
  883.               <ValueType>ENUM</ValueType>
  884.               <EnumValue>262</EnumValue>
  885.               <ArrayValue />
  886.             </Field>
  887.             <Properties>
  888.               <Property Type="READ" Present="true" Mandatory="true" />
  889.             </Properties>
  890.             <Permission />
  891.           </CyDescriptor>
  892.           <CyDescriptor ID="40" DisplayName="Client Characteristic Configuration" Name="Client Characteristic Configuration" Type="org.bluetooth.descriptor.gatt.client_characteristic_configuration" UUID="2902">
  893.             <Field Name="Properties">
  894.               <DataFormat>16bit</DataFormat>
  895.               <ByteLength>2</ByteLength>
  896.               <Range>
  897.                 <IsDeclared>true</IsDeclared>
  898.                 <Minimum>0</Minimum>
  899.                 <Maximum>3</Maximum>
  900.               </Range>
  901.               <ValueType>BITFIELD</ValueType>
  902.               <Bit>
  903.                 <Index>0</Index>
  904.                 <Size>1</Size>
  905.                 <Value>0</Value>
  906.                 <Enumerations>
  907.                   <Enumeration key="0" value="Notifications disabled" />
  908.                   <Enumeration key="1" value="Notifications enabled" />
  909.                 </Enumerations>
  910.               </Bit>
  911.               <Bit>
  912.                 <Index>1</Index>
  913.                 <Size>1</Size>
  914.                 <Value>0</Value>
  915.                 <Enumerations>
  916.                   <Enumeration key="0" value="Indications disabled" />
  917.                   <Enumeration key="1" value="Indications enabled" />
  918.                 </Enumerations>
  919.               </Bit>
  920.               <ArrayValue />
  921.             </Field>
  922.             <Properties>
  923.               <Property Type="READ" Present="true" Mandatory="true" />
  924.               <Property Type="WRITE" Present="true" Mandatory="true" />
  925.             </Properties>
  926.             <Permission>
  927.               <AccessPermission>READ_WRITE</AccessPermission>
  928.               <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  929.             </Permission>
  930.           </CyDescriptor>
  931.           <Field Name="Level">
  932.             <DataFormat>uint8</DataFormat>
  933.             <ByteLength>1</ByteLength>
  934.             <Range>
  935.               <IsDeclared>true</IsDeclared>
  936.               <Minimum>0</Minimum>
  937.               <Maximum>100</Maximum>
  938.             </Range>
  939.             <Unit>org.bluetooth.unit.percentage</Unit>
  940.             <ValueType>BASIC</ValueType>
  941.             <GeneralValue>100</GeneralValue>
  942.             <ArrayValue />
  943.           </Field>
  944.           <Properties>
  945.             <Property Type="READ" Present="true" Mandatory="true" />
  946.             <Property Type="NOTIFY" Present="true" Mandatory="false" />
  947.           </Properties>
  948.           <Permission>
  949.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  950.           </Permission>
  951.         </CyCharacteristic>
  952.         <Declaration>Primary</Declaration>
  953.         <IncludedServices />
  954.       </CyService>
  955.       <CyService ID="57" DisplayName="Scan Parameters" Name="Scan Parameters" Type="org.bluetooth.service.scan_parameters" UUID="1813">
  956.         <CyCharacteristic ID="58" DisplayName="Scan Interval Window" Name="Scan Interval Window" Type="org.bluetooth.characteristic.scan_interval_window" UUID="2A4F">
  957.           <Field Name="LE_Scan_Interval">
  958.             <DataFormat>uint16</DataFormat>
  959.             <ByteLength>2</ByteLength>
  960.             <ValueType>BASIC</ValueType>
  961.             <ArrayValue />
  962.           </Field>
  963.           <Field Name="LE_Scan_Window">
  964.             <DataFormat>uint16</DataFormat>
  965.             <ByteLength>2</ByteLength>
  966.             <ValueType>BASIC</ValueType>
  967.             <ArrayValue />
  968.           </Field>
  969.           <Properties>
  970.             <Property Type="WRITE_WITHOUT_RESPONSE" Present="true" Mandatory="true" />
  971.           </Properties>
  972.           <Permission>
  973.             <AccessPermission>WRITE</AccessPermission>
  974.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  975.           </Permission>
  976.         </CyCharacteristic>
  977.         <CyCharacteristic ID="59" DisplayName="Scan Refresh" Name="Scan Refresh" Type="org.bluetooth.characteristic.scan_refresh" UUID="2A31">
  978.           <CyDescriptor ID="60" DisplayName="Client Characteristic Configuration" Name="Client Characteristic Configuration" Type="org.bluetooth.descriptor.gatt.client_characteristic_configuration" UUID="2902">
  979.             <Field Name="Properties">
  980.               <DataFormat>16bit</DataFormat>
  981.               <ByteLength>2</ByteLength>
  982.               <Range>
  983.                 <IsDeclared>true</IsDeclared>
  984.                 <Minimum>0</Minimum>
  985.                 <Maximum>3</Maximum>
  986.               </Range>
  987.               <ValueType>BITFIELD</ValueType>
  988.               <Bit>
  989.                 <Index>0</Index>
  990.                 <Size>1</Size>
  991.                 <Value>0</Value>
  992.                 <Enumerations>
  993.                   <Enumeration key="0" value="Notifications disabled" />
  994.                   <Enumeration key="1" value="Notifications enabled" />
  995.                 </Enumerations>
  996.               </Bit>
  997.               <Bit>
  998.                 <Index>1</Index>
  999.                 <Size>1</Size>
  1000.                 <Value>0</Value>
  1001.                 <Enumerations>
  1002.                   <Enumeration key="0" value="Indications disabled" />
  1003.                   <Enumeration key="1" value="Indications enabled" />
  1004.                 </Enumerations>
  1005.               </Bit>
  1006.               <ArrayValue />
  1007.             </Field>
  1008.             <Properties>
  1009.               <Property Type="READ" Present="true" Mandatory="true" />
  1010.               <Property Type="WRITE" Present="true" Mandatory="true" />
  1011.             </Properties>
  1012.             <Permission>
  1013.               <AccessPermission>READ_WRITE</AccessPermission>
  1014.               <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  1015.             </Permission>
  1016.           </CyDescriptor>
  1017.           <Field Name="Scan Refresh Value">
  1018.             <DataFormat>uint8</DataFormat>
  1019.             <ByteLength>1</ByteLength>
  1020.             <ValueType>ENUM</ValueType>
  1021.             <ArrayValue />
  1022.           </Field>
  1023.           <Properties>
  1024.             <Property Type="NOTIFY" Present="true" Mandatory="true" />
  1025.           </Properties>
  1026.           <Permission>
  1027.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  1028.           </Permission>
  1029.         </CyCharacteristic>
  1030.         <Declaration>PrimarySingleInstance</Declaration>
  1031.         <IncludedServices />
  1032.       </CyService>
  1033.       <CyService ID="77" DisplayName="Link Loss" Name="Link Loss" Type="org.bluetooth.service.link_loss" UUID="1803">
  1034.         <CyCharacteristic ID="78" DisplayName="Alert Level" Name="Alert Level" Type="org.bluetooth.characteristic.alert_level" UUID="2A06">
  1035.           <Field Name="Alert Level">
  1036.             <DataFormat>uint8</DataFormat>
  1037.             <ByteLength>1</ByteLength>
  1038.             <Range>
  1039.               <IsDeclared>true</IsDeclared>
  1040.               <Minimum>0</Minimum>
  1041.               <Maximum>2</Maximum>
  1042.             </Range>
  1043.             <ValueType>ENUM</ValueType>
  1044.             <ArrayValue />
  1045.           </Field>
  1046.           <Properties>
  1047.             <Property Type="READ" Present="true" Mandatory="true" />
  1048.             <Property Type="WRITE" Present="true" Mandatory="true" />
  1049.           </Properties>
  1050.           <Permission>
  1051.             <AccessPermission>READ_WRITE</AccessPermission>
  1052.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  1053.           </Permission>
  1054.         </CyCharacteristic>
  1055.         <Declaration>Primary</Declaration>
  1056.         <IncludedServices />
  1057.       </CyService>
  1058.       <CyService ID="82" DisplayName="Immediate Alert" Name="Immediate Alert" Type="org.bluetooth.service.immediate_alert" UUID="1802">
  1059.         <CyCharacteristic ID="83" DisplayName="Alert Level" Name="Alert Level" Type="org.bluetooth.characteristic.alert_level" UUID="2A06">
  1060.           <Field Name="Alert Level">
  1061.             <DataFormat>uint8</DataFormat>
  1062.             <ByteLength>1</ByteLength>
  1063.             <Range>
  1064.               <IsDeclared>true</IsDeclared>
  1065.               <Minimum>0</Minimum>
  1066.               <Maximum>2</Maximum>
  1067.             </Range>
  1068.             <ValueType>ENUM</ValueType>
  1069.             <ArrayValue />
  1070.           </Field>
  1071.           <Properties>
  1072.             <Property Type="WRITE_WITHOUT_RESPONSE" Present="true" Mandatory="true" />
  1073.           </Properties>
  1074.           <Permission>
  1075.             <AccessPermission>READ_WRITE</AccessPermission>
  1076.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  1077.           </Permission>
  1078.         </CyCharacteristic>
  1079.         <Declaration>Primary</Declaration>
  1080.         <IncludedServices />
  1081.       </CyService>
  1082.       <CyService ID="84" DisplayName="Tx Power" Name="Tx Power" Type="org.bluetooth.service.tx_power" UUID="1804">
  1083.         <CyCharacteristic ID="85" DisplayName="Tx Power Level" Name="Tx Power Level" Type="org.bluetooth.characteristic.tx_power_level" UUID="2A07">
  1084.           <CyDescriptor ID="86" DisplayName="Client Characteristic Configuration" Name="Client Characteristic Configuration" Type="org.bluetooth.descriptor.gatt.client_characteristic_configuration" UUID="2902">
  1085.             <Field Name="Properties">
  1086.               <DataFormat>16bit</DataFormat>
  1087.               <ByteLength>2</ByteLength>
  1088.               <Range>
  1089.                 <IsDeclared>true</IsDeclared>
  1090.                 <Minimum>0</Minimum>
  1091.                 <Maximum>3</Maximum>
  1092.               </Range>
  1093.               <ValueType>BITFIELD</ValueType>
  1094.               <Bit>
  1095.                 <Index>0</Index>
  1096.                 <Size>1</Size>
  1097.                 <Value>0</Value>
  1098.                 <Enumerations>
  1099.                   <Enumeration key="0" value="Notifications disabled" />
  1100.                   <Enumeration key="1" value="Notifications enabled" />
  1101.                 </Enumerations>
  1102.               </Bit>
  1103.               <Bit>
  1104.                 <Index>1</Index>
  1105.                 <Size>1</Size>
  1106.                 <Value>0</Value>
  1107.                 <Enumerations>
  1108.                   <Enumeration key="0" value="Indications disabled" />
  1109.                   <Enumeration key="1" value="Indications enabled" />
  1110.                 </Enumerations>
  1111.               </Bit>
  1112.               <ArrayValue />
  1113.             </Field>
  1114.             <Properties>
  1115.               <Property Type="READ" Present="true" Mandatory="true" />
  1116.               <Property Type="WRITE" Present="true" Mandatory="true" />
  1117.             </Properties>
  1118.             <Permission>
  1119.               <AccessPermission>READ_WRITE</AccessPermission>
  1120.               <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  1121.             </Permission>
  1122.           </CyDescriptor>
  1123.           <Field Name="Tx Power">
  1124.             <DataFormat>sint8</DataFormat>
  1125.             <ByteLength>1</ByteLength>
  1126.             <Range>
  1127.               <IsDeclared>true</IsDeclared>
  1128.               <Minimum>-100</Minimum>
  1129.               <Maximum>20</Maximum>
  1130.             </Range>
  1131.             <Unit>org.bluetooth.unit.logarithmic_radio_quantity.decibel</Unit>
  1132.             <ValueType>BASIC</ValueType>
  1133.             <GeneralValue>0</GeneralValue>
  1134.             <ArrayValue />
  1135.           </Field>
  1136.           <Properties>
  1137.             <Property Type="READ" Present="true" Mandatory="true" />
  1138.             <Property Type="NOTIFY" Present="false" Mandatory="false" />
  1139.           </Properties>
  1140.           <Permission>
  1141.             <EncryptionPermissionWrite>ENCRYPTION_REQUIRED</EncryptionPermissionWrite>
  1142.           </Permission>
  1143.         </CyCharacteristic>
  1144.         <Declaration>Primary</Declaration>
  1145.         <IncludedServices />
  1146.       </CyService>
  1147.       <ProfileRoleIndex>0</ProfileRoleIndex>
  1148.       <RoleType>SERVER</RoleType>
  1149.     </CyProfileRole>
  1150.     <GapRole>PERIPHERAL</GapRole>
  1151.   </CyProfile>
  1152.   <GapConfiguration>
  1153.     <DevAddress>00A050000000</DevAddress>
  1154.     <SiliconGeneratedAddress>true</SiliconGeneratedAddress>
  1155.     <MtuSize>23</MtuSize>
  1156.     <TxPowerLevel>0</TxPowerLevel>
  1157.     <TxPowerLevelConnection>0</TxPowerLevelConnection>
  1158.     <TxPowerLevelAdvScan>0</TxPowerLevelAdvScan>
  1159.     <SecurityConfig>
  1160.       <SecurityMode>SECURITY_MODE_1</SecurityMode>
  1161.       <SecurityLevel>UNAUTHENTICATED</SecurityLevel>
  1162.       <IOCapability>NO_INPUT_NO_OUTPUT</IOCapability>
  1163.       <PairingMethod>JUST_WORKS</PairingMethod>
  1164.       <Bonding>BOND</Bonding>
  1165.       <EncryptionKeySize>16</EncryptionKeySize>
  1166.     </SecurityConfig>
  1167.     <AdvertisementConfig>
  1168.       <AdvScanMode>FAST_CONNECTION</AdvScanMode>
  1169.       <AdvFastScanInterval>
  1170.         <Minimum>20</Minimum>
  1171.         <Maximum>30</Maximum>
  1172.       </AdvFastScanInterval>
  1173.       <AdvReducedScanInterval>
  1174.         <Minimum>1000</Minimum>
  1175.         <Maximum>10240</Maximum>
  1176.       </AdvReducedScanInterval>
  1177.       <AdvDiscoveryMode>LIMITED</AdvDiscoveryMode>
  1178.       <AdvType>CONNECTABLE_UNDIRECTED</AdvType>
  1179.       <AdvFilterPolicy>SCAN_REQUEST_ANY_CONNECT_REQUEST_ANY</AdvFilterPolicy>
  1180.       <AdvChannelMap>ALL</AdvChannelMap>
  1181.       <AdvFastTimeout>30</AdvFastTimeout>
  1182.       <AdvReducedTimeout>150</AdvReducedTimeout>
  1183.       <EnableReducedAdvertising>false</EnableReducedAdvertising>
  1184.       <ConnectionInterval>
  1185.         <Minimum>7.5</Minimum>
  1186.         <Maximum>7.5</Maximum>
  1187.       </ConnectionInterval>
  1188.       <ConnectionSlaveLatency>0</ConnectionSlaveLatency>
  1189.       <ConnectionTimeout>5000</ConnectionTimeout>
  1190.     </AdvertisementConfig>
  1191.     <ScanConfig>
  1192.       <ScanFastWindow>30</ScanFastWindow>
  1193.       <ScanFastInterval>30</ScanFastInterval>
  1194.       <ScanTimeout>30</ScanTimeout>
  1195.       <ScanReducedWindow>1125</ScanReducedWindow>
  1196.       <ScanReducedInterval>1280</ScanReducedInterval>
  1197.       <ScanReducedTimeout>150</ScanReducedTimeout>
  1198.       <EnableReducedScan>true</EnableReducedScan>
  1199.       <ScanDiscoveryMode>GENERAL</ScanDiscoveryMode>
  1200.       <ScanningState>ACTIVE</ScanningState>
  1201.       <ScanFilterPolicy>ACCEPT_ALL_ADV_PACKETS</ScanFilterPolicy>
  1202.       <DuplicateFiltering>false</DuplicateFiltering>
  1203.       <ConnectionInterval>
  1204.         <Minimum>7.5</Minimum>
  1205.         <Maximum>50</Maximum>
  1206.       </ConnectionInterval>
  1207.       <ConnectionSlaveLatency>0</ConnectionSlaveLatency>
  1208.       <ConnectionTimeout>10000</ConnectionTimeout>
  1209.     </ScanConfig>
  1210.     <AdvertisementPacket>
  1211.       <PacketType>ADVERTISEMENT</PacketType>
  1212.       <Items>
  1213.         <CyADStructure>
  1214.           <ADType>1</ADType>
  1215.           <ADData>05</ADData>
  1216.         </CyADStructure>
  1217.         <CyADStructure>
  1218.           <ADType>9</ADType>
  1219.           <ADData>46:6C:79:69:6E:67:20:4D:6F:75:73:65</ADData>
  1220.         </CyADStructure>
  1221.         <CyADStructure>
  1222.           <ADType>2</ADType>
  1223.           <ADData>12:18</ADData>
  1224.         </CyADStructure>
  1225.         <CyADStructure>
  1226.           <ADType>25</ADType>
  1227.           <ADData>C2:03</ADData>
  1228.         </CyADStructure>
  1229.       </Items>
  1230.     </AdvertisementPacket>
  1231.     <ScanResponsePacket>
  1232.       <PacketType>SCAN_RESPONSE</PacketType>
  1233.       <Items>
  1234.         <CyADStructure>
  1235.           <ADType>10</ADType>
  1236.           <ADData>00</ADData>
  1237.         </CyADStructure>
  1238.         <CyADStructure>
  1239.           <ADType>18</ADType>
  1240.           <ADData>06:00:06:00</ADData>
  1241.         </CyADStructure>
  1242.         <CyADStructure>
  1243.           <ADType>2</ADType>
  1244.           <ADData>12:18:0A:18:0F:18:13:18</ADData>
  1245.         </CyADStructure>
  1246.         <CyADStructure>
  1247.           <ADType>26</ADType>
  1248.           <ADData>28:00</ADData>
  1249.         </CyADStructure>
  1250.       </Items>
  1251.     </ScanResponsePacket>
  1252.   </GapConfiguration>
  1253.   <L2capConfiguration>
  1254.     <NumChannels>1</NumChannels>
  1255.     <NumPsm>1</NumPsm>
  1256.     <MtuSize>23</MtuSize>
  1257.     <MpsSize>23</MpsSize>
  1258.   </L2capConfiguration>
  1259.   <UseDeepSleep>true</UseDeepSleep>
  1260. </CyBleConfiguration>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement