<?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>Device Connection count  changes</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70791/device-connection-count-changes</link><description>Hai, I want to connect central to a single peripheral and after certain operations, I want to connect central to more peripherals 
 
 I tried with, 
 
 #define NRF_SDH_BLE_CENTRAL_LINK_COUNT 1 
 and after some operations, I had changed to 
 #define NRF_SDH_BLE_CENTRAL_LINK_COUNT</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Feb 2021 18:34:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70791/device-connection-count-changes" /><item><title>RE: Device Connection count  changes</title><link>https://devzone.nordicsemi.com/thread/293425?ContentTypeID=1</link><pubDate>Mon, 08 Feb 2021 18:34:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da6683cd-eec4-431e-87f3-8f65c5f9fe9b</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="Venkat RAM"]Kindly note Before the FDS success message my device wants to connect with a single device and ONLY after the fds Success message&amp;nbsp;&lt;span&gt;my device wants to connect with multiple(8)&lt;/span&gt;&lt;span&gt;&amp;nbsp;device&amp;nbsp;&lt;/span&gt;[/quote]
&lt;p&gt;Yes, I understand, just make sure that you don&amp;#39;t start the BLE scanning again when you connect the first device. Only start the scanning again when you get the FDS success message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Connection count  changes</title><link>https://devzone.nordicsemi.com/thread/293023?ContentTypeID=1</link><pubDate>Fri, 05 Feb 2021 06:12:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a7552dc-7a8e-44a0-be51-009d89437742</guid><dc:creator>Venkat RAM</dc:creator><description>&lt;p&gt;Hai Sigurd, I will explain my bug in detail&lt;/p&gt;
&lt;p&gt;My Nrf52840 should connect with a maximum of only one device and&amp;nbsp; through the one device I will; write some data in FDS and only after the success message from the FDS write operation my nrf52840device able to connect with 8 peripheral&amp;nbsp; devices&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kindly note Before the FDS success message my device wants to connect with a single device and ONLY after the fds Success message&amp;nbsp;&lt;span&gt;my device wants to connect with multiple(8)&lt;/span&gt;&lt;span&gt;&amp;nbsp;device&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Connection count  changes</title><link>https://devzone.nordicsemi.com/thread/292691?ContentTypeID=1</link><pubDate>Wed, 03 Feb 2021 13:40:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a692488b-3f2c-4ac4-8039-526d7ec986f2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Just keep&amp;nbsp;the&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_CENTRAL_LINK_COUNT&amp;nbsp;at 8. If you plan to connect to 8 devices, then you should set this define&amp;nbsp;to 8 from the start.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Connection count  changes</title><link>https://devzone.nordicsemi.com/thread/292380?ContentTypeID=1</link><pubDate>Tue, 02 Feb 2021 07:57:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0454c30d-3a3c-48b5-a3b0-1e9ce1d0183b</guid><dc:creator>Venkat RAM</dc:creator><description>&lt;p&gt;Yes, I am using that same event&amp;nbsp;&lt;span&gt;FDS_EVT_WRITE&amp;nbsp; and start scan again but now how can I change the&amp;nbsp; no of count link,&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I had already&amp;nbsp; given as&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;// &amp;lt;o&amp;gt; NRF_SDH_BLE_CENTRAL_LINK_COUNT - Maximum number of central links. &lt;br /&gt;#ifndef NRF_SDH_BLE_CENTRAL_LINK_COUNT&lt;br /&gt;#define NRF_SDH_BLE_CENTRAL_LINK_COUNT 1&lt;br /&gt;#endif&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;in my sdk_config and&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;BLE_LBS_C_ARRAY_DEF(m_lbs_c, NRF_SDH_BLE_CENTRAL_LINK_COUNT); /**&amp;lt; LED button client instances. */&lt;/p&gt;
&lt;p&gt;BLE_DB_DISCOVERY_ARRAY_DEF(m_db_disc, NRF_SDH_BLE_CENTRAL_LINK_COUNT); /**&amp;lt; Database discovery module instances. */&lt;br /&gt;NRF_BLE_SCAN_DEF(m_scan); /**&amp;lt; Scanning Module instance. */&lt;br /&gt;NRF_BLE_GQ_DEF(m_ble_gatt_queue, /**&amp;lt; BLE GATT Queue instance. */&lt;br /&gt; NRF_SDH_BLE_CENTRAL_LINK_COUNT,&lt;br /&gt; NRF_BLE_GQ_QUEUE_SIZE);&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;in my main file&lt;/p&gt;
&lt;p&gt;now after using the event&amp;nbsp;&lt;span&gt;FDS_EVT_WRITE and scan again ,i dont now how to change the&amp;nbsp;Maximum number of central links. again&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><item><title>RE: Device Connection count  changes</title><link>https://devzone.nordicsemi.com/thread/292231?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2021 13:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5daabed0-d6f2-470d-a707-077bb58efdd1</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Venkat RAM"]and after storing the application data&amp;nbsp; I want to connect with multiple links[/quote]
&lt;p&gt;&amp;nbsp;Then maybe you can use&amp;nbsp;the event FDS_EVT_WRITE&amp;nbsp; in the &lt;span&gt;the registered FDS event handler function&amp;nbsp;&lt;/span&gt;to start the scanning again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Connection count  changes</title><link>https://devzone.nordicsemi.com/thread/292126?ContentTypeID=1</link><pubDate>Mon, 01 Feb 2021 07:58:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c177d276-6418-49c4-b364-ce0524744a50</guid><dc:creator>Venkat RAM</dc:creator><description>&lt;p&gt;Hai Sigurd, the operations are just saving application data to my FDS via a custom mobile app(Using Bluetooth&amp;nbsp; in mobile) and after storing the application data&amp;nbsp; I want to connect with multiple links&lt;/p&gt;
&lt;p&gt;Here, my Conditional case only after storing the application data I should connect with multiple device and While writing the application data in fds, I want to connect with a single device, till now I can&amp;#39;t do It kindly help me&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Connection count  changes</title><link>https://devzone.nordicsemi.com/thread/291927?ContentTypeID=1</link><pubDate>Fri, 29 Jan 2021 08:56:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40517bf4-1e4e-4f8c-b851-9157daa79c16</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Scanning is by default stopped when you connect to a device. After you have connected, you get the event&amp;nbsp;BLE_GAP_EVT_CONNECTED. In the&amp;nbsp;ble_app_multilink_central example, the scanner is explicitly started again when handling the BLE_GAP_EVT_CONNECTED event.&lt;br /&gt;&lt;br /&gt;You said that after some operations, you want to connect to more&amp;nbsp;peripherals. What are these operations? When these operations are completed, then this is when you need to start the scanner again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Connection count  changes</title><link>https://devzone.nordicsemi.com/thread/291441?ContentTypeID=1</link><pubDate>Wed, 27 Jan 2021 08:37:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ff96ab8-8d27-4d23-81af-79a3c793e4bf</guid><dc:creator>Venkat RAM</dc:creator><description>&lt;p&gt;Hai Sigurd,&lt;br /&gt;&amp;nbsp;Yes, I am using&amp;nbsp;ble_app_multilink_central fro testing with 16.X.X&amp;nbsp; SDK along with PCA10056&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;my&amp;nbsp; need was my central connect with a single peripheral, and after some operation, my sensor&amp;nbsp; need to connect with multiple peripheral (which is 8 links), &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The function ble_conn_state_central_conn_count() returns the count of link with peripherals, kindly help me&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt; Thanks in advance&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Device Connection count  changes</title><link>https://devzone.nordicsemi.com/thread/290948?ContentTypeID=1</link><pubDate>Mon, 25 Jan 2021 09:01:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cecc24f9-0ede-455f-86b6-92812e806aa9</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What SDK version are you using ? What example are you testing? Is it&amp;nbsp;ble_app_multilink_central?&lt;/p&gt;
&lt;p&gt;You should set&amp;nbsp;NRF_SDH_BLE_CENTRAL_LINK_COUNT to the max number of devices you want to connect to at the same time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t want to connect to a new device right after connecting to the first device, you need make sure that you don&amp;#39;t resume scanning in the handling of the&amp;nbsp;BLE_GAP_EVT_CONNECTED event in&amp;nbsp;ble_evt_handler().&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]and after certain operations, I want to&amp;nbsp;&lt;span&gt;connect central to more peripherals&lt;/span&gt;[/quote]
&lt;p&gt;&amp;nbsp;Then after certain operations, you call&amp;nbsp;scan_start(). You can check how many devices you are connect to with&amp;nbsp;ble_conn_state_central_conn_count().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>