<?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>Long PSM delay problem in NB-IoT mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114576/long-psm-delay-problem-in-nb-iot-mode</link><description>While testing CoAP with NB-IoT I normally get PSM (sleep) delay = 20s before PSM mode is set (0.5mA with UART enabled), but after awhile PSM delay increases to ~4.5min (at 34mA) after each transmission has finished. I enabled a modem trace and the Wireshark</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Apr 2025 10:39:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114576/long-psm-delay-problem-in-nb-iot-mode" /><item><title>RE: Long PSM delay problem in NB-IoT mode</title><link>https://devzone.nordicsemi.com/thread/532783?ContentTypeID=1</link><pubDate>Thu, 24 Apr 2025 10:39:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e9b22fb8-bb09-4a4b-a994-b4ed764a251e</guid><dc:creator>Hakon</dc:creator><description>[quote user="RoryL"]I suggest to consider if a shorter default timeout could be used or enabled in the future?[/quote]
&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;thanks for the suggestion. Can you please make a separate ticket for this to have it formally submitted as a feature request?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long PSM delay problem in NB-IoT mode</title><link>https://devzone.nordicsemi.com/thread/530930?ContentTypeID=1</link><pubDate>Tue, 08 Apr 2025 05:50:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:443c20be-6c06-4fb8-b690-0ae0000625d6</guid><dc:creator>RoryL</dc:creator><description>&lt;p&gt;Just to follow up on this fault report - after further investigation I found that the long PSM sleep delay (~300s) only happened when connected to a certain cell ID. It didn&amp;#39;t happen when connected to other NB-IoT cell IDs from the same location. After sharing the problem with our network provider they agreed that one of their (3) suppliers had a fault in their equipment. This is why our devices sometimes did not receive &amp;quot;RRCConnectionRelease-NB&amp;quot; from the network. In the last month they have now fixed this and the problem isn&amp;#39;t happening any more (PSM takes about 1s with CP-RAI instead of ~300s).&lt;br /&gt;&lt;br /&gt;If possible I would still like to hear confirmation from Nordic Semi about the 300s PSM delay from the modem (v1.3.6)&amp;nbsp; when this fail condition existed. This is a very long default idle timeout - that is very hard on a battery. I suggest to consider if a shorter default timeout could be used or enabled in the future?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long PSM delay problem in NB-IoT mode</title><link>https://devzone.nordicsemi.com/thread/502220?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 05:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b9e8de4c-39a3-427f-a3d8-e824d2e1ddd1</guid><dc:creator>Achim Kraus</dc:creator><description>[quote userid="135740" url="~/f/nordic-q-a/114576/long-psm-delay-problem-in-nb-iot-mode/502214"]I&amp;#39;m hoping that Nordic support will be able to take a look at the log files and comment on the questions I have raised above.[/quote]
&lt;p&gt;I guess, that you will get asked to provide to full &amp;quot;modem-trace&amp;quot;, not only the extracted wireshark-capture. The Cellular Monitor provides that trace under &amp;quot;RAW file name&amp;quot; with the ending &amp;quot;.mtrace&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long RRC idle delay problem in NB-IoT mode</title><link>https://devzone.nordicsemi.com/thread/502216?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 04:21:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aca67a3a-f5d5-43f3-bf32-16321eefe52a</guid><dc:creator>RoryL</dc:creator><description>&lt;p&gt;Yes sorry - I should have said I am concerned by the time is it is taking for PSM (sleep) mode, not the time to RCC idle. And for my use-case it should normally take 20s - from RRC inactivity timer (20s) + Active timer (0s).&lt;/p&gt;
&lt;p&gt;I understand on your comments regarding RAI. The above problem happens when I leave AT%XRAI=0 (I only mentioned that I once tried AT%XRAI=3 to see if it made a difference, and it did, but I would need to use this feature properly, and I really want to understand why the PSM (sleep) delay can be 4.5min (while AT%XRAI=0).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long RRC idle delay problem in NB-IoT mode</title><link>https://devzone.nordicsemi.com/thread/502214?ContentTypeID=1</link><pubDate>Thu, 12 Sep 2024 04:08:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56292878-04c4-4932-9e2e-a3f5fad0009d</guid><dc:creator>RoryL</dc:creator><description>&lt;p&gt;Thank you Achim,&lt;/p&gt;
&lt;p&gt;I looked at several posts where HPPLMN has been mentioned before (e.g. &amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/90290/nrf9160-dk---sometimes-busy-for-1-minute-before-entering-psm/385585"&gt;RE: nRF9160-DK - sometimes busy for 1 minute before entering PSM&lt;/a&gt; and&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/94091/psm-active-time-not-correct/396929"&gt;RE: PSM active time not Correct&lt;/a&gt;). My SIM card is not roaming so from the other posts it seems that the problem is not HPPLMN in my case. e.g. The %XMONITOR response shows: Registered home network (not roaming), and Active time&amp;nbsp; = 0:&lt;br /&gt;%XMONITOR: 1,&amp;quot;Spark NZ&amp;quot;,&amp;quot;Spark&amp;quot;,&amp;quot;53005&amp;quot;,&amp;quot;9903&amp;quot;,9,28,&amp;quot;09BCBCE7&amp;quot;,176,9218,52,28,&amp;quot;&amp;quot;,&amp;quot;00000000&amp;quot;,&amp;quot;00000110&amp;quot;,&amp;quot;01011110&amp;quot;&lt;/p&gt;
&lt;p&gt;Thanks also for suggesting your demo client - I&amp;#39;m testing on nRF9160-DK so I might take a look at that (when I get a chance). At the risk of going off topic - I&amp;#39;m still learning into what&amp;#39;s needed to support a robust CoAP client (with reliable reconnect + Tx retry behaviour), and I&amp;#39;m not sure which sample client app will provide the best starting point to leverage?&lt;/p&gt;
&lt;p&gt;Our network provider has confirmed RRC inactivity timer = 20s for NB-IoT, and this is the &amp;#39;normal&amp;#39; time I&amp;#39;ve seen it take to enable PSM (sleep) after transmission finished - e.g. this is when +CSCON=0 is logged and current drops to idle level (0.5mA with coap.conf build config)&lt;/p&gt;
&lt;p&gt;The problem I described above is that sometimes the current stays = 34mA for 4.5min before +CSON=0 is logged and it enters PSM (sleep) mode. And whenever this happens the wireshark capture shows that &amp;quot;RRCConnectionRelease-NB&amp;quot; is missing from the capture. So for some reason is seems my modem sometimes does not disconnect after the 20s RRC inactivity timer should have expired. I&amp;#39;m hoping that Nordic support will be able to take a look at the log files and comment on the questions I have raised above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long RRC idle delay problem in NB-IoT mode</title><link>https://devzone.nordicsemi.com/thread/501674?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 09:19:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c913731-f440-4938-b5be-6b1b3f93eeb6</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Reading your ticket again, I&amp;#39;m not sure, which period you complain about.&lt;/p&gt;
&lt;p&gt;RRC active =&amp;gt; RRC idle : that&amp;#39;s RAI.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;(That will be indicated by +CSCON=1 or +CSCON=0)&lt;/p&gt;
&lt;p&gt;RRC idle =&amp;gt; psm sleeping: that&amp;#39;s psm active timer and the sometimes the HPPLMN network search.&lt;/p&gt;
&lt;p&gt;(That will be XMODEMSLEEPING after +CSCON=0).&lt;/p&gt;
&lt;p&gt;For the RAI:&lt;/p&gt;
&lt;p&gt;Without RAI the modem usually switchs to +CSCON=0 after a short couple of seconds without traffic.&lt;/p&gt;
&lt;p&gt;With RAI, if you use &amp;quot;AT%XRAI=3, with CONFIG_COAP_SEND_CONFIRMABLE=y&amp;quot; that works only if you send one request (I see a couple of requests in the capture, not only one) and no retransmission occurs (that&amp;#39;s the case starting with record 199 in the first capture with 10m). Otherwise, it may fail. RAI means your application assists the modem to release the connection. With &amp;quot;AT%XRAI=3&amp;quot; you inform the modem, that you expect 1 response. But if you send a couple of requests, that assistance misleads the modem. The same applies, when a retransmission occurs, because you receive also more than just on response (even if coap does the deduplication for you). May be that causes then pretty large delays. That&amp;#39;s out of my experience, though I use RAI coupled to the CoAP transmission state in order to prevent such &amp;quot;miss assistance&amp;quot;. E.g. transfer of a couple of messages =&amp;gt; disable RAI, enable it with the last one. Rentransmission, disable RAI for that exchange.&amp;nbsp; &lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Long RRC idle delay problem in NB-IoT mode</title><link>https://devzone.nordicsemi.com/thread/501658?ContentTypeID=1</link><pubDate>Mon, 09 Sep 2024 07:52:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b150445e-477e-4f4c-9b31-20c19e02ac28</guid><dc:creator>Achim Kraus</dc:creator><description>&lt;p&gt;Such delayed PSM may be caused by a HPPLMN network search, you may find a couple of articles here in the forum. Before 1.3.5, Nordic was even searching for global &amp;quot;9xxxx&amp;quot; networks in a HPPLMN search. If a HPPLMN network search is the case, depends mainly on your SIM card. That may come with different prio lists and is usually applied, if the device gets a MCC (country code) and has some prio PLMN in it&amp;#39;s lists. If you have a nRF9160-DK, nRF9161-DK, or a Thingy:91 you may apply my demo client and execute the sim cmd to see, what you SIM card contains. Otherwise you may apply some &amp;quot;AR+CRSM&amp;quot; commands and decode the result on your own. See &lt;a href="https://github.com/boaks/zephyr-coaps-client/blob/main/src/modem_sim.c"&gt;modem SIM card cmds&lt;/a&gt; to get some impression about that. Or you ask the SIM card provider.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>