<?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>nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/17861/nfr51-sleep-mode-and-reconnect-example</link><description>I am going to develop an application on nfr51422 that requires very low current consumption. Basically we plan to make the nfr51 to &amp;quot;sleep&amp;quot;, and it will wake up constantly (may be every second) to send out a few bytes through ble. 
 I would like to ask</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 22 Nov 2016 09:08:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/17861/nfr51-sleep-mode-and-reconnect-example" /><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68856?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 09:08:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54bbf7bc-f610-4d37-a5ce-4f2639066c60</guid><dc:creator>garypty</dc:creator><description>&lt;p&gt;Thank you. I just follow the tutorial and stopped at the &amp;quot;Preparations&amp;quot; section, but did not realized that there are actually more steps needed to prepare at the lower part. Suggest to add hints in  the &amp;quot;Preparations&amp;quot; section that we need to include these paths.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68859?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 07:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a79e3255-da4a-4092-97d2-c0fd39e52cf9</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Those errors are due to that the files &lt;em&gt;nrf_drv_clock.c&lt;/em&gt; and &lt;em&gt;app_timer.c&lt;/em&gt; have not been added to the project. You need to perform the steps described in the section &amp;quot;&lt;em&gt;Add required files and includes&lt;/em&gt;&amp;quot; in the tutorial.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68858?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 07:17:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:378b22a5-a200-439a-a796-da7385d5ef30</guid><dc:creator>garypty</dc:creator><description>&lt;p&gt;Yes, because I can build all other examples in SDK11 and SDK12 successfully. And the step for this example is rather straight forwards. I just downloaded this example, and then extract it under &amp;quot;\examples\peripheral, and then open Keil5, then open this example project in Keil5, then click .
&lt;a href="https://dl.dropboxusercontent.com/u/44216488/2016-11-22_150621.jpg"&gt;Please see the errors here&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68857?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 06:34:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9b5929a-e4ba-48fe-b6cd-088a56914903</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;And you extracted it into examples\peripherals folder of SDK 11? Did you make sure you followed every step of the tutorial? What other errors did you encounter?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68855?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2016 01:53:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e1fe3344-65e3-49e7-9d45-a47882b29709</guid><dc:creator>garypty</dc:creator><description>&lt;p&gt;The project I downloaded in this tutorial:&lt;a href="http://app_timer_tutorial.zip"&gt;Application Timer Tutorial&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68854?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2016 14:52:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f62f168d-1886-40b1-ae67-d94e52612a9d</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Which smaple project did you download?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68853?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2016 14:13:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33d60937-c662-4473-9a73-fbd956c14dda</guid><dc:creator>garypty</dc:creator><description>&lt;p&gt;Found another 6 errors when added these Include Paths.
I downloaded this sample project and extracted to &amp;quot;\examples\peripheral&amp;quot;, I just think the Include Paths should be correct.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68850?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2016 13:59:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9aedc1ac-8713-460f-9d78-7d96cfe16aa6</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Did you remember to add the include path to the project?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;Now go to Project -&amp;gt; Options for target ... -&amp;gt; C/C++. 
From there, add the following directories to the Include Paths:

..\..\..\..\..\components\drivers_nrf\clock
..\..\..\..\..\components\libraries\timer
..\..\..\..\..\components\drivers_nrf\delay
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68849?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2016 13:49:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2a0e0d5d-20a4-4604-9ee5-664684406cdc</guid><dc:creator>garypty</dc:creator><description>&lt;p&gt;I tested the &lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;Application Timer Tutorial&lt;/a&gt; with keil5, SDK11, however I cannot build it successfully. The error message says it cannot find &amp;quot;app_timer.h&amp;quot;, which is included in the main.c&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68852?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2016 13:40:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b3cdb1a7-b3b1-4216-8db8-2145fe2d8474</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Yes, &lt;code&gt;power_manage()&lt;/code&gt; calls the softdevice API function &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v3.0.0/group___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html?cp=2_3_0_1_0_2_7_2_0#ga11d88d38ac99fb72cde74c9385d36433"&gt;sd_app_evt_wait()&lt;/a&gt;, which will put the device in system on sleep mode. The Online Power Profiler use the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v11.0.0/ble_sdk_app_pwr_mgmt.html?cp=4_0_1_4_2_2_14"&gt;ble_app_pwr_profiling&lt;/a&gt; example from the SDK, which also use this method to put the device into system on sleep mode between advertising or connection intervals.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68851?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2016 13:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78f6bf52-6f5d-40bf-96d2-6b83d415b2d1</guid><dc:creator>garypty</dc:creator><description>&lt;p&gt;Is that means when the SDK example call the &lt;code&gt;power_manage()&lt;/code&gt;, it enters the System On sleep mode already? I have visit this sile: &lt;a href="https://devzone.nordicsemi.com/power/"&gt;Online Power Profiler&lt;/a&gt;, the current consumption in IDLE time is assumed to be 2uA, is it also a System ON sleep mode? Thank you.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nfr51 sleep mode and reconnect example</title><link>https://devzone.nordicsemi.com/thread/68848?ContentTypeID=1</link><pubDate>Mon, 21 Nov 2016 10:15:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da1a607d-7815-49a5-bd3b-1292bc83596b</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In general there are two sleep modes in the nRF51-series; system on and system off mode. See chapter 12.1.5-12.1.7 in the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v12.0.0%2Fexamples.html&amp;amp;cp=4_0_0_4"&gt;nRF51 Reference Manual&lt;/a&gt; for more details about the two sleep modes.&lt;/p&gt;
&lt;p&gt;Most of the examples in our SDK use sleep functions, by calling the function &lt;code&gt;power_manage()&lt;/code&gt; in a loop within the main function. I would recommend that you have a look at &lt;a href="https://devzone.nordicsemi.com/question/5186/how-to-minimize-current-consumption-for-ble-application-on-nrf51822/"&gt;this thread&lt;/a&gt; about minimize current consumption for BLE application on nRF51822. I would also recommend that you have a look at the &lt;a href="https://devzone.nordicsemi.com/tutorials/19"&gt;Application Timer tutorial&lt;/a&gt; if you want to configure your device to wake up regularly to transmitt data.&lt;/p&gt;
&lt;p&gt;Read the answer in &lt;a href="https://devzone.nordicsemi.com/question/101463/nrf-sleep-without-losing-connection-power-efficiency/"&gt;this thread&lt;/a&gt; about keeping connection during sleep mode.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>