<?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>Verifying nRF9160 going into PSM</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/86742/verifying-nrf9160-going-into-psm</link><description>Hi everyone 
 We&amp;#39;re developing an IoT device with an nRF9160 embedded in it. We&amp;#39;re trying to make sure we&amp;#39;re implementing PSM. 
 We set our preferred values for TAU as you can see in the next image. And in our code we call lte_lc_psm_req(true); when configuring</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 06 May 2022 04:56:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/86742/verifying-nrf9160-going-into-psm" /><item><title>RE: Verifying nRF9160 going into PSM</title><link>https://devzone.nordicsemi.com/thread/366574?ContentTypeID=1</link><pubDate>Fri, 06 May 2022 04:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d847a27-77ba-4de8-a5f7-71bc7209348d</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="zabdielfavela"]&lt;p&gt;I think we have gotten a deeper understanding of PSM and you&amp;#39;ve answered many of our questions. Our next step will be to test&amp;nbsp; PSM with %XMODEMSLEEP. For now we can close this ticket.&lt;/p&gt;
&lt;p&gt;Thank you so much for your help&lt;/p&gt;[/quote]
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;My pleasure, Zabdiel! I’m glad I could help :-)&lt;br /&gt;&lt;br /&gt;Cheers,&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Verifying nRF9160 going into PSM</title><link>https://devzone.nordicsemi.com/thread/366536?ContentTypeID=1</link><pubDate>Thu, 05 May 2022 16:28:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:312bda6a-5618-4e91-b46b-fec79e1c7971</guid><dc:creator>zabdielfavela</dc:creator><description>&lt;p&gt;Hi Albrecht&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I think we have gotten a deeper understanding of PSM and you&amp;#39;ve answered many of our questions. Our next step will be to test&amp;nbsp; PSM with %XMODEMSLEEP. For now we can close this ticket.&lt;/p&gt;
&lt;p&gt;Thank you so much for your help&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Verifying nRF9160 going into PSM</title><link>https://devzone.nordicsemi.com/thread/365973?ContentTypeID=1</link><pubDate>Tue, 03 May 2022 12:18:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ce148239-e5a6-4730-8e4c-420fa03f615a</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;Hello Zabdiel,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="zabdielfavela"]What happens when we send data before the periodic TAU timer is up? Will the TAU timer restart or will it continue with the remaining time from the previous cycle?[/quote]
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;The T3412 (Periodic Tracking Area Update) value is a negotiation between the UE and the network indicating after which time the UE has to wake up from sleep mode to transmit a tracking area update. If the UE does so before that time has passed, because it e.g. will transmit user data, then there is no need for a tracking area update within that cycle and the timer will be reset and start over again when the UE enters sleep mode.&lt;br /&gt;&lt;br /&gt;You might find this &lt;a href="https://www.link-labs.com/blog/lte-e-drx-psm-explained-for-lte-m1"&gt;link&lt;/a&gt; interesting, as it describes the basis of PSM and eDRX.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="zabdielfavela"]We’ve come up with an indirect way to detect modem transition into PSM. First we subscribe to RSRP notifications. Next, we query the signal connection status (CSCON). And if the connection state is IDLE, then we judge sudden signal values of 255 as modem entering deep sleep. &lt;br /&gt; Do you think our method detects PSM accurately?[/quote]
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;My recommendation would be to use modem sleep notifications, &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xmodemsleep.html"&gt;%XMODEMSLEEP&lt;/a&gt;. Additionally, you could subscribe to signal quality notifcations, &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/proc_cesq.html"&gt;%CESQ&lt;/a&gt;, as the signal strength values will switch to 255 when the UE enters PSM.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="zabdielfavela"]If we receive valid timer values, should we assume PSM is supported?[/quote]
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;Yes.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user="zabdielfavela"]If not, is there a way to verify PSM is supported?[/quote]
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;No. You have to get in touch with the carrier in this case.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Verifying nRF9160 going into PSM</title><link>https://devzone.nordicsemi.com/thread/365472?ContentTypeID=1</link><pubDate>Thu, 28 Apr 2022 16:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:76991cdd-8d07-4284-bd24-41d8a6104a9f</guid><dc:creator>zabdielfavela</dc:creator><description>&lt;p&gt;Thanks again for your prompt reply.&lt;/p&gt;
&lt;p&gt;My team and I redacted the attached document that describes PSM as we understand it. We would appreciate if you read it and pointed out any gaps in our understanding.&lt;br /&gt;We also came up with more questions:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;What happens when we send data before the periodic TAU timer is up? Will the TAU timer restart or will it continue with the remaining time from the previous cycle?&lt;/li&gt;
&lt;li&gt;We&amp;rsquo;ve come up with an indirect way to detect modem transition into PSM. First we subscribe to RSRP notifications. Next, we query the signal connection status (CSCON). And if the connection state is IDLE, then we judge sudden signal values of 255 as modem entering deep sleep. &lt;br /&gt; Do you think our method detects PSM accurately?&lt;/li&gt;
&lt;li&gt;&lt;em&gt; &lt;/em&gt;In one of your replies you said: &lt;em&gt;&amp;ldquo;&lt;/em&gt;&lt;em&gt;If the network doesn&amp;rsquo;t assign a valid &amp;lt;Active-Time&amp;gt; to the UE, PSM is not allowed.&lt;/em&gt;&lt;em&gt;&amp;rdquo; &lt;/em&gt;&lt;br /&gt; We understand that receiving either invalid TAU or Active timer means that PSM is not allowed. Is there another way to verify that network doesn&amp;rsquo;t support PSM? If we receive valid timer values, should we assume PSM is supported? If not, is there a way to verify PSM is supported?&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;I want to thank you once again for your help.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Zabdiel&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/PSM-Understanding-and-questions.pdf"&gt;devzone.nordicsemi.com/.../PSM-Understanding-and-questions.pdf&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Verifying nRF9160 going into PSM</title><link>https://devzone.nordicsemi.com/thread/365187?ContentTypeID=1</link><pubDate>Wed, 27 Apr 2022 12:25:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:afbc9955-1578-4873-b292-a1a75f43a638</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>[quote user="zabdielfavela"]First of all, thank you for your reply.[/quote]
&lt;p lang="en-GB"&gt;My pleasure, Zabdiel :-) I’m glad I can help.&lt;/p&gt;
[quote user="zabdielfavela"]I truly appriciate&amp;nbsp;your time and effort to help me understand these concepts.[/quote]
&lt;p lang="en-GB"&gt;Yes, there is a lot of information available and sometimes it’s not that easy to find the specific parts needed. So let me try to narrow it down a little bit for you:&lt;/p&gt;
[quote user="zabdielfavela"]1. Is there any chance that the device could enter PSM even if it doesn&amp;#39;t have a valid Active Time?[/quote]
&lt;p lang="en-GB"&gt;No. If the network doesn’t assign a valid &amp;lt;Active-Time&amp;gt; to the UE, PSM is not allowed. With that said, some networks allow an active time of zero, corresponding to the value 000 00000.&lt;/p&gt;
[quote user="zabdielfavela"]2. What is the difference between CEREG and XMONITOR?[/quote]
&lt;p lang="en-GB"&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cereg.html"&gt;+CEREG&lt;/a&gt; basically is the network registration status. You can configure it subscribe unsolicited result codes, meaning that the modem will send +CEREG updates if something has changed. +CEREG will feedback the &amp;lt;Active-Time&amp;gt; negotiated with the network during registration, but to read the &amp;lt;Periodic-TAU&amp;gt; value you should use &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/xmonitor_set.html"&gt;%XMONITOR&lt;/a&gt;. This due to that &amp;lt;Periodic-TAU&amp;gt; is used in different formats.&lt;/p&gt;
&lt;p&gt;&lt;span lang="en-GB"&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/xmonitor.html"&gt;%XMONITOR&lt;/a&gt; are the configured modem parameters. It is similar to +CEREG, but as already mentioned, will give you some extra information regarding &amp;lt;Periodic-TAU&amp;gt;. For mfw &amp;gt; 1.2.x, the &amp;lt;Periodic-TAU-ext&amp;gt; will show the actual negotiated PSM time, and as confusing as this might be, the value doesn’t necessary match the &amp;lt;Periodic-TAU&amp;gt; value of +CEREG. This is why the description of &amp;lt;Periodic-TAU&amp;gt; in +CEREG also states &lt;em&gt;“&lt;/em&gt;&lt;/span&gt;&lt;em&gt;The configured value of T3412 can be read with the %XMONITOR command.&lt;/em&gt;&lt;span lang="en-GB"&gt;&lt;em&gt;”&lt;/em&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="zabdielfavela"]3. To verify that my modem is sleeping you suggested %XMODESLEEP. Is this command similar or related to&amp;nbsp;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html?highlight=config_lte_psm#id6"&gt;Modem sleep and TAU prewarning notifications&lt;/a&gt;&amp;nbsp;(&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html?highlight=config_lte_psm#enabling-power-saving-features)?"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html?highlight=config_lte_psm#enabling-power-saving-features)&lt;/a&gt;&amp;nbsp;???&amp;nbsp;[/quote]
&lt;p&gt;&lt;span lang="en-GB"&gt;Y&lt;/span&gt;&lt;span lang="en-GB"&gt;es. The &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html#lte-link-controller"&gt;LTE link controller&lt;/a&gt; basically is a wrapper that in the end uses AT commands to send and receive information to and from the modem. So there are two ways to go, either you use AT commands directly with your application, or you make help of the e.g. the LTE link controller library. Which way you might want to choose depends a bit on your use case, preferences and needs. If you would like to do the latter, I&lt;/span&gt;&lt;span lang="en-GB"&gt; generally refer to and recommend its documentation, as it covers most of the use cases. Otherwise, see next point.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
[quote user="zabdielfavela"]4. Do you have some sample code that uses %XMODESLEEP?[/quote]
&lt;p&gt;&lt;span lang="en-GB"&gt;We do not have any concrete example here, but you can for instance use our &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/samples/nrf9160/at_client/README.html#nrf9160-at-client"&gt;AT Client&lt;/a&gt; or &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/applications/serial_lte_modem/README.html#nrf9160-serial-lte-modem"&gt;Serial LTE modem&lt;/a&gt; application to try this. Let me give you a terminal output example with the AT Client:&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;*** Booting Zephyr OS build v2.7.99-ncs1-1  ***
The AT host sample started
AT+CEREG=5
OK
AT%CESQ=1
OK
AT%XMODEMSLEEP=1,1000,60000
%XMODEMSLEEP: 4,0
OK
AT+CFUN=1
%XMODEMSLEEP: 4,0
OK
%CESQ: 59,2,25,3
+CEREG: 2,&amp;quot;7AA9&amp;quot;,&amp;quot;01444000&amp;quot;,7
+CEREG: 1,&amp;quot;7AA9&amp;quot;,&amp;quot;01444000&amp;quot;,7,,,&amp;quot;00001010&amp;quot;,&amp;quot;11000001&amp;quot;
AT%XMONITOR
%XMONITOR: 1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;24201&amp;quot;,&amp;quot;7AA9&amp;quot;,7,20,&amp;quot;01444000&amp;quot;,177,6400,58,43,&amp;quot;&amp;quot;,&amp;quot;00001010&amp;quot;,&amp;quot;11000001&amp;quot;,&amp;quot;01011111&amp;quot;
OK
%CESQ: 255,0,255,0
%XMODEMSLEEP: 1,1151979975&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en-GB"&gt;Otherwise, if you want your application to communicate directly with the modem using AT commands, you can us the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrfxlib/nrf_modem/doc/at_interface.html#at-interface"&gt;AT interface&lt;/a&gt; of our modem library. &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en-GB"&gt;I hope my answer will help you.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en-GB"&gt;Markus &lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Verifying nRF9160 going into PSM</title><link>https://devzone.nordicsemi.com/thread/365013?ContentTypeID=1</link><pubDate>Tue, 26 Apr 2022 16:24:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a12ca630-e10c-48ea-af3d-87e56bce30bf</guid><dc:creator>zabdielfavela</dc:creator><description>&lt;p&gt;Hello Albrecht&lt;/p&gt;
&lt;p&gt;First of all, thank you for your reply.&lt;/p&gt;
&lt;p&gt;I have more questions.&lt;/p&gt;
[quote userid="100109" url="~/f/nordic-q-a/86742/verifying-nrf9160-going-into-psm/362506#362506"]As also described &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html?highlight=config_lte_psm#enabling-power-saving-features"&gt;here&lt;/a&gt;, since you do not have any &amp;lt;Active-Time&amp;gt;, the negotiation with the network for PSM values probably wasn’t successful.[/quote]
&lt;p&gt;I found on nordic&amp;#39;s infocenter some information that backs up what you just told me:&amp;nbsp;&lt;span&gt;The device can enter&amp;nbsp;&lt;/span&gt;&lt;a title="A feature introduced in 3GPP Release 12 to improve battery life of IoT (Internet of Things) devices by minimizing energy consumption. The device stays dormant during the PSM window." href="https://infocenter.nordicsemi.com/topic/ref_at_commands/dita_common/glossary/glossary.html#psm"&gt;&lt;dfn class="term abbreviated-form"&gt;Power Saving Mode (PSM)&lt;/dfn&gt;&lt;/a&gt;&lt;span&gt;&amp;nbsp;state in LTE idle mode when the&amp;nbsp;&lt;/span&gt;&lt;span class="keyword parmname"&gt;&amp;lt;Active-Time&amp;gt;&lt;/span&gt;&lt;span&gt;&amp;nbsp;parameter has a valid value where at least one of bits 6&amp;ndash;8 is set to&amp;nbsp;&lt;/span&gt;&lt;span class="keyword value"&gt;0&lt;/span&gt;&lt;span&gt;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fnw_service%2Fxmonitor.html"&gt;https://infocenter.nordicsemi.com/index.jsp?topic=%2Fref_at_commands%2FREF%2Fat_commands%2Fnw_service%2Fxmonitor.html&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;1. Is there any chance that the device could enter PSM even if it doesn&amp;#39;t have a valid Active Time?&lt;/p&gt;
&lt;p&gt;2. What is the difference between CEREG and XMONITOR?&lt;/p&gt;
&lt;p&gt;3. To verify that my modem is sleeping you suggested %XMODESLEEP. Is this command similar or related to&amp;nbsp;&lt;a class="toc-backref" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html?highlight=config_lte_psm#id6"&gt;Modem sleep and TAU prewarning notifications&lt;/a&gt;&amp;nbsp;(&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html?highlight=config_lte_psm#enabling-power-saving-features)?"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html?highlight=config_lte_psm#enabling-power-saving-features)&lt;/a&gt;&amp;nbsp;???&amp;nbsp;&lt;/p&gt;
&lt;p&gt;4. Do you have some sample code that uses %XMODESLEEP?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I truly appriciate&amp;nbsp;your time and effort to help me understand these concepts.&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Zabdiel&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Verifying nRF9160 going into PSM</title><link>https://devzone.nordicsemi.com/thread/362506?ContentTypeID=1</link><pubDate>Fri, 08 Apr 2022 08:04:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:884f0106-7a42-4ff1-8252-44d0dcd80c7f</guid><dc:creator>Albrecht Markus Schellenberger</dc:creator><description>&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;Hello Zabdiel,&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]1. Will my modem go into sleep mode immediately?&amp;nbsp;[/quote]
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;When the modem is in RRC idle, it will wait until the configured &amp;lt;Active-Time&amp;gt; has passed before entering PSM.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]2.&amp;nbsp;How can we verify that my modem is sleeping?[/quote]
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;You can e.g. use &lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/mob_termination_ctrl_status/xmodemsleep.html"&gt;%XMODEMSLEEP&lt;/a&gt; notifications to check if the modem has entered PSM.&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;As also described &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.9.1/nrf/libraries/modem/lte_lc.html?highlight=config_lte_psm#enabling-power-saving-features"&gt;here&lt;/a&gt;, since you do not have any &amp;lt;Active-Time&amp;gt;, the negotiation with the network for PSM values probably wasn’t successful. You should check with your network service provider which PSM values are allowed.&lt;br /&gt;&lt;br /&gt;Regards,&lt;/p&gt;
&lt;p style="line-height:100%;margin-bottom:0;" lang="en-GB"&gt;Markus&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>