<?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: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/115803/lwm2m-get-requests-experiencing-timeouts-after-a-certain-duration</link><description>Hello, 
 we are currently in the process of verifying the nRF LwM2M Client, specifically focusing on the Queue Mode functionality. During our testing, we encountered an issue. 
 We configured the LWM2M_QUEUE_MODE_UPTIME parameter to 90 seconds. However</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Dec 2024 09:03:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/115803/lwm2m-get-requests-experiencing-timeouts-after-a-certain-duration" /><item><title>RE: LwM2M: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/thread/513572?ContentTypeID=1</link><pubDate>Thu, 05 Dec 2024 09:03:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:16f6dedb-ad38-4811-ba75-5627506c9a5e</guid><dc:creator>vytautas</dc:creator><description>&lt;p&gt;This was related to both the carrier (MNO) NAT timeout configuration and the one we had on our Linux server.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/thread/508130?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 11:56:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f48849bd-5408-42d0-8dbc-2eea7183ccd0</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;I&amp;#39;m not an employee of Nordic. And Nordic usually ask for the modem trace (not only the capture).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/thread/508127?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 11:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:910794d6-11df-48d7-950d-4fef4581e80d</guid><dc:creator>vytautas</dc:creator><description>&lt;p&gt;You can use&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/lwm2m_5F00_issue_5F00_clientside_5F00_v2.pcapng"&gt;lwm2m_issue_clientside_v2.pcapng&lt;/a&gt;&amp;nbsp;(attached above) for debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/thread/508125?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 11:46:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8460317f-aa1a-4c91-a7dd-699566124d21</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;So, if you don&amp;#39;t send data, then &amp;quot;DRX is not interrupted&amp;quot;. And if you send data, it&amp;#39;s interrupted but after a quiet phase the modem doesn&amp;#39;t receive the data?&lt;/p&gt;
&lt;p&gt;Then I guess you will need a modem-trace (not only the ip-capture) and someone from Nordic may need to check that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/thread/508124?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 11:33:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c6ef434-eb5b-4bd9-8194-af0ed70ef13b</guid><dc:creator>vytautas</dc:creator><description>[quote userid="5203" url="~/f/nordic-q-a/115803/lwm2m-get-requests-experiencing-timeouts-after-a-certain-duration/508049"]That&amp;#39;s the assumption. But what happens, if the &amp;quot;second GET&amp;quot; (after the longer quiet phase) is not used? If you still see the RRC stuff without data, then it&amp;#39;s not caused by downlink data.[/quote]
&lt;p&gt;If no data is sent from the LwM2M server, the DRX is not interrupted. We tested the following intervals: 15 seconds (data received), 31 seconds (no data), 45 seconds (no data), 60 seconds (no data), and 85 seconds (no data). In each case, DRX was interrupted, but only at the 15-second interval did we receive IP data. In all other cases no socket events were set.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/thread/508052?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 06:07:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:08945102-d5bc-4c75-8d16-24a53a0368c0</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; using CoAP may not be a suitable choice for Device Management&lt;/p&gt;
&lt;p&gt;That depends much more on your assumptions. In general, if a device is power constraint, it&amp;#39;s important to have short active times and long sleeping times. Also, if the device communicates in challenging radio environments, it&amp;#39;s important to use less and short radio messages, otherwise the probability to fail is raising.&lt;/p&gt;
&lt;p&gt;Systems, which &amp;quot;requires&amp;quot; to push data to the device, will be in conflict with the &amp;quot;long sleep&amp;quot;. But if your device isn&amp;#39;t power constraint (and maybe the SIM card is also not data-volume constraint), then you may use what ever protocol you want and push data to that always awake device at that &amp;quot;high costs&amp;quot;.&lt;/p&gt;
&lt;p&gt;But in many use-cases, the trade off between that costs (energy+data) and that ability to &amp;quot;push&amp;quot; data to the device, does not go for the &amp;quot;push&amp;quot;. In quite a lot of use-cases it&amp;#39;s OK, that the device always initiates the communication and the server is only able to send data back for a short interval, not because of the NAT (which also limits that), that&amp;#39;s because of the energy consumption. You will need a definition, how long the device should wait for data, before it goes to sleep. And then you need to adapt the usage of RAI accordingly (signalling the modem what to expect). In that scenario, waiting for more than 30s seems to be a waste of energy in the first place.&lt;/p&gt;
&lt;p&gt;So, in my experience, quiet a lot systems are mainly using frequent &amp;quot;system alive/heartbeat messages&amp;quot; (e.g. every hour) send to the server to indicate the system&amp;#39;s health. That offers then the server the chance to send something back. With that, a Thingy:91 runs from it&amp;#39;s battery for a year, exchanging every hour a message.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/thread/508049?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 05:49:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73c0d55e-ad6e-4a81-926e-508d094d4985</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; The issue appears to be that the network interrupts the DRX cycle to signal downlink traffic, but no data actually arrives.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;That&amp;#39;s the assumption. But what happens, if the &amp;quot;second GET&amp;quot; (after the longer quiet phase) is not used? If you still see the RRC stuff without data, then it&amp;#39;s not caused by downlink data.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LwM2M: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/thread/508043?ContentTypeID=1</link><pubDate>Mon, 28 Oct 2024 04:37:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:637beb9d-6529-4e3f-a3ce-44effc6dbfaf</guid><dc:creator>vytautas</dc:creator><description>&lt;div class="flex max-w-full flex-col flex-grow"&gt;
&lt;div dir="auto" data-message-author-role="assistant" data-message-id="5832819a-1dcb-4c3b-b406-1d6cb3e94b0a" data-message-model-slug="gpt-4o"&gt;
&lt;div&gt;
&lt;div class="markdown prose w-full break-words dark:prose-invert dark"&gt;
&lt;p&gt;As noted above, we&amp;rsquo;ve observed that sending a message within 30 seconds of a previous operation&amp;mdash;such as a registration or a GET request&amp;mdash;consistently succeeds. The issue appears to be that the network interrupts the DRX cycle to signal downlink traffic, but no data actually arrives. My assumption is that if CG-NAT were dropping the tunnel, we wouldn&amp;rsquo;t be woken up at all. Could you clarify if this interpretation is accurate?&lt;/p&gt;
&lt;p&gt;Alternatively, if this behavior is intentional, do you have experience regarding how long CG-NAT typically keeps the tunnel open? If the timeout is as short as 30 seconds, it would appear that LwM2M using CoAP may not be a suitable choice for Device Management; yet it seems to be quite popular in IoT.&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f615.svg" title="Confused"&gt;&amp;#x1f615;&lt;/span&gt;&lt;/p&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: LwM2M: GET Requests Experiencing Timeouts After a Certain Duration</title><link>https://devzone.nordicsemi.com/thread/508026?ContentTypeID=1</link><pubDate>Sun, 27 Oct 2024 08:53:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ffd58fd2-b48a-41e9-920f-9a3dcb418e48</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; likely triggered by downlink messaging.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Maybe you verify that by tests without &amp;quot;GET 2&amp;quot;? If you see that only if you use GET 2 but not if you don&amp;#39;t use GET 2, then the assumption will be verified. Otherwise it&amp;#39;s just a NAT issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>