<?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 many paired informations can save in FDS?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/110011/how-many-paired-informations-can-save-in-fds</link><description>Dear expert. 
 
 I am developing module solution using SDK_17.1.0 with nRf52832. 
 my product support lesc(security mode1 / level4) in server role, so paired information saved in FDS by peer manager. 
 but I can not find that how many paired information</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 08 Apr 2024 22:59:55 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/110011/how-many-paired-informations-can-save-in-fds" /><item><title>RE: How many paired informations can save in FDS?</title><link>https://devzone.nordicsemi.com/thread/477678?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 22:59:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f164090b-e0bb-4bf5-b802-40c81448979a</guid><dc:creator>Ethan.jskim</dc:creator><description>&lt;p&gt;Dear Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I almost understood&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I will close this ticket and thanks for your advice again.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards.&lt;/p&gt;
&lt;p&gt;Ethan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How many paired informations can save in FDS?</title><link>https://devzone.nordicsemi.com/thread/477502?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 09:41:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c19e9665-a821-44dc-b597-3fa1b341ba0d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello&amp;nbsp;&lt;span&gt;Ethan,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You can use fds stat to check the flash usage before and after bonding to determine how much FDS space the bond occupies including overhead.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user="Ethan.jskim"]so it is difficult to confirm the exact number of stored data in advance.[/quote]
&lt;p&gt;The size of the bond information is the same for all bonds. The number of CCCDs is defined by your application.&lt;/p&gt;
[quote user="Ethan.jskim"]My question is whether the peer manager is configured to automatically purge previously stored data if there is no FDS storage size to store a new bonded (paired) device, or should I handle in my application code by API like pm_peer_delete()?[/quote]
&lt;p&gt;Yes, as stated in the API doc, the lowest ranked peer(s) will be deleted:&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Deletes the lowest ranked peer(s) when garbage collection is insufficient.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How many paired informations can save in FDS?</title><link>https://devzone.nordicsemi.com/thread/477497?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 09:06:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:61b14e55-74a9-4652-b8f4-9af07c196fd1</guid><dc:creator>Ethan.jskim</dc:creator><description>&lt;p&gt;Hello Vidar.&lt;/p&gt;
&lt;p&gt;thank your for your quick advice.&lt;/p&gt;
&lt;p&gt;My understanding is that each bonding data size depends on an attribute table containing CCCDs counts and I can monitor FDS usage&amp;nbsp; by call to fds_stat.&lt;br /&gt;if my understood is correct that means bonding data can be stored according to the remaining FDS size, which can be checked through fds_stat, so it is difficult to confirm the exact number of stored data in advance. Is that right?&lt;/p&gt;
&lt;p&gt;About peer ranking,&lt;/p&gt;
&lt;p&gt;My question is whether the peer manager is configured to automatically purge previously stored data if there is no FDS storage size to store a new bonded (paired) device, or should I handle in my application code by API like pm_peer_delete()?&lt;/p&gt;
&lt;p&gt;BR.&lt;/p&gt;
&lt;p&gt;Ethan.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How many paired informations can save in FDS?</title><link>https://devzone.nordicsemi.com/thread/477473?ContentTypeID=1</link><pubDate>Mon, 08 Apr 2024 07:46:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6dc03c4f-c946-493d-baf8-4d7ce063f367</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The size of each bond entry depends also depends on the number of CCCDs you have in your attribute table. I recommend you monitor the FDS usage in your application by periodically calling&amp;nbsp;&lt;a title="fds_stat" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__fds.html?cp=9_1_6_10_18_31#ga5d3f04e9755408293408be377f7eeaf9"&gt;fds_stat&lt;/a&gt;. Then you can determine exactly how much space a bond consumes in your application.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;For Peer ranking, you can call&amp;nbsp;&lt;a title="pm_handler_flash_clean" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v17.1.0/group__pm__handler.html?cp=9_1_6_2_16_2_2#ga143031c4ec929f76d406f5c7c40dcb8a"&gt;pm_handler_flash_clean&lt;/a&gt;() from your PM callback. This function is used in the ble_app_hids_keyboard example.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>