<?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>BLE UART SLEEP</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/75102/ble-uart-sleep</link><description>Hi all! In my example after (i guess) 3 mins with out BLE connection the system goes to sleep mode. ¿Is there any way to avoid this ? Thank you so much!</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 May 2021 15:52:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/75102/ble-uart-sleep" /><item><title>RE: BLE UART SLEEP</title><link>https://devzone.nordicsemi.com/thread/309857?ContentTypeID=1</link><pubDate>Fri, 14 May 2021 15:52:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:70922762-1bce-4dcd-98fa-51b71e080069</guid><dc:creator>hmolesworth</dc:creator><description>&lt;p&gt;Try changing the 180 seconds (1800x10mSecs or 3 minutes) to 0:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;#define APP_ADV_DURATION 18000  /**&amp;lt; The advertising duration (180 seconds) in units of 10 milliseconds. */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;A value of &amp;#39;0&amp;#39; means &amp;quot;forever&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART SLEEP</title><link>https://devzone.nordicsemi.com/thread/309717?ContentTypeID=1</link><pubDate>Fri, 14 May 2021 08:31:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6e78ed8-a83d-4784-8f16-f53eea104269</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Yes, you can avoid it by checking the context in which your program calls sleep functions (most likely some timer callback) and modify the logic to your needs. Depending on the type of sleep you need to search in your code calls to __WFE() and/or sd_app_evt_wait() and/or sd_power_system_off().&lt;/p&gt;
&lt;p&gt;Put breakpoints at those instances, start your program in debug mode and run the program. When some of those breakpoints are hit, check the function call stack to understand the context of that logic and change it to your needs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>