<?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>Problems with ble_discovery_start() when adding 2 vendor specific UUID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16670/problems-with-ble_discovery_start-when-adding-2-vendor-specific-uuid</link><description>Hello, 
 I&amp;#180;ve got a problem with the primary services discovery when register more than 1 vendor specific UUID.
I&amp;#180;m actually connecting one Cadence Sensor and one Motion Sensor using NUS with runs fine. 
 Now i wanted to add a Ti SensorTag which also</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 30 Mar 2017 11:21:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16670/problems-with-ble_discovery_start-when-adding-2-vendor-specific-uuid" /><item><title>RE: Problems with ble_discovery_start() when adding 2 vendor specific UUID</title><link>https://devzone.nordicsemi.com/thread/63786?ContentTypeID=1</link><pubDate>Thu, 30 Mar 2017 11:21:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95373cf2-3dba-403f-9fb6-1cc589ef3c3b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Prasad: Please post your question separately. Please include more information on how you add the uuid, make sure you use the correct uuid_type (the ID value you get after you add the UUID). Also add the result of service discovery when you discovery for that UUID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with ble_discovery_start() when adding 2 vendor specific UUID</title><link>https://devzone.nordicsemi.com/thread/63787?ContentTypeID=1</link><pubDate>Wed, 29 Mar 2017 08:13:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e8d869d-45dc-48d7-a09a-a61e3f047028</guid><dc:creator>Prasad</dc:creator><description>&lt;p&gt;I too have 2 vendor specific services and facing a similar problem but, setting vs_uuid_count to 3 doesn&amp;#39;t solve the issue for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with ble_discovery_start() when adding 2 vendor specific UUID</title><link>https://devzone.nordicsemi.com/thread/63785?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 10:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56c83c1a-2fec-4942-a388-9e9c489f1823</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I didn&amp;#39;t read the comment. I&amp;#39;m pretty sure that it is incorrect, if you add 2 bases, setting vs_uuid_count to 2 should be sufficient. I&amp;#39;m not sure why it solved your issue though.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with ble_discovery_start() when adding 2 vendor specific UUID</title><link>https://devzone.nordicsemi.com/thread/63784?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2016 07:16:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e6c4a1-867d-4870-a8b1-86d95cc264d4</guid><dc:creator>Vehring</dc:creator><description>&lt;p&gt;I use the SDK 12 and the SoftDevice S130 2.0.1&lt;/p&gt;
&lt;p&gt;Setting the vs_uuid_count to 2 was enough to connect both vs uuid peripherals but the second initialized couldn´t be discovered properly as i described above. Changing the order of initialization of the 2 sensors showed that the error was changing between the sensor discoveries too.
Setting the vs_uuid_count to 3 solved the problem (which i tried due to the comment from the multilink example &amp;quot;vs_uuid_count has to be 1 bigger than what is actually needed&amp;quot;).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with ble_discovery_start() when adding 2 vendor specific UUID</title><link>https://devzone.nordicsemi.com/thread/63783?ContentTypeID=1</link><pubDate>Tue, 27 Sep 2016 14:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2d8ae23-5014-4ef0-8289-a5ec6af14abb</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is correct to increase vs_uuid_count, but if you add 2 UUID bases, setting it to 2 should be enough. Increasing it will increase the RAM required by the SoftDevice, have you increased it? What SDK and SoftDevice version are you using?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems with ble_discovery_start() when adding 2 vendor specific UUID</title><link>https://devzone.nordicsemi.com/thread/63782?ContentTypeID=1</link><pubDate>Mon, 26 Sep 2016 10:43:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39600fd6-b2c3-40d4-b042-3c6862968e07</guid><dc:creator>Vehring</dc:creator><description>&lt;p&gt;Maybe i can already give an answer by myself:&lt;/p&gt;
&lt;p&gt;I saw this in the multilink example:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Stack checks first if there are still entries in the table before checking if a vendor
// specific UUID is already in the table thus to be able to call sd_ble_uuid_vs_add several
// times with the same entry, vs_uuid_count has to be 1 bigger than what is actually needed.
    ble_enable_params.common_enable_params.vs_uuid_count = 2;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;I did set this value to 2. This allowed me to connect two vs uuid´s but for some reason the second connected get´s wrong discovery data (from the first). Now after changing to 3 the application works with both vs uuid peripherals correctly. I didn´t really understand the comment from the multilink example and i have no time to understand it but i hope this helps others if they have the same issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>