<?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>Update data of extended advertisement (BLE5)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/62222/update-data-of-extended-advertisement-ble5</link><description>Hello 
 I would like to use the extended advertisement feature of BLE 5 and sometimes update the data. My code works but there is one of your functions which returns me an error code which disturbs a little. When I call the &amp;quot;ble_advertising_advdata_update</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Jun 2020 12:07:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/62222/update-data-of-extended-advertisement-ble5" /><item><title>RE: Update data of extended advertisement (BLE5)</title><link>https://devzone.nordicsemi.com/thread/254717?ContentTypeID=1</link><pubDate>Fri, 12 Jun 2020 12:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3bd48889-befd-47a6-8383-d34682025eb1</guid><dc:creator>QuentinD</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;&lt;br /&gt;It works now.&lt;/p&gt;
&lt;p&gt;For this to work, I had to do a ble_advertising_init (...) and then a ble_advertising_conn_cfg_tag_set (...)&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update data of extended advertisement (BLE5)</title><link>https://devzone.nordicsemi.com/thread/254414?ContentTypeID=1</link><pubDate>Thu, 11 Jun 2020 09:37:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b928faba-d328-4c83-aed0-f02b9ef5da29</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Quentin&lt;/p&gt;
&lt;p&gt;The following procedure should be sufficient. Stop advertising using&lt;span&gt;sd_ble_gap_adv_stop, run another advertising_init() function where you change your advertising parameters, and start again. Seeing as you apparently don&amp;#39;t have enough memory to do so though, you should update the existing advertising handle. Please see the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v7.0.1%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;&amp;amp;anchor=ga9969047f4e7485c3f856c841978cc31a"&gt;sd_ble_gap_adv_set_configure &lt;/a&gt;documentation on the Infocenter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update data of extended advertisement (BLE5)</title><link>https://devzone.nordicsemi.com/thread/254150?ContentTypeID=1</link><pubDate>Wed, 10 Jun 2020 07:05:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f95b6d7-2dc9-45f4-aa23-c1a6f4c4b1c1</guid><dc:creator>QuentinD</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;&lt;br /&gt;I think it&amp;#39;s a good idea but how do you uninitialize the module?&lt;br /&gt;If I set the whole structure to 0 and after that I reinitialize the advertising module , I receive the error 4 (Not enough memory to configure a new advertising handle. Update an existing advertising handle instead)&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update data of extended advertisement (BLE5)</title><link>https://devzone.nordicsemi.com/thread/254062?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 13:24:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1eb71aeb-6ad5-4801-926c-c3ac5e32a183</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;sd_ble_gap_adv_set_configure()&amp;nbsp;&lt;strong&gt;only&amp;nbsp;&lt;/strong&gt;returns error 9 (NRF_ERROR_INVALID_LENGTH) if the advertising data length is invalid, so in your case, I assume the extended advertising parameter isn&amp;#39;t &amp;quot;activated&amp;quot; upon recalling this function. I think you might have to uninitialize and reinitialize the advertising module altogether when going from BLE4 to BLE5 advertisements in order to ensure that extended advertising is initialized correctly.&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: Update data of extended advertisement (BLE5)</title><link>https://devzone.nordicsemi.com/thread/253981?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 09:30:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ac3ad34-3da9-47ba-8850-d26d48904bb4</guid><dc:creator>QuentinD</dc:creator><description>&lt;p&gt;Hi Simonr&lt;br /&gt;&lt;br /&gt;In my application, I used 2 different advertisements. I have a advertisement for BLE5 which countain more data (with&amp;nbsp;extended advertising enabled) and advertise&amp;nbsp;for 1 second. Next, it is a advertisement for BLE4&amp;nbsp;which advertise&amp;nbsp;for 1 second.&lt;br /&gt;&lt;br /&gt;Everything seems to work but I get error 9 from &amp;quot;sd_ble_gap_adv_set_configure()&amp;quot; function&amp;nbsp;which I don&amp;#39;t understand why.&lt;br /&gt;The first time I call this function I have no problem (to configure the advertisement BLE4 for example) but after that, if I recall this function to configure the advertisement BLE5 (with new parameters) I have this error &amp;hellip;&lt;br /&gt;&lt;br /&gt;Can you give me the conditions that can return this error?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update data of extended advertisement (BLE5)</title><link>https://devzone.nordicsemi.com/thread/253930?ContentTypeID=1</link><pubDate>Tue, 09 Jun 2020 06:55:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dba3e15f-b114-436c-a667-3e3234a86c2a</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Quentin&lt;/p&gt;
&lt;p&gt;You&amp;#39;re absolutely right, the SoftDevice does take care of putting data into the secondary channels. I guess my explanation was rather lackluster in my previous reply, but it seems like you haven&amp;#39;t enabled extended advertising properly. You can check out the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/ble_sdk_app_rsc.html"&gt;Running speed and Cadence application&lt;/a&gt; for an example of how to enable extended advertising, and check out&lt;a href="https://www.novelbits.io/bluetooth-5-advertisements/"&gt; this blog post &lt;/a&gt;for a more detailed &amp;quot;walkthrough&amp;quot; of the extended advertising setup.&lt;/p&gt;
&lt;p&gt;Please also check out &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41610/extended-advertising/162441#162441"&gt;this case&lt;/a&gt;, which&amp;nbsp;discusses extended advertising in detail.&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: Update data of extended advertisement (BLE5)</title><link>https://devzone.nordicsemi.com/thread/253686?ContentTypeID=1</link><pubDate>Mon, 08 Jun 2020 08:01:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4196987f-84cb-4f92-97db-14649c9bbb7d</guid><dc:creator>QuentinD</dc:creator><description>&lt;p&gt;Hi&lt;br /&gt;&lt;br /&gt;I thought that the SoftDevice automatically added the data on the secondary channel when using the extended advertisement: this is not true?&lt;br /&gt;&lt;br /&gt;If I have to specify that certain parts of my advertising packet must be in the secondary channels: do you have a function which makes it possible to do that? For exemple, is it possible to set &amp;quot;appearance&amp;quot; on the secondary channels ?&lt;br /&gt;&lt;br /&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Update data of extended advertisement (BLE5)</title><link>https://devzone.nordicsemi.com/thread/253544?ContentTypeID=1</link><pubDate>Fri, 05 Jun 2020 12:56:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e27e925-93bb-4f08-9552-d4f90a9a11d5</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The initial advertisement packet won&amp;#39;t be able to exceed 31 bytes, you&amp;#39;ll have to offload the rest of the advertisement to the secondary channels. Please check out the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s140.api.v7.0.1%2Fmodules.html&amp;amp;"&gt;S140 SoftDevice API&lt;/a&gt; for details on how to do this. Unfortunately,&amp;nbsp;I don&amp;#39;t think we have an example that does this already, so you&amp;#39;ll have to add this part yourself I&amp;#39;m afraid.&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></channel></rss>