<?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>reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/96967/reducing-power-of-hrs-sample</link><description>I have a BLE sensor device that works, but draws about 4 mA, much higher than needed. In order to learn how to reduce current, I tried to compile and run the HRM sample code and check current on my device hardware. 
 It also draws about 4 mA, as long</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 01 Mar 2023 08:40:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/96967/reducing-power-of-hrs-sample" /><item><title>RE: reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/thread/412654?ContentTypeID=1</link><pubDate>Wed, 01 Mar 2023 08:40:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd615508-0710-45a0-a5e2-dd011be928e8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Indeed, sounds like you figured it out. Yes, I did not remove the timers or buttons_leds_init() as I just measured the nRF52840 DK in &amp;quot;nRF Only&amp;quot; mode, so I wouldn&amp;#39;t see the LEDs drawing 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: reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/thread/412501?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 12:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49643d68-f393-4db9-be40-1464e27f3727</guid><dc:creator>Johan.h</dc:creator><description>&lt;p&gt;Well, I removed&amp;nbsp;timers_init() and buttons_leds_init() from main.c, changed adv. time to 5 seconds. Now I am at less than 10uAmp. A good starting point to add functionality.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/thread/412405?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2023 06:54:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a142858d-e6b8-4e77-b50b-f9b8118abe75</guid><dc:creator>Johan.h</dc:creator><description>&lt;p&gt;Hi, I tried your hex file as follows:&lt;/p&gt;
&lt;p&gt;1. erased DK (PC10040) memory.&lt;/p&gt;
&lt;p&gt;2. programed s132_nrf52_7.2.0_softdevice.hex and the hex file you made.&lt;/p&gt;
&lt;p&gt;3. removed usb cable from DK.&lt;/p&gt;
&lt;p&gt;4. power DK from PPk2 as in picture.&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677567075945v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;Average current is 385 uA, but an LED is blinking every 2 sec. which can explain this.&lt;/p&gt;
&lt;p&gt;there is a 200ms pulse of about 2.5 mA with every advertisement.&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677567190579v2.png" /&gt;&lt;/p&gt;
&lt;p&gt;Can you send me your main.c and sdk_config.h?&lt;/p&gt;
&lt;p&gt;BR&lt;/p&gt;
&lt;p&gt;Johanan&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/thread/411993?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 13:56:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95b122d3-cd81-4f37-9309-ef94fb68641b</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s the .hex file of the project, but it&amp;#39;s literally just the ble_app_hrs example from SDK 17.1.0 with the APP_ADV_INTERVAL set to 3200 (2 seconds).&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/5287.ble_5F00_app_5F00_hrs_5F00_pca10040_5F00_s132.hex"&gt;devzone.nordicsemi.com/.../5287.ble_5F00_app_5F00_hrs_5F00_pca10040_5F00_s132.hex&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To measure on a DK I used the nRF52840 DK which has a switch to put it in &amp;quot;nRF Only&amp;quot; mode which lets you only power the nRF52 on it and not the debugger. That way you can get okay current consumption measurements when using DKs as well.&lt;/p&gt;
&lt;p&gt;But the unknown spikes occurring every 2 seconds almost seem like the device is&amp;nbsp;waking up the CPU (probably to do some calculations) now and again, but it&amp;#39;s hard to know what wakes it up without seeing your project.&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: reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/thread/411888?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 09:55:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:996b3d30-a0be-40bb-9223-5f59c4b611f1</guid><dc:creator>Johan.h</dc:creator><description>&lt;p&gt;BTW, how can I measure actual current consumption with DK? I disconnect SB9 and use PPK2 on P22, but isn&amp;#39;t the Jlink debugger always connected and draws current?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/thread/411838?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 08:02:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a31c30f5-5521-4f22-8bdb-705836f1ce90</guid><dc:creator>Johan.h</dc:creator><description>&lt;p&gt;Thank you, this is good news which means I am missing something.&lt;/p&gt;
&lt;p&gt;I started with the same project as you, it is on custom board which is very simple. MY IDE is visual Studio with &lt;a href="https://visualgdb.com/"&gt;VISUALGDB &lt;/a&gt;plugin, DK board as Jlink.&amp;nbsp; I check current with Jlink not connected and after reset.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will be happy to provide a link to the project or just upload main.c&lt;/p&gt;
&lt;p&gt;On the other hand, can you send a link to your project, I will try to build it on my system and test.&lt;/p&gt;
&lt;p&gt;Thanks for your support.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/thread/411833?ContentTypeID=1</link><pubDate>Fri, 24 Feb 2023 07:39:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:40c14c0c-0014-403c-ab54-15c9bc5c9be6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What example project have you based your project on? I just built the &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/ble_sdk_app_hrs.html"&gt;ble_app_hrs &lt;/a&gt;example project on my end. I only changed the advertising interval to occur every 2 seconds, and I&amp;#39;m seeing an average current consumption of ~40µA on my end. Any chance you can upload your main file so we can take a look at what you&amp;#39;re doing exactly. Also, are you testing on a Development Kit or a custom board?&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/5684.pastedimage1677224371470v1.png" alt=" " /&gt;&amp;nbsp;(the spikes between advertisements are noise from the DK)&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: reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/thread/411641?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 12:11:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeef25cd-27e8-4b44-80b7-e95f3e94d16f</guid><dc:creator>Johan.h</dc:creator><description>&lt;p&gt;I am using SDK_15. I removed all the timers that I can see, by not calling&amp;nbsp;application_timers_start(), set the adv interval to 5 seconds. Using PPK2, I can see the adv peak current every 5 seconds, but still see some activity every 2 seconds which I can&amp;#39;t stop. Any idea what can it be? (Average current now about 450 uA).&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1677154309532v2.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: reducing power of HRS sample</title><link>https://devzone.nordicsemi.com/thread/411631?ContentTypeID=1</link><pubDate>Thu, 23 Feb 2023 11:27:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:adfb2fc9-4406-44d6-86b8-5cd504571523</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What SDK and SDK version are you using for development? How to get minimize current consumption depends on the SDK used. If you want to advertise as rarely as every 5 seconds, I think it shouldn&amp;#39;t be a problem at all to go to sleep in between advertisement in order to save power. Same goes for between transmissions in a connection. You can use the &lt;a href="https://devzone.nordicsemi.com/power/w/opp/2/online-power-profiler-for-bluetooth-le"&gt;Online Power Profiler for BLE&lt;/a&gt; to get some estimations on what you can expect at different advertising intervals, TX powers, etc.&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>