<?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>nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/81821/nrf9160-modem-lock-up-workaround</link><description>Hi, 
 
 I&amp;#39;ve noticed an issue with the modem locking up on the nRF9160DK. I&amp;#39;m not sure what causes it, but it always gets err 116 - ETIMEDOUT when initialising the modem and trying to connect to a network. The easy fix at the moment is to unplug the DK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 09 Dec 2021 14:40:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/81821/nrf9160-modem-lock-up-workaround" /><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/342748?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 14:40:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2b2bbe8a-a50e-4457-8176-a0043e551ed0</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="DamoL"]And I have attached the bin file from the modem trace. If you could let me know what the trace says that would be helpful.[/quote]
&lt;p&gt;Looking through the modem trace it looks like your device is receiving&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Cause #17 – Network failure&lt;/em&gt;&lt;br /&gt;&lt;em&gt;This EMM cause is sent to the UE if the MME cannot service an UE generated request because of PLMN&lt;/em&gt;&lt;br /&gt;&lt;em&gt;failures.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;What SIM are you using? Can you please run the AT Client and issue the following commands:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;AT%XSYSTEMMODE=0,1,0,2
AT+CFUN=1
AT+CFUN?&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;What happens if you run standard Asset Tracker v2 on your board? Do you see the same issue?&lt;/p&gt;
&lt;p&gt;Can you leave the modem trace running for longer?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/342666?ContentTypeID=1</link><pubDate>Thu, 09 Dec 2021 10:00:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cb5acdc-927f-4d6b-92dc-4c517ca5fceb</guid><dc:creator>DamoL</dc:creator><description>&lt;p&gt;Just been doing some more digging in the code.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;I noticed when its trying to connect to a network I can actually query &amp;quot;AT+CEREG?&amp;quot; and recieve information that it actually is connected to the network. The problem is its not always getting a CEREG notification. It fails at the point it tries to take the link semaphore (line 661 of lte_lc.c). I wonder is some other thread is blocking the notification coming through somehow, or how I can get round this.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I guess one option is to manually check the CEREG status is&amp;nbsp;modem_configure() fails. If so, I assume I would also have to give the link semaphore in case that is used elsewhere.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/342581?ContentTypeID=1</link><pubDate>Wed, 08 Dec 2021 15:37:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbb5bcb3-c14d-4854-ae53-bd24a0050aea</guid><dc:creator>DamoL</dc:creator><description>&lt;p&gt;Hello again.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;So strangely since my last message the modem never failed to register again - until this afternoon. Now I cant seem to get it connected at all. I had made some changes in the init functions of my program, but nothing to do with the modem, so not sure why that would make a difference.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Here is the output on my terminal -&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;+CEREG: 2,&amp;quot;6473&amp;quot;,&amp;quot;0014B715&amp;quot;,9
I: Network connection attempt timed out
I: Failed to establish LTE connection: -116
Retrying in 60 seconds
+CEREG: 0
%XMODEMSLEEP: 4
%XMODEMSLEEP: 4,0
I: LTE Link Connecting... 0
I: Failed to establish LTE connection: -120
Retrying in 60 seconds
+CEREG: 0
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;And I have attached the bin file from the modem trace. If you could let me know what the trace says that would be helpful. &lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;Damien&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2021_2D00_12_2D00_08T15_2D00_24_2D00_41.944Z.bin"&gt;devzone.nordicsemi.com/.../trace_2D00_2021_2D00_12_2D00_08T15_2D00_24_2D00_41.944Z.bin&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/340287?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 10:10:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be8414a3-514b-4342-899d-24f0ad82b015</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="DamoL"] I have just spent 30+ minutes trying to get it into that state but it&amp;#39;s connecting every time. &lt;span title="Joy"&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/1f602.svg" alt="Joy" /&gt;&lt;/span&gt;[/quote]
&lt;p&gt;That is typical&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f602.svg" title="Joy"&gt;&amp;#x1f602;&lt;/span&gt;&lt;/p&gt;
[quote user="DamoL"]Is there a way I can also view the modem trace.bin file?[/quote]
&lt;p&gt;No, unfortunately, the .bin file is only readable internally. The&amp;nbsp;&lt;span&gt;Trace Collect v2 (preview)&amp;nbsp;should provide readable Wireshark output.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/340279?ContentTypeID=1</link><pubDate>Tue, 23 Nov 2021 09:34:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:51ca4b60-b1f7-484a-a669-62ab1eb8385d</guid><dc:creator>DamoL</dc:creator><description>&lt;p&gt;I will try and get you a trace by the end of the day. I have just spent 30+ minutes trying to get it into that state but it&amp;#39;s connecting every time. &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f602.svg" title="Joy"&gt;&amp;#x1f602;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Is there a way I can also view the modem trace.bin file?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/340180?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 17:19:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:30bf2879-107c-4747-8535-556b32258937</guid><dc:creator>&amp;#216;yvind</dc:creator><description>[quote user="DamoL"]I assume the modem sleep callback is telling you its in flight mode?&lt;br /&gt;[/quote]
&lt;p&gt;Yes, this is correct, I do not expect it to be in flight mode and then connect to an LTE network.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;In order for us to figure out what is going on, we will need modem traces. This will show what is going on in the modem.&lt;/p&gt;
&lt;p&gt;You can &lt;a href="https://infocenter.nordicsemi.com/topic/ug_trace_collector/UG/trace_collector/enable_tracing.html"&gt;follow this guide&lt;/a&gt;&amp;nbsp;or use the Trace Collect v2 (preview) found in the nRF Connect for Desktop.&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><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/339969?ContentTypeID=1</link><pubDate>Mon, 22 Nov 2021 08:51:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5d8a5e4-2d61-4f5e-89ad-612367d48aa6</guid><dc:creator>DamoL</dc:creator><description>[quote userid="77062" url="~/f/nordic-q-a/81821/nrf9160-modem-lock-up-workaround/339753#339753"]Please provide the version&amp;nbsp; number on back of your DK[/quote]
&lt;p&gt;PCA10090 1.0.0 2021.25&lt;br /&gt;&lt;br /&gt;I assume the modem sleep callback is telling you its in flight mode?&lt;br /&gt;Look at the log when there is a successful connection. It says flight mode, then it registers.&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.6.0-rc1-ncs1  ***

