<?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>Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75459/zephyr-issues-with-limited-advertising-events-on-nrf52840</link><description>I&amp;#39;ve previously successfully done interval advertisements using a SoftDevice with Nordic&amp;#39;s previous (non-Zephyr) sdk, but I&amp;#39;m having issues replicating it on Zephyr. 
 Our desired goal is as follows: we want to be able to send exactly 3 advertising events</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 06 Sep 2022 18:06:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75459/zephyr-issues-with-limited-advertising-events-on-nrf52840" /><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/384857?ContentTypeID=1</link><pubDate>Tue, 06 Sep 2022 18:06:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7824a900-28e2-41ec-aa76-3f6202cad67e</guid><dc:creator>Sukriti </dc:creator><description>&lt;p&gt;Hi Nathan, I am trying to limit the number of advertising events to a small number. But seems like this can not be done using legacy advertisements in nRF Connect SDK. nRF5 SDK supported this, as you also mentioned in one of your answers. Can you please tell me how you managed to limit the number of events without enabling extended advertising?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/314216?ContentTypeID=1</link><pubDate>Tue, 08 Jun 2021 12:44:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:766551d2-ffa1-4111-979c-d15491ce8179</guid><dc:creator>Sigurd</dc:creator><description>[quote user="NathanML"]I disabled the&amp;nbsp;BT_LE_ADV_OPT_EXT_ADV option in parameter initialization and now the advertisements show up in nRF Connect[/quote]
&lt;p&gt;&amp;nbsp;Great!&lt;/p&gt;
&lt;p&gt;PS: In nRF Connect mobile app, you can go into &amp;quot;Device information&amp;quot;, and you will get a list over the BLE features the phone/tablet supports.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/313214?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 20:07:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea701087-a805-42e3-96f3-0387acace70e</guid><dc:creator>NathanML</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As we are not trying to actually do extended advertisements (but merely need to enable them in order to get event limited advertisements to work in Zephyr), I disabled the&amp;nbsp;BT_LE_ADV_OPT_EXT_ADV option in parameter initialization and now the advertisements show up in nRF Connect- the tablet must not have supported extended advertising, which is fine since we didn&amp;#39;t need that functionality in the first place.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/313175?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 14:40:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a13d98b-e3f6-4e51-9cc2-4b457f0f4aff</guid><dc:creator>NathanML</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I was hoping you might be able to tell me that- does the nRF Connect Android app support advertising extensions?&lt;/p&gt;
&lt;p&gt;Because it worked with the previous sdk, I&amp;#39;m assuming that it does. Unless the way that the previous sdk did advertising events (by setting max_adv_events in the structure shown below) was not with extended advertising:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static ble_gap_adv_params_t m_adv_params;                                  /**&amp;lt; Parameters to be passed to the stack when starting advertising. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And yes, in testing I increased the number of events significantly, as well as increased the timeout duration, and still did not see any advertising data showing up.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/313162?ContentTypeID=1</link><pubDate>Wed, 02 Jun 2021 14:19:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:699676da-119b-4ebc-b815-4cbee5b76665</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]First and foremost, it appears that BLE advertisements continue to be sent, rather than stopping at 3 events (though my sent callback does fire after 3 events are sent). I&amp;#39;m using the nRF Connect bluetooth app on my tablet to confirm this is the case, and the signal strength and interval numbers continue to update.[/quote]
&lt;p&gt;When you tested this, this was also with&amp;nbsp;bt_le_ext_adv_start()? i.e. do we know if the tablet supports advertising extensions(AE)?&lt;/p&gt;
[quote user="NathanML"]But, I don&amp;#39;t see any advertising data with the current sample code. How do you recommend validating it?[/quote]
&lt;p&gt;&amp;nbsp;Do you see it if you increase&amp;nbsp;BLE_ADV_EVENTS? maybe from 3, to e.g. 50?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/312983?ContentTypeID=1</link><pubDate>Tue, 01 Jun 2021 21:41:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:88ee1497-b3db-4b46-a4a2-3240c43e7e4a</guid><dc:creator>NathanML</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;While I was able to program this sample code onto my device fine, I am not able to validate it with testing. I&amp;#39;ve been using nRF Connect on my Android tablet to validate bluetooth advertising. Previously, I was able to successfully see advertising events with Zephyr non-extended advertising, and successfully had this interval method with 3 events working on the previous sdk also showing up in this app.&lt;/p&gt;
&lt;p&gt;But, I don&amp;#39;t see any advertising data with the current sample code. How do you recommend validating it? Maybe I&amp;#39;m missing something in testing?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/312514?ContentTypeID=1</link><pubDate>Sun, 30 May 2021 21:08:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c115fe66-cc6d-4416-8317-3e3d50b40583</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It works fine here. I was not able to reproduce the issue.&lt;/p&gt;
&lt;p&gt;If you are not able to solve the issue by looking at the attached sample code, could you then upload a small sample that reproduces the issue?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/peripheral_5F00_limited_5F00_adv.zip"&gt;devzone.nordicsemi.com/.../peripheral_5F00_limited_5F00_adv.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/312444?ContentTypeID=1</link><pubDate>Fri, 28 May 2021 15:53:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5138cde-2e38-4c04-b429-06dbd3e3b408</guid><dc:creator>NathanML</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Were you able to look into this?&lt;/p&gt;
&lt;p&gt;Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/311526?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 14:20:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:efc18fe8-5228-4106-9805-797fd538829f</guid><dc:creator>NathanML</dc:creator><description>&lt;p&gt;Hi Sigurd,&lt;/p&gt;
&lt;p&gt;Thanks for the response!&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Correct, I&amp;#39;m using NCS v1.5.0. I&amp;#39;m using the default bluetooth settings in NCS, so the SoftDevice Bluetooth Controller.&lt;/p&gt;
&lt;p&gt;For reference, my prj.conf file is as follows:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_ASSERT=y
CONFIG_LOG=y

