<?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 modem states 20, 21, 30, 31, 44</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/60103/nrf9160-modem-states-20-21-30-31-44</link><description>The modem reports that it supports states 0, 1, 4, 20, 21, 30, 31, 44 when I give the &amp;quot;AT+CFUN=?&amp;quot; command. 
 Using the at_client sample, or other software like asset_tracker, and now that I know to not check &amp;quot;Automatic requests&amp;quot; in LTE Link Monitor, the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 31 Jul 2020 03:44:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/60103/nrf9160-modem-states-20-21-30-31-44" /><item><title>RE: nRF9160 modem states 20, 21, 30, 31, 44</title><link>https://devzone.nordicsemi.com/thread/262488?ContentTypeID=1</link><pubDate>Fri, 31 Jul 2020 03:44:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:583cbfeb-eb25-4026-a3a2-42264aa301ef</guid><dc:creator>Thomas</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;&lt;span&gt;&amp;Oslash;yvind,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;If you send AT+CFUN=20 twice, the modem responds with an error. That means there is not only no way to check which parts of the modem are&amp;nbsp;on or not, but no way enforce them either.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For example:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Device&amp;nbsp;has GPS on with AT+CFUN=31. Device tries to turn modem on with AT+CFUN=21, but gets an error.&amp;nbsp;The Device now can&amp;#39;t check what state the modem is in, and any attempts to call AT+CFUN=20 return an error, but the device doesn&amp;#39;t know if that is because it is already off or because of some other reason.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Should&amp;#39;t calls to AT+CFUN=30 and AT+CFUN=20 return OK if they are already off?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thomas&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem states 20, 21, 30, 31, 44</title><link>https://devzone.nordicsemi.com/thread/245352?ContentTypeID=1</link><pubDate>Sat, 18 Apr 2020 17:27:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5b84f188-e574-4757-bf39-4e878322c163</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Okay, Oyvind, it sounds like when I am programming, I should not concern myself whether LTE or GNSS is currently on: if I am not sure about the state, and I know, for example, that I want LTE on, I should just go ahead and issue AT+CFUN=21. I am sure that will work -- I just wanted to know that I was not missing any secret status indicator. I will go ahead and close this ticket out next.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem states 20, 21, 30, 31, 44</title><link>https://devzone.nordicsemi.com/thread/245085?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 17:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9779ddcd-b1fb-41e0-953c-910965b21ae1</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Yes, CFUN will return 1 (In our&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cfun_read.html"&gt;documentation&lt;/a&gt;: &lt;span&gt;The active mode is either LTE or GNSS, or both. Which is set by 3GPP).&lt;br /&gt;&lt;br /&gt;The only way to see if GPS or LTE is enabled is by looking at the&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/bsdlib/doc/api.html#api-documentation"&gt;sockets found in our BSD Library&lt;/a&gt;. I&amp;#39;m not sure if we have any samples of how this is done, but you could have a look at our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nrf9160/gps/README.html#nrf9160-gps-sockets-and-supl-client-library"&gt;GPS sample&lt;/a&gt;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Øyvind&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem states 20, 21, 30, 31, 44</title><link>https://devzone.nordicsemi.com/thread/244822?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 21:29:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2ac582bb-71aa-4a83-a234-f072f53873c7</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thank you, Oyvind. I have tried many combinations of enabling/disabling with 21,20,31,30,and 44 (as in AT+CFUN=21 for example.) And everything is logical except for one sticking point: if I have enabled LTE but not GPS, or vice versa if I have enabled GPS but not LTE, I cannot find a software mechanism that will indicate status that one but not both modems is ON. Please give me the software procedure, presumably AT commands, that will allow me to determine such.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem states 20, 21, 30, 31, 44</title><link>https://devzone.nordicsemi.com/thread/244727?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 12:52:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c9ac9cc-ba38-404d-be39-f3ba93e56b48</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello again,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I have verified that this is how the modem will report its status. If you have enabled LTE but not GPS, the SW&amp;nbsp;should report that GPS is not available.&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;br /&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem states 20, 21, 30, 31, 44</title><link>https://devzone.nordicsemi.com/thread/244713?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 12:21:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4dbc0d14-530d-48d1-943a-18921f57a1fa</guid><dc:creator>Burt</dc:creator><description>&lt;p&gt;Thanks Oyvind, I look forward to hearing back from you with those modem details.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 modem states 20, 21, 30, 31, 44</title><link>https://devzone.nordicsemi.com/thread/244429?ContentTypeID=1</link><pubDate>Tue, 14 Apr 2020 12:39:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bc0ded3-0ffd-4acc-9f99-6915c277ffb6</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
[quote user=""]The modem reports that it supports states 0, 1, 4, 20, 21, 30, 31, 44 when I give the &amp;quot;AT+CFUN=?&amp;quot; command.[/quote]
&lt;p&gt;&amp;nbsp;Yes, this is correct and according to our &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/cfun_test.html"&gt;AT documentation&lt;/a&gt;.&lt;/p&gt;
[quote user=""]the only states I can read back&lt;br /&gt;using &amp;quot;AT+CFUN?&amp;quot; are 0, 1, and 4, even if I issue the command &amp;quot;AT+CFUN=&lt;em&gt;x&lt;/em&gt;&amp;quot; where &lt;em&gt;x&lt;/em&gt; is one of 20, 21, 30, 31, or 44. How do I get to states 20, 21, 30, 31, and/or 44?[/quote]
&lt;p&gt;AT+CFUN? will read the current functional mode, however, setting e.g. AT+CFUN=21 will also give the reply +CFUN=1. The GPS will/should not be activated.&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT+CFUN?+CFUN: 0
OK
AT+CFUN=21
OK
AT+CFUN?
+CFUN: 1
OK&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I have not verified if this is how the modem should respond. Will get back to you.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Øyvind&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>