<?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>LPN polling period</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/48196/lpn-polling-period</link><description>Hello, 
 I am working with LPN example of SDK 3.1.0. In the example I need to change the poll interval time based on our application requirement. 
 I looked at this equation used in lpn.c file. 
 m_lpn.poll_interval_ms = m_lpn.poll_timeout_ms - (m_lpn</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Jun 2019 15:58:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/48196/lpn-polling-period" /><item><title>RE: LPN polling period</title><link>https://devzone.nordicsemi.com/thread/192974?ContentTypeID=1</link><pubDate>Fri, 14 Jun 2019 15:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:17ead11f-c9b4-4cd5-825a-62e56c5c2034</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;You can use the &lt;span&gt;mesh_lpn_poll_interval_set() function to set the poll interval.&amp;nbsp;&lt;br /&gt;&lt;/span&gt;The poll interval is the interval between two separate Friend Poll actions. This is the interval between each time the node wakes up to empty the Friend Queue. The interval must be set in a way that the LPN is able to complete as many retry attempts as possible before the poll timeout expires. This means that it must satisfy the following equation:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;poll_interval_ms &amp;lt; (mesh_lpn_friend_request_t.poll_timeout_ms -
                    (mesh_lpn_friend_request_t.receive_delay_ms +
                     nrf_mesh_evt_lpn_friend_offer_t.offer.receive_window_ms) * (MESH_LPN_POLL_RETRY_COUNT + 1))&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Note that a low poll_timeout_ms and long receive_delay_ms and receive_window_ms can make it impossible to reach the MESH_LPN_POLL_RETRY_COUNT.&lt;/span&gt;&lt;/p&gt;
&lt;div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;div&gt;Best regards,&amp;nbsp;&lt;br /&gt;Joakim&lt;/div&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPN polling period</title><link>https://devzone.nordicsemi.com/thread/191772?ContentTypeID=1</link><pubDate>Mon, 10 Jun 2019 06:29:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e296e8ed-c04f-483a-b632-18968b2a17ac</guid><dc:creator>Sameer</dc:creator><description>&lt;p&gt;Hi Joakim,&lt;/p&gt;
&lt;p&gt;The &lt;span&gt;poll_interval_ms comes to&amp;nbsp;&lt;/span&gt;7870ms from below equation with mentioned values of all the parameters.&lt;/p&gt;
[quote userid="74384" url="~/f/nordic-q-a/48196/lpn-polling-period"]m_lpn.poll_interval_ms = m_lpn.poll_timeout_ms -&lt;br /&gt; (m_lpn.receive_delay_ms + m_lpn.receive_window_ms) * (MESH_LPN_POLL_RETRY_COUNT + 1);[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Regards,&lt;/p&gt;
&lt;p&gt;Sameer&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LPN polling period</title><link>https://devzone.nordicsemi.com/thread/191592?ContentTypeID=1</link><pubDate>Fri, 07 Jun 2019 10:12:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eb1d6e7a-5e04-4122-a86a-998f4bbbccf0</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi!&lt;/p&gt;
[quote user=""]Hence, the poll_interval_ms comes to 7870 ms.[/quote]
&lt;p&gt;&amp;nbsp;How did you get to this number?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ll talk to one of the guys at our Mesh team to get some more information about this. I&amp;#39;ll get back to you as soon as possible.&lt;/p&gt;
&lt;p&gt;Best regards, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>