<?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>Necessary AT command sequence, prerequisites to obtain PSM?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/87734/necessary-at-command-sequence-prerequisites-to-obtain-psm</link><description>Hello Devzone Community, 
 My name is Ted, and I am continuing work on an nRF9160 based, battery powered custom board firmware. I recently posted a couple of tickets here regarding LTE modem Power Saving Mode (PSM) requesting command, AT+CPSMS. Also asked</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 May 2022 11:35:25 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/87734/necessary-at-command-sequence-prerequisites-to-obtain-psm" /><item><title>RE: Necessary AT command sequence, prerequisites to obtain PSM?</title><link>https://devzone.nordicsemi.com/thread/367381?ContentTypeID=1</link><pubDate>Wed, 11 May 2022 11:35:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fadde768-5e0a-44d2-a445-15f0e14d9082</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Modem team responded;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Q1 and Q2:&lt;/b&gt;&lt;/p&gt;
&lt;p&gt;If I look AT sequence in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/87176/meaning-of-at-xmonitor-reported-psm-values:" rel="nofollow noopener noreferrer" target="_blank"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/87176/meaning-of-at-xmonitor-reported-psm-values:&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;s1 &amp;gt; at+cfun?

- DEV 0218 - found possible AT command.

modem reply: +CFUN: 0

 

s1 &amp;gt; at+cfun=1

- DEV 0218 - found possible AT command.

modem reply: s1 &amp;gt; at_ 

 

s1 &amp;gt; at+cfun?

- DEV 0218 - found possible AT command.

modem reply: +CFUN: 1

 

s1 &amp;gt; at+cpsms=1,,,&amp;quot;00100010&amp;quot;,&amp;quot;00000101&amp;quot;

- DEV 0218 - found possible AT command.

modem reply: s1 &amp;gt; at+cpsms?

- DEV 0218 - found possible AT command.

modem reply: +CPSMS: 1,,,&amp;quot;00100010&amp;quot;,&amp;quot;00000101&amp;quot;

 

s1 &amp;gt; at+cereg=5

- DEV 0218 - found possible AT command.

modem reply: s1 &amp;gt; at+cereg?

- DEV 0218 - found possible AT command.

modem reply: +CEREG: 5,5,&amp;quot;3558&amp;quot;,&amp;quot;02BDF917&amp;quot;,7,,,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;

 

s1 &amp;gt; at+cgdcont?

- DEV 0218 - found possible AT command.

modem reply: +CGDCONT: 0,&amp;quot;IP&amp;quot;,&amp;quot;globaldata.iot&amp;quot;,&amp;quot;10.165.91.12&amp;quot;,0,0

 

s1 &amp;gt; at%xmonitor

- DEV 0218 - found possible AT command.

modem reply: %XMONITOR: 5,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;310260&amp;quot;,&amp;quot;3558&amp;quot;,7,12,&amp;quot;02BDF917&amp;quot;,397,5035,41,40,&amp;quot;&amp;quot;,&amp;quot;11100000&amp;quot;,&amp;quot;11100000&amp;quot;,&amp;quot;01001001&amp;quot;

 

s1 &amp;gt; at%xsystemmode?

- DEV 0218 - found possible AT command.

modem reply: %XSYSTEMMODE: 1,1,0,1 
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;at+cpsms=1,,,&amp;quot;00100010&amp;quot;,&amp;quot;00000101&amp;quot; should be commanded before CFUN=1. Otherwise it&amp;#39;s not negotiated in LTE attach procedure. If still XMONITOR or CEREG shows Active time &amp;quot;11100000&amp;quot;, then PSM is not supported by the NW or SIM card.&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s some general information about PSM that could be helpful;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;UE negotiates the PSM usage with the network and network can approve or reject it. The negotiation is done during the registration (i.e. Attach procedure) or if PSM is configured later then UE initiates TAU procedure for the negotiation.&lt;/li&gt;
&lt;li&gt;During the PSM negotiation basically two timer values are negotiated:
&lt;ul&gt;
&lt;li&gt;&amp;quot;Active time&amp;quot; timer, i.e. T3324. This timer defines how soon after RRC connection release UE can enter to PSM.&lt;/li&gt;
&lt;li&gt;&amp;quot;Periodic TAU timer&amp;quot; i.e. T3412. This timer defines how soon after RRC connection release UE must initiate periodic TAU. In other words this value tells when UE must wake up from PSM (in case PSM was entered in the first place).&lt;/li&gt;
&lt;li&gt;&lt;b&gt;If network approves PSM usage during the negotiation, it must provide both of these timers to UE.&lt;/b&gt; **&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;If client wants to activate PSM immediately after startup, the AT command that does the PSM configuration must be sent already before activating modem (+CFUN=1) so that the negotiation is can be done already during the Attach procedure.&lt;/li&gt;
&lt;li&gt;PSM support has no dependency to signal quality.&lt;/li&gt;
&lt;li&gt;We have seen that some carriers do not allow PSM usage for devices roaming in their network.&lt;/li&gt;
&lt;li&gt;Checking has PSM been successfully negotiated during Attach, i.e. taken into use:
&lt;ul&gt;
&lt;li&gt;Configure PSM with +CPSMS. For example: AT+CPSMS=1,&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,&amp;quot;10101010&amp;quot;,&amp;quot;00100001&amp;quot;&lt;/li&gt;
&lt;li&gt;Subscribe +CEREG notification: AT+CEREG=4&lt;/li&gt;
&lt;li&gt;Activate modem with +CFUN=1.&lt;/li&gt;
&lt;li&gt;Wait for +CEREG notification that indicates that registration, i.e. Attach procedure has been completed successfully. This can be recognized so that &amp;lt;stat&amp;gt; in +CEREG notification is either 1 (registered, home network) or 5 (registered, roaming). This indication contains also &amp;quot;Active time&amp;quot; and &amp;quot;Periodic TAU timer&amp;quot; values provided by network. These are the values that have been taken into use by modem and network. They may not be the same that were configured, because network can take into use also some other values if the requested values were not suitable for some reason. If both values are valid, then PSM usage has been agreed between modem and network. If either one is missing, then network did not allow PSM usage.&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Does this answer your question?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Necessary AT command sequence, prerequisites to obtain PSM?</title><link>https://devzone.nordicsemi.com/thread/367234?ContentTypeID=1</link><pubDate>Tue, 10 May 2022 15:03:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b90bf36-dbaf-4801-b26a-ccd2ba2957ae</guid><dc:creator>Hakon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I&amp;#39;m not sure about the implementation of the AT+CPSMS commmand in the modem firmware, so I have asked the modem team.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>