<?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>Getting advertisement UUID changed...</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/63692/getting-advertisement-uuid-changed</link><description>Hello All, 
 
 I am working on nRF51822 custom board.Use SDK nRF5 12.3.0 in IAR workbench. 
 
 I am use ble peripheral example path given below, 
 ...\...\examples\ble_peripheral\ble_app_template. 
 
 In application I create one custom service and in</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 17 Jul 2020 14:39:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/63692/getting-advertisement-uuid-changed" /><item><title>RE: Getting advertisement UUID changed...</title><link>https://devzone.nordicsemi.com/thread/260620?ContentTypeID=1</link><pubDate>Fri, 17 Jul 2020 14:39:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0803c12a-59cc-4e74-866b-dc31f1965d1b</guid><dc:creator>Sigurd</dc:creator><description>[quote user="Urvisha Andani"]it is not fix every time it changed[/quote]
&lt;p&gt;&amp;nbsp;That is very strange.I have not been able to reproduce this. Do you see other issues/bugs when this happens ?&lt;br /&gt;Do you see the same issue if you test it on a nRF51-DK ?&lt;/p&gt;
&lt;p&gt;Could you create a small example that reproduces this behavior?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting advertisement UUID changed...</title><link>https://devzone.nordicsemi.com/thread/259788?ContentTypeID=1</link><pubDate>Tue, 14 Jul 2020 05:34:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e82c7b2f-9a67-468b-bfc1-f48b840b14a4</guid><dc:creator>Urvisha Andani</dc:creator><description>[quote userid="15146" url="~/f/nordic-q-a/63692/getting-advertisement-uuid-changed/259721"]&amp;nbsp;Could you post the code you used to set the service UUID in the advertisement packet?[/quote]
&lt;p&gt;yes, i mention below,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define SDS_UUID_BASE {0xF4, 0xE7, 0xA4, 0xCF, 0xCD, 0xA2, 0x48, 0xB6, \
                                           0xBD, 0x4C, 0xD8, 0x6F, 0x00, 0x00, 0xE7, 0x7E}
#define SDS_UUID_SERVICE         0xE1FA

#define SDS_UUID_DATA_FLAG_CHAR  0x2AD1
#define SDS_UUID_SERIAL_NUMBER   0x2A14
#define SDS_UUID_MAX_ADC         0x2A16
#define SDS_UUID_MIN_ADC         0x2A17

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;also i mention advertisement initialization function,&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define APP_FAST_ADV_INTERVAL                480                                         /**&amp;lt; The advertising interval (in units of 0.625 ms. This value corresponds to 300 ms). */
#define APP_FAST_ADV_TIMEOUT_IN_SECONDS      60                                         /**&amp;lt; The advertising timeout (in units of seconds). */

static ble_uuid_t m_adv_uuids[] = {{SDS_UUID_SERVICE, BLE_UUID_TYPE_VENDOR_BEGIN}}; /**&amp;lt; Universally unique service identifiers. */


static void advertising_init(void)
{
    uint32_t               err_code;
    ble_advdata_t          advdata;
    ble_adv_modes_config_t options;

    // Build advertising data struct to pass into @ref ble_advertising_init.
    memset(&amp;amp;advdata, 0, sizeof(advdata));

    advdata.name_type               = BLE_ADVDATA_FULL_NAME;
    advdata.include_appearance      = false;
    advdata.flags                   = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
    advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    advdata.uuids_complete.p_uuids  = m_adv_uuids;

    memset(&amp;amp;options, 0, sizeof(options));
    options.ble_adv_fast_enabled  = true;
    options.ble_adv_fast_interval = APP_FAST_ADV_INTERVAL;
    options.ble_adv_fast_timeout  = APP_FAST_ADV_TIMEOUT_IN_SECONDS;
    
    err_code = ble_advertising_init(&amp;amp;advdata, NULL, &amp;amp;options, on_adv_evt, NULL);
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/63692/getting-advertisement-uuid-changed/259721"]What was the original value ? What did it change to?[/quote]
&lt;p&gt;original value is : 0x&lt;span&gt;7EE7E1FA-6FD8-4CBD-B648-A2CDCFA4E7F4&lt;/span&gt;&lt;br /&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Advertisement UUID getting changed in this case in UUID was : 0x&lt;span&gt;7EE71399-6FD8-4CBD-B648-A2CDCFA4E7F4 and it is not fix every time it changed.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Getting advertisement UUID changed...</title><link>https://devzone.nordicsemi.com/thread/259721?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2020 14:27:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7602887-acba-44a2-a4aa-93b831e6915c</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]When I add one more characteristic in my application but after that in the advertisement UUID getting changed.[/quote]
&lt;p&gt;&amp;nbsp;Could you post the code you used to set the service UUID in the advertisement packet?&lt;/p&gt;
[quote user=""]what is the reason of advertisement UUID getting changed?[/quote]
&lt;p&gt;&amp;nbsp;What was the original value ? What did it change to?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>