<?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>Power Consumption AWS IOT sample nrf9160DK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86149/power-consumption-aws-iot-sample-nrf9160dk</link><description>Hi everyone, 
 i&amp;#39;m writing to ask some advice for my NBIOT AWS application with the nRF9160 DK. 
 
 I&amp;#39;m currently using the aws_iot sample available as a baseline for my project, but i noticed that power consumption are really high using the sample application</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Mar 2022 12:16:10 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86149/power-consumption-aws-iot-sample-nrf9160dk" /><item><title>RE: Power Consumption AWS IOT sample nrf9160DK</title><link>https://devzone.nordicsemi.com/thread/359790?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 12:16:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd753ffa-3401-4d5b-9090-b0a8650018bd</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]&amp;nbsp;I&amp;#39;m currently using the aws_iot sample available as a baseline for my project, but i noticed that power consumption are really high using the sample application as it is, also enabling&amp;nbsp;&lt;span&gt;CONFIG_PM&lt;/span&gt;&lt;span&gt;=y in prj.conf. Since UART in this example is largely used for debug purposes, is it better to start from a clean AT client sample application to achieve the best possible power performance adding one by one all that i need? Do i have take care of something else?&lt;/span&gt;[/quote]
&lt;p&gt;If UART is only used for debugging purposes, you can disable serial and redo your current consumption testing.&lt;/p&gt;
&lt;p&gt;You want to disable it in all child-images as well as your application.&lt;/p&gt;
&lt;p&gt;Create the folder and file my-application/child_image/spm.conf&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Try placing &amp;quot;CONFIG_SERIAL=n&amp;quot; in prj.conf and in the above spm.conf.&lt;/p&gt;
&lt;p&gt;If you also use MCUBoot, you should create the file child_image/mcuboot.conf with &amp;quot;CONFIG_SERIAL=n&amp;quot; as well.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]The result is that i&amp;#39;m not able to build the application because &lt;span style="font-family:inherit;font-size:inherit;"&gt;&amp;quot;pm_device_state_set&lt;/span&gt;&lt;span style="font-size:inherit;"&gt; is __deprecated&amp;quot; . Is there any guide to follow that could help me?&lt;/span&gt;[/quote]
&lt;p&gt;The power management API was reworked from zephyr v2.7. You should use the API as indicated in the documentation:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/reference/pm/index.html#c.pm_device_state_set"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/reference/pm/index.html#c.pm_device_state_set&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Ie. this function:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/reference/pm/index.html#group__subsys__pm__device_1ga3840d6e7832a00b93763247a5951bfde"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/zephyr/reference/pm/index.html#group__subsys__pm__device_1ga3840d6e7832a00b93763247a5951bfde&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>