<?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 Frozen after put into Offline Mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/56167/nrf9160-modem-frozen-after-put-into-offline-mode</link><description>I have seen some situations where putting the modem into offline mode (CFUN=4) will cause my application to lock up because the at_cmd never returns. It looks like this is a pre-existing problem as reported here https://devzone.nordicsemi.com/f/nordic</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Jan 2020 17:12:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/56167/nrf9160-modem-frozen-after-put-into-offline-mode" /><item><title>RE: NRF9160 Modem Frozen after put into Offline Mode</title><link>https://devzone.nordicsemi.com/thread/230145?ContentTypeID=1</link><pubDate>Tue, 21 Jan 2020 17:12:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2108b6da-8c66-4e66-b2cc-35c0e9e12c68</guid><dc:creator>lobaro-theo</dc:creator><description>&lt;p&gt;Hello Sigurd,&lt;/p&gt;
&lt;p&gt;thank you for your reply.&lt;/p&gt;
&lt;p&gt;We will further investigate on this. We close the UDP socket before CFUN4 but two AT Sockets are still open:&lt;/p&gt;
&lt;p&gt;1) for interactive AT command usage&lt;/p&gt;
&lt;p&gt;2) for out of band indications from AT commands&lt;/p&gt;
&lt;p&gt;We will also try to close this two sockets and see if this helps.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Theo&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Modem Frozen after put into Offline Mode</title><link>https://devzone.nordicsemi.com/thread/229922?ContentTypeID=1</link><pubDate>Mon, 20 Jan 2020 15:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3b81992-4834-4bad-a7fd-95d46cbb0cd0</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;We have not been able to reproduce this issue with&amp;nbsp;&lt;span&gt;NCS 1.1.0&lt;/span&gt;&lt;/p&gt;
[quote userid="79239" url="~/f/nordic-q-a/56167/nrf9160-modem-frozen-after-put-into-offline-mode/229187"]Any UDP sockets are NOT closed before using CFUN=4&amp;nbsp; will be reused after wakeup in our implementation[/quote]
&lt;p&gt;Try closing all the UDP sockets before using CFUN=4&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Modem Frozen after put into Offline Mode</title><link>https://devzone.nordicsemi.com/thread/229188?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 10:42:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:42b92eff-5cff-4c13-8608-c99d2a95312d</guid><dc:creator>lobaro-theo</dc:creator><description>&lt;p&gt;&lt;img alt="1nce session log" src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/communityserver-discussions-components-files/4/nrf9160_2D00_CFUN4_2D00_notworking.png" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Modem Frozen after put into Offline Mode</title><link>https://devzone.nordicsemi.com/thread/229187?ContentTypeID=1</link><pubDate>Wed, 15 Jan 2020 10:41:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb861155-ef38-4598-a626-351f37c43204</guid><dc:creator>lobaro-theo</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;we observed the same problem with modem FW1.1 and might supply some more information to find the issue:&lt;/p&gt;
&lt;p&gt;In our test setups the issue occurs quite seldom: once every 5-10 days or so with daily NB.IoT UDP socket uploads + CFUN=4&amp;nbsp;after jobs are done.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Looking at the connection log of our provider (1NCE.com) we see that the connection will simply not closed by the not returning CFUN=4 command. So CFUN=4 does not return and not iniate any connection disconnect on provider side. After some time (2h in our example case) the connection gets closed by the provider but the nRF9160 AT socket waits forever. Any UDP sockets are NOT closed before using CFUN=4&amp;nbsp; will be reused after wakeup in our implementation - this works most of the time.&lt;/p&gt;
&lt;p&gt;In our real implementation we use timeouts on waiting on the AT socket and so we know that the modem power domain flag is set to OFF (&lt;span&gt;NRF_POWER-&amp;gt;POWERSTATUS) after CFUN4 did timeout.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;For us it looks like the modem fw seems to &amp;quot;forget&amp;quot; to work on CFUN=4 and does consequently not answer to the AT command - BUT the modem power domain gets turned off..&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Hope this helps the modem devlopers to track down the issue.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Greetings&lt;br /&gt;Theo&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P.S.:&lt;br /&gt;The problem was using BSD Lib 0.5.0 and our own NON ZEYPHER freeRTOS based interface. So the above mentioned pull request has no relevance to us.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Modem Frozen after put into Offline Mode</title><link>https://devzone.nordicsemi.com/thread/228569?ContentTypeID=1</link><pubDate>Fri, 10 Jan 2020 13:08:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f77e4002-d337-429a-aaee-b6641fd16327</guid><dc:creator>Sigurd</dc:creator><description>[quote user="mlang3440"]Do you know what part of the NCS code base was the cause of this?[/quote]
&lt;p&gt;&amp;nbsp;The issue in the post you linked to, was fixed as part of this PR:&amp;nbsp;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1242"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/pull/1242&lt;/a&gt;&lt;/p&gt;
[quote user=""]some situations where putting the modem into offline mode[/quote]
&lt;p&gt;&amp;nbsp;How often does this happens ?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Could you upload the log output from LTE-Link monitor when the issue happens?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Modem Frozen after put into Offline Mode</title><link>https://devzone.nordicsemi.com/thread/228205?ContentTypeID=1</link><pubDate>Wed, 08 Jan 2020 16:15:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56661f35-3ca9-4320-bf48-afb78306db3d</guid><dc:creator>mlang3440</dc:creator><description>&lt;p&gt;We are using NCS 1.1.0. Do you know what part of the NCS code base was the cause of this?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9160 Modem Frozen after put into Offline Mode</title><link>https://devzone.nordicsemi.com/thread/227745?ContentTypeID=1</link><pubDate>Mon, 06 Jan 2020 15:41:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6119863f-d481-4513-88db-93288e4cc627</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;As mentioned by Håkon &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52819/nrf9160-modem-not-responding-after-switching-to-offline-mode/227704#227704"&gt;here&lt;/a&gt;, this was an issue with the NCS codebase. Let me know if updating your codebase to NCS v1.1.0 does not fix the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>