<?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>can we put the nrf(radio) in sleep mode or turn off</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/42206/can-we-put-the-nrf-radio-in-sleep-mode-or-turn-off</link><description>hi.... 
 i am using nrf52832 and peripheral device , microcontroller should run continuously , nrf should be in turn off mode and it should turn on when the data need to send in(ble app) 
 how to do this ?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 09 Jan 2019 09:59:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/42206/can-we-put-the-nrf-radio-in-sleep-mode-or-turn-off" /><item><title>RE: can we put the nrf(radio) in sleep mode or turn off</title><link>https://devzone.nordicsemi.com/thread/164662?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 09:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26d23be3-4f74-455c-b089-f1c078379397</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;You cannot compare anything while in sleep. You either need a timer to wake the chip at regular intervals to compare values, or you need some other interrupt that wakes the chip and allows you to do comparison. Where is the sample/threshold coming from?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we put the nrf(radio) in sleep mode or turn off</title><link>https://devzone.nordicsemi.com/thread/164611?ContentTypeID=1</link><pubDate>Wed, 09 Jan 2019 07:00:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dedbd67a-0698-4e38-83d6-94f8a218c2e5</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;how i do ? how to compare the timer with sample (threshold) , and how to check it is in sleep&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we put the nrf(radio) in sleep mode or turn off</title><link>https://devzone.nordicsemi.com/thread/164457?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 09:09:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:960c4a5f-e545-4d69-8bc5-318e28dcdf02</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Something in your application have to update the value that you compare against the threshold. In your code it looks like you use a timer to compare the sample with the threshold. The timer will wake the chip when it times out. When there is no more work for the CPU, you put it back to sleep with&amp;nbsp;&lt;span&gt;__WFE() or sd_app_evt_wait() in main loop.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we put the nrf(radio) in sleep mode or turn off</title><link>https://devzone.nordicsemi.com/thread/164408?ContentTypeID=1</link><pubDate>Tue, 08 Jan 2019 05:45:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3209c0be-c516-4fcc-81b6-7d88d3fe274c</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;no , i will assign the threshold value..see the code below for reference&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void timer_sensor_event_handler(void)
{   
uint32_t threshold = 32;
 char str[80];
uint32_t length1;
     char pavi;

 char event;
    
  
    
    switch (event)
    {
             
           
       if(m_sample &amp;lt; threshold)
            {
           length1 = sprintf(str,&amp;quot;%d&amp;quot;, m_sample);
              ble_nus_data_send(&amp;amp;m_nus,str,sizeof(m_sample), m_conn_handle);
              ret_code_t err_code = nrf_drv_twi_rx(&amp;amp;m_twi, 0x48U, &amp;amp;m_sample, sizeof(m_sample));
               NRF_LOG_INFO(&amp;quot;SUCCESS1&amp;quot;);              
             }
  break;

        default:
            //Do nothing.
            break;
  }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we put the nrf(radio) in sleep mode or turn off</title><link>https://devzone.nordicsemi.com/thread/164361?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 16:55:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:174a4f7e-d0fb-4c15-bec8-d7b052236285</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;What will be your wakeup source when you know that you have data to transmit? Are you talking about an analog signal threshold?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we put the nrf(radio) in sleep mode or turn off</title><link>https://devzone.nordicsemi.com/thread/164356?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 16:32:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7759c2f0-766f-42fd-abd2-296bf813fefc</guid><dc:creator>ps_anu</dc:creator><description>&lt;ol&gt;
&lt;li&gt;As per you said ,in system on mode the CPU can wake up by any event from Any peripheral ,in this case can we use threshold value to wake up ?&lt;/li&gt;
&lt;/ol&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we put the nrf(radio) in sleep mode or turn off</title><link>https://devzone.nordicsemi.com/thread/164353?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 16:19:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3f376017-0cd7-4fcb-b0e4-5acd4d6680b2</guid><dc:creator>ps_anu</dc:creator><description>&lt;p&gt;&amp;nbsp;Why ? Can&amp;#39;t we put nrf in sleep mode&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: can we put the nrf(radio) in sleep mode or turn off</title><link>https://devzone.nordicsemi.com/thread/164303?ContentTypeID=1</link><pubDate>Mon, 07 Jan 2019 14:22:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2c1771ec-b796-4d08-ad11-38ddd194a4a5</guid><dc:creator>J&amp;#248;rgen Holmefjord</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The nRF52 series have two sleep modes; system on and system off sleep mode. In &lt;a href="https://www.nordicsemi.com/DocLib/Content/Product_Spec/nRF52840/latest/power?144#unique_2076021874"&gt;System off&lt;/a&gt;, the system can only wake up from GPIO event, NFCT field, analog event from LPCOMP, or a reset. It sounds like this mode is not suitable for your requirements? In system on mode, the CPU can wakeup on any event from any peripheral, and is used in almost every example in the SDK (by calling __WFE() or sd_app_evt_wait()).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Jørgen&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>