<?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 sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/92132/nrf9160-in-sleep-mode-over-1-ma-current-consumption</link><description>Hello Nordic, 
 we want to use the nrf9160 to measure some stuff and send data to a server while being battery powered. Therefore we need the lowest power consumption possible. 
 To get straight into the problem:I flashed it (via Bootloader) with a bare</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 07 Nov 2022 14:47:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/92132/nrf9160-in-sleep-mode-over-1-ma-current-consumption" /><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/394472?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 14:47:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78ad5ce8-aaa9-41d1-9566-71df9f55014b</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Great to hear that you have solved the problem and thanks to share the workaround with the communities.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/394434?ContentTypeID=1</link><pubDate>Mon, 07 Nov 2022 13:22:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bd641b6-57f2-4219-b53d-13baa43dc06f</guid><dc:creator>MoritzR</dc:creator><description>&lt;p&gt;Ok, for those who are interested in this issue: I found a workaround: I am just setting the line &amp;quot;&lt;span style="color:#9cdcfe;"&gt;CONFIG_SERIAL&lt;/span&gt;&lt;span style="color:#d4d4d4;"&gt;=y&lt;/span&gt;&amp;quot; to &amp;quot;n&amp;quot; in build/spm/zephyr/.config and click on build. That works and reduces the power consumption.&lt;/p&gt;
&lt;p&gt;Another thing I found why I was getting high current draw with the old version (B1) is, because one analog input pin was broken (no analog reading possible). I guess that was one of the main problems.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/389223?ContentTypeID=1</link><pubDate>Tue, 04 Oct 2022 13:29:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fe9bff9-0718-4b37-aa3a-8a8e390aa77c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello Moritz,&lt;/p&gt;
&lt;p&gt;It shows warning; so there should not be problem in building. Can you please send us the entire build log and also if possible the project file so we can look at and reproduce the issue from our side as well?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/388285?ContentTypeID=1</link><pubDate>Wed, 28 Sep 2022 08:54:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:28b93969-eb2d-4c3f-8edf-75a3916d39cc</guid><dc:creator>MoritzR</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I received a board with version B2 on it. I updated the modem firmware via the &amp;quot;fmfu_smp_svr&amp;quot; example to v1.3.2, additonally I updated the nrf sdk to v2.0.2.&lt;/p&gt;
&lt;p&gt;When in idle mode, with or without lte_lc_power_off(), it draws around 700 uA, which is much better, but still high. &lt;/p&gt;
&lt;p&gt;I set CONFIG_SERIAL=n in proj.conf to disable the UART Module. Current is still at 700 uA and serial terminal only shows spm startup, which tells me some part of Serial is already disabled, but not everything.&lt;/p&gt;
&lt;p&gt;I found that in \build\spm\zephyr\.config CONFIG_SERIAL is still set to &amp;quot;y&amp;quot; (I guess thats why it prints spm startup). In &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/76362/nrf9160-idle-current-consumption-500-a"&gt;this thread&lt;/a&gt; they try to disable it. According to it, I added a file under \child_image\spm\proj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_IS_SPM=y
CONFIG_FW_INFO=y
CONFIG_GPIO=y
CONFIG_SERIAL=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But it wont build and give the following error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;warning: UART_CONSOLE (defined at drivers/console/Kconfig:43) was assigned the value &amp;#39;y&amp;#39; but got the
value &amp;#39;n&amp;#39;. Check these unsatisfied dependencies: CONSOLE (=n). See
http://docs.zephyrproject.org/latest/kconfig.html#CONFIG_UART_CONSOLE and/or look up UART_CONSOLE in
the menuconfig/guiconfig interface.&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Can you help me how to disable the serial module properly? What is missing?&lt;/p&gt;
&lt;p&gt;Thank you very much!&lt;/p&gt;
&lt;p&gt;Moritz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/387687?ContentTypeID=1</link><pubDate>Fri, 23 Sep 2022 12:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8fe4ce7-4215-450b-9980-358422695301</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;You can check the compatibility matrix here (&lt;a href="https://infocenter.nordicsemi.com/topic/comp_matrix_nrf9160/COMP/nrf9160/nrf9160_modem_fw.html?cp=2_0_3_5"&gt;https://infocenter.nordicsemi.com/topic/comp_matrix_nrf9160/COMP/nrf9160/nrf9160_modem_fw.html?cp=2_0_3_5&lt;/a&gt;&amp;nbsp;). Any MFW&lt;span&gt;&amp;nbsp;v1.2.x (or older) must be used with B0 devices.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can find this from changelog also from download page (&lt;a href="https://www.nordicsemi.com/Products/nRF9160/Download#infotabs"&gt;Compatible Downloads - nordicsemi.com&lt;/a&gt;) for each version of modem FW. For example: MFW 1.3.2 can be used for nRF9160 revision 1, but only for testing and development.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663934615816v1.png" alt=" " /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thanks.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/387494?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 12:18:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7560f38d-92cf-453b-b56e-652238d22c5a</guid><dc:creator>MoritzR</dc:creator><description>&lt;p&gt;That is a good hint! Thanks for spotting it. I indeed have a B0 version, the new version will arrive soon.&lt;/p&gt;
&lt;p&gt;Nevertheless, I think the current is too high, even for the first version and also we dont want to throw the old version.&lt;/p&gt;
&lt;p&gt;Which FW and SDK do you recommend for B0?&lt;/p&gt;
&lt;p&gt;And how can I control the modem in version B0?&lt;/p&gt;
&lt;p&gt;I will focus on measuring current through VBAT now.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Moritz&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/387479?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 11:33:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:563c12dc-f54b-4ee9-b322-21b583e9edca</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The nRf9160 mounted on the board is seen in this picture is revision B0. This is old and will not work with the newer modem FW and SDK. There is difference how the modem is turned on and off between the B0 and the newest B1 version. &lt;strong&gt;You can get a newer version if your board has the B0 one.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;Looking at the datasheet I think you can try to use VBAT as measurement place not USB.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663845782568v3.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1663845171822v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You can see USB is connected to FTDI chip, so its better not to power up that.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/387410?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 07:59:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47e519f3-f84d-4fc3-8c1d-18923953c91f</guid><dc:creator>MoritzR</dc:creator><description>&lt;p&gt;It is super basic. I attached pictures of two configurations I tried. The battery configuration seems to be the most efficient. When powering through the 5V port is seems to have a much higher Regulators_systemoff current, thats why I always took the battery configuration.&lt;/p&gt;
&lt;p&gt;I am using a standard multimeter (Voltcraft VC185), it can measure down to 0,1 uA.&lt;/p&gt;
&lt;p&gt;The fact that I can bring down the current to 33uA in battery configuration via software tells me, that there might be still a problem in software. But I am open for all ideas :)&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/current_5F00_bat.png" /&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/current_5F00_usb.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/387403?ContentTypeID=1</link><pubDate>Thu, 22 Sep 2022 07:14:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dcf3b2fb-abac-45f7-ad2b-680dab202716</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I am thinking to look at your setup. You can send a picture of the measurement setup. I also would like to know how the setup is connected and what you are using to measure the current.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Kazi Afroza Sultana&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/387248?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 10:01:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:702da346-482f-4ea1-92c4-932833506713</guid><dc:creator>MoritzR</dc:creator><description>&lt;p&gt;ok, I got it compiling now with the suggested lte_lc_power_off(). I had to change my proj.conf to the follwoing:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#Boot
CONFIG_BOOTLOADER_MCUBOOT=y

