<?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>case about nRF9160 UART off on application</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/83861/case-about-nrf9160-uart-off-on-application</link><description>Hi, 
 Why I use the function m_device_state_set(cons, PM_DEVICE_STATE_SUSPENDED); to close the serial port is still a large current:38.80uA? 
 The verification method is as follows: 
 sdk :ncs v1.8.0 
 dk:PCA10090 0.9.0 
 example path:D:\ncs\v1.8.0\peter</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 10 Feb 2022 09:17:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/83861/case-about-nrf9160-uart-off-on-application" /><item><title>RE: case about nRF9160 UART off on application</title><link>https://devzone.nordicsemi.com/thread/352252?ContentTypeID=1</link><pubDate>Thu, 10 Feb 2022 09:17:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76e1c0b7-b785-478f-820f-916acce8a58f</guid><dc:creator>peter.min</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi Stian R&amp;oslash;ed Hafskjold,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Tests are available.&lt;br /&gt;Thank you very much.&lt;br /&gt;Kind regards,&lt;br /&gt;Peter.Min&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: case about nRF9160 UART off on application</title><link>https://devzone.nordicsemi.com/thread/349732?ContentTypeID=1</link><pubDate>Wed, 26 Jan 2022 11:49:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:48e25f9c-c3fb-496f-860d-74fd3f15a35a</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, I tried running your code here, and I got the same results as you did. The problem is this line: &lt;/p&gt;
&lt;pre&gt;ret = gpio_pin_interrupt_configure_dt(&amp;amp;button, GPIO_INT_EDGE_TO_ACTIVE)&lt;/pre&gt;
&lt;p&gt;&lt;code&gt;GPIO_INT_EDGE_TO_ACTIVE&lt;/code&gt; will enable the GPIOTE IN event by default, which will lead to about 20-40 uA of additional current.&lt;/p&gt;
&lt;p&gt;The solution is to use the GPIO SENSE mechanism instead. You can do this by adding the following to the prj.conf file:&lt;/p&gt;
&lt;pre&gt;CONFIG_GPIO_NRF_INT_EDGE_USING_SENSE=y&lt;/pre&gt;
&lt;p&gt;Now the current should drop to normal idle current.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Stian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>