<?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>Stop advertising S112</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/37756/stop-advertising-s112</link><description>Hi, 
 When I do not call advertising_start(erase_bonds); then I only draw about 2uA. 
 When I call advertising_start(erase_bonds); I draw 350uA. 
 
 I want to advertise. Then stop advertising after a period. I can do this using the following: 
 
 However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Aug 2018 13:59:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/37756/stop-advertising-s112" /><item><title>RE: Stop advertising S112</title><link>https://devzone.nordicsemi.com/thread/145958?ContentTypeID=1</link><pubDate>Mon, 27 Aug 2018 13:59:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c00d11c2-d19d-45e4-8b1f-1f079629bde6</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Mredp,&lt;/p&gt;
&lt;p&gt;Does your on_adv_evt() callback resemble the one below?&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void on_adv_evt(ble_adv_evt_t ble_adv_evt)
{
    uint32_t err_code;

    switch (ble_adv_evt)
    {
        case BLE_ADV_EVT_FAST:
            err_code = bsp_indication_set(BSP_INDICATE_ADVERTISING);
            APP_ERROR_CHECK(err_code);
            break;
        case BLE_ADV_EVT_IDLE:
            sleep_mode_enter(); // Will assert if chip is in debug interface mode
            break;
        default:
            break;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;This code is used in several of the SDK examples and will make the device enter System OFF mode on the advertisement timeout event (BLE_ADV_EVT_IDLE), but will only work if the chip is not in debug interface mode (&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52832.ps.v1.1/power.html?cp=2_1_0_17_1_0#unique_1199040052"&gt;emulated system OFF&lt;/a&gt;). So are you doing the same in your code, and are you measuring the current while having a debugger attached? That can possibly explain why you see increased current draw.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stop advertising S112</title><link>https://devzone.nordicsemi.com/thread/145754?ContentTypeID=1</link><pubDate>Sat, 25 Aug 2018 11:12:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a72dabf6-7e01-4d7a-a9c4-3e8082e78ead</guid><dc:creator>mredp</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;DC-DC is enable. Logging is also enabled.&lt;/p&gt;
&lt;p&gt;My code is based off the ble_app_hts example. I notice that sleep_mode_enter() calls sd_power_system_off(). However, I don&amp;#39;t want to put the device into system off as I have no way to wake it up.&lt;/p&gt;
&lt;p&gt;I just want the device to essentially &amp;quot;sleep&amp;quot; for 5 minutes.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;A bit more info about my device. It is powered by 3V battery. It has two passive sensors that can be driven by GPIO pins. So I can turn them off by setting them to input with no pull. That&amp;#39;s it :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Stop advertising S112</title><link>https://devzone.nordicsemi.com/thread/145712?ContentTypeID=1</link><pubDate>Fri, 24 Aug 2018 14:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e445cfc-b0bd-4951-be97-5772afe66347</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Mredp,&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Flib_ble_advertising.html&amp;amp;cp=4_0_1_3_2_1" target="_blank" rel="noopener noreferrer"&gt;Advertising module documentation&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Please take a look at the example &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_hrs.html&amp;amp;cp=4_0_1_4_1_2_13" target="_blank" rel="noopener noreferrer"&gt;&amp;quot;bla_app_hrs&amp;quot;&lt;/a&gt;&amp;nbsp;and you can see that the advertising stops after 180sec (&lt;em&gt;defined APP_ADV_DURATION&lt;/em&gt;) and the BLE_ADV_EVT_IDLE is triggered in&amp;nbsp;&lt;em&gt;on_adv_evt() function.&amp;nbsp;&lt;/em&gt;There the &amp;quot;sleep_mode_enter()&amp;quot; function is called.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;I would like to know more about your application, have you got &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/optimizing-power-on-nrf52-designs"&gt;DCDC enabled and logging enabled?&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Could you share what example application you have based you application on?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>