CONFIG_BT=y
CONFIG_BT_EXT_ADV=y

CONFIG_BT_DEBUG_LOG=y
CONFIG_USE_SEGGER_RTT=y
CONFIG_RTT_CONSOLE=y
CONFIG_UART_CONSOLE=n
CONFIG_LOG_IMMEDIATE=y

# Support for battery measurement using ADC
CONFIG_ADC=y

# Support for strtok
CONFIG_NEWLIB_LIBC=y

# Sensors
CONFIG_SENSOR=y
CONFIG_I2C=y

# LED support
CONFIG_GPIO=y

# NVS - support for configuration data storage
CONFIG_FLASH=y
CONFIG_FLASH_PAGE_LAYOUT=y
CONFIG_NVS=y
CONFIG_NVS_LOG_LEVEL_DBG=y
CONFIG_MPU_ALLOW_FLASH_WRITE=y

# Support reboot/soft reset
CONFIG_REBOOT=y

# BT Settings for NUS
CONFIG_BT_PERIPHERAL=y
CONFIG_BT_DEVICE_APPEARANCE=833
CONFIG_BT_MAX_CONN=1
CONFIG_BT_MAX_PAIRED=1

# Enable the NUS service
CONFIG_BT_NUS=y

# Enable bonding
CONFIG_BT_SETTINGS=y
CONFIG_FLASH_MAP=y
CONFIG_SETTINGS=y&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Zephyr issues with limited advertising events on nRF52840</title><link>https://devzone.nordicsemi.com/thread/311511?ContentTypeID=1</link><pubDate>Tue, 25 May 2021 13:54:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef3b6937-a51a-469f-a8d8-fdf58fbb8c63</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I will take a look at this.&lt;/p&gt;
&lt;p&gt;What version of NCS are you using? v1.5.0?&lt;/p&gt;
&lt;p&gt;Are you using the SoftDevice Bluetooth Controller(this is the default in NCS), or the Zephyr Bluetooth Controller? (see &lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/ug_ble_controller.html"&gt;this link&lt;/a&gt;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>