<?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>Some questions about power management and advertising</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35603/some-questions-about-power-management-and-advertising</link><description>Hello! 
 I&amp;#39;m currently using a nRF52832 with the SDK15 blinky_app_project and Segger Embedded Studio. What I am aiming to do is program where it goes to sleep after some seconds of advertising and if I press the button it wakes up and start advertising</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 25 Jun 2018 08:54:21 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35603/some-questions-about-power-management-and-advertising" /><item><title>RE: Some questions about power management and advertising</title><link>https://devzone.nordicsemi.com/thread/137398?ContentTypeID=1</link><pubDate>Mon, 25 Jun 2018 08:54:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0a4c85d6-8121-4455-a209-8f9c22b4a5ca</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Gercer,&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fgroup__ble__advertising.html&amp;amp;cp=4_0_0_6_2_0_17&amp;amp;anchor=gae2beedbcde9e995276a685a329e5b46b" target="_blank" rel="noopener noreferrer"&gt;ble_advertising_start&lt;/a&gt;() is a function for starting advertising, and it is from the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fgroup__ble__advertising.html&amp;amp;cp=4_0_0_6_2_0" target="_blank" rel="noopener noreferrer"&gt;Advertising Module&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.0.0%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga74c21287bd6cbcd5822bc73792f678d8" target="_blank" rel="noopener noreferrer"&gt;sd_ble_gap_adv_start&lt;/a&gt;() is a&amp;nbsp;Softdevice API call to start advertising.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;So if you look into the &amp;quot;&lt;em&gt;ble_advertising_start&lt;/em&gt;()&amp;quot; in &amp;quot;&lt;em&gt;ble_advertising&lt;/em&gt;.c&amp;quot; you can see that &amp;quot;&lt;em&gt;sd_ble_gap_adv_start&lt;/em&gt;()&amp;quot; is actually called inside that function.&lt;/p&gt;
&lt;p&gt;&amp;gt; I recommend using the &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_0_3_2_1" target="_blank" rel="noopener noreferrer"&gt;Advertising Module&amp;nbsp;&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some questions about power management and advertising</title><link>https://devzone.nordicsemi.com/thread/137281?ContentTypeID=1</link><pubDate>Fri, 22 Jun 2018 22:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ccf35314-192a-43fc-8fce-fc0950dd0689</guid><dc:creator>gercer</dc:creator><description>&lt;p&gt;Thanks for the answer!&lt;br /&gt;&lt;br /&gt;I was looking at the uart demo and i noticed they use&amp;nbsp;&lt;em&gt;ble_advertising_start&lt;/em&gt; instead of&amp;nbsp;&lt;em&gt;sd_ble_gap_adv_start&amp;nbsp;&lt;/em&gt;which is used in the ble_app_blinky demo. Could you explain my the main differences between them and which one is recommended?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Some questions about power management and advertising</title><link>https://devzone.nordicsemi.com/thread/137043?ContentTypeID=1</link><pubDate>Thu, 21 Jun 2018 09:27:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3cede3c7-49ab-4c0c-aac2-98a0bd386f5a</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Gercer,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; I would recommend you to look at the &amp;quot;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_nus_eval.html&amp;amp;cp=4_0_0_4_1_2_24" target="_blank" rel="noopener noreferrer"&gt;ble_app_uart&lt;/a&gt;&amp;quot; example and use that as reference since it is implemented just like you are aiming to program.&lt;/p&gt;
&lt;p&gt;If you set #define&amp;nbsp;&lt;strong&gt;APP_ADV_DURATION&amp;nbsp;&lt;/strong&gt;1000, it will advertise in 10 seconds before it goes to sleep and wake up when you push a button.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1. &lt;em&gt;No,y&lt;/em&gt;&lt;em&gt;ou have to wake up the device before you can start to advertise. (Look at &amp;quot;ble_app_uart&amp;quot;)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;2.&amp;nbsp;When the device is in &amp;quot;System OFF&amp;quot; mode, it will disable everything but not the wake-up source. I recommend you to play around with the&amp;nbsp;&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fpwr_mgmt_example.html&amp;amp;cp=4_0_0_4_5_19" target="_blank" rel="noopener noreferrer"&gt;Power Management Example&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;3. This can be&amp;nbsp;found in the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Fchips%2Fnrf52832_ps.html&amp;amp;cp=2_1_0" target="_blank" rel="noopener noreferrer"&gt;Documentation&lt;/a&gt;&lt;/em&gt;&lt;em&gt;:&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;- 0.3 μA at 3 V in System OFF mode&lt;br /&gt;- 0.7 μA at 3 V in System OFF mode with full 64 kB RAM retention&lt;br /&gt;- 1.9 μA at 3 V in System ON mode, no RAM retention, wake on RTC&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>