<?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>Implementing &amp;#39;Wake on BLE&amp;#39; on nrf52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68460/implementing-wake-on-ble-on-nrf52832</link><description>I have an nrf52832 based device and a mobile app that I&amp;#39;m working on. I&amp;#39;d like to be able to turn the device on via the app, so wake on BLE seems the way to go. 
 I&amp;#39;m a neophyte so I&amp;#39;ve been digging into how to implement this (from the firmware side)</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Nov 2020 09:39:01 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68460/implementing-wake-on-ble-on-nrf52832" /><item><title>RE: Implementing 'Wake on BLE' on nrf52832</title><link>https://devzone.nordicsemi.com/thread/281264?ContentTypeID=1</link><pubDate>Mon, 23 Nov 2020 09:39:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2e80a11-d57a-4cb2-ad36-ad88313e2a39</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Your understanding is correct Terry.&lt;/p&gt;
&lt;p&gt;Just to add, that the time between the device advertising (plus some post processing) the device sleeps most of the time. Larger advertising interval would directly be equal to larger sleep times and hence larger power saving on your device.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing 'Wake on BLE' on nrf52832</title><link>https://devzone.nordicsemi.com/thread/280944?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 15:04:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d71d35bf-8d35-4b99-9475-62750689b45f</guid><dc:creator>Terry V</dc:creator><description>&lt;p&gt;Thanks&amp;nbsp;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/aryan"&gt;Susheel Nuguru&lt;/a&gt;, I looked at the blinker example.&lt;/p&gt;
&lt;p&gt;Do I understand this correctly:&lt;/p&gt;
&lt;p&gt;- after everything it setup and run, it enters into idle state via&amp;nbsp;idle_state_handle()&lt;/p&gt;
&lt;p&gt;-&amp;nbsp;during this idle time, BLE is still advertising - so if a device connects,&amp;nbsp;I&amp;#39;ll get an event occurring in&amp;nbsp;ble_evt_handler() and I just continue processing from there&lt;/p&gt;
&lt;p&gt;Is this correct?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Implementing 'Wake on BLE' on nrf52832</title><link>https://devzone.nordicsemi.com/thread/280761?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 07:34:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e37a9e67-c947-403f-8262-f57bba5bf90f</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Hi Terry,&lt;/p&gt;
&lt;p&gt;Very interesting question.&lt;/p&gt;
[quote user=""]&amp;nbsp; But I&amp;#39;ve also seen things like &amp;#39;wake from system OFF&amp;#39;&amp;nbsp;when triggered by GPIO, LPCOMP, NFC.&amp;nbsp;Is it possible to&amp;nbsp;have the radio somehow trigger a wake from System OFF? [/quote]
&lt;p&gt;You are on the right track in terms of understanding. As you can see the&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52832.ps.v1.1%2Fpower.html&amp;amp;cp=4_2_0_17_1&amp;amp;anchor=unique_1707892264"&gt;System OFF&lt;/a&gt;&amp;nbsp;mode, only four wakeup sources are available to wake the system from OFF mode. This is the deepest sleep mode that saves most of the power switching of most of the regulators and keeping the power only to the wakeup sense mechanism.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Unfortunately, RADIO is not one of the wakeup sources for System OFF, so we cannot use this type of sleep in your case.&lt;/p&gt;
&lt;p&gt;I think your concerns are what is Nordic is all about. And like what you said below&lt;/p&gt;
[quote user=""]From my reading it seems the way to go is to put the device into sleep mode, then wake occasionally to advertise and then stay awake if the app happens to be there and connects.[/quote]
&lt;p&gt;&amp;nbsp;This is where Nordic&amp;#39;s solution and BLE are so special. When you make the chip to go to system idle (__WFE sleep) then you can architect your software to disable all of the peripherals and the BLE stack (softdevice) will wake the application automatically if there are any advertising (or any other radio events) that needs application processing. So in short what you need is already in place and all you need to do is handle those specific advertising events in such a way to keep the application alive until you need and make it go to sleep.&lt;/p&gt;
&lt;p&gt;How often you want the system to wake up to advertising/scan events depends on the intervals you choose to configure the radio. I would recommend you to try out a simple&amp;nbsp;nRF5_SDK_17.0.0_9d13099\examples\ble_peripheral\ble_app_blinky example and measure the power it consumes. Play with different advertising intervals and measure again to see if the power consumption matches your usecase.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>