<?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>Issues with dynamically adding/removing manufacturer specific data</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62863/issues-with-dynamically-adding-removing-manufacturer-specific-data</link><description>Hey all, 
 
 I have a custom board running nRF52832 with Softdevice S132 v6.1.0 and SDK15.2. My application requires me to start advertising without any manufacturer data, then add manufacturer data in reaction to an event. To do this, when the event</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Jul 2020 07:29:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62863/issues-with-dynamically-adding-removing-manufacturer-specific-data" /><item><title>RE: Issues with dynamically adding/removing manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/257718?ContentTypeID=1</link><pubDate>Wed, 01 Jul 2020 07:29:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:681e1c9f-7995-4168-9923-ec05531ac08e</guid><dc:creator>aeozyalcin</dc:creator><description>&lt;p&gt;Thanks Amanda.&lt;/p&gt;
&lt;p&gt;For others facing the same issue, I gave up and did it the way most others do. I have multiple advdata objects that hold various different advertisement configurations I use in my project (all with varying manufacturer data length). It&amp;#39;s not elegant, but it works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with dynamically adding/removing manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/256479?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 13:33:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c7c05da-491b-4872-ab0a-98ec97c498cc</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Anil,&amp;nbsp;&lt;/p&gt;
[quote user=""]However I am finding that I can only utilize about 6 bytes of adv_manuf_data_data&amp;nbsp;before my application crashes, due to most likely some sort of a buffer overflow. I don&amp;#39;t have a proper Segger debugger, so I can&amp;#39;t see exactly what error I am getting.[/quote]
&lt;p&gt;We need the debug log to know what happened. You can t&lt;span&gt;he&amp;nbsp;&lt;/span&gt;&lt;span&gt;nRF52 DK&lt;/span&gt;&lt;span&gt;&amp;nbsp;which supports programming and debugging nRF51 and nRF52 devices mounted on external boards.&amp;nbsp;&lt;/span&gt;&lt;span&gt;See the&amp;nbsp;&lt;a title="Debug output" href="https://infocenter.nordicsemi.com/topic/ug_nrf52832_dk/UG/nrf52_DK/hw_debug_out.html?cp=4_2_4_5_9"&gt;Debug output&lt;/a&gt;&amp;nbsp;documentation.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Issues with dynamically adding/removing manufacturer specific data</title><link>https://devzone.nordicsemi.com/thread/256300?ContentTypeID=1</link><pubDate>Tue, 23 Jun 2020 04:46:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c2e2f7fa-e9a6-491d-bbd4-5de5518a398e</guid><dc:creator>aeozyalcin</dc:creator><description>&lt;p&gt;I want to add one more thing I tried, to no avail:&lt;/p&gt;
&lt;p&gt;I have also tried globally declaring&amp;nbsp;&lt;span&gt;ble_advdata_manuf_data_t variable, instead of locally declaring&amp;nbsp;within a function, but it made no difference - I see the exact same behavior. Since we pass the pointer of&amp;nbsp;ble_advdata_manuf_data_t variable to the&amp;nbsp;ble_advdata_t variable (&lt;/span&gt;&lt;span&gt;advdata&lt;/span&gt;&lt;span&gt;.&lt;/span&gt;&lt;span&gt;p_manuf_specific_data)&lt;/span&gt;&lt;span&gt;, I figured it should be ok to dynamically change the contents of&amp;nbsp;ble_advdata_manuf_data_t&amp;nbsp;as long as advertising is stopped. And when I want to remove the manufacturer data again, I just point to a null pointer like so:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;advdata.p_manuf_specific_data = NULL;    &lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But like I said, I see the issue as I described above. Thanks in advance.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>