<?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>How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17932/how-to-connect-multiple-peers-in-a-row</link><description>Hello 
 My nRF51 with S120 BLE stack is running as central. I want to connect 3 other nRF51 peripherals at the same time. So in the first step I did a scan and stored the regarding peer_addr.addr.
Later on, I want to connect all the stored peripherals</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Nov 2016 09:48:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17932/how-to-connect-multiple-peers-in-a-row" /><item><title>RE: How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/thread/69139?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 09:48:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09938c36-ab2e-4678-b2d3-56f09c8008c5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;In the ble_evt handler, you will get a &lt;code&gt;BLE_GAP_EVT_CONNECTED&lt;/code&gt; event when a connection has been established. You can then initiate the next connection from the handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/thread/69138?ContentTypeID=1</link><pubDate>Thu, 24 Nov 2016 09:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cfdf1fb-a1f3-47f9-98aa-151886b1d497</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Yes, I checked the two addresses. They are correct. It seems that the &amp;quot;connection request&amp;quot; (call from sd_ble_gap_connect(...) ) comes to fast. Do I have to wait until the first connection is established properly? If yes, how can I achive this &amp;quot;wait&amp;quot; function in a none blocking way?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/thread/69137?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 16:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2d6d026-255d-42ab-83d3-a962f4b85783</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Have you checked that &lt;em&gt;peer_addr&lt;/em&gt; contains the correct address after you call memcpy?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/thread/69134?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 15:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d7eab07-6277-4b1c-be17-e9b60b1b2fe3</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Yes, MAX_CLIENTS is set to 8 --&amp;gt; and DEVICE_MANAGER_MAX_CONNECTIONS is set to MAX_CLIENTS. I can also see, that clientConnect(...) is called two times. But the depending DM_EVT_CONNECTION event in the device_manager_evt_handler is entered only once. So &lt;code&gt;m_networkInfo.device[i].connected&lt;/code&gt; is set true for two known devices. This is done in a user menu, where the user can select peers he want to connect from a list. There also the ble scanning for new devices is done.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/thread/69131?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 15:17:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17ba834f-0a0d-49bc-aba8-fa55b2e989e9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Can you upload more of your main file? &lt;code&gt;MAX_CLIENTS&lt;/code&gt; is set &amp;gt; 1 and &lt;code&gt;m_networkInfo.device[i].connected&lt;/code&gt; is set to 1 somewhere in your code?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/thread/69133?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 15:11:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9c18103a-c0af-443e-b175-926296de62db</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Yes, I am using the device manager. DEVICE_MANAGER_MAX_CONNECTIONS is set to 8. So there should be no problem when connecting two different devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/thread/69132?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 15:08:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3258a51d-5e4f-4059-aeb5-7f3960329394</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Are you using device manager? If so, what have you set &lt;code&gt;DEVICE_MANAGER_MAX_CONNECTIONS&lt;/code&gt; to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/thread/69136?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 15:01:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a42766a1-38b2-487a-ab2f-d8b718268735</guid><dc:creator>Andreas</dc:creator><description>&lt;p&gt;Hi Jorgen, I am using the SDK 8.1.0. I knwo it is a little bit old. But it is a big project that is already in production. So at the moment it is not possible to change the SDK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to connect multiple peers in a row</title><link>https://devzone.nordicsemi.com/thread/69135?ContentTypeID=1</link><pubDate>Wed, 23 Nov 2016 14:59:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eaea2166-bcb2-4364-884c-48b95a028bc4</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which SDK and softdevice versions are you using? Have you setup the central to allow concurrent connection to multiple peripherals?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>