<?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>Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91937/put-ble-mesh-node-in-deep-sleep</link><description>Hi, 
 We are working on BLE MESH using nRF52840. We are trying to put nRF52840 into deep sleep mode. The deep sleep current is about 210 micro Amp. Further, the current is continuously increasing approx. by 1 micro Amp after every 60 sec. 
 My setup:</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jun 2024 14:26:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91937/put-ble-mesh-node-in-deep-sleep" /><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/487545?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2024 14:26:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:785c96ba-27b9-4198-9c8f-75f39b8e3019</guid><dc:creator>Florent243</dc:creator><description>&lt;p&gt;Hi Hung,&lt;/p&gt;
&lt;p&gt;Thanks for that reference, for those who continue to check this topics, this solution still works.&lt;br /&gt;&lt;br /&gt;I facing the same issue with ncs 2.3.0 ; when going in deep sleep, if the device was not provisioned I was able to decrease to 7uA (we have a TOF who consume around 5uA in off reset).&lt;/p&gt;
&lt;p&gt;But when the device was previously provisioned the current remain at 500uA&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Adding you code line remove the issue. Here is my code for those who wondering:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;void go_system_off(){
	int rc;
	struct pm_state_info deep_sleep_param={PM_STATE_SOFT_OFF,0,0};


	printk(&amp;quot;\n%s system off\n&amp;quot;,CONFIG_BOARD);

	TOF_PowerDown();
	dk_button_handler_remove(button_changed); //Remove handler to avoid conflict
	

	/* Configure to generate PORT event (wakeup) on button 1 press. */
	nrf_gpio_cfg_input(NRF_DT_GPIOS_TO_PSEL(DT_ALIAS(sw0),gpios),
		NRF_GPIO_PIN_PULLUP);
	nrf_gpio_cfg_sense_set(NRF_DT_GPIOS_TO_PSEL(DT_ALIAS(sw0),gpios),
		NRF_GPIO_PIN_SENSE_LOW);

	bt_mesh_prov_disable(BT_MESH_PROV_GATT | BT_MESH_PROV_ADV);
    bt_mesh_suspend();

	printk(&amp;quot;Entering system off; press BUTTON1 to restart\n&amp;quot;);

	pm_state_force(0u,&amp;amp;deep_sleep_param);

	k_msleep(2000);

	while(true){
		/* spin to avoid fall-off behavior */
	}
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/398334?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 12:46:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b30bf4c0-98a2-4173-a5d9-df9faab8dd65</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rajendra,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;So with the same firmware do you still see the high current consumption (225uA) on the custom board ?&amp;nbsp;&lt;br /&gt;If you still see that you may want to isolate the current measurement so that it only measure the current draw on the nRF52840 chip, not anything else. I am suspecting there could be something else on the custom board drawing the current ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Also did you write anything to UICR ? Have you tried to do a nrfjprog --recovery ?&amp;nbsp; There could be a chance that the UICR configuration of GPIO pins can be the issue here (reset pins and NFC pins).&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Regarding the issue with 18.5 uA. We need to double check here to see why that happens.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/398266?ContentTypeID=1</link><pubDate>Wed, 30 Nov 2022 09:23:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:846c0c74-b784-4432-a2e5-2424bd55f9c7</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;In earlier trials we never tried it on DK board. We were always checking it on custom board. 225 uA was observed on custom board.&lt;br /&gt;We used multimeter to measure current on DK board that came to 18.5 uA. We also have advanced current meter where we can see the current value on waveform.&lt;br /&gt;We are not using PPK2 kit since we have advanced current meter but definitely it would be one of the best options to measure the current.&lt;br /&gt;We used power reset to hard reset the board.&lt;br /&gt;We have not used &lt;code&gt;nrfjprog -r&lt;/code&gt; to trigger soft reset, will check it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/398173?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 15:36:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c07395a0-9623-4d80-83ef-014de53fa1de</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rajendra,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for the information. Have you found why it was around 200uA before with your code ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Regarding the issue with 18.5uA. How did you measure the current consumption ? Did you use a multimeter ? Could you try to measure the current with a&lt;a href="https://www.nordicsemi.com/Products/Development-hardware/Power-Profiler-Kit-2"&gt; PPK2 &lt;/a&gt;?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Could you explain which hard reset you used ? Was it a power reset or pin reset ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;When you see the current consumtion to 18.5 uA , could you try calling &amp;quot;nrfjprog -r&amp;quot; to trigger a soft reset ? and check if the current consumption when entering system off still the same or go down to 3.3uA ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I would suggest to try testing on other board as well because the DK has a programmer chip on it and may cause extra current.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/397775?ContentTypeID=1</link><pubDate>Mon, 28 Nov 2022 06:28:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a167a9c6-4d99-4934-b794-9ab04a90344c</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We are able to achieve deep sleep current on DK board. It came down to ~18.5 uA. Now we trying current measurement on BT840 based custom board. The difference between your current measurement setup and ours is -&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;We are using DK H/W ver 2.0.1 2020.38 and you are using DK HW ver 1.0.0&lt;/li&gt;
&lt;li&gt;We are taking a hard reset before current measurement. Are you also taking a hard reset?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;One interesting thing we noticed, when we download the firmware and do not take hard reset, the deep sleep current measured is ~3.3 uA. But when we take a hard reset after download, deep sleep current is ~18.5 uA.&lt;/p&gt;
&lt;p&gt;Thank you for your quick support. We will now checking this on our BT840 based custom board.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/396828?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 09:12:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03d6b653-a9eb-4bd7-b6bd-9a0f3ea8e738</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;PS: After further testing I found that I also got 200uA. But only when the serial port is open.&amp;nbsp;&lt;br /&gt;Could you try to test with&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;CONFIG_SERIAL&lt;/span&gt;&lt;span&gt;=n &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&amp;nbsp;in prj.conf ?&amp;nbsp;&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;if you still need logging,&amp;nbsp;I think we need to disable UART before enter sleep mode.&amp;nbsp;&lt;/div&gt;
&lt;div&gt;Or you can use RTT for logging but you also need to disconnect RTT if you want to have low power consumption. .&amp;nbsp;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/396816?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 08:47:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab40bd04-1a06-41fd-aaa8-8c8fa566ac91</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rajendra,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;I tried to reproduce the issue here but I couldn&amp;#39;t see it.&amp;nbsp;&lt;br /&gt;Attached you will find the project I modified light_switch to enter deep sleep mode.&amp;nbsp;&lt;br /&gt;It worked in both cases before and after provisioned.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/6646.20221122_5F00_093959.mp4"&gt;devzone.nordicsemi.com/.../6646.20221122_5F00_093959.mp4&lt;/a&gt;&lt;br /&gt;I attached the video when I tested here. You can see that when I pressed button 0 , I will call this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;		bt_mesh_prov_disable(BT_MESH_PROV_GATT | BT_MESH_PROV_ADV);
        bt_mesh_suspend();
        nrf_power_system_off(NRF_POWER);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And the current consumption went down to about 2uA. The example is from NCS v2.1.2&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/3107.light_5F00_switch_5F00_sleep.zip"&gt;devzone.nordicsemi.com/.../3107.light_5F00_switch_5F00_sleep.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;My suggestion is to get hold of a DK and use it as the reference.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/396797?ContentTypeID=1</link><pubDate>Tue, 22 Nov 2022 06:52:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9ed8671e-8298-4c6f-b9a5-42d5239d0fd5</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Further update on Deep Sleep node. We used &lt;em&gt;\zephyr\samples\boards\nrf\system_off&lt;/em&gt; sample and measured the deep sleep current. The measured average current was &lt;span style="color:#339966;"&gt;&lt;strong&gt;498 nA&lt;/strong&gt;&lt;/span&gt;. So this example gives us the expected Deep Sleep current.&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/nrf_5F00_system_5F00_0ff_5F00_current.PNG" /&gt;&lt;br /&gt;We then used similar code/settings in &lt;em&gt;\nrf\samples\bluetooth\mesh\light_switch&lt;/em&gt; and measured the current. The measured current was &lt;strong&gt;225 uA&lt;/strong&gt;, similar to what we observed earlier. I was curious how this function - &lt;code&gt;pm_state_force()&lt;/code&gt; behaves with BLE Mesh examples. Unfortunately it behaved the same way as &lt;code&gt;nrf_power_system_off(NRF_POWER)&lt;/code&gt;.&lt;br /&gt;So it seems that it is not possible to put the nRF52840 BLE Mesh device in Deep Sleep. Once the BLE Mesh stack is initiated there appears to be no way to cut off its power. &lt;br /&gt;I also tried to check if we could turn OFF the Bluetooth radio using any available function call on nRF52840 but it looks like there is no method to do so. There are a few references to this on Nordic Dev Forum.&lt;/p&gt;
&lt;p&gt;Any further suggestions on this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/396229?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 13:35:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:84be3e1e-8c7a-4776-a712-1ca0c877b83b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rajendra,&amp;nbsp;&lt;br /&gt;My bad, please look for&amp;nbsp;&lt;strong&gt;\zephyr\samples\boards\nrf\system_off&amp;nbsp;&lt;br /&gt;&lt;/strong&gt;It&amp;#39;s in Zephyr, not in nrf&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/396214?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 13:03:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c455787-b493-47af-b410-6ce154f8cf10</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Thank you for suggestion. I did not find &lt;span&gt;nrf\samples\boards\nrf\system_off.&amp;nbsp;I found&amp;nbsp;&lt;/span&gt;v2.1.2\nrf\samples\nfc\system_off. I will try this and share the results.&lt;/p&gt;
&lt;p&gt;Rajendra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/396187?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 12:00:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56923527-14ae-48b8-b7bb-fd2034ec5f4f</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Rajendra,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Before you test with any mesh sample, please follow my suggestion in my last reply:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- Test a very simple software on your board that put the device to&amp;nbsp; sleep mode and measure the current consumption.&amp;nbsp;In NCS SDK please try testing with the nrf\samples\boards\nrf\system_off sample. The current consumption should go down to ~1uA when&amp;nbsp;the log says &amp;quot;Entering system off; press BUTTON1 to restart&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;- If you still see high current consumption, please test the same software on a Nordic Dev Kit and measure the current consumption as the reference.&amp;nbsp;&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: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/396172?ContentTypeID=1</link><pubDate>Thu, 17 Nov 2022 10:43:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c61d208e-7cef-442f-82f1-c98718bdf150</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;We have migrated from nrf5_SDK_for_Mesh_v5.0.0 to nRF Connect SDK v2.1.2. We are referring to samples - &lt;br /&gt;nrf\samples\bluetooth\mesh\light_switch&lt;br /&gt;nrf\samples\bluetooth\mesh\light&lt;/p&gt;
&lt;p&gt;Using light_switch we are trying to produce DEEP SLEEP scenario. 225 uA is the lowest current value we are able to achieve. We tried following things.&lt;br /&gt;&lt;strong&gt;Trial 1&lt;/strong&gt;: Try to make Friendship between light_switch and light server using friendship configuration settings.&lt;br /&gt;&amp;nbsp; &amp;nbsp; In light_switch&lt;br /&gt; &lt;code&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_BT_MESH_LPN_ESTABLISHMENT=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_BT_MESH_LOW_POWER=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_BT_MESH_LPN_AUTO=y&lt;/code&gt;&lt;br /&gt; In light&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;No change&lt;br /&gt; Check the current on light_switch node. Average current observed = 6.4 mA (Too high)&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Trial 2&lt;/strong&gt;: Put light_switch in deep sleep using power configuration settings and power management calls. There is&amp;nbsp;NO Friendship&amp;nbsp;between light_switch and light.&lt;br /&gt;&amp;nbsp; &amp;nbsp; light_switch prj.conf&lt;br /&gt; &lt;code&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_UART_CONSOLE=n&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_GPIO=n&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_LOG=n&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_SERIAL=n&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_PM=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_PM_DEVICE=y&lt;/code&gt;&lt;br /&gt;&amp;nbsp; &amp;nbsp; light_switch main.c &lt;br /&gt; &lt;code&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;bt_mesh_prov_disable(BT_MESH_PROV_GATT | BT_MESH_PROV_ADV);&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;bt_mesh_suspend();&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;nrf_power_system_off(NRF_POWER);&lt;/code&gt;&lt;br /&gt; &lt;br /&gt; In light&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;No change&lt;br /&gt; Check the current on light_switch node. Average current observed = 225 uA (Still High)&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/Trial22.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt; &lt;strong&gt;Trial 3&lt;/strong&gt;: Combination of trial 1 and 2. (&lt;em&gt;We are not much confident about this trial)&lt;/em&gt;.&lt;br /&gt; Put light_switch in deep sleep using power settings and power management calls. &lt;br /&gt; Try to make Friendship between light_switch and light server using friendship configuration settings.&lt;br /&gt;&amp;nbsp; &amp;nbsp; light_switch prj.conf&lt;br /&gt; &lt;code&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_UART_CONSOLE=n&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_GPIO=n&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_LOG=n&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_SERIAL=n&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_PM=y&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;CONFIG_PM_DEVICE=y&lt;/code&gt;&lt;br /&gt; &lt;br /&gt;&amp;nbsp; &amp;nbsp; light_switch main.c &lt;br /&gt; &lt;code&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;bt_mesh_prov_disable(BT_MESH_PROV_GATT | BT_MESH_PROV_ADV);&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;bt_mesh_suspend();&lt;/code&gt;&lt;br /&gt;&lt;code&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;nrf_power_system_off(NRF_POWER);&lt;/code&gt;&lt;br /&gt; &lt;br /&gt; In light&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;No change&lt;br /&gt; Check the current on light_switch node. Average current observed =&amp;nbsp;&lt;span&gt;&amp;nbsp;225 u&lt;/span&gt;&lt;span&gt;A&lt;/span&gt;&lt;span&gt;&amp;nbsp;(High)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Trial 4&lt;/strong&gt;: We used blinky app to check and verify the current consumption. We used following calls in main.c.&lt;br /&gt;&amp;nbsp; &amp;nbsp; In main.c&lt;br /&gt; &lt;span&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/span&gt;&lt;code&gt;nrf_power_system_off(NRF_POWER);&lt;/code&gt;&lt;br /&gt; Using blinky and power management call &lt;span&gt;Average current observed = &lt;strong&gt;&lt;span style="color:#008000;"&gt;660nA&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&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/Trial4.png" /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;light_switch and&amp;nbsp;&lt;/span&gt;blinky use same hardware settings on our BT840F based custom hardware.&lt;/p&gt;
&lt;p&gt;So from above trials it seems that BLE Mesh Node current consumption always higher even in DEEP sleep and is 221 uA. We are expecting much lower value. Can you please verify above settings and let us now if we are missing anything?&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Rajendra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/392683?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 14:59:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd517335-82c2-48d5-89f9-d573c83353ba</guid><dc:creator>cgr</dc:creator><description>&lt;p&gt;Thank you for the information. I will discuss it with the Harman team next week.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/392549?ContentTypeID=1</link><pubDate>Wed, 26 Oct 2022 09:10:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e71a7b5-ea1b-4cff-96b4-9a835887d342</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Christoph,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for the late response. Håkon is travelling and I will take over the case.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;220uA when in sleep current is not normal.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;We will need to take a look to see if it&amp;#39;s the mesh stack causing the issue or it&amp;#39;s the hardware on your custom board making that issue.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to do the following:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Test the same software on a Nordic Dev Kit and measure the current consumption as the reference.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;- Test a very simple software on your board that put the device to&amp;nbsp; sleep mode and measure the current consumption. This is to rule out the issue with the mesh stack. You can try the rtc example in nRF5 SDK v17.1 . The current consumption should be around 3-4 uA.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The mesh lpn example when in sleep mode shouldn&amp;#39;t consume more current than what you see in the rtc example.&amp;nbsp;When in sleep mode it just puts the CPU and all peripherals to sleep and only keeps RTC running.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/391743?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2022 18:28:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b21992c9-d824-4abb-8271-9c53c0c77419</guid><dc:creator>cgr</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am working the team of Rajendra.&lt;br /&gt;The big question is if there is a chance with a leaf node to reach similar sleep currents then with thread. That means below 1 uA.&amp;nbsp; I mean to reach it with the NordIC SDK&amp;#39;s.&lt;/p&gt;
&lt;p&gt;As I understand are the leaf nodes in BLE mesh networks intended to run peripheral nodes on battery power. If we would like to run a node several years with the same battery, we need to reach that small sleep currents.&lt;/p&gt;
&lt;p&gt;regards&lt;/p&gt;
&lt;p&gt;Christoph Graf&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/391195?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 12:38:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ada41ee-dd90-4c2a-9412-d81c2bfeaeda</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The following is for the nRF Connect SDK. I am sorry for jumping in on the discussion before double checking SDK version, but will leave the answer standing in case it is still relevant for someone reading this in the future.&lt;/p&gt;
&lt;p&gt;For saving power outside of friendship, you can enable the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_MESH_LPN_ESTABLISHMENT"&gt;CONFIG_BT_MESH_LPN_ESTABLISHMENT&lt;/a&gt;. Normal nodes (and LPNs outside of friendship) will have RX enabled at all times, leading to high power consumption. With the above &amp;quot;LPN establishment&amp;quot; setting on, it will have around 10 % RX duty cycle instead.&lt;/p&gt;
&lt;p&gt;When powering the LPN, it will act as a normal node for an initial period of time, controlled by the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_BT_MESH_LPN_AUTO_TIMEOUT"&gt;CONFIG_BT_MESH_LPN_AUTO_TIMEOUT&lt;/a&gt; setting. Decreasing it will shorten the &amp;quot;active&amp;quot; period after boot, more quickly entering the the &amp;quot;LPN establishment&amp;quot; state of 10 % RX duty cycle.&lt;/p&gt;
&lt;p&gt;The serial drivers draw a lot of power. If you don&amp;#39;t need them, you can usually save a lot by disabling &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_SERIAL"&gt;CONFIG_SERIAL&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;With these settings, I have measurements of around 700 uA while not in friendship, and around 20 to 30 uA while in friendship.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/391159?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2022 10:44:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da84bd70-7b43-423e-8edc-d9329f9db2fd</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I am coming back to my original question on Mesh Leaf Node deep sleep current.&lt;/p&gt;
&lt;p&gt;Using BLE Mesh Friend Functionality I am able to achieve Leaf node running with average current consumption around 235 microA. Without Friend Functionality it consumes average current around 11.6 mA. So there is some improvement on current consumption but not enough if we want to operate the device on battery. Even if the device is being put into deep sleep mode, the current consumption remains around 220 microA. Is there any limitation of BLE Mesh stack preventing the device from Deep Sleep mode?&lt;/p&gt;
&lt;p&gt;What is the minimum possible achievable average current consumption with BLE Mesh Node? Are there any known examples/references I can refer to?&lt;/p&gt;
&lt;p&gt;Note: For measuring &amp;quot;average current&amp;quot;, the average current in 1 minute is considered.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;br /&gt;Rajendra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/390472?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 13:59:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90a3040e-1380-4965-ab0e-4f94f8400ff5</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Please&amp;nbsp;refer to this new case:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/92812/error-compiling-lpn-example-from-ble-mesh-v5-0-0"&gt;devzone.nordicsemi.com/.../error-compiling-lpn-example-from-ble-mesh-v5-0-0&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/390459?ContentTypeID=1</link><pubDate>Wed, 12 Oct 2022 13:13:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:24442395-ad85-437e-8ed1-777d677d7bb0</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hi again Rajendra,&lt;/p&gt;
&lt;p&gt;Could you open a new case for this, as it is a bit besides the main subject of the headline? I also want to note that you can go ahead with the nRF5 SDK as&amp;nbsp;as it seems you have done, though I did recommend continuing with the nRF Connect SDK instead.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Elfving&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/390263?ContentTypeID=1</link><pubDate>Tue, 11 Oct 2022 12:32:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99008583-213d-4df8-b680-42c8b634c519</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;I am tryting to compile lpn example from examples - nrf5_SDK_for_Mesh_v5.0.0\examples\lpn. It looks like the example needs some modification in order to compile. The example shows this error while compiling.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;code&gt;..\nrf5_sdk_17.0.2_d674dde\modules\nrfx\drivers\include\nrfx_power_clock.h:67:6: error: #error &amp;quot;This code is not supposed to be compiled when neither POWER nor CLOCK is enabled.&amp;quot;&lt;/code&gt;&lt;br /&gt;&lt;code&gt; 67 | #error &amp;quot;This code is not supposed to be compiled when neither POWER nor CLOCK is enabled.&amp;quot;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;code&gt;&lt;/code&gt;&lt;code&gt;POWER_ENABLED&amp;nbsp;&lt;/code&gt;and&amp;nbsp;&lt;code&gt;NRFX_POWER_ENABLED&lt;/code&gt; is already 1 in the example code.&amp;nbsp;So upon enabling macros &lt;code&gt;NRF_CLOCK_ENABLED&lt;/code&gt; and &lt;code&gt;NRFX_CLOCK_ENABLED&lt;/code&gt; or it shows further compilation errors. I was wondering if this is a right way to go about it.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;&lt;code&gt;nRF5_SDK_17.0.2_d674dde/external/segger_rtt/SEGGER_RTT_Conf.h:86:46: error: &amp;#39;SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS&amp;#39; undeclared here (not in a function); did you mean &amp;#39;SEGGER_RTT_MAX_NUM_DOWN_BUFFERS&amp;#39;?&lt;/code&gt;&lt;br /&gt;&lt;code&gt; 86 | #define SEGGER_RTT_MAX_NUM_DOWN_BUFFERS (SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS) // Max. number of down-buffers (H-&amp;gt;T) available on this target (Default: 3)&lt;/code&gt;&lt;br /&gt;&lt;code&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/code&gt;&lt;br /&gt;&lt;code&gt;../nRF5_SDK_17.0.2_d674dde/external/segger_rtt/SEGGER_RTT_Conf.h:86:46: note: in definition of macro &amp;#39;SEGGER_RTT_MAX_NUM_DOWN_BUFFERS&amp;#39;&lt;/code&gt;&lt;br /&gt;&lt;code&gt; 86 | #define SEGGER_RTT_MAX_NUM_DOWN_BUFFERS (SEGGER_RTT_CONFIG_MAX_NUM_DOWN_BUFFERS) // Max. number of down-buffers (H-&amp;gt;T) available on this target (Default: 3)&lt;/code&gt;&lt;br /&gt;&lt;code&gt; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ &lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Kindly let me know the changes/modification required to compile lpn example.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Rajendra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/386183?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2022 12:47:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:774de0a1-f1a5-46e8-a6d6-9fe2be6e2a85</guid><dc:creator>Rajendra</dc:creator><description>&lt;p&gt;Thank you Elfving for response! Will certainly&amp;nbsp;explore on&amp;nbsp;&lt;span&gt;Friend nodes.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Rajendra&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Put BLE Mesh node in deep sleep</title><link>https://devzone.nordicsemi.com/thread/386141?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2022 11:03:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e147f707-76c2-413d-94f4-f06ecede2643</guid><dc:creator>Elfving</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Rajendra,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Well first of all, if you are developing a new product for Mesh I would recommend you to use the nRF Connect SDK. That is the SDK that will be worked on going forward.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Secondly, even though Bluetooth &amp;#39;low energy&amp;#39; is being used, Bluetooth Mesh isn&amp;#39;t the most power efficient alternative. Continuous&amp;nbsp;relaying and radio use is the backbone of Mesh, so for Bluetooth Mesh to pay off, you&amp;#39;d normally want at least&amp;nbsp;one of the nodes being connected to the mains.&amp;nbsp;Thread nodes can be configured to be very power efficient however, so its hard to compare Bluetooth Mesh and Thread.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can however use what are called Low Power Nodes along with Friend nodes with Mesh, which&amp;nbsp;can be very power efficient. Is this what you are trying to do? If so, &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.meshsdk.v5.0.0%2Fmd_examples_lpn_README.html&amp;amp;cp=8_2_3_9"&gt;see here&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Elfving&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>