<?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>Support for secondary service discovery?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5094/support-for-secondary-service-discovery</link><description>Hidden in the guts of this answer is: 
 
 Please be noted that not all central
stack have full support to
automatically discovery secondary
services (e.g S120 stack) 
 
 As it happens, I&amp;#39;m trying to discover secondary services from a central device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Jan 2015 01:05:34 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5094/support-for-secondary-service-discovery" /><item><title>RE: Support for secondary service discovery?</title><link>https://devzone.nordicsemi.com/thread/17913?ContentTypeID=1</link><pubDate>Wed, 14 Jan 2015 01:05:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bf3344f-0496-490c-9b9f-0de1f16a3e84</guid><dc:creator>pabigot</dc:creator><description>&lt;p&gt;To expand on this just a little: you can replicate the behavior by iteratively calling &lt;em&gt;sd_ble_gattc_char_value_by_uuid_read&lt;/em&gt; looking for attribute 0x2800 (primary) or 0x2801 (secondary) to retrieve the raw service UUIDs.&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t know the vendor UUID to pass to &lt;em&gt;sd_ble_uuid_vs_add&lt;/em&gt; then the &lt;code&gt;ble_uuid_t&lt;/code&gt; structures from &lt;em&gt;sd_ble_gattc_primary_services_discover&lt;/em&gt; have type &lt;code&gt;BLE_UUID_TYPE_UNKNOWN&lt;/code&gt;.  The above process is how you would find the full UUID if it wasn&amp;#39;t provided by an oracle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support for secondary service discovery?</title><link>https://devzone.nordicsemi.com/thread/17912?ContentTypeID=1</link><pubDate>Sun, 11 Jan 2015 20:20:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76b005f5-6ed1-4361-88c9-52de563d2512</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As far as I know, it is mandatory to support the discovery of secondary services, even though they&amp;#39;re not widely used. Our SoftDevices should have support for secondary service discovery since the very first versions, but not in an automated fashion like with the &lt;em&gt;sd_ble_gattc_primary_services_discover&lt;/em&gt; function.&lt;/p&gt;
&lt;p&gt;To discover secondary services, you will have to replicate some of the behavior that happens in that function, which means finding attributes with UUID 0x2801 (&amp;quot;Secondary Service&amp;quot;) and then read their value to find the actual Service UUID. This UUID could be a vendor-specific UUID, and if this is the case there are some functions like &lt;em&gt;sd_ble_uuid_decode&lt;/em&gt; that can help you filter your results in a clean way.&lt;/p&gt;
&lt;p&gt;See &lt;a href="https://developer.bluetooth.org/gatt/declarations/Pages/DeclarationsHome.aspx"&gt;this table&lt;/a&gt; and related pages for the adopted UUIDs.&lt;/p&gt;
&lt;p&gt;If you want to experiment with secondary services, please read the Bluetooth Specification Vol 3, Part G, Chapter 3.1 and 3.2 very carefully. You have to include the secondary service in a primary service to be conformant with the specification.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Support for secondary service discovery?</title><link>https://devzone.nordicsemi.com/thread/17911?ContentTypeID=1</link><pubDate>Sat, 10 Jan 2015 19:24:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:716d33ae-42ee-4b2b-9380-851e0d4840d5</guid><dc:creator>pabigot</dc:creator><description>&lt;p&gt;The symptom I was trying to address was failure to find the vendor services on the TI SensorTag I&amp;#39;m using for experimentation, which are found by Bluez5&amp;#39;s btgatt-client.  Turns out that&amp;#39;s not because they&amp;#39;re secondary services, but because I was unaware of &lt;a href="https://devzone.nordicsemi.com/question/12094/sd_ble_gattc_primary_services_discover/?answer=12096#post-id-12096"&gt;this trick&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;However, the original question is still interesting so I&amp;#39;m not making this the answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>