<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Change Scan Parameters using NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73820/change-scan-parameters-using-ncs</link><description>What I&amp;#39;m trying to do, is probably very simple. I hope. 
 In the following code which works fine. 
 I want to scan not using Coded PHY 
 Then change back to using Coded PHY 
 I&amp;#39;d be grateful if you would show me the proper way to achieve this please.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Apr 2021 11:52:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73820/change-scan-parameters-using-ncs" /><item><title>RE: Change Scan Parameters using NCS</title><link>https://devzone.nordicsemi.com/thread/306081?ContentTypeID=1</link><pubDate>Wed, 21 Apr 2021 11:52:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:798731d3-c652-4285-bcd4-0d21dbcee9d7</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, it is possible. You can start scanning in 1Mbit then stop and update the scan parameters for Coded PHY then start scanning again.&lt;/p&gt;
&lt;p&gt;In the example, only coded PHY is enabled. To enable coded PHY:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;.options  = BT_LE_SCAN_OPT_CODED | BT_LE_SCAN_OPT_NO_1M&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Setting&amp;nbsp;BT_LE_SCAN_OPT_NO_1M will disable 1Mbit, NO_1M means 1Mbit Phy disable:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt; /**
     * @brief Disable scan on 1M phy.
     *
     * @note Requires @ref BT_LE_SCAN_OPT_CODED.
     */
    BT_LE_SCAN_OPT_NO_1M = BIT(3),&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To use 1M, you can try setting options to NULL.&lt;/p&gt;
&lt;p&gt;To update the scan parameters use the function &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/include/bluetooth/scan.html?highlight=bt_scan_params_set#c.bt_scan_params_set" rel="noopener noreferrer" target="_blank"&gt;bt_scan_params_set&lt;/a&gt;().&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Scan Parameters using NCS</title><link>https://devzone.nordicsemi.com/thread/305461?ContentTypeID=1</link><pubDate>Mon, 19 Apr 2021 09:22:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bd26433-11ee-4f43-aa62-d5fae2e76952</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Thanks for that.&lt;/p&gt;
&lt;p&gt;It doesn&amp;#39;t seem quite what I&amp;#39;m after. The scan params for coded PHY and 1mbit&amp;nbsp; look like they are both enabled&lt;/p&gt;
&lt;p&gt;I need to scan one and then the other.&lt;/p&gt;
&lt;p&gt;Is this possible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Scan Parameters using NCS</title><link>https://devzone.nordicsemi.com/thread/305136?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 14:14:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:152965e7-9fe1-49f9-b2c7-bd2e8cf0817a</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I suggest you have a look at this &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/samples/bluetooth/central_hr_coded/README.html?highlight=coded" rel="noopener noreferrer" target="_blank"&gt;example&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Scan Parameters using NCS</title><link>https://devzone.nordicsemi.com/thread/304684?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 01:25:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0090e2c-cb31-463a-8b2d-61720ce2904d</guid><dc:creator>John</dc:creator><description>&lt;p&gt;Our system will hopefully never be required to connect to&amp;nbsp; device.&lt;/p&gt;
&lt;p&gt;So al that I require is to:&lt;/p&gt;
&lt;p&gt;stop scanning&lt;/p&gt;
&lt;p&gt;Change to 1Mbit&lt;/p&gt;
&lt;p&gt;Start scanning&lt;/p&gt;
&lt;p&gt;Configurable Delay&lt;/p&gt;
&lt;p&gt;stop scanning&lt;/p&gt;
&lt;p&gt;Change to Coded PHY&lt;/p&gt;
&lt;p&gt;Start&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change Scan Parameters using NCS</title><link>https://devzone.nordicsemi.com/thread/304285?ContentTypeID=1</link><pubDate>Mon, 12 Apr 2021 13:04:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd4320b3-2095-43c8-b7be-031bffe4b835</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;If I understand you correctly, you want to scan oin 1Mbit and then change to CODED PHY while in a connection? or do you want to switch between the two when scanning?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;More details about you setup and what you are trying to do will be helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>