<?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 128bit service uuid from peripheral</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/12203/how-can-i-get-128bit-service-uuid-from-peripheral</link><description>Hi.
I&amp;#39;m trying to get 128bit service uuid as referring to &amp;quot;ble_app_hrs_c&amp;quot; source code.(S130)
And my test peripheral device provides GAP, DEVICE Information and User service UUID(128bit).
When I define uuid and type as below,
hrs_uuid.type = BLE_UUID_TYPE_BLE;</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Mar 2016 08:07:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/12203/how-can-i-get-128bit-service-uuid-from-peripheral" /><item><title>RE: How can i get 128bit service uuid from peripheral</title><link>https://devzone.nordicsemi.com/thread/46184?ContentTypeID=1</link><pubDate>Mon, 07 Mar 2016 08:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae0e7e38-79f1-472f-9826-838fafa1c03a</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;You can download S130 v.2.0 from the &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF51822"&gt;nRF51822 webapge&lt;/a&gt; --&amp;gt; downloads&lt;/p&gt;
&lt;p&gt;SDK 11.0.0 will support S130 v2.0, it should be released soon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get 128bit service uuid from peripheral</title><link>https://devzone.nordicsemi.com/thread/46186?ContentTypeID=1</link><pubDate>Sat, 05 Mar 2016 00:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eca88c67-a1aa-459d-ad2c-3e34c654cfde</guid><dc:creator>roger.k</dc:creator><description>&lt;p&gt;Thanks a lot.
How can I get S130 V2.0.0?
I got SDK_10.0.0 which belongs S130 1.0.0.
I can see S130 2.0.0 at SDK_11.0.0 which is still alpha version.
When will you release official version of S130 2.0.0?
I hope your reply.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get 128bit service uuid from peripheral</title><link>https://devzone.nordicsemi.com/thread/46185?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 12:46:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f08e5ed5-0edf-4c1c-bd8c-7bdeaca49d9e</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have again updated my answer. Did it answer your question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get 128bit service uuid from peripheral</title><link>https://devzone.nordicsemi.com/thread/46183?ContentTypeID=1</link><pubDate>Fri, 04 Mar 2016 01:39:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25dbdd03-77aa-4fe9-93e3-6bc4e10fccc8</guid><dc:creator>roger.k</dc:creator><description>&lt;p&gt;If i know peripheral&amp;#39;s BASE UUID, it is possible.
But what if i don&amp;#39;t know base UUID.
I mean I should totally discover all UUID. How can I get 128bits service UUID from peripheral.
I hope your reply again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get 128bit service uuid from peripheral</title><link>https://devzone.nordicsemi.com/thread/46182?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 15:22:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac32b30d-5a93-49f0-b94e-e0ce5f7ddeee</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;I have updated my answer to answer your question. Let me know it is still not clear.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get 128bit service uuid from peripheral</title><link>https://devzone.nordicsemi.com/thread/46181?ContentTypeID=1</link><pubDate>Wed, 02 Mar 2016 11:39:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:367c9fed-4d6c-4f6c-adab-6d9182a0133a</guid><dc:creator>roger.k</dc:creator><description>&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;But I&amp;#39;m still so confused.&lt;/p&gt;
&lt;p&gt;At ble_app_uart_c example code,
It uses 128bits service UUID just for advertising data.&lt;/p&gt;
&lt;p&gt;Then &amp;#39;is_uuid_present&amp;#39; function makes it 16bits UUID as using &amp;#39;sd_ble_uuid_decode&amp;#39; function.&lt;/p&gt;
&lt;p&gt;After that this example code uses just 16bits UUID when it discovers UUID.&lt;/p&gt;
&lt;p&gt;I think, if &amp;#39;sd_ble_gattc_primary_services_discover&amp;#39; function is not the only function to discover UUID, there is the other way to discover 128bits UUID.&lt;/p&gt;
&lt;p&gt;What I really want to know is &amp;quot;how can I discover all UUID?&amp;quot;&lt;/p&gt;
&lt;p&gt;For example, 00000000-0000-1000-8000-00805F9B34FB&lt;/p&gt;
&lt;p&gt;I want to get these 128bits.&lt;/p&gt;
&lt;p&gt;I hope your reply again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How can i get 128bit service uuid from peripheral</title><link>https://devzone.nordicsemi.com/thread/46180?ContentTypeID=1</link><pubDate>Mon, 29 Feb 2016 13:47:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97496841-48cb-4f4b-8afc-cbe61c3481ac</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The ble_app_hrs_c example in the SDK implements the central side of the heart rate profile defined by Bluetooth SIG. Profiles defined by Bluetooth SIG use a 16-bit UUID instead of a 128-bit UUID like what proprietary profiles have to use.&lt;/p&gt;
&lt;p&gt;Since ble_app_hrs_c only uses 16-bit UUIDs, it is not the very best example for you. Instead you can look at ble_app_uart_c, it is the central side of the UART example and uses a 128-bit UUID. I think taking a look at it will solve most of your problems.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 02.03.16&lt;/strong&gt;
The function &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v1.0.0%2Fgroup___b_l_e___c_o_m_m_o_n___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_7_2_1_1_2_0_1_3_8&amp;amp;anchor=ga265b4251110a15120d0aa97e5152163b"&gt;sd_ble_uuid_vs_add(..)&lt;/a&gt; is as you know used to add a vendor specific/custom UUID. The out paramter of that function, p_uuid_type, is an index to a table where the base UUID is being stored. As you can see &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v1.0.0%2Fgroup___b_l_e___u_u_i_d___t_y_p_e_s.html&amp;amp;anchor=ga7bdcaea9ea91ab20be755d78833da46d"&gt;here&lt;/a&gt;, the two first indices are reserved, and the index 0x02 and upwards are for custom UUIDS. That way, &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v1.0.0%2Fstructble__uuid__t.html"&gt;the UUID type&lt;/a&gt; tells which base UUID that is in question.&lt;/p&gt;
&lt;p&gt;In sd_ble_gattc_primary_services_discover(..) the parameter ble_uuid_t includes the full service UUID;  the base UUID (ble_uuid.type) and the bytes 12 and 13 (ble_uuid.uuid).&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 04.03.16:&lt;/strong&gt; If you want to extract an unknown 128-bit UUID, a UUID that has not been added to the system using sd_ble_uuid_vs_add(..), you can use the function  &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s130.api.v2.0.0%2Fgroup___b_l_e___g_a_t_t_c___f_u_n_c_t_i_o_n_s.html&amp;amp;cp=2_7_2_1_0_2_2_4_0&amp;amp;anchor=ga8b7ff74ff996da8340f69c208bfd0ec4"&gt;sd_ble_gattc_attr_info_discover(..)&lt;/a&gt;. That function does only exist in S130 v2.0.0 alpha, S130 v2.0.0, and S132 (nRF52)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>