<?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>nRF9160 in low power</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87455/nrf9160-in-low-power</link><description>Hi, 
 I&amp;#39;m using the mqtt_simple example to develop a new application. 
 I want you to tell me what lines of code I need to add for the nRF9160 to work in the minimum power consumption mode. 
 Thank You! 
 Neculai</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 02 May 2022 12:19:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87455/nrf9160-in-low-power" /><item><title>RE: nRF9160 in low power</title><link>https://devzone.nordicsemi.com/thread/365761?ContentTypeID=1</link><pubDate>Mon, 02 May 2022 12:19:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f849b01e-2525-4233-8a96-9425dee158ab</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;
&lt;p&gt;First, you want to disable the serial interface, as this adds approx. 600 uA to the sleep current.&lt;/p&gt;
&lt;p&gt;This is done by creating the folder &amp;quot;child_image&amp;quot; and file spm.conf within this folder.&lt;/p&gt;
&lt;p&gt;That child_image\spm.conf shall hold:&lt;/p&gt;
&lt;p&gt;CONFIG_SERIAL=n&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The same configuration should also be added to the prj.conf:&lt;/p&gt;
&lt;p&gt;CONFIG_SERIAL=n&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For entering eDRX or PSM, you will need to change one of these to &amp;quot;true&amp;quot;:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/samples/nrf9160/mqtt_simple/src/main.c#L535-L536"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v1.9.1/samples/nrf9160/mqtt_simple/src/main.c#L535-L536&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And setup your wanted edrx or PSM intervals.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s a current example of a initial connection and the nRF eventually entering PSM:&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1651493947327v1.png" alt=" " /&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>