<?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>Keep Advertising even after connection established</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/61269/keep-advertising-even-after-connection-established</link><description>Hello, 
 
 I am using nRF52840, SDK_16.0.0, SoftDevice S140 V7.0.1 and Segger for flashing the image. I am using ‘ble_app_blinky’. 
 I have a use case where peripheral need to keep advertisement even after connection establishment. 
 In this case when</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 06 May 2020 13:46:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/61269/keep-advertising-even-after-connection-established" /><item><title>RE: Keep Advertising even after connection established</title><link>https://devzone.nordicsemi.com/thread/249298?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 13:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08d25f5c-cfce-4d26-8cba-5f52e25a04a9</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Thank you for your inputs.&lt;/p&gt;
&lt;p&gt;In that case I will use&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_TOTAL_LINK_COUNT rather than defining one more macro LINK_TOTAL.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep Advertising even after connection established</title><link>https://devzone.nordicsemi.com/thread/249297?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 13:37:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1a437138-21e0-4cc0-ab65-f1e772634341</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/34880/nrf_sdh_ble_total_link_count-vs-peripheral_link_count-and-central_link_count"&gt;Yes&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;Yes:&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-be289587426c43d8b85219c1f109178f/pastedimage1588772207773v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep Advertising even after connection established</title><link>https://devzone.nordicsemi.com/thread/249296?ContentTypeID=1</link><pubDate>Wed, 06 May 2020 11:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c6ff6786-c6ea-470d-9d57-9b6be8e9a2c9</guid><dc:creator>beemavishnu</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have gone through “ble_app_multiperipheral” and modified code so that even after connection, peripheral can still advertise.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I modified NRF_SDH_BLE_PERIPHERAL_LINK_COUNT&amp;nbsp;and NRF_SDH_BLE_TOTAL_LINK_COUNT to 2. When I compiled and executed I got below error. I changed RAM_START and RAM_SIZE to the values mentioned in snapshot.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-be289587426c43d8b85219c1f109178f/pastedimage1588763988630v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With this changes I am able to connect and see Advertisement from the Peripheral.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;My last queries are&lt;/p&gt;
&lt;p&gt;1) Whether value of NRF_SDH_BLE_TOTAL_LINK_COUNT should be sum of NRF_SDH_BLE_PERIPHERAL_LINK_COUNT and NRF_SDH_BLE_CENTRAL_LINK_COUNT as it is used in NRF_BLE_QWRS_DEF(m_qwr, NRF_SDH_BLE_TOTAL_LINK_COUNT);&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;2) In&amp;nbsp;&lt;span&gt;ble_app_multiperipheral,&amp;nbsp;&lt;/span&gt;LINK_TOTAL is used in few places&amp;nbsp;NRF_SDH_BLE_TOTAL_LINK_COUNT is passed in&amp;nbsp;&lt;span&gt;NRF_BLE_QWRS_DEF(). To my understanding both are same. Correct me if I am wrong.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks &amp;amp; Regards&lt;/p&gt;
&lt;p&gt;Vishnu Beema&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep Advertising even after connection established</title><link>https://devzone.nordicsemi.com/thread/249295?ContentTypeID=1</link><pubDate>Tue, 05 May 2020 11:55:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4c6295ef-231d-4175-a52a-f1414ed1e3fc</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Exactly what error do you get?&amp;nbsp;What is&amp;nbsp;NRF_SDH_BLE_PERIPHERAL_LINK_COUNT set to in the sdk_config file?&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>