<?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>Sleep in connected mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/13152/sleep-in-connected-mode</link><description>Question: 
 From ble device I have to send some data or character to mobile in connected mode. After sending that data the device is not going to sleep mode while connected condition. 
 if I use sleep mode function, the device gets disconnected with</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 18 Apr 2016 17:01:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/13152/sleep-in-connected-mode" /><item><title>RE: Sleep in connected mode</title><link>https://devzone.nordicsemi.com/thread/50134?ContentTypeID=1</link><pubDate>Mon, 18 Apr 2016 17:01:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c41ca442-76e5-4e54-8722-a15b6fe98162</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Reshmi&lt;/p&gt;
&lt;p&gt;There are mainly two low power modes&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;System On, low power mode (CPU disabled, all nRF5x peripherals enabled)&lt;/li&gt;
&lt;li&gt;System Off mode, (CPU disabled, peripherals disabled)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Most or all examples in the SDK5 SDK 11.0.0 put the nRF5x device periodically into low power mode when connected with a peer device.&lt;/p&gt;
&lt;p&gt;Recommended reading on how the low power modes work is given in the n&lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf51/dita/nrf51/pdflinks/ref_manual.html?cp=2_2"&gt;RF51 Series reference manual&lt;/a&gt; and in the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/chips/nrf52832_ps.html?cp=1_2_0"&gt;nRF52832 PS&lt;/a&gt;. There is also info in the &lt;a href="https://devzone.nordicsemi.com/tutorials/11/"&gt;nRF51 current consumption guide&lt;/a&gt;, chapter &amp;quot;Low power mode with BLE softdevice&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep in connected mode</title><link>https://devzone.nordicsemi.com/thread/50133?ContentTypeID=1</link><pubDate>Wed, 13 Apr 2016 05:24:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2250271-cd94-44cd-a4eb-2d21aaad3c8c</guid><dc:creator>Reshmi Marimganti</dc:creator><description>&lt;p&gt;I have added the sleep code inside BLE_GAP_EVENT_CONNECTED&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;switch (p_ble_evt-&amp;gt;header.evt_id)    
{    
    case BLE_GAP_EVT_CONNECTED:    
        err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);    
        APP_ERROR_CHECK(err_code);    
        
        m_advertising_mode = BLE_NO_ADV;   
        m_conn_handle      = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;    
			
	nrf_delay_ms(2000);   
		      
uint32_t err_code = bsp_indication_set(BSP_INDICATE_IDLE);
APP_ERROR_CHECK(err_code);

// Prepare wakeup buttons.    
err_code = bsp_btn_ble_sleep_mode_prepare();    
APP_ERROR_CHECK(err_code);      

// 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);   
	       
 break;
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Sleep in connected mode</title><link>https://devzone.nordicsemi.com/thread/50132?ContentTypeID=1</link><pubDate>Tue, 12 Apr 2016 17:05:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b214f287-aef5-4700-b4eb-fc13c66d5a3e</guid><dc:creator>ToTo</dc:creator><description>&lt;p&gt;Where do you put the sleep mode function?&lt;/p&gt;
&lt;p&gt;It should not disconnect !! Are you sure that it return NRF_SUCCESS after you excute it ?
Maybe you use the fuction that needs sofdevice activation  but you didn&amp;#39;t enable it before using that function?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>