<?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>is it possible to switch from coded phy to normal phy  advertising before making a connection?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97969/is-it-possible-to-switch-from-coded-phy-to-normal-phy-advertising-before-making-a-connection</link><description>Using nrf5340 and NRF connect for Desktop 2.2.0. Both Coded phy and Normal phy advertising are working when being build with CONFIG_BT_CTRL_PHY_CODED=y and without it accordingly. 
 Any attempt to switch between these modes a fly fails on the step 3)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Mar 2023 08:58:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97969/is-it-possible-to-switch-from-coded-phy-to-normal-phy-advertising-before-making-a-connection" /><item><title>RE: is it possible to switch from coded phy to normal phy  advertising before making a connection?</title><link>https://devzone.nordicsemi.com/thread/416989?ContentTypeID=1</link><pubDate>Thu, 23 Mar 2023 08:58:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81e7ae85-7a26-4985-b2e7-c5b26156437e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Nick,&lt;/p&gt;
&lt;p&gt;Thank you for the update.&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_ADV_SET (default == 1) configures the number of advertisements sets you can create.&amp;nbsp;The only explanation I can think of is that the previous set failed to be deleted. Maybe the&amp;nbsp;bt_le_ext_adv_delete() returned with an error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is it possible to switch from coded phy to normal phy  advertising before making a connection?</title><link>https://devzone.nordicsemi.com/thread/416890?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 16:31:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:357b10f4-b12b-447e-8625-6434c741fa4f</guid><dc:creator>creek55</dc:creator><description>&lt;p&gt;Here is my prj ( I am using extended adv for Normal phy, while Coded phy requires extended by default, if I remember correctly). Nevertheless, I will try it with your suggestion. Also, I can make a minimal code sample to show the problem if still exists.&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;CONFIG_BT=y&lt;br /&gt;CONFIG_BT_PERIPHERAL=y&lt;br /&gt;#CONFIG_BT_DEVICE_NAME=&amp;quot;****&amp;quot;&lt;br /&gt;CONFIG_BT_CTLR_PHY_CODED=y&lt;br /&gt;CONFIG_BT_CTLR_ADV_EXT=y&lt;br /&gt;CONFIG_BT_USER_PHY_UPDATE=y&lt;/p&gt;
&lt;p&gt;CONFIG_BT_DEVICE_APPEARANCE=512&lt;br /&gt;CONFIG_BT_DEVICE_NAME_DYNAMIC=y&lt;/p&gt;
&lt;p&gt;CONFIG_BT_EXT_ADV=y&lt;br /&gt;CONFIG_BT_EXT_ADV_MAX_ADV_SET=2&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;CONFIG_DK_LIBRARY=y&lt;/p&gt;
&lt;p&gt;#CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=2&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Update: as soon as I have added&amp;nbsp;&lt;span&gt;CONFIG_BT_CTLR_ADV_SET=2&amp;nbsp;, I see no problems&amp;nbsp; Not sure what&amp;nbsp;CONFIG_BT_EXT_ADV_MAX_ADV_SET=2 is for then, but now alternating between Normal and Coded advertising works without a hitch. Thank you Vidar. !&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Nick&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: is it possible to switch from coded phy to normal phy  advertising before making a connection?</title><link>https://devzone.nordicsemi.com/thread/416795?ContentTypeID=1</link><pubDate>Wed, 22 Mar 2023 12:52:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fd31fcc-6636-445e-94cc-e7deb4955c0d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Are you able to check if the advertising create function returns with an error code in step 3? Also, please try to build with&amp;nbsp;CONFIG_BT_CTLR_ADV_SET=2 and see if you still get the same error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Vidar&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>