<?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>set gap parameters 2M Phy</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80322/set-gap-parameters-2m-phy</link><description>i am working on current consumption in nrf52832 sdk 17.2. 
 i have found 2M phy reduces the energy consumption as compared to 1M phy. 
 i want to set 2M phy GAP aparameter for advertising mode na dalso for connection gatt mode. how to do this pls assist</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 15 Oct 2021 11:55:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80322/set-gap-parameters-2m-phy" /><item><title>RE: set gap parameters 2M Phy</title><link>https://devzone.nordicsemi.com/thread/334334?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 11:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ed2651af-d164-47e5-955c-f0ca355235d3</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Yes, the connection is established on 1M. Then, you request to switch to 2M, if the other device also supports 2M and accepts to use 2M, then the connection will switch to using 2M.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set gap parameters 2M Phy</title><link>https://devzone.nordicsemi.com/thread/334254?ContentTypeID=1</link><pubDate>Fri, 15 Oct 2021 04:37:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d9bb75e-b4ec-425a-8398-e823ff852a69</guid><dc:creator>Ridhi</dc:creator><description>&lt;p&gt;so from the snippet u have shared does this means that now the connection phy is set to 2M?&lt;/p&gt;
&lt;p&gt;want to know by default was this value set to 1M?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set gap parameters 2M Phy</title><link>https://devzone.nordicsemi.com/thread/333909?ContentTypeID=1</link><pubDate>Wed, 13 Oct 2021 11:40:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5105b033-4bba-46fa-a657-94ebc4a642ec</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Call it in the BLE_GAP_EVT_CONNECTED event, in the&amp;nbsp;ble_evt_handler() function.&lt;/p&gt;
&lt;p&gt;Snippet:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;        case BLE_GAP_EVT_CONNECTED:
            NRF_LOG_INFO(&amp;quot;Connected.&amp;quot;);
            err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);
            APP_ERROR_CHECK(err_code);
            m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;
            err_code = nrf_ble_qwr_conn_handle_assign(&amp;amp;m_qwr, m_conn_handle);
            APP_ERROR_CHECK(err_code);

            NRF_LOG_INFO(&amp;quot;PHY update requested.&amp;quot;);
            ble_gap_phys_t const phys =
            {
                .rx_phys = BLE_GAP_PHY_2MBPS,
                .tx_phys = BLE_GAP_PHY_2MBPS,
            };
            err_code = sd_ble_gap_phy_update(p_ble_evt-&amp;gt;evt.gap_evt.conn_handle, &amp;amp;phys);
            APP_ERROR_CHECK(err_code);

            break;&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set gap parameters 2M Phy</title><link>https://devzone.nordicsemi.com/thread/333374?ContentTypeID=1</link><pubDate>Mon, 11 Oct 2021 06:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5a7c176-527c-4473-a3d6-36242dccaf82</guid><dc:creator>Ridhi</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;kindly tell where to add this function&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#gab845ddf7b56ef556ab9c2c74d5199ff8"&gt;sd_ble_gap_phy_update()&lt;/a&gt;&amp;nbsp;so that PHY for connection mode is set to 2M&amp;nbsp;in ble_app_template code nrf52832 sdk version 17.2 s132&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set gap parameters 2M Phy</title><link>https://devzone.nordicsemi.com/thread/332765?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 09:00:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3b613c8-3342-4bbc-bfea-45fbc00895e5</guid><dc:creator>Sigurd</dc:creator><description>[quote user="RIDHIMA"]why is it so?[/quote]
&lt;p&gt;I guess&amp;nbsp;with the limited data on the primary advertising channels, there is minimal to no benefit using that.&lt;/p&gt;
&lt;p&gt;You can change to 2M after connecting, using &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.3.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html#gab845ddf7b56ef556ab9c2c74d5199ff8"&gt;sd_ble_gap_phy_update()&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set gap parameters 2M Phy</title><link>https://devzone.nordicsemi.com/thread/332716?ContentTypeID=1</link><pubDate>Wed, 06 Oct 2021 04:42:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14967260-ef79-40a6-a8cb-1b892f9705b8</guid><dc:creator>Ridhi</dc:creator><description>&lt;p&gt;why is it so? and then how can i set 2M phy for advertsing or in connectable mode share the code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: set gap parameters 2M Phy</title><link>https://devzone.nordicsemi.com/thread/332592?ContentTypeID=1</link><pubDate>Tue, 05 Oct 2021 11:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1dd530ff-797a-42a4-8de3-5dde5577fab8</guid><dc:creator>Sigurd</dc:creator><description>[quote user=""]i want to set 2M phy GAP aparameter for advertising mode[/quote]
&lt;p&gt;You can only do&amp;nbsp;primary adverting on 1M PHY and Coded PHY. Primary advertising&lt;span&gt;&amp;nbsp;on&amp;nbsp;&lt;/span&gt;2M PHY is not supported by the spec.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>