<?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>About the muti connection of NRF51</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/31237/about-the-muti-connection-of-nrf51</link><description>My SDK version is NRF51_9.00, softdeive 130, board nrf51822. 
 We want to confirm some questions about BLE muti connection 
 1. When NRF51 is scanning, could it connect with other device at that same time? 
 2. When NRF51 connects with one perpheral device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Mar 2018 11:29:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/31237/about-the-muti-connection-of-nrf51" /><item><title>RE: About the muti connection of NRF51</title><link>https://devzone.nordicsemi.com/thread/125713?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 11:29:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da3e4572-8e69-4498-bc89-1d17efd6ddc7</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I talked to our SDK team and they had the following to say about your case:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;em&gt;In principal, what he is trying to do is possible. The main issue is that he needs to adjust the db_discovery module, and each time there is a&amp;nbsp;SoftDevice call, if it returns busy, he needs to have some kind of retry mechanism.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;We are planning to include a new module inside db_discovery module for handling this but that is going to be included in a future version of the SDK.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;A possible ‘simple’ work around, is to wait for the end of the discovery before doing a security procedure on another link or even before scanning again&lt;/em&gt;.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;Ketil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the muti connection of NRF51</title><link>https://devzone.nordicsemi.com/thread/124898?ContentTypeID=1</link><pubDate>Mon, 19 Mar 2018 07:15:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ded5136-b979-449f-a883-835628eeb36a</guid><dc:creator>sq</dc:creator><description>&lt;p&gt;&amp;gt;&amp;gt;2. call API &amp;quot;sd_ble_gattc_primary_services_discover&amp;quot;to start to discover, &lt;br /&gt;&amp;gt;&amp;gt;then call API &amp;quot;sd_ble_gap_scan_start()&amp;quot;before discover complete event is coming.&amp;gt;This should work.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think so. my nrf51 run ble_central_and_peripheral example.&lt;/p&gt;
&lt;p&gt;I called call API &amp;quot;sd_ble_gattc_primary_services_discover&amp;quot;to start to discover, in HOST MCU side.&lt;br /&gt;then call API &amp;quot;sd_ble_gap_scan_start()&amp;quot;before discover complete event is coming.&lt;br /&gt;Sometimes the service discover is wrong, discover command seems be discard by NRF51 chip.(about 1/10).So I think these two APIs may be conflict with each other.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the muti connection of NRF51</title><link>https://devzone.nordicsemi.com/thread/123647?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 11:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbeac412-461c-47a6-b4dd-79a7c1abc22e</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;This will not work. You are&amp;nbsp;not able to perform scanning whilst connecting. You will need to wait till the connection is completed.&lt;/li&gt;
&lt;li&gt;This should work.&lt;/li&gt;
&lt;li&gt;This should work. Be careful to pass the correct conn_handle to sd_ble_gattc_primary_services_discover og sd_ble_gap_authenticate.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Ketil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the muti connection of NRF51</title><link>https://devzone.nordicsemi.com/thread/123532?ContentTypeID=1</link><pubDate>Fri, 09 Mar 2018 02:15:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a9cb1d7-3fdc-4b4e-ac8a-ba281d54f128</guid><dc:creator>sq</dc:creator><description>&lt;p&gt;Maybe my question is not good enough, whether it is a problem if I do like below.&lt;br /&gt;1. call API &amp;quot;sd_ble_gap_connect()&amp;quot; to connect, then call API &amp;quot;sd_ble_gap_scan_start()&amp;quot; to scan&lt;br /&gt;before connection success.&lt;br /&gt;2. call API &amp;quot;sd_ble_gattc_primary_services_discover&amp;quot;to start to discover, &lt;br /&gt;then call API &amp;quot;sd_ble_gap_scan_start()&amp;quot;before discover complete event is coming.&lt;br /&gt;3.call API &amp;quot;sd_ble_gap_authenticate()&amp;quot; to pair with peripheral1, then call API &amp;quot;sd_ble_gap_connect()&amp;quot;&amp;quot; to peripheral2&lt;br /&gt;before pair successfully with peripheral1.&lt;br /&gt;&lt;br /&gt;I build one task central1, another task for central2. so the situation above may occur.&lt;br /&gt;they sometimes cause problem according to my test.&lt;br /&gt;&lt;br /&gt;For some APIs, before their &lt;span class="short_text" id="result_box" lang="en"&gt;&lt;span class=""&gt;corresponding&lt;/span&gt;&lt;/span&gt; event coming. another API shouldn&amp;#39;t be called.&lt;br /&gt;Is it right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the muti connection of NRF51</title><link>https://devzone.nordicsemi.com/thread/123442?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 12:58:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:946bc687-53a4-410d-b1f9-2f024c2ce073</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you using the provided example in SDK 9.0 or have you written your own code?&lt;/p&gt;
&lt;p&gt;Anyways, I highly recommend that you change to SDK 11.0 and S130 V2.0.x. According to the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Findex.html&amp;amp;cp=4_0_8"&gt;SDK 11.0 release notes&lt;/a&gt; there were significant improvements made to the multilink functionality:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;** BLE **
- Multi-instance handling of Service client modules has been greatly 
  improved. The client examples now handle service discovery in the main
  application context. The main application context must manage which 
  client instance belongs to which connection link.
- The Multi-link Example has been modified to demonstrate multiple 
  client instances in a better way.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Please try to compile and test the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fble_sdk_app_multilink.html&amp;amp;cp=4_0_8_4_2_0_1"&gt;SDK 11.0 BLE Multi-link Example&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Ketil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the muti connection of NRF51</title><link>https://devzone.nordicsemi.com/thread/123410?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 11:09:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c554577f-daf2-44fa-b2e8-78f1c6111611</guid><dc:creator>sq</dc:creator><description>&lt;p&gt;I have test with sdk9.0 like this,&lt;/p&gt;
&lt;p&gt;1. Use nrf51 as central device, scan and connect with device1.&lt;br /&gt;2. After connected successfully, start to scan again, then start to discover service.&lt;br /&gt;3. I found the return value of discovering service is success, but sometimes &lt;strong&gt;the discover event is not coming.&lt;br /&gt;&lt;/strong&gt;4. If the discover event is success, pairing with device1, s&lt;strong&gt;ometimes the paring event is not coming.&lt;br /&gt;&lt;/strong&gt;5. So If nrf51 scanning and discovering(or pairing) at the same time, some event will be abnormal discard.&lt;strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;So If nrf51 is discovering the service with device1, it can&amp;#39;t scan at the same time.&lt;br /&gt;if nrf51 is pairing with device1, it can&amp;#39;t connect with device2 at the same time.&lt;br /&gt;Is it true?&lt;br /&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;if I update the sdk from 9 to 11, is it same?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thanks&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: About the muti connection of NRF51</title><link>https://devzone.nordicsemi.com/thread/123351?ContentTypeID=1</link><pubDate>Thu, 08 Mar 2018 07:54:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f917e0fe-5f31-4774-9d84-615c5cbdae29</guid><dc:creator>ketil</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, the nRF51822 can connect to multiple peripherals (up to eight) when running as a central in SDK 11.0 and S130. S132 is only for nRF52 devices. We have &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v11.0.0%2Fble_sdk_app_multilink.html&amp;amp;cp=4_0_8_4_2_0_1"&gt;an example&lt;/a&gt; demonstrating your exact questions.&lt;/p&gt;
&lt;p&gt;Ketil&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>