<?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 usage of the Light Switch Server</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77829/reducing-power-usage-of-the-light-switch-server</link><description>Hello everybody, 
 
 I&amp;#39;m currently trying to create a Bluetooth Low Energy Mesh network of multiple nodes that I can control using a Bridge application. 
 I use a nRF52840 DK with the Serial Example (PyACI) for my Bridge and the nRF52840 DK&amp;#39;s loaded up</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 Aug 2021 08:20:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77829/reducing-power-usage-of-the-light-switch-server" /><item><title>RE: Reducing power usage of the Light Switch Server</title><link>https://devzone.nordicsemi.com/thread/323659?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 08:20:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d4777a80-49fc-4177-8004-98c3a011d726</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sam,&amp;nbsp;&lt;br /&gt;I was talking about normal BLE- Bluetooth Low Energy, not mesh. If the network is not large (more than 20-30 nodes) and can be covered by 2-3 central nodes then it&amp;#39;s possible to not use mesh at all and only use BLE. This way both the centrals (backbone nodes) and the peripheral (edge nodes) can be low power.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you prefer to use mesh, you can increase the friend capacity by defining:&amp;nbsp;MESH_FRIEND_FRIENDSHIP_COUNT in nrf_mesh_config_app.h&amp;nbsp; . By default it&amp;#39;s 2.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing power usage of the Light Switch Server</title><link>https://devzone.nordicsemi.com/thread/323657?ContentTypeID=1</link><pubDate>Fri, 06 Aug 2021 08:08:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcc43a80-55de-4bdd-85bd-613583494333</guid><dc:creator>SamTheMan</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Hung Bui,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Each BLE node can handle up to 20 connections at the same time.&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Do you mean in-general for the Bluetooth specifications? Because i&lt;/span&gt;&lt;span&gt;t looks like the nRF52840 DK board loaded with the &amp;#39;light switch server example&amp;#39; can only handle 2 friendships from &amp;quot;LPN Client node example&amp;quot; at the same time.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I get the NRF_ERROR_NO_MEM error whenever I&amp;nbsp;try to establish a 3th friendship to a single Friend node (first 2 friendships establish successfully).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So I&amp;nbsp;read on webpage&amp;nbsp;&lt;a href="https://www.bluetooth.com/blog/bluetooth-mesh-networking-series-friendship/"&gt;https://www.bluetooth.com/blog/bluetooth-mesh-networking-series-friendship/&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;quot;The amount of RAM available directly affects how many LPNs a Friend node can support and how many messages it can buffer for associated LPNs.&amp;quot;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Which makes me believe the nRF52840DK boards have only enough RAM to handle 2 friendships at the same time. Is this correct? Or is there a setting I can change to be able to add more nodes?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve managed to set up a good working network; Although that would be my only restriction at the moment.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Cheers and thanks for the help,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sam&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing power usage of the Light Switch Server</title><link>https://devzone.nordicsemi.com/thread/322710?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 15:32:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b60903da-234c-4406-bd7b-310153cadb68</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sam,&amp;nbsp;&lt;br /&gt;1) a LPN node can&amp;#39;t talk to 2 friends node at the same time. So this part won&amp;#39;t work:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Friend Light Server&amp;nbsp;1 &amp;lt;---&amp;gt; LPN sensor 2 &amp;lt;---&amp;gt; Friend Light server 2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But this work:&amp;nbsp;&lt;br /&gt;&amp;nbsp;&amp;nbsp;LPN sensor 1 &amp;lt;---&amp;gt; Friend Light Server&amp;nbsp;1 &amp;lt;---&amp;gt; Friend Light server 2&amp;nbsp; &amp;lt;---&amp;gt; LPN sensor 2&lt;br /&gt;&lt;br /&gt;2) Correct&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3) You can put the friend node / relay node to sleep mode to reduce current consumption but it will affect the mesh performance. It won&amp;#39;t be able to relay mesh packet when it&amp;#39;s sleeping. There is no synchronization between relay nodes.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;If you don&amp;#39;t plan to have a large number of nodes, a better solution is to use Bluetooth LE as multiple of star networks.&amp;nbsp;&lt;br /&gt;Each BLE node can handle up to 20 connections at the same time. And they will have much lower consumption compare to mesh. We are talking about a dozen of uA compare to 6mA.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing power usage of the Light Switch Server</title><link>https://devzone.nordicsemi.com/thread/322695?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 14:19:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23c51786-191d-46f0-86fb-cfa2dd6a95e4</guid><dc:creator>SamTheMan</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Hung Bui,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your time and sorry if I overload you with questions haha.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I will take a look at the DCDC that you suggested.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;1) Let&amp;#39;s say my mesh topology looks like this where devices are only connected to the ones that have an arrow drawn to them:&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;LPN sensor 1 &amp;lt;---&amp;gt; Friend Light Server&amp;nbsp;1 &amp;lt;---&amp;gt; LPN sensor 2 &amp;lt;---&amp;gt; Friend Light server 2&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If LPN sensor 1 triggers, would it be possible to turn on Light server 2 through the mesh?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2) Can &lt;/span&gt;&lt;span&gt;only Edge devices implement the low power feature in a mesh network?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;nbsp;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;3) &amp;quot;The significant part of the consumption is radio scanning.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Would it be possible for nodes to interrupt its scanning in order to reduce power? &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For example by syncing the scanning of friend nodes to the wake-up interval of LPN nodes?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;cheers,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Sam&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing power usage of the Light Switch Server</title><link>https://devzone.nordicsemi.com/thread/322630?ContentTypeID=1</link><pubDate>Fri, 30 Jul 2021 10:11:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:658cd749-b044-40f0-9878-b8887232f706</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Sam,&amp;nbsp;&lt;br /&gt;I&amp;#39;m taking over the case from Kenneth.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;15uA current consumption for the LPN is about right the average current consumption depends on the wake up interval of the LPN node.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;10mA on the Light switch server is also correct. A normal mesh node (not LPN) is designed to&amp;nbsp;do radio scanning all the time. It doesn&amp;#39;t really matter if it&amp;#39;s a friend node or not. The significant part of the consumption is radio scanning.&amp;nbsp;&lt;br /&gt;At chapter 5 in the nRF52840 datasheet you can find the current consumptions:&amp;nbsp;&lt;br /&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/1212x770/__key/communityserver-discussions-components-files/4/pastedimage1627639594865v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure if you are using DCDC or not, but the number matched with radio receiving with no DCDC.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you use DCDC the consumption can be lowered down to 6.53mA.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Bluetooth Mesh is not designed as a low power mesh. So I am not sure there could be an easy way to reduce the power consumption of the Friend nodes without affecting the performance of the mesh network. A connected mesh protocol (instead of flooding mesh) may have lower power consumption on the backbone nodes but it&amp;#39;s more complex and has some drawback as well (for example dynamically and mobility)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing power usage of the Light Switch Server</title><link>https://devzone.nordicsemi.com/thread/322221?ContentTypeID=1</link><pubDate>Wed, 28 Jul 2021 12:01:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:01c280c6-b4f6-4c56-8101-83d6fa3bdd62</guid><dc:creator>SamTheMan</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I have dropped the custom bridgeapp for now and implemented that the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fgroup__MESH__LPN.html&amp;amp;cp=8_2_4_6_1_3"&gt;LPN Client node example&lt;/a&gt; can establish friendship with nRF Light Server Nodes.&lt;/p&gt;
