<?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>Lowering the power consumption of nRF9160 mqtt_example</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/49216/lowering-the-power-consumption-of-nrf9160-mqtt_example</link><description>Hi, 
 I&amp;#39;ve been trying to lower the power consumption of the MQTT example and followed the guide in here . 
 1. I compiled the low power UDP example and do exactly all the things provided here . However, the minimum current for me is 50uA at 5V supply</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Jul 2019 07:20:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/49216/lowering-the-power-consumption-of-nrf9160-mqtt_example" /><item><title>RE: Lowering the power consumption of nRF9160 mqtt_example</title><link>https://devzone.nordicsemi.com/thread/196996?ContentTypeID=1</link><pubDate>Mon, 08 Jul 2019 07:20:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e0f9378d-6ee0-4b32-ae23-ac9df306d7c7</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;The P28 connector will not power the logic on the DK, which is why the USB should be connected, as per the prerequisites listed here:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/hardware-design/posts/measuring-psm-idle-current-on-the-nrf91-dk"&gt;https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/hardware-design/posts/measuring-psm-idle-current-on-the-nrf91-dk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;if you add &amp;quot;while(1) k_cpu_idle();&amp;quot; at the very beginning of main(), what current consumption do you see then? This will effectively just put the CPU to sleep, without initializing the rest of the application.&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: Lowering the power consumption of nRF9160 mqtt_example</title><link>https://devzone.nordicsemi.com/thread/196913?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 20:22:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b5ef6502-62d7-45cb-9c5e-4515c031062e</guid><dc:creator>Mohammad Amin</dc:creator><description>&lt;p&gt;[quote userid="2115" url="~/f/nordic-q-a/49216/lowering-the-power-consumption-of-nrf9160-mqtt_example/196725"][/quote]&lt;/p&gt;
