<?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 AT+CFUN=0 draws excessive current</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47207/nrf9160-at-cfun-0-draws-excessive-current</link><description>Hi, 
 
 This is a situation after registration. See the following link for detailed information of the setup: 
 https://devzone.nordicsemi.com/f/nordic-q-a/45544/nrf9160-dk-psm-current-too-high-after-opening-and-closing-a-tcp-socket 
 I have registered</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 May 2019 08:53:15 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47207/nrf9160-at-cfun-0-draws-excessive-current" /><item><title>RE: nRF9160 AT+CFUN=0 draws excessive current</title><link>https://devzone.nordicsemi.com/thread/186874?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 08:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a12ce56-c914-4d4c-b48a-a525b3a44cbc</guid><dc:creator>Houwer de Geus</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;Thanks for pointing me in the right direction. I will follow the instructions,&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Houwer de Geus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 AT+CFUN=0 draws excessive current</title><link>https://devzone.nordicsemi.com/thread/186872?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 08:50:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b0d93de-0a3a-41f9-be9f-b1900fda4f13</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Houwer,&lt;br /&gt;&lt;br /&gt;Great to hear that the new modem firmware fixed the issue.&lt;/p&gt;
&lt;p&gt;You probably have not installed the &amp;quot;west&amp;quot; tool. (&lt;em&gt;you can follow&lt;a href="http://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/gs_ins_windows.html" rel="noopener noreferrer" target="_blank"&gt; this guide&lt;/a&gt;&amp;nbsp;or the following:)&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;For all the steps&lt;/strong&gt; for installing the toolchain is listed in the updated &amp;quot;Getting Started Assistant&amp;quot; application in the nRF Connect for Desktop.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 AT+CFUN=0 draws excessive current</title><link>https://devzone.nordicsemi.com/thread/186858?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 08:11:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe3a76fc-849f-4039-9e99-415ffc2daa8c</guid><dc:creator>Houwer de Geus</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;The &lt;span&gt;mfw_nrf9160_0.7.0-29.alpha version solves the problem. Thanks a lot!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I did try to get the v0.4.0 NCS release. I could perform all commands you mentioned, except for the last one. The west update could not be performed. I suppose I missed earlier steps to install this. Maybe you could point me in the right direction. Otherwise I will study the documentation myself.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Anyhow I thank you for the quick responses on this issue.&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;Houwer de Geus&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 AT+CFUN=0 draws excessive current</title><link>https://devzone.nordicsemi.com/thread/186846?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 07:42:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d83d9256-357b-416b-927c-554cb742e384</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Houwer,&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Thank you so much for the additional information.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;The modem firmware version you are using is from December 2018.&lt;/p&gt;
&lt;p&gt;I highly recomend to download and flash the new modem firmware version:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs"&gt;https://www.nordicsemi.com/Products/Low-power-cellular-IoT/nRF9160/Download#infotabs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This may actually affect the consumption you are seeing.&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;Please note that the NCS (nRF Connect SDK) just had it&amp;#39;s &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/0.4.0/nrf/doc/release-notes-0.4.0.html" rel="noopener noreferrer" target="_blank"&gt;v0.4.0 release&amp;nbsp;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you want the latest and greatest NCS, please use the v0.4.0 tag.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;cd ncs/nrf
git checkout master
git pull
git checkout v0.4.0
west update&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 AT+CFUN=0 draws excessive current</title><link>https://devzone.nordicsemi.com/thread/186845?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 07:31:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f03504af-7ebf-4ea2-9ed7-999a6dcb3e18</guid><dc:creator>Houwer de Geus</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;We are using an internal development tool in combination with the libraries as provided by Nordic Semiconductor.&lt;/p&gt;
&lt;p&gt;We are using bsd lib: v0.2.1.&lt;/p&gt;
&lt;p&gt;The modem firmware version is:&amp;nbsp;&lt;span&gt;mfw-m1_nrf9160_0.6.8-30.alpha&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;The application is simple and performs the following actions:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;AT+CPSMS=1,,,&amp;quot;00111000&amp;quot;,&amp;quot;00011110&amp;quot;&lt;/li&gt;
&lt;li&gt;AT+CFUN=1&lt;/li&gt;
&lt;li&gt;Wait for registration using the iBasis SIM. It indicates roaming&lt;/li&gt;
&lt;li&gt;Open TCP socket: socket_fd&amp;nbsp;=&amp;nbsp;&lt;span&gt;nrf_socket&lt;/span&gt;(&lt;span&gt;NRF_AF_INET&lt;/span&gt;,&amp;nbsp;&lt;span&gt;NRF_SOCK_STREAM&lt;/span&gt;,&amp;nbsp;&lt;span&gt;NRF_IPPROTO_TCP&lt;/span&gt;);&lt;/li&gt;
&lt;li&gt;use nrf_getaddrinfo() to retrieve the IP adress.&lt;/li&gt;
&lt;li&gt;
&lt;div class="content-scrollable-wrapper content-scrollable-wrapper-scrolled"&gt;
&lt;pre&gt;&lt;span&gt;Perform TCP connect: nrf_connect&lt;/span&gt;(socket_fd,&amp;nbsp;&amp;amp;ipv4Address,&amp;nbsp;&lt;span&gt;sizeof&lt;/span&gt;(&lt;span&gt;nrf_sockaddr_in_t&lt;/span&gt;))
&lt;/pre&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;li&gt;Close the Socket: ret&amp;nbsp;=&amp;nbsp;&lt;span&gt;nrf_close&lt;/span&gt;(pContext-&amp;gt;socket_fd);&lt;/li&gt;
&lt;li&gt;AT+CFUN=0&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I just tested by manual entering AT commands in a test application. You can reproduce this by only doing the next things:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;AT+CFUN=1&lt;/li&gt;
&lt;li&gt;Wait for registration (OK response, just waited a number of seconds)&lt;/li&gt;
&lt;li&gt;AT+CFUN=0&lt;/li&gt;
&lt;li&gt;Ok received&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;The measured current consumption is about 9.7 mA after AT+CFUN=0.&lt;/p&gt;
&lt;p&gt;When using AT+CFUN=4 instead of AT+CFUN=0, the current is about 10mA.&lt;/p&gt;
&lt;p&gt;When using AT+CFUN=44 instead of AT+CFUN=0, the current is about 0.65mA which is the same current after reset. This is caused by active peripherals probably. This test application is not optimized for low power.&lt;/p&gt;
&lt;p&gt;The current is measured on the development board via P24 according to the description as provided in the documentation of Nordic Semiconductor.&lt;/p&gt;
&lt;p&gt;Bets regards,&lt;/p&gt;
&lt;p&gt;Houwer de Geus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 AT+CFUN=0 draws excessive current</title><link>https://devzone.nordicsemi.com/thread/186827?ContentTypeID=1</link><pubDate>Tue, 14 May 2019 06:20:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cd80c74-b9b4-4273-ba74-bf3c19bb1f58</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Houwer,&lt;/p&gt;
&lt;p&gt;I would like to know a bit more about your environment:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Could you state which application you are running?&lt;/li&gt;
&lt;li&gt;How is the current consumption measured?&lt;/li&gt;
&lt;li&gt;Which modem firmware version are you using?&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best Regards,&lt;/p&gt;
&lt;p&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 AT+CFUN=0 draws excessive current</title><link>https://devzone.nordicsemi.com/thread/186775?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 14:58:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fdc77b09-9a4b-4731-bed0-bce1f6293165</guid><dc:creator>Houwer de Geus</dc:creator><description>&lt;p&gt;Hi Martin,&lt;/p&gt;
&lt;p&gt;When using AT+CFUN=0, the current is about 9.33mA, almost constantly. I would expect more network activity related to network signalling. While typing this, it&amp;#39;s already a few minutes (about 5) in this state.&lt;/p&gt;
&lt;p&gt;Now I understand that I should use one of the Offline modes if I want to turn off the modem without power cycle.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Houwer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 AT+CFUN=0 draws excessive current</title><link>https://devzone.nordicsemi.com/thread/186756?ContentTypeID=1</link><pubDate>Mon, 13 May 2019 14:12:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa6f332d-ec6e-47ae-99af-d818e3e1510c</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Houwer,&lt;/p&gt;
&lt;p&gt;I understand the reasoning by your assumption because of the naming of the different modes:&lt;/p&gt;
&lt;p&gt;AT+CFUN=&amp;lt;n&amp;gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;0 – Power off
1 – Normal mode
4 – Offline mode
44 – Offline mode without shutting down UICC&lt;/pre&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The correct way to &amp;quot;shutdown&amp;quot; the modem is to set it in Offline mode.&lt;/p&gt;
&lt;p&gt;If&amp;nbsp; you set the modem in &amp;quot;Power off&amp;quot; mode, you need to power cycle the device to be able to turn it ON again.&lt;/p&gt;
&lt;p&gt;As far as I know you would only use &amp;quot;Power Off&amp;quot; mode to store information in the modem flash permanently or for graceful &amp;quot;detachment&amp;quot; of the network .&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As stated in the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fcfun_set.html&amp;amp;resultof=%22cfun%22%20" rel="noopener noreferrer" target="_blank"&gt;documentation&lt;/a&gt;: &amp;quot;&lt;em&gt;When commanding the device to power off, a power cycle is needed and no further AT commands should be sent before that is completed.&amp;quot;&lt;/em&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;em&gt;I would like to know how long you get this excessive current consumption after setting the modem to &amp;quot;Power Off&amp;quot; mode?&lt;br /&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;As far as I know &amp;quot;Commanding the device to Power off might take some time if signaling with the network is needed.&amp;quot; so it would be understandable if it draws some extra in that period.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Best Regards,&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Martin L.&lt;/em&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>