<?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>How to use PSM and eDRX mode in custom code?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52441/how-to-use-psm-and-edrx-mode-in-custom-code</link><description>Hi, 
 We are using nRF9160 and want to use PSM &amp;amp; eDRX mode in one of our project. We referred &amp;#39;Asset tracker Application&amp;#39; &amp;amp; found that lte_lc_psm_req() and lte_lc_edrx_req() are APIs to activate/deactivate corresponding modes. Please correct me if I am</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 25 Sep 2019 08:18:48 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52441/how-to-use-psm-and-edrx-mode-in-custom-code" /><item><title>RE: How to use PSM and eDRX mode in custom code?</title><link>https://devzone.nordicsemi.com/thread/211709?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 08:18:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2205d02a-5cfd-40b4-9bf6-fbaa19cd709d</guid><dc:creator>H&amp;#229;kon Alseth</dc:creator><description>[quote user="shital"]- Is it possible to test PSM / eDRX mode without the network ?[/quote]
&lt;p&gt;&amp;nbsp;You will need to have M1 or NB-IoT coverage to run tests.&lt;/p&gt;
[quote user="shital"]- If the network is available, please suggest me a way/setup to cross check that the device is in PSM/eDRX mode?[/quote]
&lt;p&gt;If a network is available, you can test PSM by requesting this in AT command&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cpsms.html?cp=2_1_6_1"&gt;CPSMS&lt;/a&gt;, and then reading the parameters for the link by entering &amp;quot;AT+CEREG=5&amp;quot; and &amp;quot;AT+CEREG?&amp;quot; to read the parameters that the network has set.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For eDRX, you set via this AT command:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cedrxs_set.html?cp=2_1_6_2_0"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cedrxs_set.html?cp=2_1_6_2_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;And read the parameters that the network set via:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cedrxrdp_set.html?cp=2_1_6_3_0"&gt;https://infocenter.nordicsemi.com/topic/ref_at_commands/REF/at_commands/nw_service/cedrxrdp_set.html?cp=2_1_6_3_0&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;AT commands can be issued and read when you run the sample &amp;quot;at_client&amp;quot; in NCS.&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;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use PSM and eDRX mode in custom code?</title><link>https://devzone.nordicsemi.com/thread/211688?ContentTypeID=1</link><pubDate>Wed, 25 Sep 2019 07:22:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:328316a5-5c2f-4a23-9c16-cdd681b894c8</guid><dc:creator>shital</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;&lt;br /&gt;Thanks for contributing with solution.&lt;br /&gt;&lt;br /&gt;We tried PSM and eDRX APIs in our customized code (from the scratch) by modifing prj.conf file, as suggested by you. It compiles good without warning and error.&lt;br /&gt;&lt;br /&gt;Now I am curios to test the PSM / eDRX modes, but my city doesn&amp;#39;t have LTE Cat-M1 / NB-IoT network.&lt;br /&gt;&lt;br /&gt;- Is it possible to test PSM / eDRX mode without the network ?&lt;br /&gt;Please suggest me a way, if it is possible.&lt;br /&gt;&lt;br /&gt;- If the network is available, please suggest me a way/setup to cross check that the device is in PSM/eDRX mode?&lt;br /&gt;&lt;br /&gt;Thank You,&lt;br /&gt;Shital&lt;/p&gt;
&lt;div dir="ltr"&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to use PSM and eDRX mode in custom code?</title><link>https://devzone.nordicsemi.com/thread/211255?ContentTypeID=1</link><pubDate>Mon, 23 Sep 2019 12:26:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a43506d4-5009-47b1-a873-f36aba365d52</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;These settings can be found in the lte_lc module, and here&amp;#39;s the setting for requesting edrx:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/drivers/lte_link_control/Kconfig#L70"&gt;https://github.com/NordicPlayground/fw-nrfconnect-nrf/blob/master/drivers/lte_link_control/Kconfig#L70&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;If you want this specific setting in your project, you add &amp;quot;CONFIG_&amp;lt;name of the entry&amp;gt;=y&amp;quot; to your prj.conf.&lt;/p&gt;
&lt;p&gt;For instance:&lt;/p&gt;
&lt;p&gt;CONFIG_&lt;span&gt;LTE_EDRX_REQ=y&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Similar for PSM, where you can choose to enable this in the background at bootup, via lte_lc driver, or you can call it from the application via &amp;quot;lte_lc_psm_req()&amp;quot;.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Here&amp;#39;s an example that does that:&amp;nbsp;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_with_psm/src/main.c#L112"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_with_psm/src/main.c#L112&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Where the PSM timing parameters are set in the prj.conf:&amp;nbsp;&lt;a href="https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_with_psm/prj.conf#L25"&gt;https://github.com/Rallare/fw-nrfconnect-nrf/blob/nrf9160_samples/samples/nrf9160/udp_with_psm/prj.conf#L25&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Kind regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Håkon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>