<?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 回复： Why Scan Window and Scan Interval Params in Connection Request Params in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1663101#M15066</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194348"&gt;@nidhintomy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the connection failed,&amp;nbsp;it will scan until connect to the scanned device. So in my opinion, it will be 500ms. And you can test it as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Gavin&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 05 Jun 2023 02:53:04 GMT</pubDate>
    <dc:creator>Gavin_Jia</dc:creator>
    <dc:date>2023-06-05T02:53:04Z</dc:date>
    <item>
      <title>Why Scan Window and Scan Interval Params in Connection Request Params</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1658879#M15015</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I tested BLE Central with different values in .scanInterval and .scanWindow params of gapConnectionRequestParameters_t structure. And this change value affected connection establishment time.&lt;/P&gt;&lt;P&gt;But this structure is only used after we found a device in Device Discovery Procedure and try to connect to it.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;                /* Connect with the previously scanned peer device */
                if (mFoundDeviceToConnect)
                {
                    (void)App_Connect(&amp;amp;gConnReqParams, BleApp_ConnectionCallback);
                }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual scan window and interval are in gapScanningParameters_t structure. And this is used for scanning.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Then how the .scanInterval and .scanWindow params of gapConnectionRequestParameters_t structure affect scanning?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;BR /&gt;Nidhin&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 05:43:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1658879#M15015</guid>
      <dc:creator>nidhintomy</dc:creator>
      <dc:date>2023-05-29T05:43:41Z</dc:date>
    </item>
    <item>
      <title>回复： Why Scan Window and Scan Interval Params in Connection Request Params</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1659034#M15016</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194348"&gt;@nidhintomy&lt;/a&gt; ，&lt;/P&gt;
&lt;P&gt;Hope you are doing well!&lt;/P&gt;
&lt;P&gt;In your case, you found that changing the values of the scan interval and scan window parameters affects the connection establishment time. This is because the connection establishment time is determined by the time it takes for the central device to find the peripheral device and connect to it. Since the scan interval and scan window parameters affect how often the central device scans for advertisement packets, connection establishment time is also somewhat affected.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Gavin&lt;/P&gt;</description>
      <pubDate>Mon, 29 May 2023 08:49:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1659034#M15016</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2023-05-29T08:49:21Z</dc:date>
    </item>
    <item>
      <title>回复： Why Scan Window and Scan Interval Params in Connection Request Params</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1659618#M15021</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203261"&gt;@Gavin_Jia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am fine. Thanks for reply.&lt;/P&gt;&lt;P&gt;Here my question was about importance of setting scan interval and scan window parameters in connection request parameter. We already set scan interval and scan window parameters in scan request parameters. Then why we need to set it again in connection request parameter.&lt;/P&gt;&lt;P&gt;E.g., In frdmkw38_adv_ext_central_bm project/source/app_config.c line no.54&amp;amp;55 set scan interval and scan window parameters in scan request parameters. In line no.64&amp;amp;65 set scan interval and scan window parameters in connection request parameters.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Nidhin&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 May 2023 07:42:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1659618#M15021</guid>
      <dc:creator>nidhintomy</dc:creator>
      <dc:date>2023-05-30T07:42:34Z</dc:date>
    </item>
    <item>
      <title>回复： Why Scan Window and Scan Interval Params in Connection Request Params</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1660404#M15031</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194348"&gt;@nidhintomy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;We discover&amp;nbsp;devices via scanning, but when the device is found, we need to initiate the connection.&lt;/P&gt;
&lt;P&gt;The connection procedure also needs to scan the advertising package first, then initiate the connection request, so gap connection request need the parameters&amp;nbsp;&lt;U&gt;&lt;EM&gt;&lt;STRONG&gt;scanInterval and .scanWindow&lt;SPAN&gt;&amp;nbsp;.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/U&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Gavin_Jia_0-1685508802901.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/225554iA26836996C42A3B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Gavin_Jia_0-1685508802901.png" alt="Gavin_Jia_0-1685508802901.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Gavin&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 04:53:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1660404#M15031</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2023-05-31T04:53:42Z</dc:date>
    </item>
    <item>
      <title>回复： Why Scan Window and Scan Interval Params in Connection Request Params</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1660500#M15033</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203261"&gt;@Gavin_Jia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That means if i set .scanInterval and .scanWindow in scan req params as 500ms and set .scanInterval and .scanWindow in connection req params as 1000ms, then the device will scan at 500ms until peripheral device found. After it will scan at 1000ms until device get connected.&lt;/P&gt;&lt;P&gt;So what if the connection failed, is device going to scan at 1000ms ?&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Nidhin&lt;/P&gt;</description>
      <pubDate>Wed, 31 May 2023 07:00:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1660500#M15033</guid>
      <dc:creator>nidhintomy</dc:creator>
      <dc:date>2023-05-31T07:00:03Z</dc:date>
    </item>
    <item>
      <title>回复： Why Scan Window and Scan Interval Params in Connection Request Params</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1663101#M15066</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/194348"&gt;@nidhintomy&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the connection failed,&amp;nbsp;it will scan until connect to the scanned device. So in my opinion, it will be 500ms. And you can test it as well.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Gavin&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 02:53:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1663101#M15066</guid>
      <dc:creator>Gavin_Jia</dc:creator>
      <dc:date>2023-06-05T02:53:04Z</dc:date>
    </item>
    <item>
      <title>回复： Why Scan Window and Scan Interval Params in Connection Request Params</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1663141#M15068</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/203261"&gt;@Gavin_Jia&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;</description>
      <pubDate>Mon, 05 Jun 2023 05:20:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/Why-Scan-Window-and-Scan-Interval-Params-in-Connection-Request/m-p/1663141#M15068</guid>
      <dc:creator>nidhintomy</dc:creator>
      <dc:date>2023-06-05T05:20:02Z</dc:date>
    </item>
  </channel>
</rss>

