<?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>Cloud/LTE re-connection after Loss of Signal</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/104712/cloud-lte-re-connection-after-loss-of-signal</link><description>Hello, 
 I am testing the Asset Tracker v2 application on a Thing91. SDK version is 2.3.0 and the modem FW is 1.3.5. 
 The Thingy91 connects to LTE fine and is able to send data to nRFCloud no problem. However, after putting the Thingy91 into a LTE signal</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Oct 2023 10:21:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/104712/cloud-lte-re-connection-after-loss-of-signal" /><item><title>RE: Cloud/LTE re-connection after Loss of Signal</title><link>https://devzone.nordicsemi.com/thread/451934?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2023 10:21:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9488b583-cfc6-408d-8e4a-cdebf7ed7f4e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Yes, it&amp;nbsp;&lt;strong&gt;only&amp;nbsp;&lt;/strong&gt;uses the pdn_event_handler so you need to add the&amp;nbsp;&lt;strong&gt;lte_reg_handler&lt;/strong&gt;&lt;span&gt;&amp;nbsp;that checks for a disconnect and implements the connection manager as is done in &lt;strong&gt;lte_connectivity.c&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cloud/LTE re-connection after Loss of Signal</title><link>https://devzone.nordicsemi.com/thread/451404?ContentTypeID=1</link><pubDate>Fri, 20 Oct 2023 02:58:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30e95fe1-d673-4eb3-b137-f019cb6ae639</guid><dc:creator>sbarnowski</dc:creator><description>&lt;p&gt;Thanks.&lt;/p&gt;
&lt;p&gt;Looking at the Asset Tracker 2 code, it does appear that the pdn_event_handler is implemented. The PDN_EVENT_ACTIVATED event triggers a MODEM_EVT_LTE_CONNECTED event, and PDN_EVENT_DEACTIVATED triggers a MODEM_EVT_LTE_DISCONNECTED event. Like so ...&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;modem_module.c
/* Handler that notifies the application of events related to the default PDN context, CID 0. */
void pdn_event_handler(uint8_t cid, enum pdn_event event, int reason)
{
	ARG_UNUSED(cid);

	switch (event) {
	case PDN_EVENT_CNEC_ESM:
		LOG_DBG(&amp;quot;Event: PDP context %d, %s&amp;quot;, cid, pdn_esm_strerror(reason));
		break;
	case PDN_EVENT_ACTIVATED:
		LOG_DBG(&amp;quot;PDN_EVENT_ACTIVATED&amp;quot;);
		{ SEND_EVENT(modem, MODEM_EVT_LTE_CONNECTED); }
		break;
	case PDN_EVENT_DEACTIVATED:
		LOG_DBG(&amp;quot;PDN_EVENT_DEACTIVATED&amp;quot;);
		{ SEND_EVENT(modem, MODEM_EVT_LTE_DISCONNECTED); }
		break;
	case PDN_EVENT_IPV6_UP:
		LOG_DBG(&amp;quot;PDN_EVENT_IPV6_UP&amp;quot;);
		break;
	case PDN_EVENT_IPV6_DOWN:
		LOG_DBG(&amp;quot;PDN_EVENT_IPV6_DOWN&amp;quot;);
		break;
	default:
		LOG_WRN(&amp;quot;Unexpected PDN event!&amp;quot;);
		break;
	}
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, after placing the Thingy91 into an RF shielded bag for over 10 minutes I never see a&amp;nbsp;&lt;span&gt;MODEM_EVT_LTE_DISCONNECTED&amp;nbsp;event. The cloud just keeps retrying to connect, taking &amp;gt; 10minutes to do so after being removed from the bag.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;And assuming I did get a &lt;span&gt;MODEM_EVT_LTE_DISCONNECTED - what should I do with that? Just keep re-connecting to LTE until it connects? Or would re-connecting keep searching until connected, after which the Cloud would connect?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Sebastian&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cloud/LTE re-connection after Loss of Signal</title><link>https://devzone.nordicsemi.com/thread/450742?ContentTypeID=1</link><pubDate>Tue, 17 Oct 2023 07:20:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:796ee1ce-35af-4fbf-92a5-3e7116a96caf</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think the reason you&amp;#39;re seeing this is that the Asset Tracker v2 application only monitor the PDN. You should use both cell registering messages from the modem and PDN, so that if one of them indicates a disconnect the device will be disconnected. It will go a lot quicker if you use both as you can technically have an active PDN but not be registered to a cell. In&amp;nbsp;&lt;strong&gt;lte_connectivity.c&amp;nbsp;&lt;/strong&gt;we use this approach alongside the connection manager so that will be a better solution. But the backend in the application is intended for supporting both Wi-Fi and LTE.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can try implementing a check for the disconnect from both the &lt;strong&gt;pdn_event_handler&lt;/strong&gt; and the &lt;strong&gt;lte_reg_handler&lt;/strong&gt; on your end.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Cloud/LTE re-connection after Loss of Signal</title><link>https://devzone.nordicsemi.com/thread/450504?ContentTypeID=1</link><pubDate>Mon, 16 Oct 2023 10:16:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5764f318-b479-4751-b026-ec5365a41a02</guid><dc:creator>R.J. Helder</dc:creator><description>&lt;p&gt;We experience te same problems.&amp;nbsp;Our (custom) device has good LTE connection, loses coverage but won&amp;#39;t recover its connection in an acceptable period&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>