<?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>lte link control outside coverage</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50242/lte-link-control-outside-coverage</link><description>I have been testing lte_lc_init_and_connect with my units inside a Faraday cage, This method doesn&amp;#39;t terminate when it cannot get a signal (at least I haven&amp;#39;t seen it). This, together with watchdogs to ensure reboots in case of eternal loops,will cause</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 12 Mar 2021 14:40:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50242/lte-link-control-outside-coverage" /><item><title>RE: lte link control outside coverage</title><link>https://devzone.nordicsemi.com/thread/299510?ContentTypeID=1</link><pubDate>Fri, 12 Mar 2021 14:40:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6fbcd241-618d-44fa-a70c-0ea4ec014a5c</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/chouquette_5f00_fr"&gt;chouquette_fr&lt;/a&gt;,&lt;/p&gt;
&lt;p&gt;The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.5.0/nrf/include/modem/lte_lc.html"&gt;LTE link controller (lte_lc) library&lt;/a&gt; now (NCS v1.5.0; I have not checked earlier versions) has a configurable timeout.&lt;/p&gt;
&lt;p&gt;The default value is 10 minutes, but you can change it by setting CONFIG_LTE_NETWORK_TIMEOUT to the desired value (in seconds).&lt;/p&gt;
&lt;p&gt;The LTE link controller library has also been expanded to include an asyncrounous API, which is more flexible than the old blocking API.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lte link control outside coverage</title><link>https://devzone.nordicsemi.com/thread/299297?ContentTypeID=1</link><pubDate>Thu, 11 Mar 2021 13:48:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7462d872-d2fc-411d-8538-8962ae40051b</guid><dc:creator>chouquette_fr</dc:creator><description>&lt;p&gt;Hello, is it possible to do this in my own application without changing the library code ?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lte link control outside coverage</title><link>https://devzone.nordicsemi.com/thread/200748?ContentTypeID=1</link><pubDate>Fri, 26 Jul 2019 11:36:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ba4fb38-211c-4698-9ad8-2fcb37859247</guid><dc:creator>Didrik Rokhaug</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;The lte_lc_init_and_connect function waits indefinitely for a semaphore which is signaled when the modem establishes a connection. The function not returning when there is no coverage is therefore intended behavior.&lt;/p&gt;
&lt;p&gt;If you do not want it to potentially wait forever you can change the timeout argument in the k_sem_take call on line 123 in ncs/nrf/drivers/lte_link_control/lte_lc.c.&lt;/p&gt;
&lt;p&gt;E.g. if you change it from&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;k_sem_take(&amp;amp;link, K_FOREVER);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;to&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;if (k_sem_take(&amp;amp;link, K_MINUTES(5)) != 0) {
    return -EAGAIN;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;lte_lc_init_and_connect will return -EAGAIN if it were unable to connect within 5 minutes. I have not tested it properly so there might be unintended consequences. As we do not do anything with the modem it will still be active, but the application will not be notified if we establish a connection.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Didrik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>