<?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>lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/73873/lwm2m_engine-notifications-causing-modem-send-to-lock-up</link><description>We&amp;#39;re developing a product using NB-IoT, lwm2m and the nordic nrf9160 mcu. 
 What we&amp;#39;re observing ist, that using the latest nordic connect sdk, multiple lwm2m ressource notifications cause the modem socket library to indefinitely block on send() calls</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 16 Apr 2021 08:22:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/73873/lwm2m_engine-notifications-causing-modem-send-to-lock-up" /><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/305226?ContentTypeID=1</link><pubDate>Fri, 16 Apr 2021 08:22:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fae3bd4d-40ff-4368-819a-8b8618de70dd</guid><dc:creator>HFled</dc:creator><description>&lt;p&gt;The likelihood of triggering this seems to be dependant on the quality of the connection. When the connection is bad (rsrp -115db) the failure happens almost immediately.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/305151?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 15:21:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3257900f-6649-4894-a131-56a903db407b</guid><dc:creator>Paul Kajdewicz</dc:creator><description>&lt;p&gt;It seems, that the modem is completely unreachable after this lockup.&lt;/p&gt;
&lt;p&gt;I periodically read out modem data via modem_info_params(). After being stuck at &amp;#39;&amp;#39;&amp;lt;inf&amp;gt; net_lwm2m_engine: Resending message: ...&amp;#39;&amp;#39;, the modem_info_params() does not return anymore.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/305144?ContentTypeID=1</link><pubDate>Thu, 15 Apr 2021 14:42:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8462b81-b9d2-4f92-bd6d-0def8175f750</guid><dc:creator>caspar.friedrich</dc:creator><description>&lt;p&gt;In addition: The modem stops notifying anything after this point.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/304859?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 13:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:448f2a03-9dfd-4973-bba3-51f661390fb0</guid><dc:creator>HFled</dc:creator><description>&lt;p&gt;No worries!&lt;/p&gt;
&lt;p&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="background-color:#ffffff;color:#000000;"&gt;modem version: mfw_nrf9160_1.2.3&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/304849?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 13:25:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef93a0d9-f3e3-44b9-9799-9b80e3ed74da</guid><dc:creator>Heidi</dc:creator><description>&lt;p&gt;Hi! Apologies for the late reply.&lt;/p&gt;
&lt;p&gt;I just need the MFW version you are using to decode the modem trace you attached, and then we can take a look.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Heidi&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/304681?ContentTypeID=1</link><pubDate>Wed, 14 Apr 2021 00:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6f4d2f4c-c198-411a-a51b-11daf87562a4</guid><dc:creator>HFled</dc:creator><description>&lt;p&gt;ncs commit 89427822a05a5fae1ed578fffc45145075dae8b0 &amp;quot;works&amp;quot;, though it regularly produces this error: &lt;pre class="ui-code" data-mode="text"&gt;[00:00:50.957,580] &amp;lt;err&amp;gt; net_lwm2m_engine: Poll reported a socket error, 09.
[00:00:50.957,580] &amp;lt;err&amp;gt; net_lwm2m_rd_client: RD Client socket error: 5&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;But at least it doesn&amp;#39;t lock up and recovers.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;ncs commit 7971211ea2d05a1a1bf5ffc5a4f3c4a728520f56 locks up, same as v1.5.0. &lt;br /&gt;There&amp;#39;s commit&amp;nbsp; 0ac4f23e4f501a310fd9c2d1f46b1bb419a028d5&lt;br /&gt;in betrween the two that updates the zephyr sdk from 3420cde0e37be536cda67f293784dcc1c6a92001 to 21046b8cdb4eac989c6b17bb21ffc8196be3d5e4, which I suspect is the actual culprit, but doesn&amp;#39;t build.&lt;/p&gt;
&lt;p&gt;Unfortunately I&amp;#39;ve not yet figured out how to bisect properly through two levels of west manifests... What I can say though is that cherry-picking all lwm2m-related changes onto 3420cde0e37be536cda67f293784dcc1c6a92001 does not cause the lock up to happen, so the issue seems to be somewhere else.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/304678?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 22:08:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f1e70807-4763-428a-970e-62d687d0b4d0</guid><dc:creator>HFled</dc:creator><description>&lt;p&gt;Okay, apparently it only significantly reduces the chance of this happening. When upping the number of notications to 75/5s it still happens. Still seems to be ~good with 1.4.2 (I don&amp;#39;t see the lock up, but the fw crashes after 1-2 minutes. 1.5.0 locks up way earlier. Bisecting again.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/304528?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 12:26:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47eb7f66-0cec-4aea-b44d-b3d9122c4036</guid><dc:creator>HFled</dc:creator><description>&lt;p&gt;reverting &lt;span class="sha-block"&gt;&lt;span class="sha user-select-contain"&gt;ecebb6fdb34a213af294061529ef352c4ee73927&lt;/span&gt;&lt;/span&gt; from ncs v1.5.0 also fixes the issue in our actual fw.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/304495?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 11:35:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7f9c2e3a-dbf1-476e-a89a-b6780700e5a2</guid><dc:creator>HFled</dc:creator><description>&lt;p&gt;I believe I have bisected the issue to this commit: &lt;a href="https://github.com/nrfconnect/sdk-nrf/commit/ecebb6fdb34a213af294061529ef352c4ee73927"&gt;github.com/.../ecebb6fdb34a213af294061529ef352c4ee73927&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;This is slightly surprising to me, since the code to reproduce this does not use dtls in any way, so I don&amp;#39;t know why exactly this would change the behaviour, but it seems to. The previous commit (ae48249e1dee1510358e7871d12fe18953bbb152) works without issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: lwm2m_engine notifications causing modem send to lock up</title><link>https://devzone.nordicsemi.com/thread/304460?ContentTypeID=1</link><pubDate>Tue, 13 Apr 2021 09:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e8087bd8-c2e8-45d7-9402-5159a486de3a</guid><dc:creator>HFled</dc:creator><description>&lt;p&gt;This appears to be a regression between sdk-nrf versions 1.4.2 and 1.5.0. After changing the referenced version to 1.4.2 and adjusting the INIT_OBJ_RES_OPT call to the old signature, I don&amp;#39;t observe the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>