<?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 Low Power Modes - Entering and Measuring Current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52450/nrf9160-low-power-modes---entering-and-measuring-current</link><description>I want to double check current draw in the nRF9160 low power modes and need some help in making sure I know how to do so. 
 I plan to use an oscilloscope for measuring current at this time. I understand that measuring low currents might be difficult so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Sep 2019 09:04:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52450/nrf9160-low-power-modes---entering-and-measuring-current" /><item><title>RE: nRF9160 Low Power Modes - Entering and Measuring Current</title><link>https://devzone.nordicsemi.com/thread/211472?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 09:04:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d87bb56a-88fc-4cf0-bd3f-56798192ccfc</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Yes, that is true in the nRF5-series devices, if you look at the source code here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/soc/arm/nordic_nrf/nrf52/power.c#L1"&gt;https://github.com/NordicPlayground/fw-nrfconnect-zephyr/blob/master/soc/arm/nordic_nrf/nrf52/power.c#L1&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;However; there is no such file for the nRF9160 at this time, so that library will not work for nRF9160.&lt;/p&gt;
&lt;p&gt;k_cpu_idle() and k_sleep(..) are two implementations that runs in system on idle mode, if you want to power optimize.&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><item><title>RE: nRF9160 Low Power Modes - Entering and Measuring Current</title><link>https://devzone.nordicsemi.com/thread/211471?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 09:00:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2e253b-b2d8-490d-97b1-7987b5a937ba</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;There&amp;#39;s essentially two power states (excluding CPU running):&lt;/p&gt;
&lt;p&gt;* SystemOn mode (instructions WFE/WFI)&lt;/p&gt;
&lt;p&gt;* SystemOff mode (NRF_REGULATORS-&amp;gt;SYSTEMOFF)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The first one is dynamic, where as it can go to sleep with clocks and DMA running in the background.&lt;/p&gt;
&lt;p&gt;The second is combinatoric, no clocks are running and you have to wake up on pin change or reset.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Power modes in LTE is a completely different beast in this context.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]For getting into System ON Idle, I know that is entered when no application is running and when no modem transmissions are taking place.&amp;nbsp; Correct?&amp;nbsp; Is this the same mode that the 9160 would be in when in PSM sleep?&amp;nbsp;&amp;nbsp;From other DevZone articles I gather that I would need to first turn the modem off; is this best accomplished via an AT command, using the AT Command Interface library?&amp;nbsp; For putting into idle, is there&amp;nbsp;SDK support for that?&amp;nbsp; Sample code?[/quote]
&lt;p&gt;&amp;nbsp;The application runs asynchronous to the modem. This means that even if the application is in sleep (SystemOn Idle), the modem might be handling the LTE connection.&lt;/p&gt;
&lt;p&gt;To put the modem in eDRX or PSM, you can use certain configurations in your application to obtain this. Please see the configuration entries in the LTE Link controller (lte_lc) driver:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/drivers/lte_link_control/Kconfig#L54"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/drivers/lte_link_control/Kconfig#L54&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For PSM, you can then request it in your application like this:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_with_psm/src/main.c#L112"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_with_psm/src/main.c#L112&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Note that you&amp;#39;re the slave in this scenario, what you request might not be what the network gives you.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]For System OFF, is there SDK support to get into that mode and any sample code?[/quote]
&lt;p&gt;A colleague of mine made an example here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/sigurdnev/fw-nrfconnect-nrf/tree/master/samples/nrf9160/system_off_mode"&gt;https://github.com/sigurdnev/fw-nrfconnect-nrf/tree/master/samples/nrf9160/system_off_mode&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]I have read that there are times that going to System OFF to get lowest current draw may not make the most sense as the device has to re-register on the network (?) and that takes significant current.&amp;nbsp; In those cases PSM makes more sense.&amp;nbsp; How does one best go about doing the analysis to determine which is the best approach?[/quote]
&lt;p&gt;&amp;nbsp;Cycles of ATTACH and DETACH from the LTE network burns off a lot of current, and it of course depends on how often you need to send data. You can rather request PSM, with a high interval, then let the application send when it needs to. This would reduce the response time compared to doing a full&amp;nbsp;ATTACH.&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><item><title>RE: nRF9160 Low Power Modes - Entering and Measuring Current</title><link>https://devzone.nordicsemi.com/thread/211052?ContentTypeID=1</link><pubDate>Sun, 22 Sep 2019 00:24:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f969a79d-31ef-444f-a8a7-95cb0fc803cc</guid><dc:creator>ERIK</dc:creator><description>&lt;p&gt;Follow on question:&lt;/p&gt;
&lt;p&gt;In the Zephyr SDK documentation, power modes are discussed:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/power_management/index.html?highlight=idle#power-states"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/zephyr/reference/power_management/index.html?highlight=idle#power-states&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Does the System ON Idle power mode equate to the Zephyr Sleep State and the System OFF power mode equate to the Zephyr Deep Sleep State?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>