<?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>How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15</link><description>I am porting a peripheral project from nRF51822 on SDK 11 to nRF52832 on SDK 15. Currently I&amp;#39;m using15.0, with S132 6.0.0. I used the template project for an initial pattern for working with SDK 15. 
 One thing it needs to do is (if I have the term right</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 28 Apr 2020 09:50:47 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15" /><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/247024?ContentTypeID=1</link><pubDate>Tue, 28 Apr 2020 09:50:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d2c3713-2ede-4af2-9bda-795293db7ebc</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/185800"] I changed the priority to allow the app to stop the non-connectable advertising before the event gets processed by the advertisement module[/quote]
&lt;p&gt;Revisiting to allow multiple connections, this seems to break the&amp;nbsp;Connection State module.&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;See:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/60788/ble_observer_prio---priorities-with-advertising-and-the-connection-state-module"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/60788/ble_observer_prio---priorities-with-advertising-and-the-connection-state-module&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/188032?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 17:43:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d3443a1e-cd28-4f3c-b50a-30ae159cbc2c</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187267"]On Android 8.0, there is no &amp;#39;Connect&amp;#39; button for the Non-Scannable, Non-Connectable advertising[/quote]
&lt;p&gt;Actually, that&amp;#39;s not quite true.&lt;/p&gt;
&lt;p&gt;It seems that nRF Connect is just not very good at keeping that button in-sync with the type of advertising!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187805?ContentTypeID=1</link><pubDate>Mon, 20 May 2019 08:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:222772b7-9ccc-4e50-8f3a-c3da3c6ea041</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I was not aware of this bug, thanks for pointing it out. Anyway, the main purpose of this demo was to show how you can use the &amp;quot;update&amp;quot; API.&amp;nbsp;&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187586"]Is this just an artefact of having the RTT logger attached?[/quote]
&lt;p&gt;I forgot to disable timeout for the non-connectable advertisement, that&amp;#39;s why &lt;span&gt;sleep_mode_enter() got called&lt;/span&gt;.&lt;/p&gt;
&lt;p&gt;sd_power_system_off() will return with an error when the chip is in debug interface mode, see emulated system OFF mode:&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=3_1_0_17_1_0#unique_1199040052"&gt;https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=3_1_0_17_1_0#unique_1199040052&lt;/a&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187589?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 17:28:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87197d32-28e8-4c1b-abd0-beeae96740b2</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187574"]Just remove the code below from update_advertising_data() if you want the data to be updated while connected[/quote]
&lt;p&gt;Actually, that code means that the Advertising Data is never updated after the first connection!&lt;/p&gt;
&lt;p&gt;This is due to a bug in the original Template code - which never clears&amp;nbsp;&lt;strong&gt;m_conn_handle&lt;/strong&gt; after a connection!&lt;/p&gt;
&lt;p&gt;We need to add it on the&amp;nbsp;BLE_GAP_EVT_DISCONNECTED event:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief Function for handling BLE events.
 *
 * @param[in]   p_ble_evt   Bluetooth stack event.
 * @param[in]   p_context   Unused.
 */
static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
    ret_code_t err_code = NRF_SUCCESS;

    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
        case BLE_GAP_EVT_DISCONNECTED:
            NRF_LOG_INFO(&amp;quot;Disconnected.&amp;quot;);

            m_conn_handle = BLE_CONN_HANDLE_INVALID;   //  &amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;lt;  HERE !

            // LED indication will be changed when advertising starts.

&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187586?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 16:56:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e93552f7-2b91-4b38-8760-23a8d5bb03f9</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187574"]Please review and test the example I uploaded in my previous comment[/quote]
&lt;p&gt;I connected &amp;amp; disconnected, then left it connected for a while.&lt;/p&gt;
&lt;p&gt;When I came back, this had happened:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: 8816 Template example with non-connectable advertising while connected.
&amp;lt;info&amp;gt; app: Fast advertising.
&amp;lt;info&amp;gt; app: Connected.
&amp;lt;info&amp;gt; app: Disconnected.
&amp;lt;info&amp;gt; app: Fast advertising.
&amp;lt;info&amp;gt; app: Connected.
&amp;lt;error&amp;gt; app: ERROR 8198 [Unknown error code] at main.c:478
PC at: 0x0002F33B
&amp;lt;error&amp;gt; app: End of error report
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Line 478 is the APP_ERROR_CHECK at the end of sleep_mode_enter():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    // Go to system-off mode (this function will not return; wakeup will cause a reset).
    err_code = sd_power_system_off();
    APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The code is unmodified, apart from the name displayed in the startup log.&lt;/p&gt;
