<?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>topic Re: BLE Disconnect fails in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/BLE-Disconnect-fails/m-p/649655#M2425</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue has been fixed in the&amp;nbsp;KW41Z SDK Maintenance Release which is out now.&amp;nbsp;You can download it from the &lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;MCUXpresso SDK Builder&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 19 Jan 2018 18:22:08 GMT</pubDate>
    <dc:creator>gerardo_rodriguez</dc:creator>
    <dc:date>2018-01-19T18:22:08Z</dc:date>
    <item>
      <title>BLE Disconnect fails</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-Disconnect-fails/m-p/649652#M2422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using an MKW31Z. &amp;nbsp;Might be related to&amp;nbsp;&lt;A href="https://community.nxp.com/thread/448377"&gt;MKW30Z BLE connection flood protection&lt;/A&gt;&amp;nbsp;but different processor so unsure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm experiencing an issue where on occasion the call to&amp;nbsp;Gap_Disconnect fails to produce a&amp;nbsp;gConnEvtDisconnected_c callback event. &amp;nbsp;If I call&amp;nbsp;&lt;SPAN&gt;Gap_Disconnect again, I get an internal error of&amp;nbsp;gHciUnknownConnectionIdentifier_c, which indicates that the disconnect occurred but no&amp;nbsp;gConnEvtDisconnected_c callback.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I ignore the fact that I didn't get the callback and go ahead and call&amp;nbsp;Gap_SetAdvertisingParameters, I then receive no advertising callbacks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The usual flow is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gAdvertisingDataSetupComplete_c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gAdvertisingParametersSetupComplete_c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gAdvertisingStateChanged_c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gConnEvtConnected_c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gConnEvtParameterUpdateComplete_c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gConnEvtParameterUpdateComplete_c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;gConnEvtDisconnected_c&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And this will repeat until I don't get the&amp;nbsp;gConnEvtDisconnected_c event. &amp;nbsp;At that point, I can only achieve the&amp;nbsp;gAdvertisingDataSetupComplete_c event, but not the other advertising events.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have not found any pattern of number of connects/disconnects or advertising calls that trigger this. &amp;nbsp;My code is based off the heart rate sensor example, but I don't currently have a working test sample. &amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Using version&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;1.0.2 of the connectivity software.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Apr 2017 22:25:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-Disconnect-fails/m-p/649652#M2422</guid>
      <dc:creator>michaelbrudevo1</dc:creator>
      <dc:date>2017-04-27T22:25:50Z</dc:date>
    </item>
    <item>
      <title>Re: BLE Disconnect fails</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-Disconnect-fails/m-p/649653#M2423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tracked down the issue to a memory leak in&amp;nbsp;L2ca_HciEventCallback, specifically when a Command Complete packet is returned for&amp;nbsp;LE Remote Connection Parameter Request Reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's that packet:&amp;nbsp;0e 06 01 20 20 00 60 00&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A buffer is allocated but then it fails the check comparing the first byte against 0x3e and the function returns. &amp;nbsp;I've added some code to drop this packet before it hits&amp;nbsp;Ble_HciRecv, and that appears to work for me. &amp;nbsp;Please update the stack to properly fix this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 May 2017 16:05:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-Disconnect-fails/m-p/649653#M2423</guid>
      <dc:creator>michaelbrudevo1</dc:creator>
      <dc:date>2017-05-01T16:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: BLE Disconnect fails</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-Disconnect-fails/m-p/649654#M2424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have reported this issue to the SW team. I will update this thread when a resolution is available.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 17:32:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-Disconnect-fails/m-p/649654#M2424</guid>
      <dc:creator>gerardo_rodriguez</dc:creator>
      <dc:date>2017-10-30T17:32:58Z</dc:date>
    </item>
    <item>
      <title>Re: BLE Disconnect fails</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/BLE-Disconnect-fails/m-p/649655#M2425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This issue has been fixed in the&amp;nbsp;KW41Z SDK Maintenance Release which is out now.&amp;nbsp;You can download it from the &lt;A href="https://mcuxpresso.nxp.com/en/welcome"&gt;MCUXpresso SDK Builder&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;/P&gt;&lt;P&gt;Gerardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jan 2018 18:22:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/BLE-Disconnect-fails/m-p/649655#M2425</guid>
      <dc:creator>gerardo_rodriguez</dc:creator>
      <dc:date>2018-01-19T18:22:08Z</dc:date>
    </item>
  </channel>
</rss>