&lt;p&gt;Yes, this is correct. Sorry, should have seen this earlier. There&amp;#39;s logic on the board that might draw extra current, as voltages might be applied to the unpowered switches/mux&amp;#39;es.&lt;/p&gt;
&lt;p&gt;Have you tried plugging in the USB, while doing your current measurements, to see if this fixes the issue?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Do you mean that USB cable and external power of P28 both must be connected? Doesn&amp;#39;t it harm the board? Because now we will have two power supply connected.&lt;/p&gt;
&lt;p&gt;I have measured the current when only USB cable&amp;nbsp;was connected (P28 was unconnected) and did not see any improvement on the floor current.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lowering the power consumption of nRF9160 mqtt_example</title><link>https://devzone.nordicsemi.com/thread/196725?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 07:40:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:daf76774-1339-4f38-8aab-6ff133e20a14</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="unme11"]One thing that came to&amp;nbsp;my mind is that in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/43728/nrf9160-low-power-example/189878#189878"&gt;here&lt;/a&gt;&amp;nbsp;Gnotman stated that the USB cable must be connected otherwise the board draws additional current from P24. Is that right?&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Yes, this is correct. Sorry, should have seen this earlier. There&amp;#39;s logic on the board that might draw extra current, as voltages might be applied to the unpowered switches/mux&amp;#39;es.&lt;/p&gt;
&lt;p&gt;Have you tried plugging in the USB, while doing your current measurements, to see if this fixes the issue?&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: Lowering the power consumption of nRF9160 mqtt_example</title><link>https://devzone.nordicsemi.com/thread/196656?ContentTypeID=1</link><pubDate>Thu, 04 Jul 2019 17:11:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4acb068b-07a3-4bab-bba6-ef7b5ee27160</guid><dc:creator>Mohammad Amin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/49216/lowering-the-power-consumption-of-nrf9160-mqtt_example/196252"]Which modem firmware are you running? If running v0.7.0-29, this should cut off the power to the SIM during PSM.[/quote]
&lt;p&gt;I use v0.7.0-29 modem firmware.&amp;nbsp;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/49216/lowering-the-power-consumption-of-nrf9160-mqtt_example/196252"]This will enable additional output from cereg, and the last two strings (in binary) should give you your PSM settings (if accepted by the network).[/quote]
&lt;p&gt;I issued the two AT commands that you mentioned.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;When I issue &amp;quot;AT+CEREG=5&amp;quot; I get &amp;quot;error&amp;quot; as the result. I even changed the notification level in the&amp;nbsp;subscribe command at &amp;quot;lte_lc.c&amp;quot; module to 5 but still the notification level is 0.&lt;/p&gt;
&lt;p&gt;When I issue &amp;quot;AT+CEREG?&amp;quot; I get, &amp;quot;+CEREG: 0,1,&amp;quot;7F58&amp;quot;,&amp;quot;0642AE0A&amp;quot;,7 OK&amp;quot;&lt;/p&gt;
&lt;p&gt;Looking at the status I think PSM is set in the device as I get proper TAU and AT. However, still, the floor current is 40uA. Is PSM set correctly based on the status I get? Although TAU to me is meaningless and a very large number(more than 8 bits!).&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/49216/lowering-the-power-consumption-of-nrf9160-mqtt_example/196252"]To connect to the LTE network before you enter main, you need this config entry set to =y in your prj.conf:[/quote]
&lt;p&gt;Thanks. That works.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;One thing that came to&amp;nbsp;my mind is that in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/43728/nrf9160-low-power-example/189878#189878"&gt;here&lt;/a&gt;&amp;nbsp;Gnotman stated that the USB cable must be connected otherwise the board draws additional current from P24. Is that right?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lowering the power consumption of nRF9160 mqtt_example</title><link>https://devzone.nordicsemi.com/thread/196252?ContentTypeID=1</link><pubDate>Wed, 03 Jul 2019 12:15:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b228b8b-c644-4154-b48c-3592c0c60ac4</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;Which modem firmware are you running? If running v0.7.0-29, this should cut off the power to the SIM during PSM.&lt;/p&gt;
&lt;p&gt;If you do not go into PSM mode (network driven, nRF only requests it), the clock stop on the SIM card may add such additional current consumption.&lt;/p&gt;
&lt;p&gt;You can check PSM status by issuing AT commands:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CEREG=5
AT+CEREG?&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;This will enable additional output from cereg, and the last two strings (in binary) should give you your PSM settings (if accepted by the network).&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="unme11"]2. Can you please help me with those certain functions? I want to activate the LTE before my main function too. Which modifications should I do? I looked at the In the proj.conf of the PSM&amp;nbsp;code, and there are two following options[/quote]
&lt;p&gt;Legacy PCO is expanded in the help for the kconfig entry:&amp;nbsp;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/drivers/lte_link_control/Kconfig#L73"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/drivers/lte_link_control/Kconfig#L73&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is a LTE specific feature, which were used for some base stations.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To connect to the LTE network before you enter main, you need this config entry set to =y in your prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/drivers/lte_link_control/Kconfig#L14"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/drivers/lte_link_control/Kconfig#L14&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><item><title>RE: Lowering the power consumption of nRF9160 mqtt_example</title><link>https://devzone.nordicsemi.com/thread/196065?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 18:03:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4623341e-6072-470e-93d6-2be6b46f8abd</guid><dc:creator>Mohammad Amin</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for the response.&amp;nbsp;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/49216/lowering-the-power-consumption-of-nrf9160-mqtt_example/196032"]First, you need to disable the serial output by setting CONFIG_SERIAL=n in both the spm/prj.conf and mqtt_simple/prj.conf.[/quote]
&lt;p&gt;1. I actually did disable serial by setting&amp;nbsp;&lt;span&gt;CONFIG_SERIAL=n&amp;nbsp;in both&amp;nbsp;spm/prj.conf and mqtt_simple/prj.conf. When I do not disable the serial in both of them I will get the idle current of 600uA. The thing is when I disable both of them I still get 50uA as the idle current which is&amp;nbsp;higher than the 7uA that is reported. At first, I thought maybe because I did something wrong with the MQTT example. However,&amp;nbsp;when I&amp;nbsp;exactly compiled the &lt;a href="https://devzone.nordicsemi.com/nordic/cellular-iot-guides/b/hardware-design/posts/measuring-psm-idle-current-on-the-nrf91-dk?utm_campaign=SoMe+promotion&amp;amp;utm_source=facebook&amp;amp;utm_medium=social&amp;amp;utm_content=DevZone%3A+Measuring+PSM+idle+current+on+the+nRF91+DK"&gt;PSM&lt;/a&gt; example and uploaded it to the chip again I got 50uA as the idle current.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
[quote userid="2115" url="~/f/nordic-q-a/49216/lowering-the-power-consumption-of-nrf9160-mqtt_example/196032"]The start up procedure runs certain functions and drivers prior to the application reaching the main() function, one of these can be initializing a LTE connection to the network, but you can also set this config in your prj.conf to call it in your application instead (via modem_configure()):[/quote]
&lt;p&gt;2. Can you please help me with those certain functions? I want to activate the LTE before my main function too. Which modifications should I do? I looked at the In the proj.conf of the PSM&amp;nbsp;code, and there are two following options&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LTE_LINK_CONTROL=y
CONFIG_LTE_LEGACY_PCO_MODE=y&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;However, when I add them into my MQTT proj.conf I still do not get connected to LTE prior to the main function.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;3. One last question, what does &amp;quot;CONFIG_LTE_LEGACY_PCO_MODE=y&amp;quot; do?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Lowering the power consumption of nRF9160 mqtt_example</title><link>https://devzone.nordicsemi.com/thread/196032?ContentTypeID=1</link><pubDate>Tue, 02 Jul 2019 14:09:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7150d24e-b2eb-4f8e-bedb-bf087491b00c</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 need to disable the serial output by setting CONFIG_SERIAL=n in both the spm/prj.conf and mqtt_simple/prj.conf.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]The thing that is strange to me is that in the MQTT example there is a &amp;quot;modem_configure&amp;quot; function that calls the &amp;quot;lte_lc_init_and_connect&amp;quot; function for establishing the LTE connection. However, in the UDP example, this function is not used and only &amp;quot;lte_lc_psm_req&amp;quot; is used. However, if I delete the&amp;nbsp;&lt;span&gt;&amp;quot;&lt;/span&gt;&lt;span&gt;lte_lc_init_and_connect&amp;quot; function from MQTT example, it cannot get connected to the server because there is not an LTE connection. Can anyone clear this up for me?&lt;/span&gt;[/quote]
&lt;p&gt;The start up procedure runs certain functions and drivers prior to the application reaching the main() function, one of these can be initializing a LTE connection to the network, but you can also set this config in your prj.conf to call it in your application instead (via modem_configure()):&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/applications/asset_tracker/prj.conf#L20"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/applications/asset_tracker/prj.conf#L20&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>