<?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>ble bonding infos decoding</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/67459/ble-bonding-infos-decoding</link><description>To the kind attention of Nordic support team, 
 after doing some ble bonding between an nRF52 device and an host computer, I can see this situation in device flash. So, these bonding infos are written 
 sequentially. How many are available? What happens</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 21 Oct 2020 10:26:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/67459/ble-bonding-infos-decoding" /><item><title>RE: ble bonding infos decoding</title><link>https://devzone.nordicsemi.com/thread/276146?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 10:26:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:034a470e-5727-479b-8708-0e325c8ae50d</guid><dc:creator>astella</dc:creator><description>&lt;p&gt;Thank you sir, very nice reply&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: ble bonding infos decoding</title><link>https://devzone.nordicsemi.com/thread/276144?ContentTypeID=1</link><pubDate>Wed, 21 Oct 2020 10:22:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e2fcb59-b86b-484d-a9cd-663988a7a215</guid><dc:creator>Dmitry</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Bonding info along with GATT cache data is written by peer manager to FDS storage space as a set of records - if you&amp;#39;re curious, the format of FDS record itself can be found in components/libraries/fds/fds.h. The highlited block of data is not a single record but a sequence of different ones - see components/ble/peer_manager/peer_manager_types.h.&lt;/p&gt;
[quote userid="78952" url="~/f/nordic-q-a/67459/ble-bonding-infos-decoding"]How many are available[/quote]
&lt;p&gt;As many as you have space in FDS.&lt;/p&gt;
[quote userid="78952" url="~/f/nordic-q-a/67459/ble-bonding-infos-decoding"]What happens when there is no any more room?[/quote]
&lt;p&gt;Peer manager will initiate a garbage collection procedure - the whole flash space will be compacted by throwing away&amp;nbsp;old records marked for deletion. If there&amp;#39;s really no space (FDS is full), it&amp;#39;s not surprizing that bonding info will not be saved.&lt;/p&gt;
[quote userid="78952" url="~/f/nordic-q-a/67459/ble-bonding-infos-decoding"]Can you please help me in finding out the right documentation, or provide one such structure example if possible?[/quote]
&lt;p&gt;For example, you can find the format of bonding data (pm_peer_data_bonding_t structure) in components/ble/peer_manager/peer_manager_types.h. I don&amp;#39;t think it&amp;#39;s a good idea to work with these records directly, it&amp;#39;s much better to use peer manager API.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>