<?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>ble adverting include mac address</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/23889/ble-adverting-include-mac-address</link><description>I have set the
advdata.include_ble_device_address = true
in advertising_init function. However, the mac address data is not shown in mobile APP. 
 Is it due to the fact that I have already include some data in advdata.manu_specific_data?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 31 Jul 2017 01:31:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/23889/ble-adverting-include-mac-address" /><item><title>RE: ble adverting include mac address</title><link>https://devzone.nordicsemi.com/thread/93995?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 01:31:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:284bf6f2-5af4-421f-a516-0261b917920d</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;iOS does not allow Apps to see the Mac address of a BLE device.
iOS uses its own UUID system to identify each device, but this UUID is not unique across different iOS device.&lt;/p&gt;
&lt;p&gt;e.g. if you run the same iOS on 2 identical iPhones, the UUID value for the same BLE device will be different on those 2 identical iPhones&lt;/p&gt;
&lt;p&gt;If you be able to retrieve the Mac address from within an iOS app, you would need to copy the Mac address to the Manufacturer data, and add that to the advertising data.&lt;/p&gt;
&lt;p&gt;In which case you may as well have your own serial number or UUID instead of Mac address to identify each device uniquely.
Each nRF5x device has an internal 48 bit serial number you can use for this purpose (I don&amp;#39;t know if its totally guaranteed to be unique, but I don&amp;#39;t think Mac addresses are guaranteed to be unique either)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble adverting include mac address</title><link>https://devzone.nordicsemi.com/thread/93990?ContentTypeID=1</link><pubDate>Mon, 31 Jul 2017 00:46:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:520fa90f-4062-44e7-b27c-9af567eda01c</guid><dc:creator>Fiske</dc:creator><description>&lt;p&gt;I am using IOS LightBlue and nRF Connect. Both app can not show mac address&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble adverting include mac address</title><link>https://devzone.nordicsemi.com/thread/93994?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 22:57:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5393e703-f23e-4792-8bd4-c49f9709d222</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;What App are you using to view the advertising data.
I thought the MAC address was always sent but most Apps don&amp;#39;t show you the whole advertising packet&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble adverting include mac address</title><link>https://devzone.nordicsemi.com/thread/93996?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 11:34:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:051837ee-a972-4881-93a4-8b6fdfa144fd</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Hi Fiske , Try This One &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Adv_5F00_init.txt"&gt;Adv_init.txt&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble adverting include mac address</title><link>https://devzone.nordicsemi.com/thread/93993?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 11:27:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:022ae78c-da61-4fe6-abb4-91aba527297e</guid><dc:creator>Fiske</dc:creator><description>&lt;p&gt;It is based on ble_app_uart&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;/**@brief Function for initializing the Advertising functionality.
 */
void advertising_init(void)
{
    uint32_t               err_code;
    ble_advdata_t          advdata;
    ble_advdata_t          scanrsp;
    ble_adv_modes_config_t options;
//     uint8_t m_addl_adv_manuf_data[] = {0x08, 0xFF, 0x11, 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06};

    ble_advdata_manuf_data_t   manuf_data;
    manuf_data.data.size = 6;
    manuf_data.data.p_data = MfgSpecData;
    manuf_data.company_identifier = 0xff00;
    
    // 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_LIMITED_DISC_MODE;
    advdata.flags              = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;

    memset(&amp;amp;scanrsp, 0, sizeof(scanrsp));
    scanrsp.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);
    scanrsp.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_ADV_INTERVAL;
    options.ble_adv_fast_timeout  = APP_ADV_TIMEOUT_IN_SECONDS;
    

    advdata.p_manuf_specific_data = &amp;amp;manuf_data;
    
    advdata.include_ble_device_addr = true;
    
    
 //   strcpy((char *)(scanrsp.p_manuf_specific_data-&amp;gt;data),(const char*)MfgSpecData);
    
    err_code = ble_advertising_init(&amp;amp;advdata, &amp;amp;scanrsp, &amp;amp;options, on_adv_evt, NULL);
    APP_ERROR_CHECK(err_code);   
   /* 
    memcpy(m_addl_adv_manuf_data+4,MfgSpecData,6);
    err_code = sd_ble_gap_adv_data_set(m_addl_adv_manuf_data, sizeof(m_addl_adv_manuf_data), NULL, 0);
    APP_ERROR_CHECK(err_code);
    */
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble adverting include mac address</title><link>https://devzone.nordicsemi.com/thread/93992?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 11:05:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ebe1bb07-6beb-4415-96ba-1a841c000715</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;what is your application? Show me a adv_init function.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble adverting include mac address</title><link>https://devzone.nordicsemi.com/thread/93991?ContentTypeID=1</link><pubDate>Fri, 28 Jul 2017 10:53:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:937a9997-91a4-46cc-87fe-35a5ef2f2238</guid><dc:creator>Fiske</dc:creator><description>&lt;p&gt;I am using nRF51822 with S130 softdevice&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>