<?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>Controlled number of advertising packets</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81605/controlled-number-of-advertising-packets</link><description>Hi, We are using the SDK v17.1.0 and SD S140 v7.2.0. In our application we have to send only 1 advertising packet with updated data every 300ms and in some cases every 50ms for synchronization purposes. We have a periodic timer which starts and stops</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 11 Nov 2021 12:19:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81605/controlled-number-of-advertising-packets" /><item><title>RE: Controlled number of advertising packets</title><link>https://devzone.nordicsemi.com/thread/338558?ContentTypeID=1</link><pubDate>Thu, 11 Nov 2021 12:19:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a6ae4c5-e1cd-4946-9504-95cc23d55869</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It&amp;#39;s strange that you don&amp;#39;t see the advertisements after updating the payload. Do you check for errors when you call advertising update and start? Note that you can also update the payload on the fly as explained in this blog post: &lt;a href="https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/how-to-update-advertising-data-dynamically-using-ble-advertising-library?CommentId=a03b6f8d-71bf-4481-b6fb-7b1fea3a8357"&gt;https://devzone.nordicsemi.com/guides/short-range-guides/b/bluetooth-low-energy/posts/how-to-update-advertising-data-dynamically-using-ble-advertising-library?CommentId=a03b6f8d-71bf-4481-b6fb-7b1fea3a8357&lt;/a&gt; (only payload - advertising must be stopped if you need to change adv. parameters as well)&lt;/p&gt;
&lt;p&gt;EDIT:&lt;/p&gt;
[quote user=""]This device is a multi-role device. It is also acting as a central and scanning continuously. Could that have an effect on the radio ?[/quote]
&lt;p&gt;&lt;span&gt;s&lt;a title="sd_ble_gap_adv_start" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s140.api.v7.3.0/group___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html?cp=4_7_4_1_2_1_3_4#ga74c21287bd6cbcd5822bc73792f678d8"&gt;d_ble_gap_adv_start&lt;/a&gt;() will return with NRF_ERROR_RESOURCS if the stack is too busy performing scanning and maintaining other connections. In that case, you may try du reduce the scan windows.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>