<?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>aws_iot MQTT subscriber keep alive</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/82989/aws_iot-mqtt-subscriber-keep-alive</link><description>Hello Devzone, 
 I&amp;#39;m writing to ask about how long a device running Nordic&amp;#39;s aws_iot sample app (sdk-nrf 1.6.1 based, Zephyr 2.6.0 based) may be in a &amp;quot;radio idle&amp;quot; state, and the device still wake the radios and be able to receive messages to which its</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 21 Dec 2021 12:25:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/82989/aws_iot-mqtt-subscriber-keep-alive" /><item><title>RE: aws_iot MQTT subscriber keep alive</title><link>https://devzone.nordicsemi.com/thread/344587?ContentTypeID=1</link><pubDate>Tue, 21 Dec 2021 12:25:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:930f5eea-8623-47a9-94d4-ac4cb7ae2c4d</guid><dc:creator>Charlie</dc:creator><description>&lt;p&gt;Hi Ted,&lt;/p&gt;
[quote user=""]I&amp;#39;m writing to ask about how long a device running Nordic&amp;#39;s aws_iot sample app (sdk-nrf 1.6.1 based, Zephyr 2.6.0 based) may be in a &amp;quot;radio idle&amp;quot; state, and the device still wake the radios and be able to receive messages to which its firmware has subscribed?[/quote]
&lt;p&gt;The &amp;quot;radio idle&amp;quot; state length&amp;nbsp;is the parameter &amp;quot;&lt;a href="https://devzone.nordicsemi.com/power/w/opp/4/user-guide-lte#h54skc3ia2mr1m1t0sg1piiyrk1cmx8n8"&gt;RRC inactivity timer&lt;/a&gt;&amp;quot;, which is decided by the Cellular IoT network you used. According to &lt;a href="https://devzone.nordicsemi.com/power/w/opp/3/online-power-profiler-for-lte"&gt;Online Power Profiler for LTE&lt;/a&gt;, most operators use 7 seconds. You can check with a PPK like a demo from &lt;a href="https://devzone.nordicsemi.com/power/w/opp/4/user-guide-lte#h54skc3ia2mr1m1t0sg1piiyrk1cmx8n8"&gt;User guide (LTE)&lt;/a&gt;, or ask your cellular network provider.&lt;/p&gt;
[quote user=""]When I increase the firmware&amp;#39;s &amp;quot;radio idle&amp;quot; period, I begin to lose subscription reception at about five minutes idle period.[/quote]
&lt;p&gt;Which configuration have you modified since this can not be controlled by UE? Did you actually modify&amp;nbsp;CONFIG_LTE_PSM_REQ_RPTAU?&amp;nbsp;&lt;/p&gt;
[quote user=""]In the app prj.conf file, I see no mention of PSM (power savings mode?) settings.&amp;nbsp;[/quote]
&lt;p&gt;You can change PSM settings through Kconfig Menu or add and modify following lines to prj.conf:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;CONFIG_LTE_PSM_REQ_RPTAU=&amp;quot;00000011&amp;quot;
CONFIG_LTE_PSM_REQ_RAT=&amp;quot;00100001&amp;quot;&lt;/pre&gt;&lt;/p&gt;
[quote user=""] Is this correct understanding?[/quote][quote user=""] Should I be looking for some kind of keep alive parameter other than `CONFIG_MQTT_KEEPALIVE`?[/quote]
&lt;p&gt;This is correct understanding as long as the MQTT connection is ALIVE. &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/1.6.1/nrf/samples/nrf9160/aws_iot/README.html"&gt;nRF9160: AWS IoT&lt;/a&gt;&amp;nbsp;sample document mentions that &lt;span&gt;NAT timeout&amp;nbsp;&lt;/span&gt;could also affect. I found &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/52540/nrf9160-disconnects-after-4-5-minutes-when-keep-alive-time-is-60/213233#213233"&gt;another case&lt;/a&gt; that has very similar symptoms as your issue, and it was solved by&amp;nbsp;changing to another network.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Charlie&lt;/p&gt;
&lt;h1&gt;&lt;/h1&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>