<?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>Confused by power usage changes in firmware</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83570/confused-by-power-usage-changes-in-firmware</link><description>Hello, 
 I could use some guidance on where to look for a power draw that I am not understanding. I am not a hardware engineer but have been tasked with completing firmware for a custom board based on the nRF52832 chip. The system is built using SDK 16</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 18 Jan 2022 23:08:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83570/confused-by-power-usage-changes-in-firmware" /><item><title>RE: Confused by power usage changes in firmware</title><link>https://devzone.nordicsemi.com/thread/348391?ContentTypeID=1</link><pubDate>Tue, 18 Jan 2022 23:08:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e39fc414-65c7-4d67-9726-e580e5fc3331</guid><dc:creator>mkurtzsd</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thank you for this information. It was very helpful. I found the when my peripheral booted up it initialized the time-sync code and turned the radio on which is why it immediately was pulling ~11mA after boot. When the device disconnected, the time-sync mode was turned off which is why the power stayed low after the initial&amp;nbsp;connection. I have modified this behavior to only enable time-sync&amp;nbsp;when needed and the idle power draw is now down around 3.6mA.&lt;/p&gt;
&lt;p&gt;Thanks for the clarifications on what/how the time-sync code actually handles the radio power.&lt;/p&gt;
&lt;p&gt;-Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused by power usage changes in firmware</title><link>https://devzone.nordicsemi.com/thread/347778?ContentTypeID=1</link><pubDate>Fri, 14 Jan 2022 13:27:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ad604c2-5ae0-492d-9f2a-d91e1eba43b0</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;So I see what&amp;#39;s happening here. It took me a moment to understand what the readme actually says, but it describes it correctly.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;By default, the examples (both peripheral and central) is in receiver mode by default, and will continuously scan (drawing ~10-11mA). If you press button 1 on the DK, it will switch to transmitter mode and only advertise. The transmitter will begin toggling a GPIO and all 4 onboard LEDs will light up, and the current consumption will go down drastically (to ~2.7mA) as the device will only be advertising and toggling this one GPIO.&lt;/p&gt;
&lt;p&gt;However I&amp;#39;m not able to see the current consumption going down as you describe initially. It is either around 10-11mA in receiving mode, or ~2mA in advertising mode. It will also stay the same if I connect to the board with my nRFConnect app for Android. Are you sure you put the device to advertising mode and that it doesn&amp;#39;t actually try to scan for other timesync peripherals while it is not connected on your end, as it does indeed advertise while in receiver mode as well by default.&lt;/p&gt;
&lt;p&gt;Below are snippets from the Power Profiler application where you can see the two current consumption modes I&amp;#39;m able to replicate with the as-is timesync example project on an nRF52832 DK. You will see some dips in the current consumption in receiving mode, this seems to be because of some timeslots in the application where it sets off some ms to do an advertising event in receiver mode.&lt;/p&gt;
&lt;p&gt;Default receiver mode:&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1642166427401v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Advertising mode:&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1642166483188v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused by power usage changes in firmware</title><link>https://devzone.nordicsemi.com/thread/347636?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 15:10:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6824968e-0a84-4de4-9e4c-ce93772a436f</guid><dc:creator>mkurtzsd</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;My device is the peripheral end connecting to an iPhone and I do control advertising via a button press. When the board first boots and I see the high current, it is not advertising. When I start advertising the current goes up a little less than a mA as expected. Once it connects and begins notifying, the current consumption drops and then never goes back up to initial power on connection levels.&lt;/p&gt;
&lt;p&gt;I am powering my board using an Instek PSS-3203 power supply in place of the battery and measuring the current by placing a Keysight 34461A digital multimeter between the power supply and the board. I&amp;#39;ll need to investigate if I can output any type of continuous current measurements from the Keysight. I read that a multi-meter is not the best tool to profile the current consumption of the nRF5; but, it is sufficient for my purposes as the&amp;nbsp;change is so dramatic.&lt;/p&gt;
&lt;p&gt;A little more detail from some experiments I&amp;#39;ve done. It appears that when the peripheral is connected and is acting as the time-sync slave, that power is higher until the time-sync master starts sending packets. That is, while the slave is waiting for time-sync packets; it&amp;#39;s power draw is 2x what it is once it has received at least one sync packet. If the peripheral is put into time-sync master mode; it&amp;#39;s power immediately drops. So, there seems to be an issue with the setup before the time-sync has been established. Perhaps something in the timeslot event handler that changes when a time-sync packet has been received vs. when it hasn&amp;#39;t?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;-Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused by power usage changes in firmware</title><link>https://devzone.nordicsemi.com/thread/347556?ContentTypeID=1</link><pubDate>Thu, 13 Jan 2022 10:58:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f18eac43-df4e-4778-b48f-e546b340d742</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again Mike&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll test this on my end tomorrow (I don&amp;#39;t have the right equipment at my home office) and see if I can reproduce and hopefully explain this current consumption better.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Is this the timesync peripheral or central example that you see the high current consumption in? I don&amp;#39;t see you mention advertising, scanning or what role the application has specifically. Also, how are you measuring the current consumption? If you&amp;#39;re using our &lt;a href="https://infocenter.nordicsemi.com/topic/ug_ppk/UG/ppk/PPK_user_guide_Intro.html"&gt;PPK&lt;/a&gt; or &lt;a href="https://infocenter.nordicsemi.com/topic/ug_ppk2/UG/ppk/PPK_user_guide_Intro.html"&gt;PPK2&lt;/a&gt;, can you export and upload the file from the nRFConnect Power Profiler application in a .zip here on DevZone so I can review the current consumption on my end? The looks of it might give an idea of what specifically is drawing this current (although only the radio comes to mind that can draw that amount of current).&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused by power usage changes in firmware</title><link>https://devzone.nordicsemi.com/thread/347458?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 17:14:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:af0c53d3-f72b-44c8-8076-b6a1cc9d2bc8</guid><dc:creator>mkurtzsd</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thank you for the information and the link. I will read Scott&amp;#39;s guide and see what I can apply. I&amp;#39;m still a bit baffled about why the current drops so much after the first connection. The power draw is just upon startup initialization until the first connection. After the first disconnect, if I restart advertising, connect, time sync, sample, notify, etc... the current does not rise back up.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f914.svg" title="Thinking"&gt;&amp;#x1f914;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Again, thanks for the investigation starting point.&lt;/p&gt;
&lt;p&gt;-Mike&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Confused by power usage changes in firmware</title><link>https://devzone.nordicsemi.com/thread/347373?ContentTypeID=1</link><pubDate>Wed, 12 Jan 2022 12:42:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be91b8bd-ab6e-465d-b5cd-9eac52b44070</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi Mike&lt;/p&gt;
&lt;p&gt;This (very high) overall current consumption would be due to the BLE timesync demo not being optimized for power at all I&amp;#39;d imagine. The sd_radio_request() requests a timeslot, which should not increase the power consumption by itself, but the consumption will depend on what is done within the timeslot. This sample seems to request a timeslot that use the radio. Advertising also generally draws more current than a device already in a connection, which explains the drop once you have connected to the device, as it doesn&amp;#39;t transmit/receive data as often as if it is advertising constantly.&lt;/p&gt;
&lt;p&gt;For example, if the radio is set to transmit continuously it will draw ~11mA (see snippet from the PS below), and so if the advertising interval is low (it advertises very often) there will be few spaces of low current consumption. The post disconnection current of ~4.5mA is likely the CPU running and not much else.&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1641991172450v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;If you need to minimize the current consumption in general in your project, my colleague Scott has made a &lt;a href="https://devzone.nordicsemi.com/nordic/nordic-blog/b/blog/posts/optimizing-power-on-nrf52-designs"&gt;guide that covers both HW and SW here.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>