<?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>New service UUID select</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63973/new-service-uuid-select</link><description>Hi 
 I am using the nrf52832 with the heart rate (freertos) example 
 Let say i want to add a new service and characteristic to that service ,this service is not suppose to be in the advertising data 
 What UUID may i choose ?? as i read in the Bluetooth</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Jul 2020 08:31:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63973/new-service-uuid-select" /><item><title>RE: New service UUID select</title><link>https://devzone.nordicsemi.com/thread/261320?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 08:31:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:240c9461-282d-4740-ace5-07c926c766f3</guid><dc:creator>ibrahim123</dc:creator><description>&lt;p&gt;Thanks a lot&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New service UUID select</title><link>https://devzone.nordicsemi.com/thread/261319?ContentTypeID=1</link><pubDate>Thu, 23 Jul 2020 08:30:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e3ecd8b-743e-4cda-8378-65b7b61b9db9</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;The type field must be&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___u_u_i_d___t_y_p_e_s.html#ga7bdcaea9ea91ab20be755d78833da46d"&gt;BLE_UUID_TYPE_VENDOR_BEGIN&lt;/a&gt;, see&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___u_u_i_d___t_y_p_e_s.html"&gt;Types of UUID&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The UUID field must be:&amp;nbsp;&lt;span&gt;16-bit UUID value &lt;strong&gt;or octets 12-13 of 128-bit UUID.&lt;br /&gt;&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;Octet 12-13 is used as a shorthand to identify the Service, your characteristics UUID are usually based on the last 4 octets of the 128 bit UUID.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New service UUID select</title><link>https://devzone.nordicsemi.com/thread/261138?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 08:57:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad5a3d79-6e86-4e7a-a1a8-db46818d3fdf</guid><dc:creator>ibrahim123</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;br /&gt;That what i did but the UUID field in the ble_uuid_t is a uint16 type&amp;nbsp;&lt;br /&gt;And its says in the link your provided&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;16-bit UUID value or octets 12-13 of 128-bit UUID.&amp;quot;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So in conclusion i must send a 0xXXXX only ?&lt;/p&gt;
&lt;p&gt;Sorry i am just a little lost&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I did create a&amp;nbsp;&amp;nbsp;&lt;span&gt;ble_uuid_t&amp;nbsp;bleuuid;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;bleuuid.uuid = 0xAAAA;(for example)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Is that Ok or do i have to pay for this ?&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New service UUID select</title><link>https://devzone.nordicsemi.com/thread/261133?ContentTypeID=1</link><pubDate>Wed, 22 Jul 2020 08:39:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7fb9ceae-ef97-4692-bef8-0c0f58dbdb66</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;see&amp;nbsp;&lt;a title="sd_ble_gatts_service_add" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/group___b_l_e___g_a_t_t_s___f_u_n_c_t_i_o_n_s.html?cp=4_7_3_1_2_4_2_8#ga39fea660228e4b2e788af7018a83927a"&gt;sd_ble_gatts_service_add&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v7.0.1/structble__uuid__t.html"&gt;ble_uuid_t&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;You need to create a ble_uuid_t and pass it to&amp;nbsp;&lt;span&gt;sd_ble_gatts_service_add.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New service UUID select</title><link>https://devzone.nordicsemi.com/thread/261062?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 17:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cada4150-09cf-45ff-a1b1-a40a5a7b3421</guid><dc:creator>ibrahim123</dc:creator><description>&lt;p&gt;Thanks for the answer&lt;br /&gt;So if i use this function&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY, &amp;amp;ble_uuid, &amp;amp;service_handle);&amp;nbsp;&lt;/p&gt;
&lt;p&gt;the&amp;nbsp;&lt;span&gt;ble_uuid.uuid must represet a 128bit uuid and not (for example (0xAAA0)) ?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New service UUID select</title><link>https://devzone.nordicsemi.com/thread/261042?ContentTypeID=1</link><pubDate>Tue, 21 Jul 2020 16:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d590a79-583e-4e1f-85cc-9110c15b8558</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;You need a 128-bit UUID unless you pay BT SIG $$$ for a 16-bit one.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>