<?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 MQTT Download Data Timeout</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/129063/nrf9160-modem-mqtt-download-data-timeout</link><description>Hello, 
 I have been chasing this problem for some time, but it has been difficult to capture. 
 The issue occurs when the device is sitting idle (no eDRX or other power-saving modes are enabled). The MQTT ping timeout is set to 60 seconds, so the device</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 04 Sep 2026 13:29:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/129063/nrf9160-modem-mqtt-download-data-timeout" /><item><title>RE: nRF9160 Modem MQTT Download Data Timeout</title><link>https://devzone.nordicsemi.com/thread/570936?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2026 13:29:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b70a85d-af37-4f61-82e5-90426528920c</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user="Eizens"]So my question first question is: is there any clue about what caused this problem, such as missed pages, or why the device did not receive the command for 19.4 seconds?[/quote]
&lt;p&gt;I checked the modem trace more in depth in the last 20 seconds before receiving the command, but couldn&amp;#39;t really find anything going wrong...&lt;/p&gt;
&lt;p&gt;From the modem point of view he was still receiving the paging every 2.54 seconds. And only on the last one he received the command.&lt;/p&gt;
[quote user="Eizens"]Therefore, Device No. 2 has ping times of up to around 1.3 seconds more frequently, as the device is in the RRC connected state more often.[/quote]
&lt;p&gt;I guess that when doing these pings you are sending every ping with more than 30 seconds intervals in between the pings.&lt;/p&gt;
&lt;p&gt;I think that checks out perfectly with the 2.54 seconds of paging that I&amp;#39;m seeing in the trace as the average time added to receive a message should be around half of the paging time.&lt;/p&gt;
[quote user="Eizens"]I did not have the modem trace enabled at the time, but I noticed that the device switched cells, and the downlink data was not received for around 170 seconds.[/quote]
&lt;p&gt;That looks a bit too long for simply changing network. I guess a modem trace would have really helped here.&lt;/p&gt;
[quote user="Eizens"]So yes, I have seen this problem with multiple devices in different locations, but they are all connected to the same operator in a single country. I don&amp;#39;t know if the problem I am describing in this ticket is the same as what happened with Devices No. 1–4.[/quote]
&lt;p&gt;It doesn&amp;#39;t look related to me. What operator and in which country did that happen? I can ask internally if maybe someone&amp;nbsp;knows something about it.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem MQTT Download Data Timeout</title><link>https://devzone.nordicsemi.com/thread/570897?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2026 13:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b43bc556-9a0a-4ca3-860c-dd7bd87b0f33</guid><dc:creator>Eizens</dc:creator><description>&lt;p class="isSelectedEnd"&gt;&lt;span&gt;I will try to explain the problem a little further, but the text may be somewhat all over the place, as it is hard to precisely define the problem. However, here are some of my observations, and I will also add some additional questions.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;strong&gt;&lt;span&gt;1)&lt;/span&gt;&lt;/strong&gt;&lt;span&gt; Our devices are stationary, but one thing I have observed is that this problem happens more often when a device is continually switching between two cells.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;My question is: is there any period when the modem is not reachable due to some internal process, such as periodic cell searching or something similar, where the modem does not report that there is no connection?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;As I understand it, the GPS part of the modem could potentially cause something like this, but I don&amp;#39;t use GPS.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;strong&gt;&lt;span&gt;2)&lt;/span&gt;&lt;/strong&gt;&lt;span&gt; Here is a histogram of the ping times for two devices. This is just an interesting observation.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;The two devices are located at the same spot and have similar signal strength. Both are switching between two cells. The histogram shows the results of around 350 random pings. Time is in milliseconds.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;For Device No. 1, the maximum ping time was 7 seconds, while for Device No. 2 it was 25 seconds + it is all over the place with timeout of 23s, 22s, 21s, 19s etc.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1788442100837v1.png" /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1788442107595v2.png" /&gt;&lt;br /&gt;&lt;br /&gt;The only difference between these two devices is the MQTT keepalive time: for Device No. 1, it is 120 seconds, while for Device No. 2, it is 30 seconds.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;Therefore, Device No. 2 has ping times of up to around 1.3 seconds more frequently, as the device is in the RRC connected state more often.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;To rule out the possibility that this is related to the MQTT keepalive time, here is also a histogram for Device No. 3, which is in a different location, camped on a single tower, and also has a 30-second MQTT keepalive.&lt;br /&gt;&lt;br /&gt;&lt;img style="max-height:240px;max-width:320px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1788442122922v3.png" /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;strong&gt;&lt;span&gt;3)&lt;/span&gt;&lt;/strong&gt;&lt;span&gt; I also reported this problem to the operator with another device (we can call this device No4), and today I received their response.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;&lt;span&gt;I initially contacted them because the device had a period of around 170 seconds during which it was not reachable. This was Device No. 4, which is in my office for testing. The device is also bouncing between two cells.&lt;/span&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd"&gt;I did not have the modem trace enabled at the time, but I noticed that the device switched cells, and the downlink data was not received for around 170 seconds.&lt;br /&gt;&lt;br /&gt;Here is response from operator:&lt;/p&gt;
&lt;p class="isSelectedEnd" style="padding-left:30px;"&gt;&lt;em&gt;From the network side, it looks as follows (the time is given in UTC in the client traces; LV time was 12:42:31 when the message delivery time was 170 seconds):&lt;/em&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd" style="padding-left:30px;"&gt;&lt;em&gt;At 12:40:03 &amp;mdash; paging &amp;rarr; OK&lt;/em&gt;&lt;br /&gt;&lt;em&gt;From 12:42:03 to 12:43:55, all paging messages went unanswered.&lt;/em&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd" style="padding-left:30px;"&gt;&lt;em&gt;Paging messages are being sent to the BS and TAC. However, the device does not respond until it establishes a new active RRC connection after switching to idle mode on another cell.&lt;/em&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd" style="padding-left:30px;"&gt;&lt;em&gt;While the device is in idle mode, it must listen to the paging channels and know when to listen. In our case, the paging occasion parameters are identical in all cells &amp;mdash; Cell A does not differ from Cell B &amp;mdash; so the device should be listening for paging in the same way.&lt;/em&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd" style="padding-left:30px;"&gt;&lt;em&gt;From the core network side, it is visible that paging messages are being sent and retransmitted, but there are no responses from the device.&lt;/em&gt;&lt;/p&gt;
&lt;p class="isSelectedEnd" style="padding-left:30px;"&gt;&lt;em&gt;To see the full picture in more detail, we need to agree on recording new log files on both the BS and UE sides so that the complete picture is visible.&lt;/em&gt;&lt;/p&gt;
&lt;p style="padding-left:30px;"&gt;&lt;em&gt;Please send us the number, location, and times when the test could be performed.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So I will try to create a new test where I have the modem trace enabled, along with logging enabled on the network side by the operator.&lt;/p&gt;
&lt;p&gt;However, this happens so rarely that it is difficult to capture. Sometimes I get lucky and see an extensive timeout within a 1-hour period, while other times it takes more than 24 hours which makes the trace capture more difficult.&lt;/p&gt;
&lt;p&gt;So yes, I have seen this problem with multiple devices in different locations, but they are all connected to the same operator in a single country. I don&amp;#39;t know if the problem I am describing in this ticket is the same as what happened with Devices No. 1&amp;ndash;4.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem MQTT Download Data Timeout</title><link>https://devzone.nordicsemi.com/thread/570889?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2026 12:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:38a0eb08-1337-4dd8-9cd8-4aed87ddd954</guid><dc:creator>Eizens</dc:creator><description>&lt;p&gt;&lt;span&gt;Yes, the place you are looking at is correct.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Regarding the time: I don&amp;#39;t know why, but the time in my PC trace is off by ~30 minutes compared to the server/MQTT broker time. So yes, you are looking at the correct place.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Yes, when I receive the /command, I immediately send the /state response. But the problem happens before that.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;The sequence is:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;1. The server sends a /command.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;2. The device does not receive this message for 19.4 seconds.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;3. The server sends a second /command.&lt;/span&gt;&lt;br /&gt;&lt;span&gt;4. The device receives both /command messages at the same time.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;So my question first question is: is there any clue about what caused this problem, such as missed pages, or why the device did not receive the command for 19.4 seconds?&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&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 MQTT Download Data Timeout</title><link>https://devzone.nordicsemi.com/thread/570845?ContentTypeID=1</link><pubDate>Wed, 02 Sep 2026 14:52:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4396a611-7dcc-426c-9872-3fa62269660d</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure that I see the same thing as you do... The only place that somewhat matches your description is this:&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1788360298385v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;And in the trace we can see that the time from the &amp;quot;&lt;code&gt;commands/&lt;/code&gt;&amp;quot; to the acknowledgment of the &amp;quot;&lt;code&gt;state/&lt;/code&gt;&amp;quot; is less than a second.&lt;/p&gt;
&lt;p&gt;Am I in the wrong place? It seems my timestamps don&amp;#39;t go past 19:20.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem MQTT Download Data Timeout</title><link>https://devzone.nordicsemi.com/thread/570780?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2026 13:27:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb8775f-3fc5-4282-b26b-ff6311c837f7</guid><dc:creator>Eizens</dc:creator><description>&lt;p&gt;Hello,&lt;br /&gt;SDK version&amp;nbsp;is v3.1.1 and modem firmware is&amp;nbsp;&lt;span&gt;mfw_nrf9160_1.3.7.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 Modem MQTT Download Data Timeout</title><link>https://devzone.nordicsemi.com/thread/570777?ContentTypeID=1</link><pubDate>Tue, 01 Sep 2026 13:11:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8c58e64e-4273-42eb-b80c-cdfdf06b7001</guid><dc:creator>Simon D-M</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What SDK version and Modem firmware version are you using ?&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>