<?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>Vendor Specific UUID Type/s</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115317/vendor-specific-uuid-type-s</link><description>Hello Support, 
 I was trying to get the information of services and characteristics from the peripheral after the connection is established. 
 With sd_ble_gattc_primary_services_discover() , we are able to retrieve the services and can get the detailed</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 08 Oct 2024 13:28:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115317/vendor-specific-uuid-type-s" /><item><title>RE: Vendor Specific UUID Type/s</title><link>https://devzone.nordicsemi.com/thread/505368?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 13:28:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d5683551-d371-42a7-9bc2-895a6cc7454d</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]Who is deciding these TYPE values and how?[/quote]
&lt;p&gt;This is a number assigned when you configure the base UUID as allready desscribed.&lt;/p&gt;
[quote user=""]If Central&amp;#39;s SoftDevice is populating it, will those be same every time when we try to retrieve the services and characteristics from the same peripheral connects/reconnects?[/quote]
&lt;p&gt;Yes. If the order where you confiugre the base UUID by calling sd_ble_uuid_vs_add() is the same, the type will always be the same. Note that the type is an internal reference to a base UUID. The type itself is not visible outside (to the peer).&lt;/p&gt;
[quote user=""]Is there any way to use only particular TYPE common across all our vendor specific services and characteristics?[/quote]
&lt;p&gt;If all your vendor&amp;nbsp;specific services has the same base UUID, then yes, you can use the same type. In that case you only need one call to&amp;nbsp;sd_ble_uuid_vs_add() to confiugre the base UUID and get the type, and then refer to that type for adding all the services that use that base UUID in case of a GATT server or discoverying UUIDs using it in case of a GATT client (as in your case).&lt;/p&gt;
[quote user=""]Will those keep on incrementing if we add more peripherals or same for every peripheral identified by connection handle?[/quote]
&lt;p&gt;This way of refering to a base UUID is the same regardless.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Vendor Specific UUID Type/s</title><link>https://devzone.nordicsemi.com/thread/505299?ContentTypeID=1</link><pubDate>Tue, 08 Oct 2024 09:38:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e87e3b2-d905-417f-9f28-ff8a06e75b79</guid><dc:creator>Turbo J</dc:creator><description>&lt;p&gt;&amp;gt; &lt;span style="font-family:verdana, geneva;"&gt;Who is deciding these TYPE values and how?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Check softdevice specs/api, there is a call to add custom UUIDs to the softdevice memory. You will get new TYPE values when registering UUIDs - the only predefined one ist from the Bluetooth standard.&lt;/p&gt;
&lt;p&gt;For your own devices you will need to register just one custom 128-bit UUID and then just change the 16 bits that correspond to the uuid part in ble_uuid_t when defining services and characteristics.&lt;/p&gt;
&lt;p&gt;Not that this applies only to the old SDK thats no longer supported. Consider switching to the NRF connect SDK, which has a &lt;em&gt;totally different&lt;/em&gt; handling of UUID values altogether.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>