<?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>Change BASE UUID of Custom Service</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82453/change-base-uuid-of-custom-service</link><description>Hi, I have developed a firmware in which I have added the custom service. My custom service UUID is showing 00001400-0000-0000-0000-00000000fff0 but I want only 0xFFF0. I have tried to change it but it&amp;#39;s not working. how can I do that? Thanks! 
 
 
 UUID</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Mar 2026 14:45:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82453/change-base-uuid-of-custom-service" /><item><title>RE: Change BASE UUID of Custom Service</title><link>https://devzone.nordicsemi.com/thread/564206?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2026 14:45:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3aabc0e3-0e3c-43c2-9145-473f1863d9f1</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a 4 years old case. Could you please open a new ticket describing the issues you are seeing on NCS version 2.9.0?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change BASE UUID of Custom Service</title><link>https://devzone.nordicsemi.com/thread/564086?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2026 09:38:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2aa6407e-23a9-4fd5-82c7-612197d6da98</guid><dc:creator>Buttefly</dc:creator><description>&lt;p&gt;Hi Tjhasan,&lt;/p&gt;
&lt;p&gt;I&amp;rsquo;m on the page, but I couldn&amp;rsquo;t find the .c file mentioned above. I&amp;rsquo;m currently using version 2.9.0&amp;mdash;could you please tell me where to find that file or its path?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change BASE UUID of Custom Service</title><link>https://devzone.nordicsemi.com/thread/355657?ContentTypeID=1</link><pubDate>Tue, 01 Mar 2022 20:28:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa8ae199-8e59-422d-aa7d-47fd20268ab4</guid><dc:creator>tjhasan</dc:creator><description>&lt;p&gt;Hello, this is 3 months late but I had a similar question and stumbled across this thread thanks to Kazi Afroza Sultana. Use the &lt;strong&gt;BLE_UUID_BLE_ASSIGN&lt;/strong&gt; method to accomplish this. Here is an example code that utilizes this method:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;uint32_t ble_cus_init(ble_cus_t * p_cus, const ble_cus_init_t * p_cus_init)
{
    uint32_t   err_code;
    ble_uuid_t ble_uuid;

    // Initialize service structure
    p_cus-&amp;gt;evt_handler               = p_cus_init-&amp;gt;evt_handler;
    p_cus-&amp;gt;conn_handle               = BLE_CONN_HANDLE_INVALID;

    // Add Custom Service UUID
    ble_uuid128_t base_uuid = {CUSTOM_SERVICE_UUID_BASE};
    
        err_code =  sd_ble_uuid_vs_add(&amp;amp;base_uuid, &amp;amp;p_cus-&amp;gt;uuid_type);
    VERIFY_SUCCESS(err_code);
    
    ble_uuid.type = p_cus-&amp;gt;uuid_type;
    ble_uuid.uuid = CUSTOM_SERVICE_UUID;

    BLE_UUID_BLE_ASSIGN(ble_uuid, CUSTOM_SERVICE_UUID);
    
        // Add the Custom Service
    err_code = sd_ble_gatts_service_add(BLE_GATTS_SRVC_TYPE_PRIMARY, &amp;amp;ble_uuid, &amp;amp;p_cus-&amp;gt;service_handle);
    if (err_code != NRF_SUCCESS)
    {
        return err_code;
    }
    
    
    // Add Custom Value characteristic to new service
    return custom_value_char_add(p_cus, p_cus_init);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The method in the above code should result in your desired outcome! Note that you will have to set your base uuid and characteristic uuids yourself.&lt;/p&gt;
&lt;p&gt;Finally, you can set the characteristic UUIDs in a similar way. Just use the &lt;strong&gt;BLE_UUID_BLE_ASSIGN &lt;/strong&gt;in the same way before the &lt;strong&gt;sd_ble_gatts_characteristic_add&lt;/strong&gt; method.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change BASE UUID of Custom Service</title><link>https://devzone.nordicsemi.com/thread/342431?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 17:40:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:793d6680-d3f4-4c36-97b8-b5e67a04af1f</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Muqarrab,&lt;/p&gt;
&lt;p&gt;It Seems like you want to show only 0XFFF0. The 16 bit UUIDs are the Bluetooth SIG registered UUIDs.&amp;nbsp;&lt;span&gt;Then you need to register with Bluetooth SIG to get a 16-bit UUID. It costs a few thousand dollar. &lt;a href="https://www.novelbits.io/uuid-for-custom-services-and-characteristics/"&gt;How do I choose a UUID for my custom services and characteristics? - Novel Bits&lt;/a&gt;&amp;nbsp;here in this link, I can see 2500 dollar.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;However, you can set this 16 bit UUID in the code as well. You can see the code here (&lt;span&gt;components\ble\ble_services\ble_dfu\ble_dfu.c)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;#define&lt;/span&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;BLE_DFU_SERVICE_UUID&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;0xFE59&lt;/span&gt;&lt;span&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;/**&amp;lt; The 16-bit UUID of the Secure DFU Service. */&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;BLE_UUID_BLE_ASSIGN&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;service_uuid&lt;/span&gt;&lt;span&gt;, &lt;/span&gt;&lt;span&gt;BLE_DFU_SERVICE_UUID&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;span&gt;// Add the DFU service declaration.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;err_code&lt;/span&gt;&lt;span&gt; = &lt;/span&gt;&lt;span&gt;sd_ble_gatts_service_add&lt;/span&gt;&lt;span&gt;(BLE_GATTS_SRVC_TYPE_PRIMARY,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;&lt;/span&gt;&lt;span&gt;service_uuid&lt;/span&gt;&lt;span&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;amp;(&lt;/span&gt;&lt;span&gt;m_dfu&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;service_handle&lt;/span&gt;&lt;span&gt;));&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span&gt;VERIFY_SUCCESS&lt;/span&gt;&lt;span&gt;(&lt;/span&gt;&lt;span&gt;err_code&lt;/span&gt;&lt;span&gt;);&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;p&gt;&amp;nbsp;You can try this and let us know how it works.&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change BASE UUID of Custom Service</title><link>https://devzone.nordicsemi.com/thread/342252?ContentTypeID=1</link><pubDate>Tue, 07 Dec 2021 08:22:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:732f9aec-fabe-4512-a680-5f0f7b19a1f3</guid><dc:creator>Muqarrab</dc:creator><description>&lt;p&gt;Thanks for the answer.&lt;br /&gt;&lt;br /&gt;As other services have 2 byte UUID. Can I change it to 2 bytes?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Change BASE UUID of Custom Service</title><link>https://devzone.nordicsemi.com/thread/342174?ContentTypeID=1</link><pubDate>Mon, 06 Dec 2021 19:58:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db302205-3721-44e4-b5f5-b1569fafdd63</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Muqarrab,&lt;/p&gt;
&lt;p&gt;Thanks for your question.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The base UUID should be 16 bytes; not 2. You can look at this point of view when defining Base UUID.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For example:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1638819299963v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>