&lt;p&gt;The power consumption dropped to ~8mA on the Light Switch Server and to ~1mA on the LPN Client node example.&lt;/p&gt;
&lt;p&gt;While it is progress, I think the power consumption on the Light Switch Server is still a bit high.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;I&amp;#39;m trying to create a low power network where all Light Switch Server nodes run on as low power consumption as possible.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Do you know how what&amp;#39;s the easiest way to implement LPN on the Light Server Nodes?&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I&amp;#39;ve looked at &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v4.0.0%2Fmd_doc_getting_started_lpn_integration.html&amp;amp;cp=8_6_2_1_7"&gt;Integrating Low Power node feature&lt;/a&gt;, however I&amp;#39;m still new at this and am unsure how to&amp;nbsp;proceed.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Sam&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Edit:&lt;/p&gt;
&lt;p&gt;Made some small changes to the network.&lt;/p&gt;
&lt;p&gt;Light Switch Server nodes (Friend nodes) consume same with or without friendship (~10mA in nRF only mode )&lt;/p&gt;
&lt;p&gt;LPN Client example node (Low power nodes) consumes less now ( ~15&lt;span&gt;&amp;micro;A. in nRF only mode )&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reducing power usage of the Light Switch Server</title><link>https://devzone.nordicsemi.com/thread/321813?ContentTypeID=1</link><pubDate>Mon, 26 Jul 2021 12:26:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:19fd683d-edc0-4bfd-8d59-9b78d34b8a45</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;A node will be in receive mode pretty much all the time waiting for messages or relaying them, typically drawing in the ~10mA range continously.&lt;/p&gt;
&lt;p&gt;A low power node (LPN) can be in idle most of the time, and only intermittently poll data from&amp;nbsp;a node that it has established a friendship with. In your case it sounds like the LPN node is not in a connection yet, and possible searching for a node to establish a friendship with.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>