Sensor Test Start!

The MQTT simple sample started

I: LTE Link Connecting... 

%XMODEMSLEEP: 4

%XMODEMSLEEP: 4

%XMODEMSLEEP: 4,0

+CEREG: 2,&amp;quot;6473&amp;quot;,&amp;quot;0014B715&amp;quot;,9

+CSCON: 1

+CEREG: 5,&amp;quot;6473&amp;quot;,&amp;quot;0014B715&amp;quot;,9,,,&amp;quot;11100000&amp;quot;,&amp;quot;00101000&amp;quot;

D: client_id = nrf-351358811387668

I: LTE Link Connected! 

+CEREG: 5,&amp;quot;6473&amp;quot;,&amp;quot;0014B715&amp;quot;,9,,,&amp;quot;00000101&amp;quot;,&amp;quot;00000111&amp;quot;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As for trying a standard sample. Yes, and it fails to connect when in that state. A power cycle fixes it. Again, I&amp;#39;m pretty sure it only happens when a debug session is restarted and the modem is in PSM, but even then it doesn&amp;#39;t happen every time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/339753?ContentTypeID=1</link><pubDate>Fri, 19 Nov 2021 08:12:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b2179838-743a-41b2-83d1-7dbe11fb7f92</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;The log output shows that your device reports that it&amp;#39;s in Flight Mode.&amp;nbsp;Can you share your project? &lt;strong&gt;Have you tried connecting to network with a standard sample?&lt;/strong&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="DamoL"]Its the latest DK version, and I am using SDK 1.61.&lt;br /&gt;[/quote]
&lt;p&gt;Please provide the version&amp;nbsp; number on back of your DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/339682?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2021 14:36:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1624ae2-0d6d-448b-80ab-989f41e98246</guid><dc:creator>DamoL</dc:creator><description>&lt;p&gt;Here is an example of what I see on VCOM port.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;I: LTE Link Connected! 0
+CEREG: 5,&amp;quot;6473&amp;quot;,&amp;quot;0014B70B&amp;quot;,9,,,&amp;quot;00000101&amp;quot;,&amp;quot;00000111&amp;quot;
Attempting to acquire time and date from date_time library...
+CSCON: 0
%XT3412: 4199999

+CEREG: 5,&amp;quot;6473&amp;quot;,&amp;quot;0014B715&amp;quot;,9,,,&amp;quot;00000101&amp;quot;,&amp;quot;00000111&amp;quot;
%XMODEMSLEEP: 1,4189987

*** Booting Zephyr OS build v2.6.0-rc1-ncs1  ***
Flash regions           Domain          Permissions
00 01 0x00000 0x10000   Secure          rwxl
02 31 0x10000 0x100000  Non-Secure      rwxl

Non-secure callable region 0 placed in flash region 1 with size 32.

SRAM region             Domain          Permissions
00 07 0x00000 0x10000   Secure          rwxl
08 31 0x10000 0x40000   Non-Secure      rwxl

