<?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>Advertising does not stop after calling sd_ble_gap_adv_stop()</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/22078/advertising-does-not-stop-after-calling-sd_ble_gap_adv_stop</link><description>I have nRF52 and working with SDK11. 
 I can start BLE advertising and nRF Connect app will detect everything correctly. 
 I only have an issue: I want to advertise for 10 seconds and when I call sd_ble_gap_adv_stop() the advertising continue as nRF</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 18 May 2017 21:27:30 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/22078/advertising-does-not-stop-after-calling-sd_ble_gap_adv_stop" /><item><title>RE: Advertising does not stop after calling sd_ble_gap_adv_stop()</title><link>https://devzone.nordicsemi.com/thread/86702?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 21:27:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b71a7707-fb7b-4950-958f-05295b70210c</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;I just did an additional test and nRF Connect seems to have a bug. As soon as the Radio goes into Idle after the advertising timeout, I start scanning with nRF Connect and the additional 5seconds of RSSI do not appear this time. Somehow it takes a while for nRF Connect to understand that the advertising has stop.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not stop after calling sd_ble_gap_adv_stop()</title><link>https://devzone.nordicsemi.com/thread/86701?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 21:20:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7cf816ec-9d86-41df-8778-241b3a0919d1</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Yeah, that was my understanding as well. But how can the nRF-Connect&amp;#39;s RSSI-graph be explained then?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not stop after calling sd_ble_gap_adv_stop()</title><link>https://devzone.nordicsemi.com/thread/86700?ContentTypeID=1</link><pubDate>Thu, 18 May 2017 11:37:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d1ef8cd5-65a5-474a-9899-ebf00df26c13</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;The only time &lt;code&gt;sd_ble_gap_adv_stop()&lt;/code&gt; will return &lt;code&gt;NRF_ERROR_INVALID_STATE&lt;/code&gt; is when you are not advertising. The advertising is therefore either stopped previously by a advertising timeout in the advertising module, or a previous call to &lt;code&gt;sd_ble_gap_adv_stop()&lt;/code&gt; .&lt;/p&gt;
&lt;p&gt;Regarding the photo you posted, you see in the PPK image that in the 2 seconds gap the current consumption is about 2mA, the RADIO uses at-least 6-7 mA when transmitting, so it&amp;#39;s impossible that it’s still advertising in that 2 second window.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not stop after calling sd_ble_gap_adv_stop()</title><link>https://devzone.nordicsemi.com/thread/86703?ContentTypeID=1</link><pubDate>Wed, 17 May 2017 02:37:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1555d6bb-2737-4f3a-850f-8577f799fbb2</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;Just to confirm that I am using the SDK ble_advertising module (ble_advertising.c/.h).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not stop after calling sd_ble_gap_adv_stop()</title><link>https://devzone.nordicsemi.com/thread/86699?ContentTypeID=1</link><pubDate>Wed, 17 May 2017 01:40:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:505eebce-15f8-48d3-86f5-c371767c5dcc</guid><dc:creator>Marco</dc:creator><description>&lt;p&gt;sd_ble_gap_adv_stop() returns 0x00000008 (NRF_ERROR_INVALID_STATE).
What do you mean with &amp;quot;BLE_ADVERTISING&amp;quot;? In any case I am using the code from the example projects, thus I think I am using the &amp;quot;advertising module&amp;quot;.&lt;/p&gt;
&lt;p&gt;I have been running some extra tests and it seems that actually sd_ble_gap_adv_stop() stops the advertising, but the Radio continue transmitting (not sure what and why). However, I would like to be able to have the radio stop transmitting and power if off when stopping advertising.&lt;/p&gt;
&lt;p&gt;I have written a test app that continuously advertise for 10 seconds, then it stops for 2 seconds and then starts again.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Screen-Shot-2017_2D00_05_2D00_17-at-1.18.36-PM.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;With Power Profile Kit (picture above) I can see that the advertising last for 10 seconds as expected. Then after 2 seconds gap, it started advertising again as expected.
Instead using the nRF Connect app, I can see the 10 seconds advertising sessions, and a kind of gap in between. But I was expecting nothing to be transmitted in between.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Screenshot_5F00_2017_2D00_05_2D00_17_2D00_13_2D00_17_2D00_04.png" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Advertising does not stop after calling sd_ble_gap_adv_stop()</title><link>https://devzone.nordicsemi.com/thread/86698?ContentTypeID=1</link><pubDate>Tue, 16 May 2017 10:14:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:290b79b5-e079-4289-992e-a225eca4a60a</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;What does &lt;code&gt;sd_ble_gap_adv_stop()&lt;/code&gt; return? are you using the advertising module in your project (BLE_ADVERTISING)?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>