<?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 could I calculable the bonded amount in SDK 15.2.0?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/55087/how-could-i-calculable-the-bonded-amount-in-sdk-15-2-0</link><description>Hi, 
 The product is peripheral, CPU is nRF52832 and I use nRF5_SDK_15.2.0_9412b96. 
 My customer asks me how many bonded amounts support in our product? 
 because I can&amp;#39;t find a configuration of ram memory map. (Like SDK 11.0.0, nRF51822) 
 by the way</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 03 Dec 2019 09:36:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/55087/how-could-i-calculable-the-bonded-amount-in-sdk-15-2-0" /><item><title>RE: How could I calculable the bonded amount in SDK 15.2.0?</title><link>https://devzone.nordicsemi.com/thread/223247?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 09:36:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:67a863e4-8358-416a-b98e-c681e5420f6a</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Each bond will require around 60*4 bytes.&amp;nbsp;The exact size depends on how many CCCDs you have in your attribute table.&amp;nbsp;And one&amp;nbsp;of the FDS pages is reserved for garbage collection, so that leaves you with&amp;nbsp;2 flash pages for data storage. So I guess you will be able to keep approx. 20 bonds with this configuration. However,&amp;nbsp;I would have allocated more flash to FDS if the target is to support&amp;nbsp;this many bonds. The reason is that garbage collection is a relatively time-consuming operation that you don&amp;#39;t want to run too often.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Below is a screenshot showing a test&amp;nbsp;I did with the ble_app_hrs sample from SDK 16.0.0. This is after one bond and 2 CCCD updates. Note that the number of freeable words increases when existing data records are updated. These are freed when you run garbage collection.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/resized-image/__size/320x240/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-507c0a6c3a0c40468f213d6e948a8b70/pastedimage1575364870747v1.png" alt=" " /&gt;&lt;/p&gt;
[quote user="CFF.Ken"]what&amp;#39;s whitelist is limited to less than 8?[/quote]
&lt;p&gt;&amp;nbsp;The limit is only relevant if you use a whitelist in your app.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How could I calculable the bonded amount in SDK 15.2.0?</title><link>https://devzone.nordicsemi.com/thread/223184?ContentTypeID=1</link><pubDate>Tue, 03 Dec 2019 02:55:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6caee345-04f4-4550-a2d2-cfd74b87b0a2</guid><dc:creator>CFF.K</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you for this answer.&lt;/p&gt;
&lt;p&gt;But I need to calculable&amp;nbsp;&lt;span&gt;the bonded amount for my clients.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Please support how many bonded devices in our product? (import question)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And my fds settings are (FDS_VIRTUAL_PAGES 3) and (FDS_VIRTUAL_PAGE_SIZE 1024).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;what&amp;#39;s whitelist is limited to less than 8?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How could I calculable the bonded amount in SDK 15.2.0?</title><link>https://devzone.nordicsemi.com/thread/223057?ContentTypeID=1</link><pubDate>Mon, 02 Dec 2019 13:07:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cbdc0944-19b0-45cf-aa2d-1477775a9e21</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;The peer manager uses &lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/lib_fds.html?cp=6_1_3_56"&gt;FDS&lt;/a&gt; to manage the storage of bonds in flash. So the number of bonds you can store depends on how many pages you have allocated to&amp;nbsp;it (look for fds settings in sdk_config), if there are other FDS users in your app,&amp;nbsp; and how many CCCDs you have in your attribute table. I suggest that you try calling&amp;nbsp;&lt;a title="fds_stat" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__fds.html?cp=6_1_6_11_18_31#ga5d3f04e9755408293408be377f7eeaf9"&gt;fds_stat&lt;/a&gt;() periodically to determine the flash usage for your app specifically.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It usually shouldn&amp;#39;t be a problem to store considerably more than 8 bonds, but note that the whitelist can only hold 8 devices.&amp;nbsp;So&amp;nbsp;8 may be the practical limit if you rely on whitelist scanning or advertising.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>