#Serial
CONFIG_SERIAL=n

# NEWLIB C
CONFIG_NEWLIB_LIBC=y

# Zephyr Device Power Management
CONFIG_DEVICE_POWER_MANAGEMENT=y
CONFIG_PM=y

# Modem 
CONFIG_NRF_MODEM_LIB=y
CONFIG_NET_SOCKETS=y

# Network
CONFIG_NETWORKING=y
CONFIG_NET_NATIVE=n
CONFIG_BOARD_SELECT_SIM_EXTERNAL=y


# LTE link control
CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_NETWORK_MODE_LTE_M=y
CONFIG_LTE_AUTO_INIT_AND_CONNECT=n&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But the current draw is still the same: 1.27 mA&lt;/p&gt;
&lt;p&gt;Do you have any more ideas?&lt;/p&gt;
&lt;p&gt;Thank you very much :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 in sleep mode over 1 mA current consumption</title><link>https://devzone.nordicsemi.com/thread/387208?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 07:12:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bdda90cd-d392-43c6-8390-61589a2e480c</guid><dc:creator>Kazi Afroza Sultana</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Can you try to call this function lte_lc_power_off&amp;nbsp;() from main function for turning off the modem? It could be the modem which draws current.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;This&amp;nbsp; shuts down the modem and puts the chip to system OFF mode (&lt;a href="https://devzone.nordicsemi.com/guides/cellular-iot-guides/b/hardware-design/posts/getting-started-with-current-measurements-on-the-nrf9160"&gt;(+) Getting started with current measurements on the nRF9160 - Hardware design, RF test and coverage - Cellular IoT guides - Nordic DevZone (nordicsemi.com)&lt;/a&gt;). You can add this in your main function and measure the current again.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#include &amp;lt;modem/lte_lc.h&amp;gt;&lt;br /&gt;void main(void)&lt;br /&gt;{&lt;br /&gt; lte_lc_power_off();&lt;br /&gt; k_sleep(K_MSEC(1000));&lt;br /&gt; NRF_REGULATORS-&amp;gt;SYSTEMOFF = 1;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best Regards, &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kazi Afroza Sultana&lt;/span&gt;&lt;/p&gt;
&lt;pre&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>