<?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>Peer manager rewrites peer data to flash on every connection, when using BLE privacy mode</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54487/peer-manager-rewrites-peer-data-to-flash-on-every-connection-when-using-ble-privacy-mode</link><description>Hi, environment is nRF5_SDK_16.0.0_98a08e2 windows SES target is nrf52840. I am using the nordic dev board. The final product is a wearable, which will connect to a smartphone app. 
 Taking the BLE template example, I have made modifications for the purposes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 29 Nov 2019 11:02:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54487/peer-manager-rewrites-peer-data-to-flash-on-every-connection-when-using-ble-privacy-mode" /><item><title>RE: Peer manager rewrites peer data to flash on every connection, when using BLE privacy mode</title><link>https://devzone.nordicsemi.com/thread/222763?ContentTypeID=1</link><pubDate>Fri, 29 Nov 2019 11:02:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f87ebc92-377e-452f-bc09-7874422d05ba</guid><dc:creator>00000000</dc:creator><description>&lt;p&gt;Yes.&lt;br /&gt;I have done some further debugging by printing out all filesystem access.&lt;br /&gt;It seems to me that in fact flash is NOT being written - although it seems from the debug out I have provided that it would be, in fact as we progress lower down the driver stack it actually isnt.&lt;br /&gt;I am satisfied with the behavior for the moment.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer manager rewrites peer data to flash on every connection, when using BLE privacy mode</title><link>https://devzone.nordicsemi.com/thread/221408?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 17:15:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf944ba5-af03-4f00-8b78-8b11129ed003</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Did you also erase the bond on the phone side?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer manager rewrites peer data to flash on every connection, when using BLE privacy mode</title><link>https://devzone.nordicsemi.com/thread/221289?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 11:29:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:231e7d87-ee10-41f1-bfa0-e6136fafea43</guid><dc:creator>00000000</dc:creator><description>&lt;p&gt;Yes, and no luck :-(&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer manager rewrites peer data to flash on every connection, when using BLE privacy mode</title><link>https://devzone.nordicsemi.com/thread/221287?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 11:02:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2d5ed08a-cb7d-4026-9398-53534abdf6de</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Did you do an &amp;quot;nrfjprog --eraseall&amp;quot;? Since you will need to re-bond if you do this kind of change.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer manager rewrites peer data to flash on every connection, when using BLE privacy mode</title><link>https://devzone.nordicsemi.com/thread/221247?ContentTypeID=1</link><pubDate>Thu, 21 Nov 2019 09:23:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bd6ef43-5746-410b-aeec-b5b65e674263</guid><dc:creator>00000000</dc:creator><description>&lt;p&gt;I dont like the idea that flash must be written upon every connection, are you able to confirm whether or not his is necessary?&lt;br /&gt;I tried your suggestion and set PM_PEER_RANKS_ENABLED to 0. The result is that after an initial pair/bond, subsequent connections are rejected:&lt;br /&gt;&lt;br /&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: Connected.
&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Pairing, error: 133
&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 133&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer manager rewrites peer data to flash on every connection, when using BLE privacy mode</title><link>https://devzone.nordicsemi.com/thread/220567?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 12:54:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b1e7c72-525b-4783-854b-641a78ecb502</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;I don&amp;#39;t think you will be wearing out the flash, since the data we stored using FDS, which will store the updated data to a new location every time (until a flash is full,then it will do a garbage collection to clean up the flash). That said, you may likely avoid this by setting&amp;nbsp;PM_PEER_RANKS_ENABLED 0.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>