<?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>Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/24045/add-manufacturer-data</link><description>Dear Nordic Team, 
 Thanks for supporting. 
 If any possible to add manufacturer data in example experimental_ble_app_blinky in advertisement. i am using SDk11 and my hardware is PCA10028. Please support.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Mar 2018 11:57:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/24045/add-manufacturer-data" /><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/125719?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 11:57:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ceeb3b85-24b7-4f76-8014-b147e21a9bdc</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
&lt;p&gt;I can see that you have made a new thread with this issue.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/32640/add-manufacturer-data"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/32640/add-manufacturer-data&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Please try to keep the discussion in that thread.&lt;/p&gt;
&lt;p&gt;Cheers.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/125685?ContentTypeID=1</link><pubDate>Fri, 23 Mar 2018 09:42:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff559dd2-0557-42ac-a1f1-87a087281747</guid><dc:creator>kirt</dc:creator><description>&lt;p style="padding-left:30px;"&gt;hi Joakim Jakabsen&lt;/p&gt;
&lt;p&gt;i am&amp;nbsp; using sdk 14,nRF52 dk and trying add manufacturer data in sdk14 example.&lt;/p&gt;
&lt;p&gt;as suggested by you in above reply i have added&amp;nbsp; this&amp;nbsp; to advertising .so advertising_ init()&lt;/p&gt;
&lt;p&gt;{&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;ret_code_t err_code;&lt;br /&gt; ble_advertising_init_t init;&lt;/p&gt;
&lt;p&gt;ble_advdata_manuf_data_t adv_manuf_data;&lt;br /&gt; uint8_t adv_manuf_data_data[] = &amp;quot;Data&amp;quot;;&lt;br /&gt; adv_manuf_data.data.p_data = adv_manuf_data_data;&lt;br /&gt; adv_manuf_data.data.size = sizeof(adv_manuf_data_data);&lt;br /&gt; adv_manuf_data.company_identifier = 0x0059; //Nordic&amp;#39;s company ID &lt;br /&gt; &lt;br /&gt; memset(&amp;amp;init, 0, sizeof(init));&lt;/p&gt;
&lt;p&gt;init.advdata.name_type = BLE_ADVDATA_FULL_NAME;&lt;br /&gt; init.advdata.include_appearance = true;&lt;br /&gt; init.advdata.flags = BLE_GAP_ADV_FLAGS_LE_ONLY_GENERAL_DISC_MODE;&lt;br /&gt; &lt;br /&gt; init.advdata.p_manuf_specific_data = &amp;amp;adv_manuf_data;&lt;br /&gt; init.advdata.uuids_complete.uuid_cnt = sizeof(m_adv_uuids) / sizeof(m_adv_uuids[0]);&lt;br /&gt; init.advdata.uuids_complete.p_uuids = m_adv_uuids;&lt;/p&gt;
&lt;p&gt;init.config.ble_adv_fast_enabled = true;&lt;br /&gt; init.config.ble_adv_fast_interval = APP_ADV_INTERVAL;&lt;br /&gt; init.config.ble_adv_fast_timeout = APP_ADV_TIMEOUT_IN_SECONDS;&lt;/p&gt;
&lt;p&gt;init.evt_handler = on_adv_evt;&lt;/p&gt;
&lt;p&gt;err_code = ble_advertising_init(&amp;amp;m_advertising, &amp;amp;init);&lt;br /&gt; &lt;br /&gt; APP_ERROR_CHECK(err_code);&lt;/p&gt;
&lt;p&gt;ble_advertising_conn_cfg_tag_set(&amp;amp;m_advertising, APP_BLE_CONN_CFG_TAG);&lt;/p&gt;
&lt;p&gt;}&lt;/p&gt;
&lt;p&gt;hardware is pca10040.i am getting return error code 12(invalid size) .please support&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/94668?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 06:00:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94cc7a9b-c39f-409b-966e-16c97bb1d857</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Happy to help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/94667?ContentTypeID=1</link><pubDate>Fri, 04 Aug 2017 05:58:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f285b38-96b4-4730-9519-f415e5a45e2c</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/94666?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 12:27:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f33aeae-3a41-4dd4-89fd-59b2f7433237</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Murugan. I tried adding manufacturer data to the ble_app_blinky example in SDK 11, and it seems to be quite straight forward.&lt;/p&gt;
&lt;p&gt;in &lt;strong&gt;advertising_init(void)&lt;/strong&gt; i added:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;ble_advdata_manuf_data_t 		  adv_manuf_data;
uint8_t 		                  adv_manuf_data_data[] = &amp;quot;Data&amp;quot;;
	
