<?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>adding buttonless DFU service to my app changes the base UUID of my service in the advertisement packet</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45931/adding-buttonless-dfu-service-to-my-app-changes-the-base-uuid-of-my-service-in-the-advertisement-packet</link><description>I&amp;#39;m advertising a custom 128bit UUID for my service. 
 when I added the buttonless DFU service, the UUID in the advertisement packet got mixed, I ended up with the base uuid of the buttonless dfu service and the 16bit uuid of my service. 
 initializing</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Apr 2019 07:55:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45931/adding-buttonless-dfu-service-to-my-app-changes-the-base-uuid-of-my-service-in-the-advertisement-packet" /><item><title>RE: adding buttonless DFU service to my app changes the base UUID of my service in the advertisement packet</title><link>https://devzone.nordicsemi.com/thread/181780?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 07:55:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d29c1dc8-a520-4794-9ae0-e27f9b4914c6</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Yes, because&amp;nbsp;BLE_UUID_TYPE_VENDOR_BEGIN point to the first base UUID in the database. if you initialize the DFU service first, then the first base UUID will be the DFU service . You can try&amp;nbsp;&lt;/p&gt;
&lt;p&gt;static ble_uuid_t m_adv_uuids[] = /**&amp;lt; Universally unique service identifiers. */&lt;br /&gt;{&lt;br /&gt; {BLE_UUID_SLOG_SERVICE, BLE_UUID_TYPE_VENDOR_BEGIN&lt;strong&gt;+1&lt;/strong&gt;},&lt;br /&gt;};&lt;/p&gt;
&lt;p&gt;Then you will see your service base UUID. Just need to match the uuid_type value you get when you call&amp;nbsp;&lt;span&gt;sd_ble_uuid_vs_add() for your service.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding buttonless DFU service to my app changes the base UUID of my service in the advertisement packet</title><link>https://devzone.nordicsemi.com/thread/181733?ContentTypeID=1</link><pubDate>Fri, 12 Apr 2019 03:25:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e2857abb-0496-4698-8f8c-aaf1495e4636</guid><dc:creator>M.Anis</dc:creator><description>&lt;p&gt;this is the definition of m_adv_uuids.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static ble_uuid_t m_adv_uuids[] =   /**&amp;lt; Universally unique service identifiers. */
{
    {BLE_UUID_SLOG_SERVICE, BLE_UUID_TYPE_VENDOR_BEGIN},
};&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;and that&amp;#39;s the uuid for my service and it is a #define&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define BLE_UUID_SLOG_SERVICE         0x45FB&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;the issue is I&amp;#39;m getting the base uuid of the buttonless dfu service and my service&amp;#39;s uuid&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding buttonless DFU service to my app changes the base UUID of my service in the advertisement packet</title><link>https://devzone.nordicsemi.com/thread/181283?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 10:42:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:231fbe99-5e0c-47dc-b232-fd6c774dfc1a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;You may want to find out what is inside&amp;nbsp;m_adv_uuids, how it&amp;#39;s initialized.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding buttonless DFU service to my app changes the base UUID of my service in the advertisement packet</title><link>https://devzone.nordicsemi.com/thread/181197?ContentTypeID=1</link><pubDate>Wed, 10 Apr 2019 03:17:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b9ffe8e-6a66-481f-9e47-28dd794a72dd</guid><dc:creator>M.Anis</dc:creator><description>&lt;p&gt;if I initialize my service first then it works fine. doing the opposite mixes things up. my initialization is as follows.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static ble_uuid_t m_adv_uuids[] =   /**&amp;lt; Universally unique service identifiers. */
{
    {BLE_UUID_SLOG_SERVICE, BLE_UUID_TYPE_VENDOR_BEGIN},
};



static void advertising_init(void)
{
    ret_code_t             err_code;
    ble_advertising_init_t init;

    memset(&amp;amp;init, 0, sizeof(init));

    init.advdata.name_type               = BLE_ADVDATA_FULL_NAME;
    init.advdata.include_appearance      = false;
    init.advdata.flags                   = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
    init.srdata.uuids_more_available.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    init.srdata.uuids_more_available.p_uuids  = m_adv_uuids;

    init.config.ble_adv_fast_enabled  = true;
    init.config.ble_adv_fast_interval = APP_FAST_ADV_INTERVAL;
    init.config.ble_adv_fast_timeout  = APP_FAST_ADV_DURATION;

    init.config.ble_adv_slow_enabled  = true;
    init.config.ble_adv_slow_interval = APP_SLOW_ADV_INTERVAL;
    init.config.ble_adv_slow_timeout  = APP_SLOW_ADV_DURATION;

    init.evt_handler = on_adv_evt;

    err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);
    APP_ERROR_CHECK(err_code);

    ble_advertising_conn_cfg_tag_set(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);
}
&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: adding buttonless DFU service to my app changes the base UUID of my service in the advertisement packet</title><link>https://devzone.nordicsemi.com/thread/181126?ContentTypeID=1</link><pubDate>Tue, 09 Apr 2019 15:07:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c9a0380d-6c4b-4e62-bae4-248ec2ba7862</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Please post how you initialize your advertising packet.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I think you should check which service got the call&amp;nbsp;sd_ble_uuid_vs_add() first. In particular check if your service or the buttonless service get the uuid_type =&amp;nbsp;BLE_UUID_TYPE_VENDOR_BEGIN (which is the first vendor specific base UUID in the data base) after the call&amp;nbsp;sd_ble_uuid_vs_add.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>