<?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>Restardting the advertisement on nRF52840-DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/102087/restardting-the-advertisement-on-nrf52840-dk</link><description>The issue is restarting the advertising on the nRF52840-DK board. 
 I wanted to use the directed advertisement feature, for that I just first tried to restart the advertising. In my code, I have defined the advertising parameters as follows. 
 After that</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 25 Jul 2023 10:57:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/102087/restardting-the-advertisement-on-nrf52840-dk" /><item><title>RE: Restardting the advertisement on nRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/438048?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 10:57:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f222e8b-929c-4cbe-84b8-905fd671b401</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The BLE host APIs are the same regardless of&amp;nbsp;what controller you use. This is why you can use the Softdevice controller with the Zephyr samples as well.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can find the Kconfig symbols for the Softdevice controller here:&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/controller/Kconfig"&gt;https://github.com/nrfconnect/sdk-nrf/blob/main/subsys/bluetooth/controller/Kconfig&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restardting the advertisement on nRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/438038?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 10:19:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3da35acc-eb86-45f8-9a07-f4ef529e874a</guid><dc:creator>ujur007</dc:creator><description>&lt;blockquote&gt;
&lt;p&gt;&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/102087/restardting-the-advertisement-on-nrf52840-dk/438036"]The Softdevice controller is selected by default in all BT samples, including those in the Zephyr repo, if you are using the nRF Connect SDK.&amp;nbsp;[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Ok. I think, I did not understand which controller is used by default from the following webpage the last section mentions it.&lt;/p&gt;
&lt;p&gt;&lt;a id="" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/ble/index.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/protocols/ble/index.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also, can you tell what difference it will make in BLE API&amp;#39;s if I am using either controller? I have just migrated the application from Zephyr to nRF connect SDK Zephyr.&lt;/p&gt;
&lt;p&gt;Above Kconfig options are too much for me, if you have some advance feature&amp;#39;s documentation, do let me know.&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restardting the advertisement on nRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/438036?ContentTypeID=1</link><pubDate>Tue, 25 Jul 2023 10:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c08c8b3a-9ec1-4a9b-af3e-896a1858b48e</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;span&gt;Sorry, I just assumed you didn&amp;#39;t have CONFIG_BT_CENTRAL enabled. With the central role enabled, you also need to&amp;nbsp;increase CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT as it defaults to &amp;#39;1&amp;#39; when CONFIG_BT_CENTRAL=y. However, you must leave at least one connection to the central. So if&amp;nbsp;&amp;nbsp;CONFIG_BT_MAX_CONN=10, the most you can set&amp;nbsp;CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT to is &amp;#39;9&amp;#39;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The Softdevice controller is selected by default in all BT samples, including those in the Zephyr repo, if you are using the nRF Connect SDK.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restardting the advertisement on nRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/437947?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 17:57:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b668f290-2983-491c-a94a-cab6b3b4bbad</guid><dc:creator>ujur007</dc:creator><description>&lt;p&gt;I think the problem is solved. I have some questions.&lt;/p&gt;
&lt;p&gt;I am not using Nordic Softdevice controller.&amp;nbsp; As most of the samples by default use Zephyr BLE controller..&lt;/p&gt;
&lt;p&gt;Also, CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT was set to 1. When I put that in my prj.confing and set it to 10, I got error stating&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;/ncs/v2.0.0/zephyr/include/zephyr/toolchain/gcc.h:77:36: error: static assertion failed: &amp;quot;&amp;quot;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 77 | #define BUILD_ASSERT(EXPR, MSG...) _Static_assert(EXPR, &amp;quot;&amp;quot; MSG)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; |&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ^~~~~~~~~~~~~~&lt;br /&gt;/home/ujjval/ncs/v2.0.0/nrf/subsys/bluetooth/controller/hci_driver.c:51:1: note: in expansion of macro &amp;#39;BUILD_ASSERT&amp;#39;&lt;br /&gt;&amp;nbsp;&amp;nbsp; 51 | BUILD_ASSERT(!IS_ENABLED(CONFIG_BT_CENTRAL) ||&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Then I commented the line CONFIG_BT_CENTRAL=y, that solved this error.&lt;/p&gt;
&lt;p&gt;I can&amp;#39;t use both central and peripheral at once when I want to turn on multiple connections right?&lt;/p&gt;
&lt;p&gt;I am not sure the following two options also may have solved the error.&lt;/p&gt;
&lt;p&gt;CONFIG_BT_MAX_CONN=10&lt;br /&gt;CONFIG_BT_MAX_SCO_CONN=10&lt;/p&gt;
&lt;p&gt;Or the above mentioned...&lt;/p&gt;
&lt;p&gt;CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT=10&lt;/p&gt;
&lt;/blockquote&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restardting the advertisement on nRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/437783?ContentTypeID=1</link><pubDate>Mon, 24 Jul 2023 06:58:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:05fadef8-4b95-48d5-9a08-205444b8a500</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please check what the&amp;nbsp;CONFIG_BT_CTLR_SDC_PERIPHERAL_COUNT symbol is set to in&amp;nbsp;your generated &amp;quot;.config&amp;quot; file.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/3240.pastedimage1690181885411v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This symbol says how many peripheral links the Softdevice controller is configured to support.&amp;nbsp;&lt;/p&gt;
[quote user="ujur007"]BTW, I have disabled some of the peripherals/gpio&amp;#39;s for low-power application. I hope that has nothing to do with the above error.[/quote]
&lt;p&gt;Thanks, but this should not affect the BT stack configuration.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restardting the advertisement on nRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/437750?ContentTypeID=1</link><pubDate>Sat, 22 Jul 2023 08:16:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23a57b1a-1bcc-4264-882f-800112db44fa</guid><dc:creator>ujur007</dc:creator><description>&lt;p&gt;I have make changes to proj.conf and added &lt;/p&gt;
&lt;p&gt;&lt;br /&gt;CONFIG_BT_MAX_CONN=10&lt;/p&gt;
&lt;p&gt;still, I get the above error.&lt;/p&gt;
&lt;p&gt;BTW, I have disabled some of the peripherals/gpio&amp;#39;s for low-power application. I hope that has nothing to do with the above error.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Restardting the advertisement on nRF52840-DK</title><link>https://devzone.nordicsemi.com/thread/437646?ContentTypeID=1</link><pubDate>Fri, 21 Jul 2023 11:27:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:047d2e19-bd86-4722-9c3c-d6b8f1ca9028</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The error is&amp;nbsp;CONNECTION LIMIT EXCEEDED (0x9) because you are attempting to start connectable advertising while you are in a connection. If you want to support more connections, you can increase the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_MAX_CONN"&gt;CONFIG_BT_MAX_CONN&lt;/a&gt;&amp;nbsp;value in your prj.conf file.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>