<?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>New FDS record on each connection</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59866/new-fds-record-on-each-connection</link><description>I checked the operation of the application &amp;quot;ble_app_hrs&amp;quot; and I see that the FDS makes a new record in flash memory with every new connection. What is the need and can it be prohibited? 
 
 Best regards, 
 Vladislav.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 08 Apr 2020 06:54:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59866/new-fds-record-on-each-connection" /><item><title>RE: New FDS record on each connection</title><link>https://devzone.nordicsemi.com/thread/243976?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 06:54:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47b7bb82-f75e-444c-9617-f67f08da3e2b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;The server is expected to remember the CCCD value across connections when bonded, so you will have to update the value in flash if the client changes the setting. It&amp;#39;s really the client that should stop writing to the CCCD on every re-connect.&amp;nbsp;But&amp;nbsp;it would be good if&amp;nbsp;the server had a check for whether the client is actually writing a new CCCD setting before deciding to update the information in NV memory.&lt;/p&gt;
[quote user="vko_nn"]I do not understand why flags of the client notifications need to be stored in flash memory.[/quote]
&lt;p&gt;It&amp;#39;s a specification requirement. A bonded client should not have to re-enable notifications/indications on every connection&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New FDS record on each connection</title><link>https://devzone.nordicsemi.com/thread/243919?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 13:56:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:94206659-8080-4164-b725-987836e9a441</guid><dc:creator>Vladislav Kolodiev</dc:creator><description>&lt;p&gt;May be &lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;before updating FDS it is necessary to check whether flags are changed or not?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;As a short-term solution, I can remove the call &amp;quot;update_pending_flags_check ()&amp;quot; in the file &amp;quot;gatt_cache_manager.c&amp;quot; on line 707 (SDK 15.3). I do not understand why flags of the client notifications need to be stored in flash memory.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New FDS record on each connection</title><link>https://devzone.nordicsemi.com/thread/243869?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 11:01:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07cc7a1c-761d-4701-9436-2acdecd45fb3</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I see. The ble_app_hrs_c implementation enables notifications on every connection&amp;nbsp;even if&amp;nbsp;it was enabled in a previous session. Also, the Server implementation does not actually check if the new configuration is different from the setting already stored in flash. In other words, calls to ble_hrs_c_hrm_notif_enable() /ble_bas_c_bl_notif_enable() will always trigger an FDS update&amp;nbsp;on the server side. I agree that this is an unnecessary use of flash.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New FDS record on each connection</title><link>https://devzone.nordicsemi.com/thread/243814?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 08:06:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fccf372e-d95a-40ec-9c69-eaf6d46bae9a</guid><dc:creator>Vladislav Kolodiev</dc:creator><description>&lt;p&gt;I checked an example SDK with the link between &amp;quot;ble_app_hrs_c&amp;quot; and &amp;quot;ble_app_hrs&amp;quot;. The problem occurs if the devices are connected with bonding. I don&amp;rsquo;t understand: why update the record without new information? Each new record is equal to the previous record. It&amp;nbsp;will destroy flash memory unnecessarily.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New FDS record on each connection</title><link>https://devzone.nordicsemi.com/thread/243802?ContentTypeID=1</link><pubDate>Tue, 07 Apr 2020 07:15:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3dca4626-de07-45c5-84af-b07572ed0fe7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You will get this event if the GATT client changes notification/indication settings on your server. Have you tested this with more than one client to check if the behavior is different? E.g., using the nRF connect app on Android&amp;nbsp; or iOS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New FDS record on each connection</title><link>https://devzone.nordicsemi.com/thread/243731?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 15:46:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fb8e3d3a-41c8-4b96-992a-d35587caf2da</guid><dc:creator>Vladislav Kolodiev</dc:creator><description>&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;Hi Vidar, PM_PEER_RANKS_ENABLED does not affect this issue.&lt;/span&gt; &lt;span class="" title=""&gt;The peer manager receives the PM_EVT_PEER_DATA_UPDATE_SUCCEEDED event with data_id: PM_PEER_DATA_ID_GATT_LOCAL.&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;I am confused that the data for storage has not changed.&lt;/span&gt; &lt;span class="" title=""&gt;In a new record, only the record identifier is changed.&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;I add logs to FDS&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&amp;lt;info&amp;gt; app: GATT ATT MTU on connection 0x0 changed to 23. &lt;br /&gt;&amp;lt;info&amp;gt; app: fds_record_update() file_id=0xC000 record_key=0xC008 length_words=7 &lt;br /&gt;&amp;lt;info&amp;gt; app: 03 00 00 00 14 00 0D 00|........ &lt;br /&gt;&amp;lt;info&amp;gt; app: 02 00 00 00 11 00 02 00|........ &lt;br /&gt;&amp;lt;info&amp;gt; app: 01 00 17 00 02 00 00 00|........ &lt;br /&gt;&amp;lt;info&amp;gt; app: EA 66 00 00 |.f.. &lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&lt;span class="tlid-translation translation" lang="en"&gt;&lt;span class="" title=""&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: New FDS record on each connection</title><link>https://devzone.nordicsemi.com/thread/243599?ContentTypeID=1</link><pubDate>Mon, 06 Apr 2020 10:16:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:65c415f0-77c5-4f6d-927e-509ebba11c64</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Maybe the &amp;#39;PM_PEER_RANKS_ENABLED&amp;#39; setting option is enabled? This will update rank information in flash on every new connections.&lt;/p&gt;
&lt;p&gt;Log message when Rank information is updated in FDS:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&amp;quot;&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change&amp;quot; indicating that the fds update was&lt;/em&gt;&lt;/p&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></channel></rss>