<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Other NXP ProductsのトピックRe: Dynamic GATT: BleApp_GattServerCallback doesn't work</title>
    <link>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975169#M8137</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giuliano,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry for the delayed response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For implementing a dynamic GATT database, we recommend checking the BLE Shell example provided in the SDK archive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This example implements the use of a dynamic GATT database, and allows the user to add and remove database entries by sending the gattdb command through the shell with different arguments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application uses the following functions to manage the database:&lt;/P&gt;&lt;UL type="disc"&gt;&lt;LI&gt;ShellGattDb_Write&lt;/LI&gt;&lt;LI&gt;ShellGattDb_Read&lt;/LI&gt;&lt;LI&gt;ShellGattDb_AddService&lt;/LI&gt;&lt;LI&gt;ShellGattDb_Erase&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The example allows the user to add services for a Heart Rate, Battery Service, Device Information and Ipss.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These commands can be found in the "shell_gattdb.c" source file, in the source folder of the BLE Shell SDK example:&lt;/P&gt;&lt;P&gt;&amp;lt;…\SDK_2.2.1_QN908XCDK\boards\qn908xcdk\wireless_examples\bluetooth\ble_shell&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information or have further issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2020 17:23:29 GMT</pubDate>
    <dc:creator>Sebastian_Del_Rio</dc:creator>
    <dc:date>2020-03-03T17:23:29Z</dc:date>
    <item>
      <title>Dynamic GATT: BleApp_GattServerCallback doesn't work</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975165#M8133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still working on MKW31Z and got stuck on another problem, this time about BLE and GATT services, in particular the wireless uart service. If I use static GATT everything works well, however, if I implement dynamic GATT, when I write the charateristic (via BLE scanner app with Android phone or iPhone) the BleApp_GattServerCallback function is never called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here the code I used to enable the profiles:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;bleResult_t BleApp_GATTDB_DynamicDefinition(){&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;bleResult_t&amp;nbsp;serviceResult;&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;serviceResult = GattDbDynamic_AddGattService(&amp;amp;gattProfile);&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(serviceResult != gBleSuccess_c) return serviceResult;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;serviceResult = GattDbDynamic_AddGapService(&amp;amp;gapProfile);&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;if(serviceResult != gBleSuccess_c) return serviceResult;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;serviceResult = GattDbDynamic_AddWirelessUartService();&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;return serviceResult;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;bleResult_t GattDbDynamic_AddWirelessUartService()&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;{&lt;/SPAN&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;serviceResult = GattDbDynamic_AddPrimaryServiceDeclaration(gBleUuidType128_c,&amp;amp;uuid_service_wireless_uart,&amp;amp;service_wireless_uart);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;if(serviceResult != gBleSuccess_c)&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;return serviceResult;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;serviceResult = GattDbDynamic_AddCharacteristicDeclarationAndValue(gBleUuidType128_c,&amp;amp;uuid_uart_stream,(gGattCharPropWriteWithoutRsp_c),gAttMaxWriteDataSize_d(gAttMaxMtu_c),1,value_uart_stream_initialvalues,(gPermissionFlagWritable_c),&amp;amp;wirelessUartProfile);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;return serviceResult;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Am i missing something? Please help me!!&amp;nbsp;:smileycry:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Feb 2020 14:21:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975165#M8133</guid>
      <dc:creator>giuliano_errico</dc:creator>
      <dc:date>2020-02-17T14:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic GATT: BleApp_GattServerCallback doesn't work</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975166#M8134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giuliano, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I took a look at your code and initialization, and it looks correct.&lt;/P&gt;&lt;P&gt;Could you please confirm if the gGattDbDynamic_d macro was added to the app_preinclude.h header file like so?:&lt;/P&gt;&lt;PRE class="language-c line-numbers"&gt;&lt;CODE&gt;&lt;SPAN class="property macro token"&gt;#define gGattDbDynamic_d                                1&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you also please let me know which BLE example are you using?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Feb 2020 16:26:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975166#M8134</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-02-20T16:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic GATT: BleApp_GattServerCallback doesn't work</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975167#M8135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sebastian,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your response. Yes, I confirm that the gGattDbDynamic macro is defines and equals to 1, both in the app_preinclude.h file and in the gatt_database.c (where is originally defines). The BLE example is the wireless_uart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Giuliano&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Feb 2020 10:04:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975167#M8135</guid>
      <dc:creator>giuliano_errico</dc:creator>
      <dc:date>2020-02-22T10:04:20Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic GATT: BleApp_GattServerCallback doesn't work</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975168#M8136</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giuliano,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am in the process of performing some tests with dynamic GATT database, and will get back to you as soon as I have some results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you have any other questions, or need any more information.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Feb 2020 18:34:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975168#M8136</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-02-25T18:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic GATT: BleApp_GattServerCallback doesn't work</title>
      <link>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975169#M8137</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Giuliano,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry for the delayed response.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For implementing a dynamic GATT database, we recommend checking the BLE Shell example provided in the SDK archive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This example implements the use of a dynamic GATT database, and allows the user to add and remove database entries by sending the gattdb command through the shell with different arguments.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application uses the following functions to manage the database:&lt;/P&gt;&lt;UL type="disc"&gt;&lt;LI&gt;ShellGattDb_Write&lt;/LI&gt;&lt;LI&gt;ShellGattDb_Read&lt;/LI&gt;&lt;LI&gt;ShellGattDb_AddService&lt;/LI&gt;&lt;LI&gt;ShellGattDb_Erase&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;The example allows the user to add services for a Heart Rate, Battery Service, Device Information and Ipss.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These commands can be found in the "shell_gattdb.c" source file, in the source folder of the BLE Shell SDK example:&lt;/P&gt;&lt;P&gt;&amp;lt;…\SDK_2.2.1_QN908XCDK\boards\qn908xcdk\wireless_examples\bluetooth\ble_shell&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you need any more information or have further issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Sebastian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 17:23:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Other-NXP-Products/Dynamic-GATT-BleApp-GattServerCallback-doesn-t-work/m-p/975169#M8137</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-03-03T17:23:29Z</dc:date>
    </item>
  </channel>
</rss>

