<?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>How to completely turn off the radio (power consumption test)</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/123153/how-to-completely-turn-off-the-radio-power-consumption-test</link><description>SDK: nRF Connect SDK v2.9.0 
 Chipset: nRF52840 
 
 I&amp;#39;m using ncsv2.9.0nrfsamplesperipheralradio_test to test the RF. 
 The initialization code is as follows: 
 
 At this time, the measured current is approximately 15.35mA. 
 
 Cancel code: 
 
 After</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Sep 2025 06:42:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/123153/how-to-completely-turn-off-the-radio-power-consumption-test" /><item><title>RE: How to completely turn off the radio (power consumption test)</title><link>https://devzone.nordicsemi.com/thread/548553?ContentTypeID=1</link><pubDate>Fri, 12 Sep 2025 06:42:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03ef8add-0434-44a6-91fa-29150e6fd6a3</guid><dc:creator>Leo Mo</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thank you very much! I fixed it.&lt;/p&gt;
&lt;p&gt;Code:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static struct onoff_manager *get_mgr(void)
{
	return z_nrf_clock_control_get_onoff(CLOCK_CONTROL_NRF_SUBSYS_HF);
}

static bool clock_is_off(void)
{
	const struct device *const clk = DEVICE_DT_GET_ONE(nordic_nrf_clock);

	if (!device_is_ready(clk)) {
		
		LOG_ERR(&amp;quot;Device is not ready&amp;quot;);	
	}

	return clock_control_get_status(clk, CLOCK_CONTROL_NRF_SUBSYS_HF) ==
			CLOCK_CONTROL_STATUS_OFF;
}

static void clock_off(void)
{
	struct onoff_manager *mgr = get_mgr();

	do {
		(void)onoff_release(mgr);

	} while (!clock_is_off());
}

static void clock_set(bool on_off)
{
	struct onoff_client cli;
	struct onoff_manager *mgr = get_mgr();
	int err = 0;

	if (on_off) {

		sys_notify_init_spinwait(&amp;amp;cli.notify);
		err = onoff_request(mgr, &amp;amp;cli);
		
		if (err &amp;gt;= 0) {

			while (sys_notify_fetch_result(&amp;amp;cli.notify, &amp;amp;err) &amp;lt; 0) {
				/* empty */
			}
		} 
	} else {

		clock_off();
	}
	
	LOG_INF(&amp;quot;Clock set %s, err %d&amp;quot;, on_off?&amp;quot;on&amp;quot;:&amp;quot;off&amp;quot;, err);
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to completely turn off the radio (power consumption test)</title><link>https://devzone.nordicsemi.com/thread/545179?ContentTypeID=1</link><pubDate>Mon, 11 Aug 2025 11:11:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:31a75549-17a6-4371-bd39-bb5eb3d799d0</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The current consumption is pretty inline with hfclk is running, can you look at trying to stop the hfclk if you haven&amp;#39;t already?&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to completely turn off the radio (power consumption test)</title><link>https://devzone.nordicsemi.com/thread/543438?ContentTypeID=1</link><pubDate>Thu, 24 Jul 2025 08:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f6f2ce2-0a84-4f99-a1a7-89ea306b5c05</guid><dc:creator>Leo Mo</dc:creator><description>&lt;p&gt;&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/runsiv"&gt;runsiv&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Hi runsiv&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I have fully ported the radio_test code now, but even after turning off the radio, there is still a current of 480+uA.&lt;/p&gt;
&lt;p&gt;&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/_AE5FE14FFE5647725F00_20250724162942.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to completely turn off the radio (power consumption test)</title><link>https://devzone.nordicsemi.com/thread/543292?ContentTypeID=1</link><pubDate>Wed, 23 Jul 2025 07:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d7235283-0307-4d89-b39d-67be9bb13550</guid><dc:creator>Leo Mo</dc:creator><description>&lt;p&gt;In my application, there is no CLI.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to completely turn off the radio (power consumption test)</title><link>https://devzone.nordicsemi.com/thread/543181?ContentTypeID=1</link><pubDate>Tue, 22 Jul 2025 12:34:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35ad5948-fce7-4e02-ba69-d8f174157657</guid><dc:creator>runsiv</dc:creator><description>&lt;p&gt;Hi Leo&lt;/p&gt;
&lt;p&gt;I will look into your case. Just from the looks of it, it seems like you have modified the sample. Is this correct? Normally you would configure the application over CLI, are you doing it?&lt;br /&gt;Regards&lt;/p&gt;
&lt;p&gt;Runar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>