<?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>Random advertising data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83033/random-advertising-data</link><description>Hi, 
 We are developing trainer sensor device and looks very smooth so far. But our questions is some apps change our device name to Bryton Trainer xx in the searching stage. 
 xx has a different number for each unit. Like below picture. 
 
 If I use</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Dec 2021 22:04:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83033/random-advertising-data" /><item><title>RE: Random advertising data</title><link>https://devzone.nordicsemi.com/thread/345163?ContentTypeID=1</link><pubDate>Mon, 27 Dec 2021 22:04:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9adcab86-85ee-4975-883e-68ca972ea1a9</guid><dc:creator>smackenzie</dc:creator><description>&lt;p&gt;What device is this application running on?&lt;/p&gt;
&lt;p&gt;I would guess the app is adding the number to the end based on duplicate mac addresses or names.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can verify the number is not included in the atcual advertisement data using both the nrfconnect&amp;nbsp;phone application, and also double-checking with the &amp;quot;Bluetooth Low Energy&amp;quot; app in nrfconnect for desktop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random advertising data</title><link>https://devzone.nordicsemi.com/thread/345052?ContentTypeID=1</link><pubDate>Mon, 27 Dec 2021 06:15:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d78f0239-cd09-49f8-90aa-aae123eed228</guid><dc:creator>JohnCC</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; Because this app was not developed by us. So I don&amp;rsquo;t know. I just want to find out where the numbers captured by the app are?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;john.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random advertising data</title><link>https://devzone.nordicsemi.com/thread/345033?ContentTypeID=1</link><pubDate>Sun, 26 Dec 2021 03:34:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8332c56c-33cb-4d4a-b38c-549dc005c099</guid><dc:creator>smackenzie</dc:creator><description>&lt;p&gt;Is it possible that the device you are using to scan for these devices is adding the number to the&amp;nbsp;end of the name?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random advertising data</title><link>https://devzone.nordicsemi.com/thread/345010?ContentTypeID=1</link><pubDate>Fri, 24 Dec 2021 02:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:195a14a7-3889-4b1c-9b52-ef79d012efa7</guid><dc:creator>JohnCC</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span&gt;Also, the max data allowed in an advertisement packet is 31, but you are attempting to add at least 34. -&amp;gt;I don&amp;#39;t know what it means. Should I need to change some thing for my code?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I try to change name type from FULL to SHORT and set SHORT length is 3. But this app is showing &amp;quot;Bry 22&amp;quot;. this number still exist.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;John.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random advertising data</title><link>https://devzone.nordicsemi.com/thread/345003?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 22:28:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e3fc81f-a2c8-483e-9991-a68197d61923</guid><dc:creator>smackenzie</dc:creator><description>&lt;p&gt;It dosent seem you are actually setting the name of your device to `DEVICE_NAME`.&lt;/p&gt;
&lt;p&gt;Also, the max data allowed in an advertisement packet is 31, but you are attempting to add at least 34.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random advertising data</title><link>https://devzone.nordicsemi.com/thread/344871?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 05:20:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee3928c0-a31c-40af-8318-e13e9419726c</guid><dc:creator>JohnCC</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Below is my code about adverting data&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define DEVICE_NAME                     &amp;quot;Bryton Trainer&amp;quot;                               /**&amp;lt; Name of device. Will be included in the advertising data. */

static void advertising_init(void)
{
    int32_t   err_code;
    ble_advertising_init_t init;


    ble_uuid_t m_adv_uuids[] = {{BLE_UUID_CYCLING_POWER,  BLE_UUID_TYPE_BLE},
                               {BLE_UUID_FITNESS_MACHINE, BLE_UUID_TYPE_BLE}};

    memset(&amp;amp;init, 0, sizeof(init));

    init.advdata.name_type               = BLE_ADVDATA_FULL_NAME;
    init.advdata.include_appearance      = true;
    init.advdata.flags                   = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;
    init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    init.advdata.uuids_complete.p_uuids  = m_adv_uuids;

    init.config.ble_adv_fast_enabled  = true;
    init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;
    init.config.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_IN_SECONDS;

    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;p&gt;&lt;/p&gt;
&lt;p&gt;So, nrf_connect will show the SHORT_LOCAL_NAME, is it right?&lt;/p&gt;
&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;John.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random advertising data</title><link>https://devzone.nordicsemi.com/thread/344867?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 02:53:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:392ae28c-a495-4aee-b54b-97f29511ec8b</guid><dc:creator>smackenzie</dc:creator><description>&lt;p&gt;How are you adding the name to the advertisement data?&lt;/p&gt;
&lt;p&gt;Is the app possibly displaying the FULL_LOCAL_NAME where nrfconnect is showing the SHORT_LOCAL_NAME?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random advertising data</title><link>https://devzone.nordicsemi.com/thread/344865?ContentTypeID=1</link><pubDate>Thu, 23 Dec 2021 02:09:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7f26892-656a-4cf9-b55c-47a44d2c48a7</guid><dc:creator>JohnCC</dc:creator><description>&lt;p&gt;Hi lared,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I don&amp;#39;t use sniffer to get data. I just want to know a possible solution&lt;/p&gt;
&lt;p&gt;I can wait. Thank you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;John.&amp;nbsp; &amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Random advertising data</title><link>https://devzone.nordicsemi.com/thread/344786?ContentTypeID=1</link><pubDate>Wed, 22 Dec 2021 12:53:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c913b7f5-f399-4734-a296-d05d74883466</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Have you tried checking the actual advertising data with a sniffer trace? Does it contain this number?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;We&amp;#39;re currently short on staff due to the Holiday season. Expect some delay in the handling of this case.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>