<?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>SD110 disable sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/2890/sd110-disable-sleep</link><description>Hi all, 
 I would like to know that is there a method to disable sleep mode in run time and reenable it when I use SD110? You know when the device starts it starts advertising for a while then goes to sleep mode.
Now I wanted to wake up if in sleep</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Jun 2014 09:23:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/2890/sd110-disable-sleep" /><item><title>RE: SD110 disable sleep</title><link>https://devzone.nordicsemi.com/thread/11017?ContentTypeID=1</link><pubDate>Tue, 24 Jun 2014 09:23:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d5f38e3-ff96-46c8-a8cb-759fdff671d7</guid><dc:creator>Stefan Birnir Sverrisson</dc:creator><description>&lt;p&gt;Hi Syrius&lt;/p&gt;
&lt;p&gt;In your GPIOTE interrupt handler, you can stop advertising with calling &lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a00845.html#gaa88eea8e9e95dd96a7633e2c62f3ce16"&gt;sd_ble_gap_adv_stop&lt;/a&gt;, reconfigure your advertising parameters, and then start advertising again with &lt;a href="https://devzone.nordicsemi.com/documentation/nrf51/5.2.0/html/a00845.html#gab18b2339fa4c752037d9c9cd4df4e551"&gt;sd_ble_gap_adv_start&lt;/a&gt;. Set the advertising parameters like done in advertising_init() and/or advertising_start() functions in any of the BLE example codes in the nRF51 SDK. If you set the m_adv_params.timeout = 0, then the advertising will never time out.&lt;/p&gt;
&lt;p&gt;Initially, you configure your GPIOTE interrupt to be triggered either on high signal or on low signal. When you connect your PC, the interrupt will trigger and the GPIOTE interrupt handler is executed. In your GPIOTE interrupt handler, you could reconfigure your GPIOTE so that the GPIOTE interrupt is triggered on  the opposite signal, then the GPIOTE interrupt will be triggered again when you unplug your PC from the nRF51 device, enabling you to reconfigure your advertising parameters to the original state.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>