adv_manuf_data.data.p_data        = adv_manuf_data_data;
adv_manuf_data.data.size          = sizeof(adv_manuf_data_data);
adv_manuf_data.company_identifier = 0x0059; //Nordic&amp;#39;s company ID
advdata.p_manuf_specific_data     = &amp;amp;adv_manuf_data;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And it seems to be working just fine.&lt;br /&gt;
The 16-bit company ID (0x0059), is a unique 16-bit value assigned to Bluetooth SIG members. It is not allowed to broadcast a custom company ID value without being a member.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/94665?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 09:29:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4bc01d07-03c3-4d38-9fd4-5fb12942367a</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;No problem, you are welcome to post another question if you run into any problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/94664?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 09:25:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:138b9094-f8c3-4dec-aff0-032bb0df4f44</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;ok thank you. I will try then update you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/94663?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 09:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a103f1b3-cdd3-4569-ba2d-1301f1fd0fda</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Yes, it should be possible to use the experimental_ble_app_blinky example as well.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/94662?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 07:37:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8dab4e3-96ad-40b1-8d69-5eac789758fb</guid><dc:creator>Murugan</dc:creator><description>&lt;p&gt;Thanks for reply. I already implement and tested in ble_app_uart example. But now i want to use example experimental_ble_app_blinky. I want to know if it is possible ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Add Manufacturer Data</title><link>https://devzone.nordicsemi.com/thread/94661?ContentTypeID=1</link><pubDate>Thu, 03 Aug 2017 07:30:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8681bc02-eff4-4b64-aaee-9ac81d018fa6</guid><dc:creator>Roger Clark</dc:creator><description>&lt;p&gt;Take a look at the ble_app_beacon example&lt;/p&gt;
&lt;p&gt;This includes manufacturer data, because iBeacons use manufacturer data to hold details of the beacon.&lt;/p&gt;
&lt;p&gt;Note. You do not need to use exactly the same data structure for&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static uint8_t m_beacon_info[APP_BEACON_INFO_LENGTH] =                    /**&amp;lt; Information advertised by the Beacon. */
{
    APP_DEVICE_TYPE,     // Manufacturer specific information. Specifies the device type in this
                         // implementation.
    APP_ADV_DATA_LENGTH, // Manufacturer specific information. Specifies the length of the
                         // manufacturer specific data in this implementation.
    APP_BEACON_UUID,     // 128 bit UUID value.
    APP_MAJOR_VALUE,     // Major arbitrary value that can be used to distinguish between Beacons.
    APP_MINOR_VALUE,     // Minor arbitrary value that can be used to distinguish between Beacons.
    APP_MEASURED_RSSI    // Manufacturer specific information. The Beacon&amp;#39;s measured TX power in
                         // this implementation.
};
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;You can use a array of bytes instead.&lt;/p&gt;
&lt;p&gt;You just need to setup the pointer to your data and also its length&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;manuf_specific_data.data.p_data = (uint8_t *) m_beacon_info;
manuf_specific_data.data.size   = APP_BEACON_INFO_LENGTH;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;advdata.p_manuf_specific_data = &amp;amp;manuf_specific_data;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;before calling&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = ble_advdata_set(&amp;amp;advdata, NULL);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;One thing to be aware of, is that the size of the manufacturer data is limited by the maximum size of the advertising packet, and also what other data is in the advertising packet.&lt;/p&gt;
&lt;p&gt;e.g. if you use a long name, and / or a 128 bit service etc in your advertising packet, there will be less spare for the manufacturer data&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>