<?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>AT+CFUN=1 Retry Algorithm</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86106/at-cfun-1-retry-algorithm</link><description>If AT+CFUN=1 will not get modem connected/registered to a network, what retry algorithm does the nRF9160 implement? Is it something like exponential back-off algorithm?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Mar 2022 09:10:37 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86106/at-cfun-1-retry-algorithm" /><item><title>RE: AT+CFUN=1 Retry Algorithm</title><link>https://devzone.nordicsemi.com/thread/359733?ContentTypeID=1</link><pubDate>Thu, 24 Mar 2022 09:10:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:112e26d6-5727-4a64-8fca-aa65d9fd90ac</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello, sorry I misread your initial question. Didn&amp;#39;t catch the &amp;quot;if&amp;quot; in the start.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html#lte-link-controller"&gt;LTE Link Control driver should handle this&lt;/a&gt; for you. This will handle the connection for you in the background. Have a look at the API here &lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;nrf\include\modem\lte_lc.h, &lt;/span&gt;&lt;/span&gt;where it will send AT+CFUN=1 and keeps trying until timer expires and retry with e.g. a fallback network. I.e. it will try to connect LTE-M for 10 minutes if it does not get connection it will use fallback network NB-IoT and retry connection for 10 min.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Note that the modem will handle the back-off time which is implemented in the modem FW as per 3GPP.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;span&gt;&lt;span style="font-family:&amp;#39;courier new&amp;#39;, courier;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=1 Retry Algorithm</title><link>https://devzone.nordicsemi.com/thread/359663?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 17:25:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5ab8902c-b46b-45f7-8554-7ffa1a2d9ee5</guid><dc:creator>ronald-blackline</dc:creator><description>&lt;p&gt;My team is actually planning to implement a back off algorithm in the application layer whenever we don&amp;#39;t get our devices registered or connected. We are planning to use the AT commands CFUN and CREG?.&lt;/p&gt;
&lt;p&gt;For instance, we send AT+CFUN=1, and after 15 seconds, CREG? indicates the device is still not registered. This would trigger the application to send AT+CFUN=0, sleep for 2 seconds, then try again. If the same sequence (CFUN=1, wait 15 seconds, check CREG?) fails again, device sends AT+CFUN=0 again but this time, sleeps for 4 seconds. Next sequence failure will cause the device to sleep 8 seconds, then 16 seconds, then 32 seconds ...&lt;/p&gt;
&lt;p&gt;Is something already implemented in the modem/radio layer so the application layer can just send AT+CFUN=1 once and keeps on checking CREG? until it connects?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Our network is LTE.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AT+CFUN=1 Retry Algorithm</title><link>https://devzone.nordicsemi.com/thread/359517?ContentTypeID=1</link><pubDate>Wed, 23 Mar 2022 08:17:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d98aaef1-8f55-4a49-9d1b-d199ec012d66</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;br /&gt;&lt;br /&gt;Can you provide more details? Are you not connecting when issuing the AT+CFUN=1 command? What happens when you do? Please provide a log output and modem trace of the issue.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;There is most likely a back-off algorithm running, both on modem and network. What network are you on?&amp;nbsp;&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></channel></rss>