<?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>how to achieve BLE with beacon low power UART communication?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68842/how-to-achieve-ble-with-beacon-low-power-uart-communication</link><description>Hello, 
 I have been struggling with managing power consumption of my nRF52832 so it can stay low. I&amp;#39;m using nRF5_SDK_17.0.0_9d13099. I did some extensive search on the available threads, but couldn&amp;#39;t find any suggestion that can solve my problem. These</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 03 Dec 2020 00:27:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68842/how-to-achieve-ble-with-beacon-low-power-uart-communication" /><item><title>RE: how to achieve BLE with beacon low power UART communication?</title><link>https://devzone.nordicsemi.com/thread/282963?ContentTypeID=1</link><pubDate>Thu, 03 Dec 2020 00:27:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72a958d3-9842-48bf-b06d-b21ff197a3e6</guid><dc:creator>eddyhaha89</dc:creator><description>&lt;p&gt;Yes. after cutting-off all the other connection and just checking current consumption on nRF, I can confirmed that the previous reading wasn&amp;#39;t from nrf, but from external. thank you very much for the help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Eddy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to achieve BLE with beacon low power UART communication?</title><link>https://devzone.nordicsemi.com/thread/282915?ContentTypeID=1</link><pubDate>Wed, 02 Dec 2020 14:33:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:45618f1c-6bde-485b-9720-c355cda75206</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user="eddyhaha89"]After checking my devkit current consumption through power profiler, I found out that it actually quite stable at 7.5 uA when uart disabled[/quote]
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="eddyhaha89"]I believe that 2-3mA is solely from UART module.[/quote]
&lt;p&gt;So would you agree that the conclusion is that something else is drawing current on your custom board? Did you check that the UART slave is in a correct state when you de-initialize the UART on the nRF?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to achieve BLE with beacon low power UART communication?</title><link>https://devzone.nordicsemi.com/thread/282571?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 02:54:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a64d551a-3fca-4ac2-9d6d-66e763510dae</guid><dc:creator>eddyhaha89</dc:creator><description>&lt;p&gt;Hello Jared,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your response. After checking my devkit current consumption through power profiler, I found out that it actually quite stable at 7.5 uA when uart disabled, and 2.1mA when uart is enabled.&lt;img alt="UART enabled" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nrf52devkit_5F00_UARTInit_5F00_tx_5F00_noDisable.jpg" /&gt;&lt;img alt="UART disabled" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nrf52devkit_5F00_UARTInit_5F00_tx_5F00_Disabled.jpg" /&gt;&lt;/p&gt;
&lt;p&gt;I also found out that using these would actually increase current consumption by 1.5uA on my devkit (or might be only due to some variance).&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
  //  APP_ERROR_CHECK(err_code);
    NRF_UARTE0-&amp;gt;TASKS_STOPTX = 1;
    NRF_UARTE0-&amp;gt;TASKS_STOPRX = 1;
    NRF_UARTE0-&amp;gt;ENABLE = 0;
    /* Workaround by disabling the UART peripherals due to Nordic SDK15.0 issue */
    *(volatile uint32_t *)0x40002FFC = 0; /* Power down UARTE0 */
    *(volatile uint32_t *)0x40002FFC;     
    *(volatile uint32_t *)0x40002FFC = 1; /* Power on UARTE0 so it is ready for next time */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I moved the uart reinitialization / disabling uart on idle_state_handle so it can actually get enabled/disabled when needed.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void idle_state_handle(void)
{
    div_t wakeupCycle;
    if (NRF_LOG_PROCESS() == false)
    {
        nrf_pwr_mgmt_run();

         if (m_UartInit == true)
         {
            uart_init();
            m_UartInit = false;
         }

         if (m_UartClose == true)
         {
            disabling_uart();
            wakeupCycle = div(m_stm_wake_up_timer, DEFAULT_1Sec_TIMEOUT);
            m_uartwakeup_time = wakeupCycle.quot;
            // TODO: change the cycle depending on how input from user 2020-11-27
            uint32_t err_code = app_timer_start(m_uart_wakeup_timer_id, APP_TIMER_TICKS(DEFAULT_1Sec_TIMEOUT), NULL);
            NRF_LOG_INFO(&amp;quot;app_timer_start m_uart_wakeup_timer_id: %.2X&amp;quot;, err_code); NRF_LOG_FLUSH();
            APP_ERROR_CHECK(err_code);
             
            m_UartClose = false;
         }
    }
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I also attached my sdk_config.h files as requested. I guess the issue is actually located on my custom board, and I need to figure out how to reduce my current consumption from there.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/0245.sdk_5F00_config.h"&gt;devzone.nordicsemi.com/.../0245.sdk_5F00_config.h&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thank you for your help.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Eddy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to achieve BLE with beacon low power UART communication?</title><link>https://devzone.nordicsemi.com/thread/282500?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 15:07:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:97e01288-7457-4afa-aa5e-fedbc8541204</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Are you able to reproduce this on the development kit? It would be great if we could separate any external components from the nRF so that we know exactly what we&amp;#39;re measuring.&amp;nbsp;&lt;/p&gt;
[quote user="eddyhaha89"]By the way, I managed to&amp;nbsp;get it down to 0.6mA by disabling UART after usage on main instead of the uart_event_handler. I only needed&amp;nbsp;app_uart_close() because adding other codes didn&amp;#39;t reduce the current consumption. I assume it was still that high because of easyDMA? or is there any way to reduce more current on when I stop using the UART? I only need to re-activate it once or twice an hour.[/quote]
&lt;p&gt;The last part of the workarounds that you included in your original problem statement under disabling_uart() should take care of this. Please don&amp;#39;t remove them at this point, as it might be some of the problem.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How would you characterize the current consumption, is it steady 0.6 mA or does it vary? If so, by how much? It might be due to floating GPIOs. Do you see any change if you ground the pins that you use for the UART? Including TX, RX, CTS, RTS pins.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another possibility is that the UART slave&amp;nbsp;requires that one of the pins are set to a specific logical level, so that it&amp;#39;s not in a undefined state where it would pull a lot of current. Have you checked the datasheet of the slave to ensure that this is not the case?&lt;/p&gt;
&lt;p&gt;Lastly, could you upload your config and application? I&amp;#39;m interested to see what instances you have enabled and exactly from where you disable the module.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to achieve BLE with beacon low power UART communication?</title><link>https://devzone.nordicsemi.com/thread/282365?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 00:36:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c68b1c6f-67ba-47f3-8397-0dfb03cc559a</guid><dc:creator>eddyhaha89</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I believe that 2-3mA is solely from UART module. I am using a custom board and I measured my board with multimeter + power supply @3.3v. when I disable uart_init, I could get around 0.4mA which is still high, but it is because other part of my board still operating.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By the way, I managed to&amp;nbsp;get it down to 0.6mA by disabling UART after usage on main instead of the uart_event_handler. I only needed&amp;nbsp;app_uart_close() because adding other codes didn&amp;#39;t reduce the current consumption. I assume it was still that high because of easyDMA? or is there any way to reduce more current on when I stop using the UART? I only need to re-activate it once or twice an hour. Thank you.&lt;/p&gt;
&lt;p&gt;best regards,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Eddy.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to achieve BLE with beacon low power UART communication?</title><link>https://devzone.nordicsemi.com/thread/282251?ContentTypeID=1</link><pubDate>Fri, 27 Nov 2020 12:11:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bec59ba1-0121-4974-96cc-9cdc1905e68d</guid><dc:creator>Jared</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;2-3 mA solely for the UART module is indeed high.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Are you measuring on a custom board or a DK? If you&amp;#39;re measuring on a custom board, have you made sure that current that you measure is solely consumed by the nRF52 and not any other peripherals existing on the board? And lastly how are you measuring the current?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Jared&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>