<?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>Question regarding connection and Fallback</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56432/question-regarding-connection-and-fallback</link><description>Dear All, 
 
 In my application I need to switch on and off the modem using AT+CFUN=0 and AT+CFUN=4 respectivelly. My question is the following. Let&amp;#39;s assume that the device cannot find the preferred type of network and uses the fallback one. Then the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 14 Jan 2020 15:11:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56432/question-regarding-connection-and-fallback" /><item><title>RE: Question regarding connection and Fallback</title><link>https://devzone.nordicsemi.com/thread/229101?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 15:11:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:22cc98f9-faaa-4e3b-bbca-35788997c6eb</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Giannis,&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;The modem takes care of this automatically.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;e.g. Regarding the cell search done after cell lost&lt;/strong&gt; (i.e. nrf91 moves out of range or does not find cell after startup),&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The modem will periodically try to find a cell after a cell is lost.&lt;/li&gt;
&lt;li&gt;No actions required from the application (i.e. no need for new AT+CFUN=1)&lt;/li&gt;
&lt;li&gt;If there is a cell available, it will eventually be found, but depending on the current search periods it may take some time.&lt;/li&gt;
&lt;li&gt;The modem does not just continuously search until the cell is found, it takes breaks in between searches.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Also, the search itself takes the benefit of a large number of parameters gathered earlier in order to find a cell efficiently.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The current Data Profile affects the search periods (set with &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fmob_termination_ctrl_status%2Fxdataprfl_set.html&amp;amp;resultof=%22%58%44%41%54%41%50%52%46%4c%22%20%22%78%64%61%74%61%70%72%66%6c%22%20" rel="noopener noreferrer" target="_blank"&gt;AT%XDATAPRFL&lt;/a&gt;): 4 (= High performance) means searching more often (and aggressively) than 0 (= Ultra low power).&lt;/li&gt;
&lt;li&gt;In this aspect, the Data profile is not about&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;connection reliability vs power consumption&lt;/em&gt;, it is about&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;how fast the device finds a cell (after cell lost) vs power consumption.&lt;/em&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;So when on cell, Data profile does not affect to connection reliability.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Note&lt;/strong&gt;: The m&lt;span&gt;odem indicates the state of service using&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fnw_service%2Fcereg_set.html&amp;amp;resultof=%22%63%65%72%65%67%22%20" rel="noopener noreferrer" target="_blank"&gt; AT+CEREG&lt;/a&gt;. Unsolicited indications can be subscribed to or the current status can be read with &amp;quot;AT+CEREG?&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;A sidenote, please notice that you do not need to manually send AT+CFUN=1 or 4 when using the &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/tree/master/lib/lte_link_control" rel="noopener noreferrer" target="_blank"&gt;LTE Link Controller&amp;nbsp;library&lt;/a&gt;. &lt;br /&gt;If you look into the function&amp;nbsp;&lt;span&gt;lte_lc_init_and_connect() it will send the &lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/lib/lte_link_control/lte_lc.c#L253" rel="noopener noreferrer" target="_blank"&gt;AT command inside the function.&lt;/a&gt;&amp;nbsp;(normal = at+cfun=1)&lt;/span&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: Question regarding connection and Fallback</title><link>https://devzone.nordicsemi.com/thread/228955?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 08:46:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad6dcdb9-20a6-41a6-ad6d-4e17472de03e</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;Thank you for your response. I wonder this though:&lt;br /&gt;&lt;br /&gt;If you enable the modem and there is no network to connect to, how will the device try the fallback?&lt;br /&gt;To be clear here:&lt;br /&gt;&lt;br /&gt;Initially, one can call the lte_lc_init_and_connect(), that will try initially to connect to the preferred network and if that is not available, it will try the fallback. Then one can call the AT+CFUN=4 to go offline. And then one can call AT+CFUN=1.&lt;br /&gt;&lt;br /&gt;At this point the modem can either connect to the last network it connected succesfully and this is very clear based on your comments. But what will happen in the case that the previous succesfully-connected-to network is no longer available (e.g. moved to a different region) while in the offline mode? Will the modem execute again the lte_lc_init_and_connect() or something similar?&lt;br /&gt;&lt;br /&gt;So basically what I need to know is ho the modem behaves when it cannot find the previously succesfully-connected-to network.&lt;br /&gt;&lt;br /&gt;What I know for sure is that if I call the lte_lc_init_and_connect(), every time after CFUN=1 the modem first tries the preferred network and then the fallback, so if I was in an area that only the fallback is available the modem would scan first until the time out for the preferred and then try the fallback.&lt;br /&gt;&lt;br /&gt;Thank you very much for your assistance.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question regarding connection and Fallback</title><link>https://devzone.nordicsemi.com/thread/228939?ContentTypeID=1</link><pubDate>Tue, 14 Jan 2020 07:47:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dc87820c-d767-4d41-866a-20fa864f71d2</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Giannis,&lt;/p&gt;
&lt;p&gt;I just got it confirmed internally.&lt;/p&gt;
&lt;p&gt;The last registered network is always the highest priority when you turn ON the modem.&lt;/p&gt;
&lt;p&gt;Note the word &amp;quot;registered&amp;quot;, i.e. we have obtained full service (IP connectivity and so on).&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question regarding connection and Fallback</title><link>https://devzone.nordicsemi.com/thread/228852?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 14:52:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:358287aa-39bb-46a2-880e-02479ffa5b3e</guid><dc:creator>Giannis Anastasopoulos</dc:creator><description>&lt;p&gt;Dear Martin,&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Yes, you are right. I meant AT+CFUN=1.&lt;/p&gt;
&lt;p&gt;Please let me know of the results of your check&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Question regarding connection and Fallback</title><link>https://devzone.nordicsemi.com/thread/228846?ContentTypeID=1</link><pubDate>Mon, 13 Jan 2020 14:47:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc983973-9212-4455-a624-2010f27cab6e</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Giannis,&lt;/p&gt;
&lt;p&gt;Please make sure that you are using the correct functional modes in your question for&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;cp=2_1_3_0_0" rel="noopener noreferrer" target="_blank"&gt; the +CFUN command.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;0 – &lt;strong&gt;Power off&lt;/strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;strong&gt;[&lt;/strong&gt;&lt;em&gt;Sets the device to minimum functionality. Disables both transmit and receive RF circuits and deactivates LTE and GNSS services&lt;/em&gt;.&lt;strong&gt;]&lt;/strong&gt;&lt;br /&gt;1 – &lt;strong&gt;Normal mode&lt;/strong&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;strong&gt;[&lt;/strong&gt;&lt;em&gt;&lt;span&gt;Sets the device to full functionality&lt;/span&gt;&lt;/em&gt;&lt;strong&gt;.&lt;/strong&gt;&lt;em&gt;&lt;strong&gt;]&lt;/strong&gt;&lt;br /&gt;4 – &lt;strong&gt;Offline mode&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[&lt;/strong&gt;&lt;em&gt;Sets the device to "airplane mode". Disables both transmit and receive RF circuits and deactivates LTE and GNSS services.&lt;/em&gt;&lt;strong&gt;]&lt;/strong&gt;&lt;br /&gt;20 – &lt;strong&gt;Deactivate LTE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[&lt;/strong&gt;&lt;em&gt;Deactivates LTE without shutting down GNSS services&lt;/em&gt;&lt;strong&gt;]&lt;/strong&gt;&lt;br /&gt;21 – &lt;strong&gt;Activate LTE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;[&lt;/strong&gt;&lt;em&gt;Activates LTE without GNSS&lt;/em&gt;&lt;strong&gt;]&lt;/strong&gt;&lt;br /&gt;30 – &lt;strong&gt;Deactivate GNSS&amp;nbsp; &amp;nbsp; [&lt;/strong&gt;&lt;em&gt;Deactivates GNSS without shutting down LTE services&lt;/em&gt;&lt;strong&gt;]&lt;/strong&gt;&lt;br /&gt;31 – &lt;strong&gt;Activate GNSS&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; [&lt;/strong&gt;&lt;em&gt;Activates GNSS without LTE&lt;/em&gt;&lt;strong&gt;]&lt;/strong&gt;&lt;br /&gt;44 – &lt;strong&gt;Offline mode without shutting down UICC [&lt;/strong&gt;&lt;em&gt;Sets the device to airplane mode without shutting down UICC&lt;/em&gt;&lt;strong&gt;]&lt;/strong&gt;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;em&gt;I assume that you mean AT+CFUN=1 and AT+CFUN=4 in your question:&lt;/em&gt;&lt;br /&gt;I am pretty sure it will choose the last known &lt;em&gt;working &lt;/em&gt;network e.g. the fallback in your case and try to connect to that one once you turn ON the modem again.&lt;br /&gt;but let me double-check that functionality internally and come back to you.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Martin L.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>