<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Check if 9160 LTE-M Connection has Become Unavailable</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88560/check-if-9160-lte-m-connection-has-become-unavailable</link><description>Hello, 
 I am using the 9160 with nRF Connect SDK 1.8.0 to connect to an LTE-M network. I am currently using: 
 
 to manage the keepalive timer, but was wondering if there are any methods of determining when LTE connection has been lost. Ideally I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Tue, 07 Jun 2022 17:05:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88560/check-if-9160-lte-m-connection-has-become-unavailable" /><item><title>RE: Check if 9160 LTE-M Connection has Become Unavailable</title><link>https://test-devzone.nordicsemi.com/thread/371228?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 17:05:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c843b702-730b-44e3-a15a-b951fd7d66a2</guid><dc:creator>user104389</dc:creator><description>&lt;p&gt;Okay that&amp;#39;s everything I needed, thanks so much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if 9160 LTE-M Connection has Become Unavailable</title><link>https://test-devzone.nordicsemi.com/thread/371036?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2022 07:02:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:646bbac4-d7bd-46d6-8035-1ef84d7e9820</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You will normally see _SEACHING (ie. AT+CEREG stat field = 2)&amp;nbsp;first, and if there&amp;#39;s no cell towers within range, you&amp;#39;ll see _UNKNOWN (stat=4), and eventually it will go into NOT_REGISTERED state (stat=0).&lt;/p&gt;
&lt;p&gt;However, you can also get a _REGISTRATION_DENIED in cases where you try to roam to a network provider that does not accept your SIM card.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="jake11212"]Will it automatically try to reconnect if this happens or does this need to be handled directly?&amp;nbsp;&amp;nbsp;[/quote]
&lt;p&gt;Yes, it will try to reconnect to a network.&lt;/p&gt;
[quote user="jake11212"]Is there a way to simulate the LTE-M network going down?&amp;nbsp; I&amp;#39;m not sure how to test the behavior.[/quote]
&lt;p&gt;A Faraday cage can be used for such testing to see how your application handles this specific scenario.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if 9160 LTE-M Connection has Become Unavailable</title><link>https://test-devzone.nordicsemi.com/thread/370944?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 19:41:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc39db25-122d-4c89-aca6-85d047f066af</guid><dc:creator>user104389</dc:creator><description>&lt;p&gt;Thanks for the response that&amp;#39;s really helpful!&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;So if the network goes out or connection is lost I assume it would&amp;nbsp;change the&amp;nbsp;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;&lt;span&gt;LTE_LC_EVT_NW_REG_STATUS to&amp;nbsp;&lt;/span&gt;&lt;/span&gt;
&lt;div&gt;
&lt;div&gt;&lt;span&gt;LTE_LC_NW_REG_SEARCHING correct?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Will it automatically try to reconnect if this happens or does this need to be handled directly?&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span&gt;Is there a way to simulate the LTE-M network going down?&amp;nbsp; I&amp;#39;m not sure how to test the behavior.&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Check if 9160 LTE-M Connection has Become Unavailable</title><link>https://test-devzone.nordicsemi.com/thread/370895?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 13:10:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c853b046-8134-45d9-91f1-15ab8dc9ce59</guid><dc:creator>user2115</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you are using lte_lc already, you should get a event if the AT+CEREG notification is signaled (ie. the state has changed). This is through this event:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/include/modem/lte_lc.html#c.lte_lc_evt_type.LTE_LC_EVT_NW_REG_STATUS"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.0/nrf/include/modem/lte_lc.html#c.lte_lc_evt_type.LTE_LC_EVT_NW_REG_STATUS&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Where the response is not &amp;quot;1&amp;quot; (&lt;code&gt;&lt;span&gt;LTE_LC_NW_REG_REGISTERED_HOME&lt;/span&gt;&lt;/code&gt;) or &amp;quot;5&amp;quot; (&lt;code&gt;&lt;span&gt;LTE_LC_NW_REG_REGISTERED_ROAMING&lt;/span&gt;&lt;/code&gt;)&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The above&amp;nbsp;logic in lte_lc directly reflects the value of &amp;lt;stat&amp;gt; field that is reported through the AT+CEREG at command:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cereg.html?cp=2_1_7_6"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cereg.html?cp=2_1_7_6&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>