<?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>wants to know that device will go sleep or it just stop advertise after timeout occurs</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/46277/wants-to-know-that-device-will-go-sleep-or-it-just-stop-advertise-after-timeout-occurs</link><description>Hi i am using nrf52840 DK and i am trying out sleep_mode after timeout happens. but i had a doubt in ble_adv_evt_idle i.e if i use this case the device goes into sleep and i fi use ble_adv_evt_fast then after timeout i could not able see any advertisement</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 23 Apr 2019 09:17:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/46277/wants-to-know-that-device-will-go-sleep-or-it-just-stop-advertise-after-timeout-occurs" /><item><title>RE: wants to know that device will go sleep or it just stop advertise after timeout occurs</title><link>https://devzone.nordicsemi.com/thread/183064?ContentTypeID=1</link><pubDate>Tue, 23 Apr 2019 09:17:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9a612e4c-f1be-4f6f-85f9-628a480bc125</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Please see the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v6.1.1%2Fgroup___n_r_f___s_o_c___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=ga11d88d38ac99fb72cde74c9385d36433"&gt;Infocenter&lt;/a&gt;&amp;nbsp;on what the sd_app_evt_what() function does, and how it is used. I am having a little trouble understanding what you are struggling with. I am guessing your application is set to advertise for 10 seconds before going to sleep, which is why the sd_app_evt_wait() isn&amp;#39;t working right away. It will wait for your application to finish advertising before putting it to sleep. As for why you can&amp;#39;t discover the advertising data after sleep, I am not quite sure. How are you waking up your device? And how are you sure you are advertising if there is no advertising data?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wants to know that device will go sleep or it just stop advertise after timeout occurs</title><link>https://devzone.nordicsemi.com/thread/182647?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 14:38:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:671c836c-7ffa-43af-85df-7f1e2175e4fb</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;while i am testing ble_app_uart peripheral example in main for loop there is an idle_state_handle() function called, so inside that pwr_mgnt function was called. if you look into it the same whatever you said before for sleep sd_app_evt_wait() was called but device not sleeping its still advertising for 10 sec.&lt;/p&gt;
&lt;p&gt;can you explain me what functionality will be disabled if i call sd_app_evt_wait()? basically i want to put device in sleep then wake up using rtc0 timer. now i can implement rtc timer, when the timer expires i am advertising again but there is no advertising data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wants to know that device will go sleep or it just stop advertise after timeout occurs</title><link>https://devzone.nordicsemi.com/thread/182623?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 12:50:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff2819e3-6ff9-46b3-9333-e8e11ac2f0d0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;As I said, __WFE is one way to go to sleep (in system on mode). This function looks nicer, if that&amp;#39;s what you want.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;/** @brief Function for placing the application in low power state while waiting for events. */
static void power_manage(void)
{
    uint32_t err_code = sd_app_evt_wait();
    APP_ERROR_CHECK(err_code);
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;To see how it is implemented in the main loop, you can have a look at the usbd_ble_uart example project.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wants to know that device will go sleep or it just stop advertise after timeout occurs</title><link>https://devzone.nordicsemi.com/thread/182583?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 11:34:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a790248f-5150-4efc-b244-4c9d6aa723ce</guid><dc:creator>Yogeshwaran</dc:creator><description>&lt;p&gt;Thanks for you reply. Actually in ble_app_uart peripheral there is an function called on_adv_evt in that two switch cases were defined one is BLE_ADV_EVT_FAST and another one BLE_ADV_EVT_IDLE. so the example code starts advertising and i reduce the timeout from 180sec to 10sec. After the timeout i cannot able to discover any advertisement in my nrfConnect app. so i want to advertise till timeout then go to sleep then wake up and advertise. i have read some post recently and what they said was use RTC1 timer to wake up device, if so tell me how to use rtc timer or suggest me some examples and i am trying to implement system_power_on() instead of system_power_off to run cpu but if i change to system_power_on() compile error as undefined system_power_on(nrf SDK 15.3.0). Tell me is there any alternative function to make cpu on while sleep.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: wants to know that device will go sleep or it just stop advertise after timeout occurs</title><link>https://devzone.nordicsemi.com/thread/182534?ContentTypeID=1</link><pubDate>Wed, 17 Apr 2019 08:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58362b3a-8d80-489a-9052-afc0301df6a7</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Due to the Easter holiday we are understaffed and you will have to expect delayed replies. Sorry for the inconvenience!&lt;/p&gt;
&lt;p&gt;ble_adv_evt_idle does not make your device go to sleep. To make your device go to sleep, use the __WFE function for example. The rest of your question I am having some trouble understanding. Does your device not start advertising after the connection with the central times out? Try resetting the central to confirm whether or not the peripheral device is the problem.&lt;/p&gt;
&lt;p&gt;Best regards and happy Easter,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>