<?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 large difference in connection duration</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/97309/nrf9160-large-difference-in-connection-duration</link><description>Dir Sir/Madam, 
 I let the UDP example run for 20 minutes. I changed the example to make a second connection after 90 seconds and then every 5 minutes. Every time it connects it sends 38 bytes of data. Why is the acivity duration / power consumption so</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Mar 2023 11:49:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/97309/nrf9160-large-difference-in-connection-duration" /><item><title>RE: nRF9160 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/415679?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 11:49:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0d457def-0a3c-45de-a342-298f0d23d368</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; We will swap to another provider&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just take care. If it&amp;#39;s a &amp;quot;global SIM&amp;quot; 9xxxx and you use mfw 1.3.2 or newer, there is a pitfall with HPPLMN searchs (that depends also on the HPPLMN search interval on the SIM). With such a SIM you will be faced a couple of searches for a 9xxxx network, even if your just in a common country. In my case that caused 1800mC every 2h (2h is the search interval on my previous SIM cards).&lt;/p&gt;
&lt;p&gt;Good luck. It&amp;#39;s not easy to find SIM cards, which are really fits low power use-cases.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/415669?ContentTypeID=1</link><pubDate>Thu, 16 Mar 2023 11:31:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bddaa18f-6f64-423a-a735-03029e6c4de3</guid><dc:creator>Willem21</dc:creator><description>&lt;p&gt;Hi Achim,&lt;/p&gt;
&lt;p&gt;We will swap to another provider since the Telenor SIM always uses roaming&lt;br /&gt;and there is no guarantee that PSM/cDRX/eDRX is available.&lt;br /&gt;This case can be closed.&lt;/p&gt;
&lt;p&gt;Thanks for the support.&lt;/p&gt;
&lt;p&gt;With best regards,&lt;/p&gt;
&lt;p&gt;Willem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/413605?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 15:46:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee71ba29-d427-4de9-a2d9-5dcb0b44c296</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; The Wireshark capture still shows TCP IP messages, so think it are the real messages?&lt;/p&gt;
&lt;p&gt;Yep, then ask your network provider.&lt;/p&gt;
&lt;p&gt;&amp;gt; I use LTE-M to use minimal power.&lt;/p&gt;
&lt;p&gt;In my experience, LTE-M PSM without RAI is not better than NB-IoT PSM with RAI (100mC vs. 80mC with about 10s RRC activity timer).&lt;/p&gt;
&lt;p&gt;&amp;gt; Is it correct that I can&amp;#39;t use RAI with LTE-M?&lt;/p&gt;
&lt;p&gt;AFAIK that depends on your provider and the modem support. I&amp;#39;ve seen someone wrote to use AS RAI for LTE-M (see &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fnw_service%2Frai.html"&gt;nRF9160 - AT RAI&lt;/a&gt; ), but I never managed to used it successful for now.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/413567?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 13:55:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cef6e04-5338-4204-8aa3-1bd222a72bc9</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;You&amp;#39;ll see in the pcapng the RRCConnectionRelease. It&amp;#39;s always about 20s after the last traffic.&lt;/p&gt;
&lt;p&gt;The unintended TCP traffic is then from 15-200s. If you can get rid of it, you have the most done.&lt;/p&gt;
&lt;p&gt;If you then want to optimize the left 20s, the consider to use RAI, if that&amp;#39;s possible for your use-case.&lt;/p&gt;
&lt;p&gt;But the very first thing is to ask your provider.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/413551?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 13:16:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74395c9e-47f1-44a7-915b-42ae541779ec</guid><dc:creator>Willem21</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve no more logging than shown in &amp;quot;serial log.txt&amp;quot;, .pcapng and .bin.&lt;br /&gt;How can I enable the logging of &amp;quot;RRC connection&amp;quot;?&lt;/p&gt;
&lt;p&gt;Thanks for you reply in advance.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Willem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/413546?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 13:06:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8f35757-373b-424e-b1d6-793f56b7b657</guid><dc:creator>Willem21</dc:creator><description>&lt;p&gt;&amp;quot;Autoselect Trace DB&amp;quot; was enabled, so the correct database should be selected&lt;br /&gt;I repeated the trace with &amp;quot;Select Trace DB&amp;quot; &amp;quot;mfw_nrf9160_1.3.4_trace-db.json&amp;quot;&lt;br /&gt;The Wireshark capture still shows TCP IP messages, so think it are the real messages?&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/trace_2D00_2023_2D00_03_2D00_06T09_2D00_19_2D00_01.043Z.pcapng"&gt;devzone.nordicsemi.com/.../trace_2D00_2023_2D00_03_2D00_06T09_2D00_19_2D00_01.043Z.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I use LTE-M to use minimal power.&lt;br /&gt;Is it correct that I can&amp;#39;t use RAI with LTE-M?&lt;br /&gt;Is there another solution for LTE-M?&lt;/p&gt;
&lt;p&gt;I will also ask the provider.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/413493?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 11:43:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6efff468-6098-4d80-a4e1-870f8601d2cb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&amp;nbsp;Willem&lt;/p&gt;
&lt;p&gt;Just to add to what Achim has already written. From the power profiler trace this seems to be the RRC connection timing out. Since the network provider is the deciding factor on how long the RRC inactivity timer should be, it seems to set different timeouts upon every connection, which seems strange to me, but I think it&amp;#39;s entirely up to the network provider to set it, and that it doesn&amp;#39;t&amp;nbsp;&lt;strong&gt;have&amp;nbsp;&lt;/strong&gt;to be constant. Upon connection, is there any logging showing what the RRC connection is set to perhaps?&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 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/413476?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 10:32:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6053e8bb-c883-4692-b0b1-e05f752892e1</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;&amp;gt; Are all these incoming TCP IP-messages necessary?&lt;/p&gt;
&lt;p&gt;Do you use the right database for the mfw 1.3.4 and the capture therefore shows the real messages?&lt;/p&gt;
&lt;p&gt;The TCP stuff is sure not necessary. In my opinion it should not be forwarded from the provider to the modem at all. But from the &amp;quot;cellular network&amp;quot;, this are messages, which keeps the modem in RRC connected and so it enters the sleep mode delayed.&lt;/p&gt;
&lt;p&gt;That TCP stuff is not originated from the modem (at least, I see only incoming messages, which are then answered).&lt;/p&gt;
&lt;p&gt;There are three ways to go:&lt;/p&gt;
&lt;p&gt;- ask your provider, why such TCP sync messages are forwarded to your modem and which other choices are offered.&lt;/p&gt;
&lt;p&gt;- Switch of the modem with CFUN=0 and on again with CFUN=1. Switching every 5 Minutes you need also to check with your provider, if this is allowed. Not that your device gets blocked by the provider for too many registrations.&lt;/p&gt;
&lt;p&gt;- enable RAI for &amp;quot;no response&amp;quot; (4, just one outgoing message). But once you want the receive an answer back, &amp;quot;one response&amp;quot; (3) will be required and if you check the times in the capture, then this may fail because of the unintended TCP traffic.&lt;/p&gt;
&lt;p&gt;My conclusion:&lt;/p&gt;
&lt;p&gt;Ask you provider about the TCP message and the available network options.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/413469?ContentTypeID=1</link><pubDate>Mon, 06 Mar 2023 10:12:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ff95c07c-8471-482c-b874-c465dab91fba</guid><dc:creator>Willem21</dc:creator><description>&lt;p&gt;Are all these incoming TCP IP-messages necessary?&lt;br /&gt;In order to safe power: &lt;br /&gt;Is it possible to shut down all communications just after the UDP message is send?&lt;br /&gt;And reconnect when it&amp;#39;s time to send the next UDP message?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: nRF9160 large difference in connection duration</title><link>https://devzone.nordicsemi.com/thread/413332?ContentTypeID=1</link><pubDate>Fri, 03 Mar 2023 18:53:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6864f2d3-d7ea-4370-8707-b0edbb42f4ca</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;The capture shows some outgoing UDP traffic from the device to 8.8.8.8, that&amp;#39;s what the sample does.&lt;/p&gt;
&lt;p&gt;And it shows a lot of additional incoming TCP IP-messages from several other peers, which are then answered from the device, why ever.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure, if that capture was extracted with the right database version for mfw 1.3.4. If so, your providers gateway/breakout forward a lot of traffic, which keeps your device &amp;quot;connected&amp;quot;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>