<?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>Wireless MCUのトピックgBleFeatureNotSupported_c</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/gBleFeatureNotSupported-c/m-p/702158#M3553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In kw41z bluetooth beacon demo code, I modify it to&amp;nbsp;do a scanning first, right after Initialization,&lt;/P&gt;&lt;P&gt;bleResult_t result = App_StartScanning(&amp;amp;gScanParams, BleApp_ScanningCallback);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;however, the result&amp;nbsp; is always&amp;nbsp;&lt;/SPAN&gt;4&amp;nbsp;(gBleFeatureNotSupported_c). Scan cannot be started. How do I fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later I try modified the hid_host code, where the scan function works, and add advertise functions,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;bleResult_t result =&amp;nbsp;&lt;/SPAN&gt;Gap_SetAdvertisingParameters((gapAdvertisingParameters_t*)&amp;amp;gAppAdvParams);&lt;/P&gt;&lt;P&gt;And the result is also&amp;nbsp;&lt;SPAN&gt;4&amp;nbsp;(gBleFeatureNotSupported_c). Advertise&amp;nbsp;cannot be started. What a bummer!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think there's some place specify the role of device, and then central can only scan, and peripheral can only advertise.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I cannot find the place where such role is specified in these project codes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want my device be capable of both scan and advertise, it seems Observer and&amp;nbsp;Broadcaster are capable both rx &amp;amp; tx.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From&amp;nbsp;BLE Application Developer's Guide:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;• Observer&lt;BR /&gt;o Scans for advertisers, but does not initiate connections; Transmit is optional&lt;BR /&gt;• Broadcaster&lt;BR /&gt;o Advertises, but does not accept connection requests from Centrals; Receive is optional&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 21 Aug 2017 06:31:39 GMT</pubDate>
    <dc:creator>yuandao</dc:creator>
    <dc:date>2017-08-21T06:31:39Z</dc:date>
    <item>
      <title>gBleFeatureNotSupported_c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/gBleFeatureNotSupported-c/m-p/702158#M3553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In kw41z bluetooth beacon demo code, I modify it to&amp;nbsp;do a scanning first, right after Initialization,&lt;/P&gt;&lt;P&gt;bleResult_t result = App_StartScanning(&amp;amp;gScanParams, BleApp_ScanningCallback);&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;however, the result&amp;nbsp; is always&amp;nbsp;&lt;/SPAN&gt;4&amp;nbsp;(gBleFeatureNotSupported_c). Scan cannot be started. How do I fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later I try modified the hid_host code, where the scan function works, and add advertise functions,&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;bleResult_t result =&amp;nbsp;&lt;/SPAN&gt;Gap_SetAdvertisingParameters((gapAdvertisingParameters_t*)&amp;amp;gAppAdvParams);&lt;/P&gt;&lt;P&gt;And the result is also&amp;nbsp;&lt;SPAN&gt;4&amp;nbsp;(gBleFeatureNotSupported_c). Advertise&amp;nbsp;cannot be started. What a bummer!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I think there's some place specify the role of device, and then central can only scan, and peripheral can only advertise.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I cannot find the place where such role is specified in these project codes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I want my device be capable of both scan and advertise, it seems Observer and&amp;nbsp;Broadcaster are capable both rx &amp;amp; tx.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;From&amp;nbsp;BLE Application Developer's Guide:&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN&gt;• Observer&lt;BR /&gt;o Scans for advertisers, but does not initiate connections; Transmit is optional&lt;BR /&gt;• Broadcaster&lt;BR /&gt;o Advertises, but does not accept connection requests from Centrals; Receive is optional&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Aug 2017 06:31:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/gBleFeatureNotSupported-c/m-p/702158#M3553</guid>
      <dc:creator>yuandao</dc:creator>
      <dc:date>2017-08-21T06:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: gBleFeatureNotSupported_c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/gBleFeatureNotSupported-c/m-p/702159#M3554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found&amp;nbsp;the cause of the problem.&lt;/P&gt;&lt;P&gt;It's the library.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;All the APIs referenced in this document are available in the Central and Peripheral libraries. For example, ble_host_lib.a is a full-featured library with complete support for both Central and Peripheral APIs, at GAP level, as well as Client and Server APIs, at GATT level.&lt;BR /&gt;However, some applications may be targeted to memory-constrained devices and do not need the full support. In the interest of reducing code size and RAM utilization, two more libraries are provided:&lt;BR /&gt;• ble_host_peripheral_lib.a&lt;BR /&gt;o Supports only APIs for the GAP Peripheral and GAP Broadcaster roles&lt;BR /&gt;o Supports only APIs for the GATT Server role&lt;BR /&gt;• ble_host_central_lib.a&lt;BR /&gt;o Supports only APIs for the GAP Central and GAP Observer roles&lt;BR /&gt;o Supports only APIs for the GATT Client role&lt;BR /&gt;If one attempts to use an API that is not supported (for instance, calling Gap_Connect with the ble_host_peripheral_lib.a), then the API returns the gBleFeatureNotSupported_c error code.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;After I linked the correct library, the problem is solved.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 02:28:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/gBleFeatureNotSupported-c/m-p/702159#M3554</guid>
      <dc:creator>yuandao</dc:creator>
      <dc:date>2017-08-23T02:28:18Z</dc:date>
    </item>
    <item>
      <title>Re: gBleFeatureNotSupported_c</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/gBleFeatureNotSupported-c/m-p/1200406#M10475</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;How did you link the libraries?&lt;/P&gt;</description>
      <pubDate>Wed, 16 Dec 2020 12:24:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/gBleFeatureNotSupported-c/m-p/1200406#M10475</guid>
      <dc:creator>rajasekhar_99</dc:creator>
      <dc:date>2020-12-16T12:24:36Z</dc:date>
    </item>
  </channel>
</rss>

