<?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: Does KW38 handle connection events during active scan window? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1082594#M57576</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Federico, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Supervision Timeout is defined like so in the Bluetooth Core Specification V5.0:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The connSupervisionTimeout shall be a multiple&lt;/P&gt;&lt;P&gt;of 10 ms in the range of 100 ms to 32.0 s and it shall be larger than&lt;/P&gt;&lt;P&gt;(1 + connSlaveLatency) * connInterval * 2.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Where the Slave Latency is defined as:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The connSlaveLatency parameter defines the number of consecutive connection events that the slave device is not required to listen to the master.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It should increase every time a new device connects to the central, starting at 0 when there's only one connected device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, for a single connection (Slave Latency of 0) with a connection interval of 600 ms the formula would result in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((1 + 0)*600*2)=1,200 ms&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you 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>Fri, 14 Aug 2020 21:40:01 GMT</pubDate>
    <dc:creator>Sebastian_Del_Rio</dc:creator>
    <dc:date>2020-08-14T21:40:01Z</dc:date>
    <item>
      <title>Does KW38 handle connection events during active scan window?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1082593#M57575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using KW38 as central and peripheral devices. MCUXpresso SDK is 2.6.6.&lt;/P&gt;&lt;P&gt;The central is able to connect to up to multiple peripheral devices. The scan window is 1000ms, while the scan interval is 2000ms (scan duty cycle is 50%). The central is capable of connecting to multiple peripherals serially, where the flow is: scan is started, device found scan event is received, scan is stopped, connection is performed, and back to the beginning.&lt;/P&gt;&lt;P&gt;So, multiple connections are maintained in parallel during scanning. The connection interval is 600ms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am observing that, if I set supervisor timeout equal to 1220 seconds (something more that 2*connection interval), it can happen that connections times out. Instead, if I set it to 1830 (3*connInt), they do not time out.&lt;/P&gt;&lt;P&gt;I checked that, if scan is disabled after devices' connections, timeout does not occur.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So my question is: is KW38 capable of managing connections events during active scan window?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From my tests, it seems it does not: in worst case, inside a 1 second long scan window there could be up to 2 connection events. If they are not served, the third connection event will be. This means the supervisor timeout must be at least 3 * connection interval.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Aug 2020 08:00:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1082593#M57575</guid>
      <dc:creator>FedericoWegher</dc:creator>
      <dc:date>2020-08-11T08:00:44Z</dc:date>
    </item>
    <item>
      <title>Re: Does KW38 handle connection events during active scan window?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1082594#M57576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Federico, I hope you're doing well!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Supervision Timeout is defined like so in the Bluetooth Core Specification V5.0:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The connSupervisionTimeout shall be a multiple&lt;/P&gt;&lt;P&gt;of 10 ms in the range of 100 ms to 32.0 s and it shall be larger than&lt;/P&gt;&lt;P&gt;(1 + connSlaveLatency) * connInterval * 2.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Where the Slave Latency is defined as:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;The connSlaveLatency parameter defines the number of consecutive connection events that the slave device is not required to listen to the master.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;It should increase every time a new device connects to the central, starting at 0 when there's only one connected device.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, for a single connection (Slave Latency of 0) with a connection interval of 600 ms the formula would result in:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((1 + 0)*600*2)=1,200 ms&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if you 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>Fri, 14 Aug 2020 21:40:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1082594#M57576</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-08-14T21:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Does KW38 handle connection events during active scan window?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1082595#M57577</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;Thank you for your reply, but it does not reply to my question.&lt;/P&gt;&lt;P&gt;I already know the Supervision timeout definition, as given that I am using 0 for latency, the 1220ms value I use is compliant to the standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question was: is a connection event handled by central device in case it occurs during its active scan window?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2020 15:37:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1082595#M57577</guid>
      <dc:creator>FedericoWegher</dc:creator>
      <dc:date>2020-08-25T15:37:21Z</dc:date>
    </item>
    <item>
      <title>Re: Does KW38 handle connection events during active scan window?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1082596#M57578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Federico,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The BLE stack implemented in the KW38 is designed to manage the timing requirements of the Bluetooth Low Energy protocol.&lt;/P&gt;&lt;P&gt;The supervision timeout&amp;nbsp;should&amp;nbsp;be updated to prevent possible disconnections caused by scheduling conflicts. The stack then takes this interval to correctly schedule event handling and other stack necessities.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For more information and development recommendations, could you please take a look at the BLE Application Developer's Guide, included in the KW38's documentation package:&lt;/P&gt;&lt;P&gt;&amp;lt;…\SDK_2.6.6_FRDM-KW38_doc\docs\wireless\Bluetooth\Bluetooth Low Energy Application Developer's Guide.pdf&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.&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>Wed, 26 Aug 2020 18:11:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1082596#M57578</guid>
      <dc:creator>Sebastian_Del_Rio</dc:creator>
      <dc:date>2020-08-26T18:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Does KW38 handle connection events during active scan window?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1132832#M57937</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/29833"&gt;@FedericoWegher&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;I did some tests and I reproduced the issue observed by you. I have opened and internal ticket for further investigations. I will come back to you with details as soon as I will have any news.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Anca&lt;/P&gt;</description>
      <pubDate>Tue, 01 Sep 2020 05:24:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1132832#M57937</guid>
      <dc:creator>anca_codreanu</dc:creator>
      <dc:date>2020-09-01T05:24:12Z</dc:date>
    </item>
    <item>
      <title>Re: Does KW38 handle connection events during active scan window?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1151524#M58042</link>
      <description>&lt;P&gt;Hello. Do you have any update?&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Federico&lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 10:39:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Does-KW38-handle-connection-events-during-active-scan-window/m-p/1151524#M58042</guid>
      <dc:creator>FedericoWegher</dc:creator>
      <dc:date>2020-09-10T10:39:32Z</dc:date>
    </item>
  </channel>
</rss>

