<?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>ESB Timeslot - Softdevice event handler</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52286/esb-timeslot---softdevice-event-handler</link><description>Hi 
 We are developing the use of ESB together with BLE, using the Timeslot API. 
 We have been using the known tutorial for the ESB timeslot implementation: 
 https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/running-micro-esb-concurrently</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 18 Sep 2019 13:27:26 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52286/esb-timeslot---softdevice-event-handler" /><item><title>RE: ESB Timeslot - Softdevice event handler</title><link>https://devzone.nordicsemi.com/thread/210430?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2019 13:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5155a71d-5f54-4434-aede-4861b81191d1</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello Mikkel,&lt;/p&gt;
&lt;p&gt;I suspect what you are seeing is that the nRF goes into system OFF mode when the advertisement times out.&lt;/p&gt;
&lt;p&gt;Can you check if that is the case?&lt;/p&gt;
&lt;p&gt;Most of our ble_peripheral examples have this function:&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();
            break;
        default:
            break;
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Where in the BLE_ADV_EVT_IDLE, which is the event that triggers when the advertisement times out, it will call sleep_mode_enter(); which will basically turn off the nRF, and it will wake up on either a power on reset, or a buttonpress which is configured in sleep_mode_enter() -&amp;gt; bsp_btn_ble_sleep_mode_prepare();&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So I suspect that what you are actually seeing is that the chip is simply put in system off mode, which is almost the same as turning it off.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Can you check whether you call sleep_mode_enter() in the BLE_ADV_EVT_IDLE event?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>