<?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>NRF9161 - modem stacks outgoing messages and then flushes it: can this be handled?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/125237/nrf9161---modem-stacks-outgoing-messages-and-then-flushes-it-can-this-be-handled</link><description>Hi, we are still struggling with nrf9161 behavior and trying to mitigate data sending dropouts ( and ). 
 Here is one partial issue: we are currently using UDP and flushing data to an application server. It seems that the modem behaves as follows: the</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 27 Oct 2025 14:15:49 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/125237/nrf9161---modem-stacks-outgoing-messages-and-then-flushes-it-can-this-be-handled" /><item><title>RE: NRF9161 - modem stacks outgoing messages and then flushes it: can this be handled?</title><link>https://devzone.nordicsemi.com/thread/552512?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 14:15:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:11f5c3f7-9cf4-4775-bfd0-2171931622ac</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;There is no explicit flush command.&lt;/p&gt;
&lt;p&gt;The simplest form of a &amp;quot;flush&amp;quot; in this scenario is to&amp;nbsp;close the socket. CONEVAL can be run prior to the send() operation to ensure that your network conditions are optimal or per your required level (see &amp;quot;energy_estimate&amp;quot; field).&lt;/p&gt;
[quote user="marsal"]If you would look at (already mentioned)&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/125025/nrf9161-signal-strength-measurment-seems-to-break-tcp-ip-connection---any-solution-suggestion"&gt;NRF9161 signal strength measurment seems to break TCP/IP connection - any solution/suggestion?&lt;/a&gt;&amp;nbsp;&amp;nbsp;, we suspect that the process of signal measurement can co-cause the data transfer drops.[/quote]
&lt;p&gt;Your RSRP is returned as 27 (-140 + 27 = -113 dBm) which is below the receiver sensitivity limit for CatM1:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ps_nrf9151/page/_tmp/alta.nRF9151/autodita/APPLICATION.RADIOLTE/parameters.rf_spec_rx_m1.html"&gt;https://docs.nordicsemi.com/bundle/ps_nrf9151/page/_tmp/alta.nRF9151/autodita/APPLICATION.RADIOLTE/parameters.rf_spec_rx_m1.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The linked&amp;nbsp;case highlights your signal strength as a problem, thus the required keepalive (as given by the whole network chain, routing/server/etc) is not maintained, and the TCP connection drops.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9161 - modem stacks outgoing messages and then flushes it: can this be handled?</title><link>https://devzone.nordicsemi.com/thread/552498?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 13:51:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a2cbfa5-b5d6-445c-968e-0a3b03224e34</guid><dc:creator>marsal</dc:creator><description>&lt;p&gt;Thanks a lot, Hakon! The scenario is correct. If I understand well, you suggest to run AT%CONEVAL? How long it takes and does it interfere with the data being sent/received? If you would look at (already mentioned)&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/125025/nrf9161-signal-strength-measurment-seems-to-break-tcp-ip-connection---any-solution-suggestion"&gt;NRF9161 signal strength measurment seems to break TCP/IP connection - any solution/suggestion?&lt;/a&gt;&amp;nbsp;&amp;nbsp;, we suspect that the process of signal measurement can co-cause the data transfer drops.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF9161 - modem stacks outgoing messages and then flushes it: can this be handled?</title><link>https://devzone.nordicsemi.com/thread/552496?ContentTypeID=1</link><pubDate>Mon, 27 Oct 2025 13:45:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c8f6e960-a91d-4697-b04e-7154cbebdefb</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]Here is one partial issue: we are currently using UDP and flushing data to an application server. It seems that the modem behaves as follows: the UDP stack/modem seems to stack incoming messages but when the modem has an connection dropout, it does not send them. When the connection comes back, the modem flushes &amp;quot;old&amp;quot; messages. For our business case, they are not useful and we would like to discard these &amp;quot;old&amp;quot; messages when the modem reconnects. Is such behavior possible to achieve? Or I need to rely on some UDP level only?[/quote]
&lt;p&gt;The issue is when there is a handover from one cell tower to another, and LTE based re-transmissions occur, effectively sending older UDP based payloads.&lt;/p&gt;
&lt;p&gt;In your application, this is not wanted, and you want to flush those buffers.&lt;/p&gt;
&lt;p&gt;Is this correct?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If I have understood the scenario correct (please correct me if I am mistaken); then you can close and re-open the UDP based socket. This will flush it.&lt;/p&gt;
&lt;p&gt;Another option is to check the current network conditions by running AT%CONEVAL command:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/mob_termination_ctrl_status/coneval_set.html"&gt;https://docs.nordicsemi.com/bundle/ref_at_commands_nrf91x1/page/REF/at_commands/mob_termination_ctrl_status/coneval_set.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Kind regards,&lt;/p&gt;
&lt;p&gt;Håkon&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>