<?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>changing manufacture data with time</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62456/changing-manufacture-data-with-time</link><description>Hi, 
 I would like to change the manufacturing data with time. My advertising_init function implements the following line 
 init.advdata.p_manuf_specific_data = &amp;amp;manuf_data_response; 
 which attaches the manufacturing data initially. In my previous project</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jun 2020 10:52:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62456/changing-manufacture-data-with-time" /><item><title>RE: changing manufacture data with time</title><link>https://devzone.nordicsemi.com/thread/254679?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 10:52:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70c62d0f-a44c-43ac-a0bb-32c204f671b7</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user="control"]Thanks for fast reply Karl.[/quote]
&lt;p&gt;No problem at all, I am happy to help!&lt;/p&gt;
[quote user="control"]I use Softdevice s112[/quote]
&lt;p&gt;Which version of the s112 SoftDevice are you using?&lt;/p&gt;
[quote user="control"]I prefer your first suggestion but I am not sure if I understand the idea correctly. Please let me know if the&amp;nbsp;&lt;span&gt;ble_advertising_init_t struct stays the same all the time? Can the first instance be sub-struct of&amp;nbsp;ble_advertising_init_t (ble_advdata_t&amp;nbsp; &amp;nbsp;advdata) and second, one additional&amp;nbsp;ble_advdata_t struct or I have to make two additional&amp;nbsp;ble_advdata_t structs?&lt;/span&gt; I will appreciate a more detailed explanation.[/quote]
&lt;p&gt;You will need to have two instances of &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s112.api.v7.0.1%2Fstructble__gap__adv__data__t.html"&gt;ble_gap_adv_data_t&lt;/a&gt;.&lt;br /&gt;&amp;nbsp;&lt;br /&gt;The reason why the *_advdata_update function&amp;nbsp;can not be provided with the same buffers that are already in use, since it uses the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s112.api.v7.0.1%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga9969047f4e7485c3f856c841978cc31a"&gt;ble_gap_adv_set_configure&lt;/a&gt;&amp;nbsp;function - which API Reference documentation reads:&lt;br /&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span&gt;It is invalid to provide the same data buffers while advertising. To update advertising data, provide new advertising buffers.&lt;br /&gt;&lt;br /&gt;So in essence, when updating your advertising data you will need to alternate which ble_gap_adv_data_t struct that is being updated and given to the update function.&lt;br /&gt;&lt;br /&gt;Please do not &lt;span style="font-size:12px;"&gt;hesitate&lt;/span&gt;&amp;nbsp;to let me know if it should still be unclear, or if you should have any other questions.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: changing manufacture data with time</title><link>https://devzone.nordicsemi.com/thread/254652?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 10:00:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67326f4e-35ef-47a1-9b11-0e7fe56dd9a9</guid><dc:creator>control</dc:creator><description>&lt;p&gt;Thanks for fast reply Karl. I use Softdevice s112 and SDK 16.0 which supports the Advertising module. I prefer your first suggestion I think that I understand your idea.&lt;/p&gt;
&lt;p&gt;Thanks for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: changing manufacture data with time</title><link>https://devzone.nordicsemi.com/thread/254487?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 12:27:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f0f073b9-3c3e-432b-9714-04aa3c12a0c0</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello Samo,&lt;br /&gt;&lt;br /&gt;Which SDK and SoftDevice version are you using?&lt;br /&gt;Are you using the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__ble__advertising.html"&gt;Advertising module&lt;/a&gt;?&lt;br /&gt;In that case, you could use the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fsdk_nrf5_v16.0.0%2Fgroup__ble__advertising.html&amp;amp;anchor=ga99dab70061ce04aea98bf226dc0c989f"&gt;&lt;em&gt;*_advdata_update()&amp;nbsp;&lt;/em&gt;function&lt;/a&gt;. Be advised that you can not update the advdata&amp;nbsp;&lt;em&gt;currently&lt;/em&gt; in use with this function, you will have to have two instances and alternate between which instance is currently in use and which is next to be updated.&lt;br /&gt;Alternatively, you will have to stop the advertising, update the advertising data(manufacturing data), and then restart the advertising with the updated data.&lt;br /&gt;&lt;br /&gt;Please let me know if this does not resolve your issue,&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>