<?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 should I reset peer manager ranking</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/80267/how-should-i-reset-peer-manager-ranking</link><description>Hello DevZone, 
 
 I am planning on making a system that uses peer manager ranking to determine which oldest bond I need to delete to make room for a new one. 
 I am using the function to set the rank upon successful connection and use to find out which</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Oct 2021 12:36:12 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/80267/how-should-i-reset-peer-manager-ranking" /><item><title>RE: How should I reset peer manager ranking</title><link>https://devzone.nordicsemi.com/thread/332351?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 12:36:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:25a76b2a-49e0-44e9-8a0c-5c9702f75024</guid><dc:creator>T IJ</dc:creator><description>&lt;p&gt;Thank you, I think I will try to implement something that will correct this.&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been told that if you do something and think this situation will&amp;nbsp;never happen that it will happen. Even though it is very unlikely.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I reset peer manager ranking</title><link>https://devzone.nordicsemi.com/thread/332346?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 12:29:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:56d71a70-33c1-4048-8015-f3c4bdef9cd7</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Good questions.&amp;nbsp;I guess it made sense to document corner cases and assumptions when writing API documentation. If you really want to do this, then you can implement something suggested, by updating the FDS records. But the only consequence will be adding dead code that worst case contributes to unnecessary bugs and best case has no use at all.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I reset peer manager ranking</title><link>https://devzone.nordicsemi.com/thread/332339?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 12:21:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1b2864f1-f518-4956-801b-3dbf3bc95d70</guid><dc:creator>T IJ</dc:creator><description>&lt;p&gt;If it theoretically never happens why is it mentioned in the error code? This would suggest me that there is a possibility that it will occur during operation and that I have to make a way to reset the rank levels from the start.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt; * @retval NRF_ERROR_RESOURCES      If the highest rank is UINT32_MAX, so the new rank would wrap
 *                                  around to 0. To fix this, manually update all ranks to smaller
 *                                  values, while still keeping their order.&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How should I reset peer manager ranking</title><link>https://devzone.nordicsemi.com/thread/332336?ContentTypeID=1</link><pubDate>Mon, 04 Oct 2021 12:14:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3c955c48-1e9a-4fec-8153-fe6e687df8ee</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The SDK does not have any support for resetting the peer rank as this is not considered a relevant problem. For this to be a problem the you would have to establish connection to bonded peers 2^32-1 =&amp;nbsp;4294967295 times (UINT32_MAX as you write) and it is difficult to see how this could ever happen in practice. For instance, if you connect to a bonded peer every second it will take 136 years for this to manifest itself as an issue. So in practice any code you add to do this will just add to the complexity without ever being useful.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>