<?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>OneWire Library current consumtion</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115105/onewire-library-current-consumtion</link><description>Hi, 
 I&amp;#39;m using the 1-Wire library from Zephyr ( https://docs.zephyrproject.org/latest/hardware/peripherals/w1.html ) to access a DS18B20 temperature sensor. According to the description I have to use the UART interface to communicate with the sensor</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 30 Sep 2024 07:45:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115105/onewire-library-current-consumtion" /><item><title>RE: OneWire Library current consumtion</title><link>https://devzone.nordicsemi.com/thread/504288?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 07:45:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:50596706-b702-4d73-b40f-83b8aae0a923</guid><dc:creator>Phobios</dc:creator><description>&lt;p&gt;Hi Shusheel,&lt;/p&gt;
&lt;p&gt;thank you for that great hint. I have tried that and enabled both. That still alone wasn&amp;#39;t the solution, current was still high, but I&amp;#39;ve also suspended UART via pm_device_action_run() after the measurement. With that it works!&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static const struct device *dev_uart = DEVICE_DT_GET(DT_NODELABEL(uart0));
.........
pm_device_action_run(dev_uart, PM_DEVICE_ACTION_RESUME);
// read temperature of onewire sensor
pm_device_action_run(dev_uart, PM_DEVICE_ACTION_SUSPEND);&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: OneWire Library current consumtion</title><link>https://devzone.nordicsemi.com/thread/504278?ContentTypeID=1</link><pubDate>Mon, 30 Sep 2024 06:49:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b1ba2c92-2ce2-4ccd-bdaf-d505cced8185</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Have you enabled&amp;nbsp;&lt;span&gt;CONFIG_PM=y and&amp;nbsp;&lt;/span&gt;&lt;span&gt;CONFIG_PM_DEVICE=y in your prj.conf ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;UART driver and nrfx in that sdk version implements the power management API, so if your system is going to sleep and the power managment is enabled, then the UART power consumption should go down.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>