Peripheral              Domain          Status
00 NRF_P0               Non-Secure      OK
01 NRF_CLOCK            Non-Secure      OK
02 NRF_RTC0             Non-Secure      OK
03 NRF_RTC1             Non-Secure      OK
04 NRF_NVMC             Non-Secure      OK
05 NRF_UARTE1           Non-Secure      OK
06 NRF_UARTE2           Secure          SKIP
07 NRF_TWIM2            Non-Secure      OK
08 NRF_SPIM3            Non-Secure      OK
09 NRF_TIMER0           Non-Secure      OK
10 NRF_TIMER1           Non-Secure      OK
11 NRF_TIMER2           Non-Secure      OK
12 NRF_SAADC            Non-Secure      OK
13 NRF_PWM0             Non-Secure      OK
14 NRF_PWM1             Non-Secure      OK
15 NRF_PWM2             Non-Secure      OK
16 NRF_PWM3             Non-Secure      OK
17 NRF_WDT              Non-Secure      OK
18 NRF_IPC              Non-Secure      OK
19 NRF_VMC              Non-Secure      OK
20 NRF_FPU              Non-Secure      OK
21 NRF_EGU1             Non-Secure      OK
22 NRF_EGU2             Non-Secure      OK
23 NRF_DPPIC            Non-Secure      OK
24 NRF_REGULATORS       Non-Secure      OK
25 NRF_PDM              Non-Secure      OK
26 NRF_I2S              Non-Secure      OK
27 NRF_GPIOTE1          Non-Secure      OK

SPM: NS image at 0x10000
SPM: NS MSP at 0x2001e3f8
SPM: NS reset vector at 0x156f1
SPM: prepare to jump to Non-Secure image.

*** Booting Zephyr OS build v2.6.0-rc1-ncs1  ***
The MQTT simple sample started
I: LTE Link Connecting... 0
%XMODEMSLEEP: 4
%XMODEMSLEEP: 4
%XMODEMSLEEP: 4,0
+CEREG: 0
+CEREG: 2,&amp;quot;6473&amp;quot;,&amp;quot;0014B715&amp;quot;,9
I: Network connection attempt timed out
I: Failed to establish LTE connection: -116
Retrying in 60 seconds
+CEREG: 0
%XMODEMSLEEP: 4
%XMODEMSLEEP: 4,0
I: LTE Link Connecting... 0
I: Failed to establish LTE connection: -120
Retrying in 60 seconds
+CEREG: 0
%XMODEMSLEEP: 4
%XMODEMSLEEP: 4,0
I: LTE Link Connecting... 0
I: Failed to establish LTE connection: -120
Retrying in 60 seconds
+CEREG: 0
%XMODEMSLEEP: 4
%XMODEMSLEEP: 4,0
I: LTE Link Connecting... 0
I: Failed to establish LTE connection: -120
Retrying in 60 seconds
+CEREG: 0
%XMODEMSLEEP: 4
%XMODEMSLEEP: 4,0
I: LTE Link Connecting... 0
I: Failed to establish LTE connection: -120
Retrying in 60 seconds
+CEREG: 0
%XMODEMSLEEP: 4
%XMODEMSLEEP: 4,0
I: LTE Link Connecting... 0
I: Failed to establish LTE connection: -120
Retrying in 60 seconds
+CEREG: 0
%XMODEMSLEEP: 4
%XMODEMSLEEP: 4,0
I: LTE Link Connecting... 0
I: Failed to establish LTE connection: -120
Retrying in 60 seconds
+CEREG: 0&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;It definitely seems to be when I restart a debug session when its in PSM deep sleep.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;In regards to your question, I haven&amp;#39;t had enough time to test, because it doesn&amp;#39;t happen all the time. Its been fine all morning today, then just randomly did it again.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;The next time it happens I might load the AT Client and see if I can work out what AT commands might help restart it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/339555?ContentTypeID=1</link><pubDate>Thu, 18 Nov 2021 08:02:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c190acb9-a02a-45da-8843-9ee5c54e0d65</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Are you are able to share the log output from the device from start to when it receives the error?&lt;br /&gt;&lt;br /&gt;If this is related to PSM, what happens when you remove PSM? Have your tried e.g. Asset Tracker v2?&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/339459?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 14:01:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6054d3ff-5555-49c0-98b1-f28a14631192</guid><dc:creator>DamoL</dc:creator><description>&lt;p&gt;Its the latest DK version, and I am using SDK 1.61.&lt;br /&gt;&lt;br /&gt;Not sure it if will work with a clean version of MQTT, but the only thing I&amp;#39;ve changed is the ability to use PSM. I did wonder if it was an issue where I start a debug session whilst the modem is in deep sleep or something. Even if it is something of that nature, I&amp;#39;d still be more comfortable with a software reset of the modem.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem lock up workaround</title><link>https://devzone.nordicsemi.com/thread/339457?ContentTypeID=1</link><pubDate>Wed, 17 Nov 2021 13:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:89f3494e-5b85-4895-bfe6-22aeefa6b0cb</guid><dc:creator>&amp;#216;yvind</dc:creator><description>&lt;p&gt;Hello Damien,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;What version of the nRF9160DK, nRF Connect SDK and modem FW are you running in your setup? Does it work with a clean version of Simple MQTT?&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>