<?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>AWS IoT LTE Connection Handling</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/90799/aws-iot-lte-connection-handling</link><description>Hello, 
 I am working with the 9160DK and the AWS IoT sample in NRF Connect 1.8.0. The app is usually able to connect to LTE but sometimes it gets stuck and never connects even after 10+ minutes. I don&amp;#39;t think this is a connection issue as I can reset</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Sep 2022 09:41:19 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/90799/aws-iot-lte-connection-handling" /><item><title>RE: AWS IoT LTE Connection Handling</title><link>https://devzone.nordicsemi.com/thread/387245?ContentTypeID=1</link><pubDate>Wed, 21 Sep 2022 09:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62bb7f9c-badf-4712-819c-953844c6d3de</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Yes, that seems like a decent sloution.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT LTE Connection Handling</title><link>https://devzone.nordicsemi.com/thread/384384?ContentTypeID=1</link><pubDate>Thu, 01 Sep 2022 22:07:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8372c50e-1a4c-4ce0-9387-b0e240fda4bb</guid><dc:creator>jake11212</dc:creator><description>&lt;p&gt;So then there is no error/status when the timeout period ends?&amp;nbsp; So I would just need to make an error handler that checks after the connection attempt if connection is active, and if it isn&amp;#39;t add an error handler and assume that the connection failed because of the timeout?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT LTE Connection Handling</title><link>https://devzone.nordicsemi.com/thread/383323?ContentTypeID=1</link><pubDate>Thu, 25 Aug 2022 14:09:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bff4cac5-9dbd-4c19-83ca-b996fb65d745</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Yeah, there is no &amp;quot;timeout handler&amp;quot;. When calling lte_lc_connect() or lte_lc_init_and_connect() (not async), it will block until it finishes the scan or it times out. The timeout is determined by LTE_NETWORK_TIMEOUT. If CONFIG_LTE_NETWORK_USE_FALLBACK=y, it will try both LTE-M and NB-IoT, both for LTE_NETWORK_TIMEOUT seconds before returning.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT LTE Connection Handling</title><link>https://devzone.nordicsemi.com/thread/382762?ContentTypeID=1</link><pubDate>Mon, 22 Aug 2022 19:45:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cd2b95c6-9048-47a2-94fe-56a5cb9eb8cb</guid><dc:creator>jake11212</dc:creator><description>&lt;p&gt;I see that it&amp;#39;s possible to add the LTE_NETWORK_TIMEOUT but is there any documentation for generating that timeout handler or is there some default behavior that takes place upon timeout?&amp;nbsp; I wasn&amp;#39;t able to find any documentation on what happens after the timeout occurs.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: AWS IoT LTE Connection Handling</title><link>https://devzone.nordicsemi.com/thread/381806?ContentTypeID=1</link><pubDate>Tue, 16 Aug 2022 13:35:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54b744e4-2bfa-4657-a03a-2e579bd79663</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]I&amp;#39;m not getting any errors when this happens so I was wondering if there were any methods for troubleshooting what might be going on in these situations, and if there were methods for handling this error.[/quote]
&lt;p&gt;It&amp;#39;s hard to say what&amp;#39;s going on without any logs or modem trace.&lt;/p&gt;
[quote user=""]I was considering a timer that resets the DK automatically if LTE doesn&amp;#39;t establish a connection for more than a certain amount of time, but this felt like a brute force method and I was looking for a better solution.[/quote]
&lt;p&gt;You can consider changing the timeout interval &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index.html#CONFIG_LTE_NETWORK_TIMEOUT"&gt;&lt;span&gt;CONFIG_LTE_NETWORK_TIMEOUT&lt;/span&gt;&lt;/a&gt;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>