<?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 the LPN examples power consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48762/reducing-the-lpn-examples-power-consumption</link><description>Hello, I&amp;#39;m still a beginner with mesh so excuse me, if this might be a silly question or has been answered before. I did not find a post that quite resembled my problem. 
 
 So for my use case I want to power my sensor node and display multiple states</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2019 08:49:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48762/reducing-the-lpn-examples-power-consumption" /><item><title>RE: Reducing the LPN examples power consumption</title><link>https://devzone.nordicsemi.com/thread/197036?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 08:49:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e827ece-3b1e-4864-b990-e2c73118af90</guid><dc:creator>Heiner</dc:creator><description>&lt;p&gt;Thank you, that worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing the LPN examples power consumption</title><link>https://devzone.nordicsemi.com/thread/196870?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 14:04:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad305dd7-7883-4ba1-bfae-d92011624fae</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Heiner,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The Mesh time provided the following feedback:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;The example was designed for demonstration purposes, and hence some of its features (namely, status LEDs and RTT input polling) cause a significant amount of power consumption when the example firmware is executing. For this reason, you must disable these features to obtain more accurate power measurements.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;br /&gt; Apply the following modifications at the paths provided:&lt;/em&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;\examples\experimental_lpn\include\nrf_mesh_config_app.h&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Disable use of DK LEDs by setting SIMPLE_HAL_LEDS_ENABLED to 0.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Disable RTT Input by setting RTT_INPUT_ENABLED to 0.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;&lt;em&gt;app_mesh_core_event_cb() in \examples\experimental_lpn\src\main.c&lt;/em&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;Disable proxy service advertising when NRF_MESH_EVT_FRIENDSHIP_ESTABLISHED event is received by calling the proxy_stop() API.&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;&lt;em&gt;Enable proxy service advertising when NRF_MESH_EVT_FRIENDSHIP_TERMINATED event is received by calling the proxy_enable() and then the proxy_start() APIs.&lt;/em&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;em&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-983eb7e9e16f47eb831e9d2fa3acab88/pastedimage1562335318074v1.png" alt=" " /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;After making these modifications, recompile the LPN example and flash this example and the Zephyr friend binary on two development boards. Provision the Zephyr Friend node into the network using nRF Mesh App.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Please perform the suggested modifications and see if you see a reduction in the current consumption of the LPN node.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;Bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing the LPN examples power consumption</title><link>https://devzone.nordicsemi.com/thread/196657?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 17:13:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:370d0ac4-fd08-424d-937d-7d5a027ae17f</guid><dc:creator>Heiner</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;thanks for the quick reply.&lt;/p&gt;
