<?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 can i get primary service which i don&amp;#39;t know</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14776/how-can-i-get-primary-service-which-i-don-t-know</link><description>Hi.
I&amp;#39;m using PCA10028, SDK10.0.0, S130 and &amp;quot;ble_app_uart_c&amp;quot; as reference. 
 As &amp;quot;ble_app_uart_c&amp;quot; source code, it already knows Service UUID. 
 uint32_t ble_nus_c_init(ble_nus_c_t * p_ble_nus_c, ble_nus_c_init_t * p_ble_nus_c_init)
{ 
 ...... 
 uart_uuid</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Jun 2016 10:16:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14776/how-can-i-get-primary-service-which-i-don-t-know" /><item><title>RE: How can i get primary service which i don't know</title><link>https://devzone.nordicsemi.com/thread/56423?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2016 10:16:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9f1dc46-a990-493a-be49-c856985fd91e</guid><dc:creator>shibshab</dc:creator><description>&lt;p&gt;Discovering the contents of the peripheral database is in general called &amp;quot;GATT Service Discovery&amp;quot;, and there are several GATT procedures defined for doing this.&lt;/p&gt;
&lt;p&gt;A detailed description of these procedures can be found in the &lt;a href="https://www.bluetooth.org/DocMan/handlers/DownloadDoc.ashx?doc_id=286439&amp;amp;_ga=1.43215590.274512996.1465989578"&gt;Bluetooth Specification&lt;/a&gt; Volume 3, Part G, Chapter 4 - &amp;quot;GATT Feature Requeriments&amp;quot;.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;To answer your question&lt;/strong&gt;: The S130 SoftDevice has API calls for most several of these procedures. To discover the primary services, simply perform the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s130.api.v2.0.0/group___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html?cp=3_6_2_1_0_2_2_2_6#gaa778ccc1990e05fffa4aaf304c95e614"&gt;primary services discovery&lt;/a&gt; procedure.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get primary service which i don't know</title><link>https://devzone.nordicsemi.com/thread/56422?ContentTypeID=1</link><pubDate>Mon, 27 Jun 2016 09:53:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1c0a0c4-5ef6-4264-a83e-ae8fdb7f5a43</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Could you elaborate a bit on your application? Also, you may find &lt;a href="https://devzone.nordicsemi.com/question/15930/s130-custom-uuid-service-discovery/"&gt;this&lt;/a&gt; question helpful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>