<?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>Simple question about S110 soft device App Timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/7115/simple-question-about-s110-soft-device-app-timeout</link><description>Hello 
 Just few quick questions. What happens to the S110 Softdevice after the APP_ADV_TIMEOUT_IN_SECONDS period?
I&amp;#39;m using the nRF51 DK and the ble UART example and I want the board to do a soft-reset after the advertising time-out occurs, how do</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 19 May 2015 18:07:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/7115/simple-question-about-s110-soft-device-app-timeout" /><item><title>RE: Simple question about S110 soft device App Timeout</title><link>https://devzone.nordicsemi.com/thread/25130?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 18:07:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c7eda9d6-8f46-433b-b5e9-c276759c3455</guid><dc:creator>kilianod</dc:creator><description>&lt;p&gt;Thanks Martin, that was just what I was looking for.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Simple question about S110 soft device App Timeout</title><link>https://devzone.nordicsemi.com/thread/25129?ContentTypeID=1</link><pubDate>Tue, 19 May 2015 12:06:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3d15034d-34a9-42fe-a36b-2bf9b077acea</guid><dc:creator>MartinBL</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Most of our examples will &lt;a href="https://developer.nordicsemi.com/nRF51_SDK/nRF51_SDK_v8.x.x/doc/8.0.0/s110/html/a00076.html"&gt;stop advertising after 3 minutes&lt;/a&gt; by default, and then go to system-off mode. This is the deepest power saving mode the system can enter. System-off mode is documented in Chapter 12.1.5 in Reference manual V3.0. To achieve what you want you can try to add something like this in the &lt;code&gt;on_ble_evt()&lt;/code&gt; function in &lt;em&gt;main.c&lt;/em&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_TIMEOUT:    
    if(p_ble_evt-&amp;gt;evt.gap_evt.params.timeout.src == BLE_GAP_TIMEOUT_SRC_ADVERTISING)
    {
        // Do a soft reset
        sd_nvic_SystemReset();
    }
    else
    {
        // Do something else.
    }
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>