&lt;p&gt;EDIT&lt;/p&gt;
&lt;p&gt;And again - this time while advertising:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;:
:
:
&amp;lt;info&amp;gt; app: Fast advertising.
&amp;lt;info&amp;gt; app: Connected.
&amp;lt;info&amp;gt; app: Disconnected.
&amp;lt;info&amp;gt; app: Fast advertising.
&amp;lt;error&amp;gt; app: ERROR 8198 [Unknown error code] at main.c:478
PC at: 0x0002F33B
&amp;lt;error&amp;gt; app: End of error report

&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Is this just an artefact of having the RTT logger attached?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187576?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 15:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bce6adc6-bcb0-45a4-946e-e9e6fcadf677</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I had separately tried to do it without adjusting priorities:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/47391/sdk-15-3-0-restart-non-connectable-advertising-after-timeout"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/47391/sdk-15-3-0-restart-non-connectable-advertising-after-timeout&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But that has its own issues!&lt;/p&gt;
&lt;p&gt;Will have a look at your latest ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187574?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 15:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdfca743-34e4-4d53-a727-dd8dc677dbc4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Please review and test the example I uploaded in my previous comment.&amp;nbsp; Just remove the code below from update_advertising_data() if you want the data to be updated while connected.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;    /* In this demo we update advertising while we&amp;#39;re disconnected*/
    if (m_conn_handle != BLE_CONN_HANDLE_INVALID)
    { 
        return;
    }&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187570?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 14:52:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:37f2efa9-3be2-4025-99c9-4bf75596b242</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187435"]update advertising data while disconnected[/quote]
