<?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>NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50542/nrf52840-dk-current-consumption-measurement</link><description>Hello, I just started to understand the NRF52840-DK. I want to measure the power consumption of NRF52 with broadcasting some data to air. How I will do it? Is there any example in SDK to put the device in sleep mode and I can broadcast the data. 
 I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 07 Aug 2019 08:49:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50542/nrf52840-dk-current-consumption-measurement" /><item><title>RE: NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/thread/202766?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 08:49:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:468f5032-dce6-4a1b-83a7-34e806ce196d</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The purpose of sd_app_evt_wait() is to do some extra housekeeping for the Softdevice before going to sleep. The function also makes sure that the code does not exit&amp;nbsp;sd_app_evt_wait() unless an application event occurs, such as e.g. UART or ADC interrupt.&amp;nbsp;All the Softdevice examples that use sd_app_evt_wait() in our SDKs should be able to enter sleep mode.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;According to your code, it will execute the nrf_data_mgmt_timeout_handler function when the timer event is triggered.&lt;/p&gt;
&lt;p&gt;Please &lt;span&gt;take a look at&amp;nbsp;&lt;/span&gt;&lt;a href="https://devzone.nordicsemi.com/tutorials/19/"&gt;this&lt;/a&gt;&lt;span&gt;&amp;nbsp;tutorial.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/thread/202722?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2019 04:40:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:86226612-9530-4f2f-a6a4-e2ee1876ce0e</guid><dc:creator>AP040</dc:creator><description>&lt;p&gt;Is this API (sd_app_evt_wait()) is valid for sleep mode?&lt;/p&gt;
&lt;p&gt;I have created one app timer for sending advertising packet when the timer event is triggered.&lt;/p&gt;
&lt;p&gt;I want system will on at that stage when it is before going to sleep mode. Do not want to restart it.&lt;/p&gt;
&lt;p&gt;Is it valid? Advertising packet not working as I accepted.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void nrf_data_mgmt_timeout_handler(void * p_context)
{
      NRF_LOG_INFO(&amp;quot;#&amp;quot;);
}
ret_code_t data_mgmt_timer_create(void)
{
    ret_code_t ret_code = app_timer_create(&amp;amp;m_data_mgmt_timer,
                                           APP_TIMER_MODE_REPEATED,
                                           nrf_data_mgmt_timeout_handler);
    if (ret_code != NRF_SUCCESS)
    {
        return ret_code;
    }

    return app_timer_start(m_data_mgmt_timer, APP_TIMER_TICKS(5000), NULL);
}

/**@brief Function for application main entry.
 */
int main(void)
{
    // Initialize.
    log_init();
    leds_init();
    timers_init();
    buttons_init();
    power_management_init();
    ble_stack_init();
    gap_params_init();
    gatt_init();
    services_init();
    advertising_init();
    conn_params_init();

    // Start execution.
    NRF_LOG_INFO(&amp;quot;Blinky example started.&amp;quot;);
    advertising_start();
    data_mgmt_timer_create();
    // Enter main loop.
    for (;;)
    {
        idle_state_handle();
        sd_app_evt_wait();
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/thread/202417?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 12:00:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c44fed61-47f2-4125-83e2-f385cf43829f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;It is answered in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/26506/timed-interval-sleep-mode/104293#104293"&gt;this thread&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/thread/202373?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2019 09:58:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cef7246a-5061-4bee-ba54-cad0a167c05a</guid><dc:creator>AP040</dc:creator><description>&lt;p&gt;Hi Amanda...!!!&lt;/p&gt;
&lt;p&gt;Can you give some example to put nrf52840 into sleep with some configurable time. For example, at every 1 min the board goes into the sleep mode and wake-up when the 1 mins time is over and do some task and going back to sleep for 1min.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/thread/202121?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 11:41:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d242bfd-31c7-4b46-a958-a80b54c8e211</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;This&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/bluetooth-low-energy/posts/ble-advertising-a-beginners-tutorial"&gt;Bluetooth low energy Advertising, a beginner&amp;#39;s tutorial&lt;/a&gt;&amp;nbsp;can help you.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/thread/202075?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 09:42:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c37c7999-3b7f-4e8b-ad97-7c17f87fa6c7</guid><dc:creator>AP040</dc:creator><description>&lt;p&gt;Thanks Amanda..!!&lt;/p&gt;
&lt;p&gt;Can I send some user-specific data into the advertising packets? If yes, how can I achieve this?&lt;/p&gt;
&lt;p&gt;Because when I am check in the ble_peripheral \ ble_app_blinky example the size of the advertising packet is 31bytes but there is one option to support max data length &amp;quot;&lt;strong&gt;BLE_GAP_ADV_SET_DATA_SIZE_EXTENDED_MAX_SUPPORTED&lt;/strong&gt;&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/thread/202066?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 09:08:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:801e75d4-d7df-4dd7-978e-8d49b75556dc</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Arpan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Please see this &lt;a href="https://devzone.nordicsemi.com/nordic/short-range-guides/b/hardware-and-layout/posts/current-measurement-guide-introduction"&gt;Current measurement guide: Introduction&lt;/a&gt;&amp;nbsp;which&amp;nbsp;&lt;span&gt;describes other possibilities as well which include using an oscilloscope or an ampere meter.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="AP040"]I want to broadcasting the data at some regular interval of time how I do it?[/quote]
&lt;p&gt;You can modify the interval in the code. See this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/49906/10s-advertising-interval-and-connection"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/thread/202044?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 07:56:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9574e185-2c00-43ac-a352-d73d337d1af6</guid><dc:creator>AP040</dc:creator><description>&lt;p&gt;Hi Amanda, I know that Power Profiler Kit will be helping to do this stuff but this is not available with me. I want to do it with only having the NRF52840-DK.&lt;/p&gt;
&lt;p&gt;Moreover, I want to broadcasting the data at some regular interval of time how I do it?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52840-DK current consumption measurement</title><link>https://devzone.nordicsemi.com/thread/202041?ContentTypeID=1</link><pubDate>Fri, 02 Aug 2019 07:47:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fcb0e886-5214-4711-aa8a-94f652d8dc6a</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi Arpan,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I suggest to use the&amp;nbsp;&lt;a title="Power Profiler Kit" href="https://www.nordicsemi.com/Software-and-Tools/Development-Kits/Power-Profiler-Kit"&gt;Power Profiler Kit&lt;/a&gt;(PPK)&amp;nbsp;with &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_pwr_mgmt.html&amp;amp;cp=4_0_0_4_1_2_20"&gt;Power Profiling Application&lt;/a&gt;&amp;nbsp;to measure current.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;The PPK can be used in conjunction with the nRF5 DK to measure current on the nRF5 DK or on an external board. The hardware is delivered with an application that is installed using&amp;nbsp;&lt;/span&gt;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Connect-for-desktop" rel="noopener noreferrer" target="_blank"&gt;nRF Connect for Desktop&lt;/a&gt;&lt;span&gt;. There are several measurement configurations, which are described in &lt;a href="https://infocenter.nordicsemi.com/topic/ug_ppk/UG/ppk/PPK_user_guide_Intro.html?cp=6_6"&gt;the guide&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;-Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>