&lt;p&gt;The polling completes about every 8 seconds. Looking at the image before, this confirms my guess, that the two&amp;nbsp;big peaks that can be seen once the friendship is established are due to the polling process.&lt;/p&gt;
&lt;p&gt;However, there still seems to be some other stuff going on there, which behaves&amp;nbsp;consistent no matter if the device is in low power mode or not.&lt;/p&gt;
&lt;p&gt;For now I cannot really see the difference in the two, besides the added peaks from the polling process.&lt;/p&gt;
&lt;p&gt;Maybe the Mesh team can clarify what&amp;#39;s going on here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Sincerely,&lt;/p&gt;
&lt;p&gt;Heiner&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing the LPN examples power consumption</title><link>https://devzone.nordicsemi.com/thread/196309?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 14:13:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8fba0a41-72d6-4058-9f6d-e8a62a952ad8</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Heiner,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If the polling is the cause, then it would mean that the LPN node is constantly polling the Friend node, which sort of defeats the purpose of having a LPN in the first place.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How often do you see the&amp;nbsp;NRF_MESH_EVT_LPN_FRIEND_POLL_COMPLETE if you look at the log output from the LPN node?&lt;/p&gt;
&lt;p&gt;I have asked the Mesh team to clarify what current consumption figures one should expect when using the example from the SDK as is.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards&lt;/p&gt;
&lt;p&gt;bjørn&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing the LPN examples power consumption</title><link>https://devzone.nordicsemi.com/thread/195543?ContentTypeID=1</link><pubDate>Mon, 01 Jul 2019 08:35:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2289043d-9265-4efd-9992-b62c0ab4c818</guid><dc:creator>Heiner</dc:creator><description>&lt;p&gt;Next, I tried the example from the v 3.1.0 MESH SDK,&lt;/p&gt;
&lt;p&gt;with only few changes:&lt;/p&gt;
&lt;p&gt;So first I changed this define:&lt;/p&gt;
&lt;p&gt;#define FDS_PHY_PAGES_RESERVED ((FDS_VIRTUAL_PAGES_RESERVED * FDS_VIRTUAL_PAGE_SIZE) / FDS_PHY_PAGE_SIZE))&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;#define FDS_PHY_PAGES_RESERVED 0&lt;/p&gt;
&lt;p&gt;because otherwise I would get the error, I described before.&lt;/p&gt;
&lt;p&gt;Then I changed the feedback from the LEDs to only&amp;nbsp;flash for a short period, instead of being constantly on.&lt;/p&gt;
&lt;p&gt;This way the difference between friendship consumption and no friendship consumption&amp;nbsp;is easier to see.&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/Bildschirmfoto-2019_2D00_07_2D00_01-um-10.16.03.png" /&gt;&lt;/p&gt;
&lt;p&gt;Still my problem remains. As you can see, the node still consumes a tiny bit more power in friendship node.&lt;/p&gt;
&lt;p&gt;How is this possible? Is it, because of the polling process?&lt;/p&gt;
&lt;p&gt;And in this case, wouldn&amp;#39;t it be better to just use the low power node&amp;nbsp;without a friend connection?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Again, thank you for helping me understand this topic better.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing the LPN examples power consumption</title><link>https://devzone.nordicsemi.com/thread/194466?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 21:13:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:32e678d9-b87d-4b5d-989d-724588abe57a</guid><dc:creator>Heiner</dc:creator><description>&lt;p&gt;Hi Bjorn,&lt;/p&gt;
&lt;p&gt;thank you for your reply.&lt;/p&gt;
&lt;p&gt;I actually tried the unaltered Low Power node example from the MESH SDK v3.0.0 first.&lt;/p&gt;
&lt;p&gt;I thought, that it did consume about the same as the regular switch, but I didn&amp;#39;t want to make false statements so I went back and checked my logs&amp;nbsp;and it actually seems to consume way less (about 1,9 mA on average).&lt;/p&gt;
&lt;p&gt;However I&amp;#39;m still having trouble&amp;nbsp;see a difference in consumption,&amp;nbsp;whether the LPN has established a friendship or not. (Besides the increased consumption du to the LED).&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/pastedimage1561410739728v1.png" /&gt;&lt;span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Compiling the v3.1.0 Version I had some problems at first.&amp;nbsp;When I try to compile it as it is, I get the Error:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;#39;FDS_VIRTUAL_PAGES_RESERVED&amp;#39; undeclared; did you mean &amp;#39;FDS_VIRTUAL_PAGE_SIZE&amp;#39;? &lt;/em&gt;in the fds.c file&lt;/p&gt;
&lt;p&gt;Since from my understanding this variable is only important for paging, but not crucial for the mesh, I just changed it to:&lt;/p&gt;
&lt;p&gt;#define FDS:PHY_PAGES_RESERVED 0&lt;/p&gt;
&lt;p&gt;And after that it compiled with no problem.&lt;/p&gt;
[quote userid="7571" url="~/f/nordic-q-a/48762/reducing-the-lpn-examples-power-consumption/194432"]put the sensor nodes in SYstem OFF and then wake them up with a button press.[/quote]
&lt;p&gt;Is there an example I could look at, on how this is done?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing the LPN examples power consumption</title><link>https://devzone.nordicsemi.com/thread/194432?ContentTypeID=1</link><pubDate>Mon, 24 Jun 2019 14:54:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28204959-da8f-4ac7-91e9-0a4f26b98c31</guid><dc:creator>bjorn-spockeli</dc:creator><description>&lt;p&gt;Hi Heiner,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Which MESH SDK version are you using? V3.0.0 or v 3.1.0?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tested the unaltered&amp;nbsp;&lt;a title="Low Power node example (experimental)" href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.meshsdk.v3.1.0/md_examples_experimental_lpn_README.html?cp=5_2_3_6_1"&gt;Low Power node example (experimental)&lt;/a&gt;&amp;nbsp;in the Mesh SDK? Does this have a lower current consumption than the regular switch example?&lt;/p&gt;
[quote user=""] In this case the sensor only really needs to send data, not receive any.&amp;nbsp;What is the best way to&amp;nbsp;realize that type of sensor in a mesh? Would it be possible to set NRF52 to deep sleep mode and only wake up by toggling a GPIO, still keeping it a member of the mesh by keeping it al LPN? (2)[/quote]
&lt;p&gt;&amp;nbsp;Yes, if the sensor nodes do not need to relay mesh packets to other nodes, i.e.e you have a &amp;quot;backbone&amp;quot; of powered nodes that takes care of the relaying, then you should be able to put the sensor nodes in SYstem OFF and then wake them up with a button press.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>