&lt;p&gt;It needs to keep updating the advertising data at all times - not just while disconnected.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187435"]It works, but we should have made it more clear[/quote]
&lt;p&gt;It could hardly be less clear!&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187435"]Note the last line.&amp;nbsp;[/quote]
&lt;p&gt;It remains as clear as mud!&lt;/p&gt;
&lt;p&gt;Please&amp;nbsp;update that thread with a complete example.&lt;/p&gt;
[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187435"]Are you not getting&amp;nbsp;BLE_GAP_EVT_ADV_SET_TERMINATED event on timeout?&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;No - no event at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187435?ContentTypeID=1</link><pubDate>Thu, 16 May 2019 07:56:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44156baf-87f1-4c5b-b5fc-8c7c9f2933e0</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I&amp;#39;ve expanded the example above to update advertising data while disconnected. It&amp;#39;s built with SDK v15.3.0. Please see attached below.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/8816.ble_5F00_app_5F00_template.zip"&gt;devzone.nordicsemi.com/.../8816.ble_5F00_app_5F00_template.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;[quote userid="6462" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187363"][/quote]&lt;/p&gt;
&lt;p&gt;But, as previously noted, it does not work:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/183212#183212"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/183212#183212&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It works, but we should have made it more clear that you need to provide a new buffer when you update the data.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Excerpt of the code comments for the&amp;nbsp;&amp;nbsp;ble_gap_adv_data_t struct:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/**@brief GAP advertising data buffers.
 *
 * The application must provide the buffers for advertisement. The memory shall reside in application RAM, and
 * shall never be modified while advertising. The data shall be kept alive until either:
 *  - @ref BLE_GAP_EVT_ADV_SET_TERMINATED is raised.
 *  - @ref BLE_GAP_EVT_CONNECTED is raised with @ref ble_gap_evt_connected_t::adv_handle set to the corresponding
 *    advertising handle.
 *  - Advertising is stopped.
 *  - Advertising data is changed.
 * To update advertising data while advertising, provide new buffers to @ref sd_ble_gap_adv_set_configure. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Note the last line.&amp;nbsp;&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187363"]But with &lt;a href="https://devzone.nordicsemi.com/members/vibe" class="internal-link view-user-profile"&gt;Vidar Berg&lt;/a&gt;&amp;#39;s code here, I no longer get the&amp;nbsp;&lt;span&gt;Advertising Timeout event!&lt;/span&gt;[/quote]
&lt;p&gt;Are you not getting&amp;nbsp;BLE_GAP_EVT_ADV_SET_TERMINATED event on timeout?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187363?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 19:05:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de762115-a883-41e2-af9f-0f6612dbbbe8</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/180421"]The advertisement&amp;nbsp;module in SDK 15.3.0 includes an API for updating advertisement&amp;nbsp;data on the fly[/quote]
&lt;p&gt;But, as previously noted, it does not work:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/183212#183212"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/183212#183212&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;As a workaround in SDK 15.3.0, I use the Advertising Timeout and do the update there before re-starting advertising (which is similar to other suggestions):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/187065#187065"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/187065#187065&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;But with &lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&amp;#39;s code here, I no longer get the&amp;nbsp;&lt;span&gt;Advertising Timeout event!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;So what&amp;#39;s going on with that?!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;(the advertising &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;&lt;strong&gt;is&lt;/strong&gt;&lt;/em&gt;&lt;/span&gt; stopping after the specified duration)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187312?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 14:16:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:881508b4-55f1-4995-b986-1302589fbab4</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/180421"]Here&amp;#39;s my modified template project (SDK 15.0.0) [/quote]
&lt;p&gt;It doesn&amp;#39;t&amp;nbsp;build with SDK 15.3.0.&lt;/p&gt;
&lt;p&gt;I applied your changes to the main.c in the&amp;nbsp;&lt;span&gt;SDK 15.3.0 project, and that does work. The file is attached.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;All the changes for non-connectable advertising&amp;nbsp;are controlled by&amp;nbsp;#if ADVERTISE_WHILE_CONNECTED&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note that you need to change NRF_LOG_DEFAULT_LEVEL from 3 to 4 in sdk_config.h in order to see the&amp;nbsp;NRF_LOG_DEBUG messages.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The choice between Scannable &amp;amp; Non-scannable advertising is also on a #if - in non_connectable_advertising_start():&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#if 0
    NRF_LOG_DEBUG( &amp;quot;Non-connectable, Scannable advertising&amp;quot; );
    adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED;
#else
    NRF_LOG_DEBUG( &amp;quot;Non-connectable, Non-scannable advertising&amp;quot; );
    adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;
#endif&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/453361.main.c"&gt;devzone.nordicsemi.com/.../453361.main.c&lt;/a&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187267?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 12:31:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc3ec0d6-e1c1-4362-a880-d8de31c73d13</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;On Android 8.0, there is no &amp;#39;Connect&amp;#39; button for the Non-Scannable, Non-Connectable advertising.&lt;/p&gt;
&lt;p&gt;On Android 6, the &amp;#39;Connect&amp;#39; button is always there - Scannable on Non-scannable.&lt;/p&gt;
&lt;p&gt;So it looks like there &lt;em&gt;&lt;strong&gt;is&lt;/strong&gt;&lt;/em&gt; a flaw in nRF Connect, too.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187260?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 12:16:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b8e2b1a0-87aa-4aae-963a-9baee30a604b</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187238"]does the fact that it just says &amp;quot;Scannable&amp;quot; - mean that it &lt;em&gt;&lt;strong&gt;is&lt;/strong&gt;&lt;/em&gt; non-connectable?[/quote]
&lt;p&gt;Aparently so:&lt;/p&gt;
&lt;p&gt;If I change&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_SCANNABLE_UNDIRECTED;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;adv_params.properties.type = BLE_GAP_ADV_TYPE_NONCONNECTABLE_NONSCANNABLE_UNDIRECTED;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Then nRF Connect Desktop does, indeed, say:&lt;/p&gt;
&lt;div class="adv-line selectable" style="padding-left:30px;"&gt;&lt;em&gt;&lt;span class="adv-label"&gt;Address type:&amp;nbsp;&lt;/span&gt;&lt;span class="adv-value"&gt;RandomStatic&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div class="adv-line selectable" style="padding-left:30px;"&gt;&lt;em&gt;&lt;span class="adv-label"&gt;Advertising type:&amp;nbsp;&lt;/span&gt;&lt;span class="adv-value"&gt;&lt;strong&gt;Non connectable&lt;/strong&gt; undirected&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div class="adv-line selectable" style="padding-left:30px;"&gt;&lt;em&gt;&lt;span class="adv-label"&gt;Services:&amp;nbsp;&lt;/span&gt;&lt;span class="adv-value"&gt;Device Information&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div class="adv-line selectable" style="padding-left:30px;"&gt;&lt;em&gt;&lt;span class="adv-label"&gt;Flags:&amp;nbsp;&lt;/span&gt;&lt;span class="adv-value"&gt;LeGeneralDiscMode&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div class="adv-line selectable" style="padding-left:30px;"&gt;&lt;em&gt;&lt;span class="adv-value"&gt;BrEdrNotSupported&amp;nbsp;&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div class="adv-line selectable" style="padding-left:30px;"&gt;&lt;em&gt;&lt;span class="adv-value"&gt;LeOnlyLimitedDiscMode&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div class="adv-line selectable" style="padding-left:30px;"&gt;&lt;em&gt;&lt;span class="adv-value"&gt;LeOnlyGeneralDiscMode&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div style="padding-left:30px;"&gt;
&lt;div class="adv-line selectable"&gt;&lt;em&gt;&lt;span class="adv-label"&gt;Appearance:&lt;/span&gt;&lt;span class="adv-value"&gt;00-00&lt;/span&gt;&lt;/em&gt;&lt;/div&gt;
&lt;div class="adv-line selectable"&gt;&lt;span class="adv-value"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="adv-line selectable"&gt;&lt;span class="adv-value"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="adv-line selectable"&gt;&lt;strong&gt;&lt;span class="adv-value"&gt;But it will &lt;span style="text-decoration:underline;"&gt;&lt;em&gt;still&lt;/em&gt;&lt;/span&gt; try to connect!&lt;/span&gt;&lt;/strong&gt;&lt;/div&gt;
&lt;div class="adv-line selectable"&gt;&lt;span class="adv-value"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class="adv-line selectable"&gt;&lt;span class="adv-value"&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187246?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 12:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d685b852-a4e9-457d-a07f-286977076003</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/187118"]It appears to be an Android limitation[/quote]
&lt;p&gt;&amp;#39;#~$&amp;pound;%%~##@@&amp;nbsp; !!&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;But the article goes on to say:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;&amp;quot;The problem is on devices prior to Anroid 8.0&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;My phone is Android 8.0 - and I still don&amp;#39;t see it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187238?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 11:55:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10ccb879-f719-4750-85ea-542e9fd8f4a7</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/186788"]With nRF Connect on Android, I can still see advertising when it&amp;#39;s connected to another device - but there is nothing to indicate that it&amp;#39;s non-connectable advertising[/quote]
&lt;p&gt;With nRF Connect Desktop v2.6.2 on Windows I see:&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&amp;quot;Fast Advertising&amp;quot;&lt;/span&gt;:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Address type: RandomStatic&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Advertising type:&lt;strong&gt; Connectable&lt;/strong&gt; undirected&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Services: Device Information&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Flags: LeGeneralDiscMode&lt;/em&gt;&lt;br /&gt;&lt;em&gt;BrEdrNotSupported&lt;/em&gt;&lt;br /&gt;&lt;em&gt;LeOnlyLimitedDiscMode&lt;/em&gt;&lt;br /&gt;&lt;em&gt;LeOnlyGeneralDiscMode&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Appearance:00-00&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&amp;quot;Non-connectable advertising&amp;quot;&lt;/span&gt;:&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Address type: RandomStatic&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Advertising type: &lt;strong&gt;Scannable&lt;/strong&gt; undirected&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Services: Device Information&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Flags: LeGeneralDiscMode&lt;/em&gt;&lt;br /&gt;&lt;em&gt;BrEdrNotSupported&lt;/em&gt;&lt;br /&gt;&lt;em&gt;LeOnlyLimitedDiscMode&lt;/em&gt;&lt;br /&gt;&lt;em&gt;LeOnlyGeneralDiscMode&lt;/em&gt;&lt;br /&gt;&lt;em&gt;Appearance:00-00&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;So does the fact that it just says &amp;quot;Scannable&amp;quot; - mean that it &lt;em&gt;&lt;strong&gt;is&lt;/strong&gt;&lt;/em&gt; non-connectable?&lt;/p&gt;
[quote userid="6462" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/186788"]if I press the &amp;#39;Connect&amp;#39; button, nRF Connect will try to connect[/quote]
&lt;p&gt;Same on Desktop!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187230?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 11:48:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a431dbe-c574-40d2-b0ad-e0a47989f603</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;v15.3.0&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187119?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 06:14:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e4f451e-8c8f-42af-ad1b-1c76af5607eb</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;which SDK version are you using?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187118?ContentTypeID=1</link><pubDate>Wed, 15 May 2019 06:14:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4d3bd7ad-4c4f-49d4-b754-f71043f782d4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;It appears to be an Android limitation:&amp;nbsp;&lt;a href="https://stackoverflow.com/questions/28467590/detecting-whether-a-ble-device-is-connectable-on-android"&gt;https://stackoverflow.com/questions/28467590/detecting-whether-a-ble-device-is-connectable-on-android&lt;/a&gt;. It shows up as non-connectable on my iPhone.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/187063?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 16:20:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7576f4a-1d29-4afd-b19e-1fb066ccf4bb</guid><dc:creator>awneil</dc:creator><description>[quote userid="4240" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/180421"]The advertisement&amp;nbsp;module in SDK 15.3.0 includes an API for updating advertisement&amp;nbsp;data on the fly[/quote]
&lt;p&gt;But it doesn&amp;#39;t work:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/183212#183212"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41669/ble_advertising_advdata_update/183212#183212&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f61e.svg" title="Disappointed"&gt;&amp;#x1f61e;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/186918?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 10:43:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:10cfa23b-e47e-4def-b780-873959379d9b</guid><dc:creator>awneil</dc:creator><description>[quote userid="6462" url="~/f/nordic-q-a/45644/how-do-i-simply-do-a-non-connectable-advert-on-nrf52-using-sdk-15/186788"] I press the &amp;#39;Connect&amp;#39; button, nRF Connect will try to connect[/quote]
&lt;p&gt;Like &lt;a href="https://devzone.nordicsemi.com/members/mcclary"&gt;Michael McClary at CloudLeaf&lt;/a&gt; in the OP, my reason for doing this is so that other Centrals can still see that it&amp;#39;s there when it&amp;#39;s connected - so it doesn&amp;#39;t just &amp;quot;disappear&amp;quot; - but they should know it&amp;#39;s &amp;quot;busy&amp;quot; and, therefore, &lt;em&gt;&lt;strong&gt;not&lt;/strong&gt;&lt;/em&gt; connectable.&lt;/p&gt;
&lt;p&gt;So is nRF Connect just being dumb in trying to connect?&lt;/p&gt;
&lt;p&gt;Or is the advertising not actually &amp;quot;non-connectable&amp;quot;?&lt;/p&gt;
&lt;p&gt;Or is there some Android limitation which means that apps can&amp;#39;t tell whether advertising is &amp;quot;connectable&amp;quot; or not?&lt;/p&gt;
&lt;p&gt;Or what??&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/vibe"&gt;Vidar Berg&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/186788?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 19:07:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1ac6ed8a-adf0-40dd-8da9-98d75a55ef10</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;So how do we tell that it&amp;#39;s actually working?&lt;/p&gt;
&lt;p&gt;Specifically, how do we tell that it&amp;#39;s doing &lt;em&gt;&lt;strong&gt;non-&lt;/strong&gt;&lt;/em&gt;connectable advertising?&lt;/p&gt;
&lt;p&gt;With nRF Connect on Android, I can still see advertising when it&amp;#39;s connected to another device - but there is nothing to indicate that it&amp;#39;s non-connectable advertising.&lt;/p&gt;
&lt;p&gt;In fact, if I press the &amp;#39;Connect&amp;#39; button, nRF Connect will try to connect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/185800?ContentTypeID=1</link><pubDate>Tue, 07 May 2019 16:14:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24a6c795-0fe0-46c7-b855-900cb05996b6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;, sorry, I see now that this comment wasn&amp;#39;t particularly helpful. The advertisement module will start connectable advertising on BLE_GAP_EVT_DISCONNECT.&amp;nbsp;&amp;nbsp;So I changed the priority to allow the app to stop the non-connectable advertising before the event gets processed by the advertisement module. &amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adv. stop in main.c-&amp;gt;ble_evt_handler():&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
    ret_code_t err_code = NRF_SUCCESS;

    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
        case BLE_GAP_EVT_DISCONNECTED:
            NRF_LOG_INFO(&amp;quot;Disconnected.&amp;quot;);
            // LED indication will be changed when advertising starts.

              /*Stop advertising to allow the advertising module to start 
                connectable advertising. It&amp;#39;s not possible to change adv. params 
                on the fly, only data*/
            (void)sd_ble_gap_adv_stop(m_advertising.adv_handle);
            break;&lt;/pre&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/185453?ContentTypeID=1</link><pubDate>Mon, 06 May 2019 11:33:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f3184a5-9916-4f42-875a-97949bc38672</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;In that example, could you explain this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;/*Application needs higher priority than BLE_ADV_BLE_OBSERVER_PRIO in this case */
#define APP_BLE_OBSERVER_PRIO           0                                       /**&amp;lt; Application&amp;#39;s BLE observer priority. You shouldn&amp;#39;t need to modify this value. */&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/180606?ContentTypeID=1</link><pubDate>Sun, 07 Apr 2019 00:47:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c4e7dfb2-c73d-495c-8c5a-cadee01128e6</guid><dc:creator>Michael McClary at CloudLeaf</dc:creator><description>&lt;p&gt;Thank you.&lt;/p&gt;
&lt;p&gt;With that for an example I was able to&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;get the template doing connected advertising correctly (on our board) with the basic SDK 15.0&lt;/li&gt;
&lt;li&gt;get the template do it with all our SDK tweaks&lt;/li&gt;
&lt;li&gt;get the actual project to do it corretly.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Excellent!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How do I (simply) do a non-connectable advert on nRF52 using SDK 15?</title><link>https://devzone.nordicsemi.com/thread/180421?ContentTypeID=1</link><pubDate>Fri, 05 Apr 2019 07:29:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3225741d-91d4-43d6-95d0-9579d89ffb12</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="mcclary"]I notice that, after disconnect, ble_advertising.c seems to spend some time doing directed advertising [/quote]
&lt;p&gt;This is optional.&amp;nbsp;The template example only enables fast mode in advertising_init(). init.config.ble_adv_directed_enabled is initialized to &amp;#39;0&amp;#39; by default.&lt;/p&gt;
[quote user=""](I WILL be needing on-the-fly adjustment of the manufacturing field in another month or so, so info on that would also be nice.&amp;nbsp; But I need the above right away.)[/quote]
&lt;p&gt;&amp;nbsp;The advertisement&amp;nbsp;module in SDK 15.3.0 includes an API for updating advertisement&amp;nbsp;data on the fly. I think it should be easy to backport.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s my modified template project (SDK 15.0.0) which starts non-connectable advertising during connections:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-6170018cb0a44f6387ac239b5938fcde/ble_5F00_app_5F00_template.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_template.zip&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>