<?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>Friendship Terminated reason 2, How to adjust the friendship setting to have a solid connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68610/friendship-terminated-reason-2-how-to-adjust-the-friendship-setting-to-have-a-solid-connection</link><description>Info: 
 Windows 10 
 Segger Embedded Studio V5.20a 
 SDK16.0.0 &amp;amp; Mesh SDK 4.1.0 
 nRF52840 &amp;amp; nRF52832 
 
 I&amp;#39;m setting up a friend node and a low power node. The friend node is just Nordic&amp;#39;s Light Switch Server with the friendship capabilities turned on</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Jan 2021 16:57:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68610/friendship-terminated-reason-2-how-to-adjust-the-friendship-setting-to-have-a-solid-connection" /><item><title>RE: Friendship Terminated reason 2, How to adjust the friendship setting to have a solid connection</title><link>https://devzone.nordicsemi.com/thread/288463?ContentTypeID=1</link><pubDate>Mon, 11 Jan 2021 16:57:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8f2112ea-2af8-4274-add4-1d3a70a231d2</guid><dc:creator>Ryjan</dc:creator><description>&lt;p&gt;I found a way to make the connection much more stable, but it seems like it might not still be the preferred solution. Hopefully this may help someone else who is trying to use the low power node.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;MESH_LPN_POLL_RETRY_COUNT was set to 5, I boosted it up until I could get more than an hour of friendship polls that do not cause a friendship termination. 15 tries to get an update from a friend seems like a lot, but since my device can actually stay in a low power mode that power savings from not having to find a friend every 2 minutes is very good. I have my own code that will seek a new friend after a short interval when the friendship was terminated, but at a frequency of about every 2 minutes or less, I was increasing my power consumption quite a bit when this is supposed to be helping to conserve power.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I increased MESH_LPN_POLL_RETRY_COUNT to 15 in the end and that helped it last more than an hour, but any other ideas or methods for making a friendship more stable are welcome.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Friendship Terminated reason 2, How to adjust the friendship setting to have a solid connection</title><link>https://devzone.nordicsemi.com/thread/283909?ContentTypeID=1</link><pubDate>Tue, 08 Dec 2020 18:39:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8f52f32-8287-4afb-ab9a-0753357ff937</guid><dc:creator>Ryjan</dc:creator><description>&lt;p&gt;Are there any other suggestions or a primer on how the different settings can affect the connection? I&amp;#39;ve tried some different combinations and I feel like I&amp;#39;m missing something.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Friendship Terminated reason 2, How to adjust the friendship setting to have a solid connection</title><link>https://devzone.nordicsemi.com/thread/282735?ContentTypeID=1</link><pubDate>Tue, 01 Dec 2020 16:05:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d0749a3c-20d6-4b90-9385-15291e61d897</guid><dc:creator>Ryjan</dc:creator><description>&lt;p&gt;Yes, I have tried that. POLL_TIMEOUT_MS seems to set the polling interval. If I set it to 15, it polls every 15 seconds. If I set it to 6, it polls every 6 seconds. The notes in the source code makes it sound like a maximum interval, rather than the actual interval, but it seems to set the actual interval. A larger or smaller number still fails and ends the friendship in a minute or so. I haven&amp;#39;t figured out a work around for restarting a search for a friend unless I make some external timer to try again, which may be the only solution to restart it. I&amp;#39;m just surprised with how quickly it fails and ends the friendship.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been on vacation too, so the delay fairly well coincided with my vacation.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Friendship Terminated reason 2, How to adjust the friendship setting to have a solid connection</title><link>https://devzone.nordicsemi.com/thread/282545?ContentTypeID=1</link><pubDate>Mon, 30 Nov 2020 19:24:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94dfbfaf-9cdb-49a5-a0fc-76d9f2a02740</guid><dc:creator>Joakim Jakobsen</dc:creator><description>&lt;p&gt;Hi.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry about the delay on this ticket.&lt;/p&gt;
&lt;p&gt;Have you tried changing the POLL_TIMEOUT_MS to a lower value, and check if that is able to extend the time of the friendship?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;BR, &lt;br /&gt;Joakim&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>