<?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>nrf51822 can&amp;#39;t sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2762/nrf51822-can-t-sleep</link><description>my project can&amp;#39;t goto sysoff mode, (desktop2)( project based on mouse demo) 
 m_prw_mgmt_set_sysoff_timeout(DEFAULT_BTLE_INACTIVITY_DISCONNECT_PERIOD);//can&amp;#39;t sleep here! 
 my code. DEFAULT_BTLE_INACTIVITY_DISCONNECT_PERIOD //10s The default: 1hour</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 02 Jul 2014 15:39:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2762/nrf51822-can-t-sleep" /><item><title>RE: nrf51822 can't sleep</title><link>https://devzone.nordicsemi.com/thread/10682?ContentTypeID=1</link><pubDate>Wed, 02 Jul 2014 15:39:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ac45df4f-b98e-4c6f-b379-c60f8d183bc1</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Could you see if this fix helps you out?
&lt;a href="https://devzone.nordicsemi.com/question/12414/cant-wakeup-form-default_btle_inactivity_disconnect_period/?answer=13335#post-id-13335"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 can't sleep</title><link>https://devzone.nordicsemi.com/thread/10681?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2014 10:41:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ec3ac8-8e9a-4f9f-a4af-3ef5bbdd20fd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I cannot seem to reproduce the issue you are seeing wrt. to bonding information. I&amp;#39;ve tested it with MasterControlPanel, and the CRC/m_crc_sys_attr is correctly calculated at my end, causing no erase-operation.&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;Are you testing with an unchanged example? If not, do you see the same behavior then?&lt;/li&gt;
&lt;li&gt;What central are you connecting to? Win8/android/iOS?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 can't sleep</title><link>https://devzone.nordicsemi.com/thread/10680?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2014 03:16:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:836ef1ee-561a-4242-8848-20dc458154c0</guid><dc:creator>arthur</dc:creator><description>&lt;ol&gt;
&lt;li&gt;The issue is caused by a global variable from Desktop 2 v2.2.1 not initialized and hence result in FW triggering a flash erase command due to sys_attr_changed() function returning incorrect status.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;To fix this issue we need to add 1 line of code (!!!!!!!!!!) in ble_bondmngr_init() function  @ ble_bondmngr.c file:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;/*********************************************************************/ uint32_t
ble_bondmngr_init(ble_bondmngr_init_t&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;p_init) {
pstorage_module_param_t param;
uint32_t err_code;&lt;/p&gt;
&lt;p&gt;if (p_init-&amp;gt;error_handler == NULL)
{
return NRF_ERROR_INVALID_PARAM;
}&lt;/p&gt;
&lt;p&gt;if (BLE_BONDMNGR_MAX_BONDED_CENTRALS &amp;gt;
MAX_BONDS_IN_FLASH)
{
return NRF_ERROR_DATA_SIZE;
}
: : :&lt;/p&gt;
&lt;p&gt;m_central.bond.central_handle  = INVALID_CENTRAL_HANDLE;
m_conn_handle                  = BLE_CONN_HANDLE_INVALID;
m_centrals_in_db_count         = 0;
m_bond_info_in_flash_count     = 0;
m_sys_attr_in_flash_count      = 0;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;em&gt;m_crc_sys_attr = crc16_compute( NULL, 0, NULL );&lt;/em&gt;&lt;/strong&gt;//!!!!!!!!!!&lt;/p&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;SECURITY_STATUS_RESET();&lt;/p&gt;
&lt;p&gt;: : : }
/**********************************************************************/&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;This will initialize the global variable “m_crc_sys_attr” and prevent “sys_attr_changed() function from returning incorrect status.&lt;/p&gt;
&lt;ol start="2"&gt;
&lt;li&gt;It is also inappropriate for customer to set the DEFAULT_BLE_INACTIVITY_DISCONNECT_PERIOD to be shorter then advertising timeout period. Customer should configure this inactivity period to expire after BLE advertising has timeout and system is really idle.&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 can't sleep</title><link>https://devzone.nordicsemi.com/thread/10679?ContentTypeID=1</link><pubDate>Thu, 19 Jun 2014 03:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:364b3009-8900-439d-8dd8-fa76a08c5dec</guid><dc:creator>arthur</dc:creator><description>&lt;p&gt;thank for your reply.i have the solutions for my proble.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nrf51822 can't sleep</title><link>https://devzone.nordicsemi.com/thread/10678?ContentTypeID=1</link><pubDate>Mon, 16 Jun 2014 12:26:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:330b6ade-6ae5-4686-a530-4dd383ba3288</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;I am not sure if your problem is with the system off power management or with the pstorage module.
This specific example has a prepare routine before entering systemoff, which is then done based on which protocol the example is running (proprietary or BLE).&lt;/p&gt;
&lt;p&gt;Also, please see if you have any asserts occurring in your application by enabling the assert-handler:
&lt;a href="https://devzone.nordicsemi.com/question/73/why-does-my-application-just-hang/?answer=74#post-id-74"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>