<?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>Possible race condition during simultaneous connection of two peripherals?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52385/possible-race-condition-during-simultaneous-connection-of-two-peripherals</link><description>I suspect a possible race condition happening during NUS service discoveries. I have two peripherals that are advertising and have DIS, Battery and the NUS service enabled. After the central connects to one of the peripherals I am immediately enabling</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Sep 2019 16:42:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52385/possible-race-condition-during-simultaneous-connection-of-two-peripherals" /><item><title>RE: Possible race condition during simultaneous connection of two peripherals?</title><link>https://devzone.nordicsemi.com/thread/212361?ContentTypeID=1</link><pubDate>Fri, 27 Sep 2019 16:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be347e02-50b6-4e8a-a2e3-0c3a966aa367</guid><dc:creator>tinytrex</dc:creator><description>&lt;p&gt;Thanks Jo, The issue is resolved for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Possible race condition during simultaneous connection of two peripherals?</title><link>https://devzone.nordicsemi.com/thread/211495?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 10:28:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b5a8a2e-14db-409a-bbb7-6a881e23e55e</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Maybe you could take a look at this previous thread:&amp;nbsp;&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52022/how-to-know-when-database-discovery-is-finished"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/52022/how-to-know-when-database-discovery-is-finished&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]It seems if a new connection is initiated before all the services of the&amp;nbsp;recently connected peripherals are discovered[/quote]
&lt;p&gt;&amp;nbsp;I think this is the issue, and you need to make sure that all the services is discovered before initiating the new connection. Ref. the thread i linked above.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>