<?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>Advertise Configuration of manufacturer specific data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/69082/advertise-configuration-of-manufacturer-specific-data</link><description>I want to configure 32bytes sensor measurement data in advertise manufacturer specific data as follows. 
 But does not work, please help me. 
 My environment as follows. 
 SDK 17.0.2 
 nRF52832 
 Edit advertising_init() of the &amp;quot;nRF5_SDK_17.0.2\examples</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Dec 2020 11:56:29 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/69082/advertise-configuration-of-manufacturer-specific-data" /><item><title>RE: Advertise Configuration of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/283524?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 11:56:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f755a48-86b0-4e5c-9cd2-94ab09c3c654</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Glad to hear that!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise Configuration of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/283450?ContentTypeID=1</link><pubDate>Mon, 07 Dec 2020 02:34:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0cf15eb2-bfab-41b0-9b75-5285e4cfb589</guid><dc:creator>RatocKen</dc:creator><description>&lt;p&gt;Hi Simonr-san,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your sound advice.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Following code work fine using ble_app_proximity sample code.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void advertising_init(void)
{
    ret_code_t             err_code;
    ble_advertising_init_t init;

    memset(&amp;amp;init, 0, sizeof(init));

    // Configuration of manufacturer specific data ----------------------
	ble_advdata_manuf_data_t manuf_data; //Variable to hold manufacturer specific data
//                            1         2         3         4         5         6
	uint8_t data[] =&amp;quot;01234567890123456789012345678901234567890123456789012345678901&amp;quot;;

	manuf_data.company_identifier = 0xFFFF; 
	manuf_data.data.p_data = data;
	manuf_data.data.size = sizeof(data);
	init.advdata.p_manuf_specific_data = &amp;amp;manuf_data;
	NRF_LOG_INFO(&amp;quot;Size of manufacturer specific data: %d&amp;quot;, manuf_data.data.size);

    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_DURATION;
    init.config.ble_adv_extended_enabled = true;

    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: Advertise Configuration of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/283328?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 13:36:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:41bf7b20-d00c-4ae3-a4c6-ee1289eb9255</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi there&lt;/p&gt;
&lt;p&gt;Indeed, the Running Speed and Cadence application does include extended advertising, so you can use the advertising_init() function there as reference when setting up your advertiser. From a first glance, it doesn&amp;#39;t seem like you have included&lt;strong&gt;&amp;nbsp;&lt;/strong&gt;&lt;strong&gt;init.config.ble_adv_extended_enabled&amp;nbsp;=&amp;nbsp;true;&lt;/strong&gt; to your advertising init function. I would also suggest setting the advertising data flags to&amp;nbsp;&lt;strong&gt;BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE&amp;nbsp;&lt;/strong&gt;to put it in General Discoverable Mode when using extended advertising.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise Configuration of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/283228?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 03:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87021216-e86a-4ab4-903a-4f8618df6c87</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Ah, maybe have a look at &lt;em&gt;.\examples\ble_peripheral\ble_app_rscs&lt;/em&gt; I seem to recall that project uses extended advertising. Otherwise someone from Nordic pitch in here?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise Configuration of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/283223?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 02:04:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:258a2bca-466f-463a-8fee-bb857d3d57cd</guid><dc:creator>RatocKen</dc:creator><description>&lt;p&gt;&lt;span&gt;Thank you for quick reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I found following information &amp;quot;Extended&amp;nbsp;Advertising&amp;nbsp;support&amp;quot;, why I can extend&amp;nbsp;manufacturer specific data size?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v7.2.0%2Findex.html"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;S132 SoftDevice&amp;nbsp;Specification&lt;br /&gt;Key&amp;nbsp;features&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Extended&amp;nbsp;Advertising&amp;nbsp;support&lt;/p&gt;
&lt;ul class="ul"&gt;
&lt;li class="li"&gt;&lt;span&gt;Advertising&amp;nbsp;and scanning up to 255 bytes of&amp;nbsp;advertising&amp;nbsp;data in an&amp;nbsp;advertising&amp;nbsp;event&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertise Configuration of manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/283222?ContentTypeID=1</link><pubDate>Fri, 04 Dec 2020 01:51:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eab9240a-014f-4110-b58b-881cfd401d60</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;The max length is 31 bytes, 32 is not an option. Have a look at my answer here for an explanation&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/68562/why-am-i-getting-a-length-error-0x09-with-this-advertisement"&gt;length-error-with-this-advertisement&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>