<?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 to send the 128-bit base UUID</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/36332/how-to-send-the-128-bit-base-uuid</link><description>Hello, 
 
 I am developing on the nRF51 and soft device version 8.0.0. 
 I have created a new service that has a 128-bit UUID that is based on the base UUID: 00000000-0000-1000-8000-00805f9b34fb 
 I am trying to make the service discoverable with the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 17 Jul 2018 17:11:00 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/36332/how-to-send-the-128-bit-base-uuid" /><item><title>RE: How to send the 128-bit base UUID</title><link>https://devzone.nordicsemi.com/thread/140448?ContentTypeID=1</link><pubDate>Tue, 17 Jul 2018 17:11:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5629ac1-c048-40a7-a475-ef77189f181d</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Great!&lt;/p&gt;
&lt;p&gt;Please consider accepting my previous post as a correct answer, so that it becomes easier to find for others.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send the 128-bit base UUID</title><link>https://devzone.nordicsemi.com/thread/140299?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 23:57:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ae95966b-39f3-4df4-8922-be10912b5762</guid><dc:creator>Danny Beitel</dc:creator><description>&lt;p&gt;Perfect Thank!&amp;nbsp; We are getting it sorted.&amp;nbsp; :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send the 128-bit base UUID</title><link>https://devzone.nordicsemi.com/thread/140275?ContentTypeID=1</link><pubDate>Mon, 16 Jul 2018 17:19:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42dd9a18-9645-4e83-88be-b2f20d3f5b36</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Sorry for not spotting this at the first go. Of course. The way 16 bit UUIDs are implemented is that under the hood they are all 128 bit UUIDs, and for that they use a specially assigned Base UUID which cannot be used for other purposes. That Base UUID is &lt;code&gt;00000000-0000-1000-8000-00805F9B34FB&lt;/code&gt;.&lt;/p&gt;
&lt;p&gt;What it all means is:&lt;/p&gt;
&lt;p&gt;1) Do not use that base UUID. It is reserved for the 16 bit UUIDs defined by the Bluetooth SIG.&lt;/p&gt;
&lt;p&gt;2) Any tool (such as the sniffer that you are using) will see that this is the Base UUID for 16 bit UUIDs, and so they assume it is a 16 bit UUID, potentially one that it is not yet aware of.&lt;/p&gt;
&lt;p&gt;3) Use a different Base UUID for your projects. You can choose whatever Base UUID you would like, just not that one. Please note that choosing a random number is the best approach, for minimizing the chance of your Base UUID colliding with that of someone else.&lt;/p&gt;
&lt;p&gt;4) If, for some strange reason, you need to use the Base UUID for BT SIG defined 16 bit UUIDs, even though it is not for a BT SIG assigned 16 bit UUID, then firstly don&amp;#39;t, and secondly what you have done seems to be doing exactly that (although you could have used &lt;code&gt;BLE_UUID_TYPE_BLE&lt;/code&gt; directly as it is already there by default, and also in any case you should really do what I described in 3 instead.)&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send the 128-bit base UUID</title><link>https://devzone.nordicsemi.com/thread/140105?ContentTypeID=1</link><pubDate>Fri, 13 Jul 2018 21:22:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8af90a3-f8d5-4521-996b-45de7852b49d</guid><dc:creator>Danny Beitel</dc:creator><description>&lt;p&gt;Even more clarification: I am working with a service UUID that hasn&amp;#39;t been registered.&amp;nbsp; However, the service provider created a 128-bit service UUID using the base UUID.&amp;nbsp; They essentially did this:&amp;nbsp;&amp;nbsp;0000DEAD-0000-1000-8000-00805F9B34FB.&amp;nbsp; Is this legal?&amp;nbsp; If it is, how can I generate this 128-bit service UUID using the soft device SDK?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send the 128-bit base UUID</title><link>https://devzone.nordicsemi.com/thread/139946?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 16:26:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:852a29ac-e6d1-4901-b897-7aa9f7aa98fa</guid><dc:creator>Danny Beitel</dc:creator><description>&lt;p&gt;Sure,&lt;/p&gt;
&lt;p&gt;When I connect to my device using a BLE sniffer (e.g. BlueSee), I only see a 16-bit Service UUID (In this example the UUID is 0xDEAD):&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;09:10:30.8920: connected in underlying BLE layer.
09:10:30.8930: discovered services: (
    DEAD,
    &amp;quot;Device Information&amp;quot;
)
09:10:31.0390: discovered characteristics for service 180A: (
    &amp;quot;Manufacturer Name String&amp;quot;,
    &amp;quot;Model Number String&amp;quot;,
    &amp;quot;Serial Number String&amp;quot;,
    &amp;quot;Hardware Revision String&amp;quot;,
    &amp;quot;Firmware Revision String&amp;quot;,
    &amp;quot;Software Revision String&amp;quot;
)
09:10:31.2480: discovered characteristics for service DEAD: (
    &amp;quot;0000FFF1-1212-0CAA-142F-C9B16EC683AB&amp;quot;,
    &amp;quot;0000FFF2-1212-0CAA-142F-C9B16EC683AB&amp;quot;,
    &amp;quot;0000FFF3-1212-0CAA-142F-C9B16EC683AB&amp;quot;,
    &amp;quot;0000FFF4-1212-0CAA-142F-C9B16EC683AB&amp;quot;
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If I use a debugger to look at the resulting type id from&amp;nbsp;sd_ble_uuid_vs_add(), it is 0x1 (BLE_UUID_TYPE_BLE)&lt;/p&gt;
&lt;p&gt;If I use a different UUID, for example, changing one bit in the 128-bit UUID (&lt;span&gt;00000000-0000-1000-8000-00805f9b34fc) the sniffer sees this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;09:10:30.8920: connected in underlying BLE layer.
09:10:30.8930: discovered services: (
    &amp;quot;0000DEAD-0000-1000-8000-00805F9B34FC&amp;quot;,
    DEAD,
    &amp;quot;Device Information&amp;quot;
)
09:10:31.0390: discovered characteristics for service 180A: (
    &amp;quot;Manufacturer Name String&amp;quot;,
    &amp;quot;Model Number String&amp;quot;,
    &amp;quot;Serial Number String&amp;quot;,
    &amp;quot;Hardware Revision String&amp;quot;,
    &amp;quot;Firmware Revision String&amp;quot;,
    &amp;quot;Software Revision String&amp;quot;
)
09:10:31.2480: discovered characteristics for service 0000DEAD-0000-1000-8000-00805F9B34FC: (
    &amp;quot;0000FFF1-1212-0CAA-142F-C9B16EC683AB&amp;quot;,
    &amp;quot;0000FFF2-1212-0CAA-142F-C9B16EC683AB&amp;quot;,
    &amp;quot;0000FFF3-1212-0CAA-142F-C9B16EC683AB&amp;quot;,
    &amp;quot;0000FFF4-1212-0CAA-142F-C9B16EC683AB&amp;quot;
)
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note that DEAD now has the 128-bit Service UUID.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Is there some filtering done for base UUIDs?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send the 128-bit base UUID</title><link>https://devzone.nordicsemi.com/thread/139919?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 14:15:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c44a373e-47d7-44b1-a1ec-70e8bf5c6f2d</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you explain a bit more, where do you see only the short UUID?&lt;/p&gt;
&lt;p&gt;The context and nature of service_uuid is missing from the code excerpt, have you based it off of an example? What does the rest of the function look like?&lt;/p&gt;
&lt;p&gt;I recommend having a look at for instance the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk51.v9.0.0%2Fble_sdk_app_nus_eval.html"&gt;ble_app_uart example&lt;/a&gt; from the SDK, as that example uses 128 bit UUIDs.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to send the 128-bit base UUID</title><link>https://devzone.nordicsemi.com/thread/139810?ContentTypeID=1</link><pubDate>Thu, 12 Jul 2018 04:55:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc37bbb3-836b-4931-97c7-491fdd217ef8</guid><dc:creator>Danny Beitel</dc:creator><description>&lt;p&gt;More clarification: When I connect to the device I just see BLE_MY_GAT_SERVICE_UUID instead of the whole 128-bit UUID.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>