<?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>BLE peripheral with 5 simultaneous advertising sets?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/78906/ble-peripheral-with-5-simultaneous-advertising-sets</link><description>I am developing for nRF52832 chip running the latest version of SDK. I&amp;#39;m looking to enhance my application to support 5 simultaneous advertising sets. These are non-connectable advertisements which hopefully should simplify things a bit. Does the SDK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Aug 2021 07:43:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/78906/ble-peripheral-with-5-simultaneous-advertising-sets" /><item><title>RE: BLE peripheral with 5 simultaneous advertising sets?</title><link>https://devzone.nordicsemi.com/thread/326902?ContentTypeID=1</link><pubDate>Fri, 27 Aug 2021 07:43:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:601aba9b-a116-4d8c-a8e1-11060e814e11</guid><dc:creator>Draco</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thanks for that info. I managed to get my app to send all the advertisements after experimenting with many different methods. Here&amp;#39;s my findings:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;I set the advertisement interval to 100ms, and update the advertisement data every 100ms in the middle of the interval, i.e.:&amp;nbsp;&amp;nbsp; &lt;em&gt;&lt;strong&gt;Start advertisement ---&amp;gt; update advertisement 150ms later ---&amp;gt; update advertisement 100ms later ---&amp;gt; ... &lt;/strong&gt;&lt;/em&gt;&amp;nbsp; What I observed is the first advertisement is often not sent out. Is there an event for when an advertisement is sent out?&lt;/li&gt;
&lt;li&gt;I set the advertisement interval to 100ms, and used `&lt;strong&gt;ble_radio_notification_init&lt;/strong&gt;` to get the radio event. In the radio event handler, I update the advertisement data when radio state is off. This is working reliably, except when I run scanning and advertising concurrently. I can&amp;#39;t work out whether the radio event was for scan or transmit.&lt;/li&gt;
&lt;li&gt;I set both advertisement interval and&amp;nbsp;advertisement duration to 100ms. I look for `&lt;strong&gt;BLE_GAP_EVT_ADV_SET_TERMINATED&lt;/strong&gt;` event to update advertisement data and start another round of 100ms advertisement. With this option, I get huge data loss, probably because the advertisements were not sent out.&lt;/li&gt;
&lt;li&gt;When I run my scanner (interval 500ms, window 490ms, duration 0) concurrently with the advertisement, I only see the very occasional advertisement get sent out. If I change both the scan interval and window to 20ms, I get more advertisement packets. How do I reliably scan and advertise 5 data sets concurrently?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Good chance that I&amp;#39;m not reading the documentation correctly, but the behavior I&amp;#39;ve observed does not make sense to me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE peripheral with 5 simultaneous advertising sets?</title><link>https://devzone.nordicsemi.com/thread/326551?ContentTypeID=1</link><pubDate>Wed, 25 Aug 2021 12:40:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:101365c3-6986-4124-9e9c-ac1377032d97</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Please check out:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/how-to-update-advertising-data-dynamically-using-ble-advertising-library"&gt;https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/how-to-update-advertising-data-dynamically-using-ble-advertising-library&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>