<?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 saved event</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58812/peer-saved-event</link><description>Hello, 
 I am using NRF52840 with SDK 16. In my project I need to restart the chip after a successful pairing but I can&amp;#39;t find any event that can make me sure about pairing being done and its data saved. I checked PM_EVT_CONN_SEC_SUCCEEDED and PM_EVT_PEER_DATA_UPDATE_SUCCEEDED</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Mar 2020 08:44:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58812/peer-saved-event" /><item><title>RE: PEER saved event</title><link>https://devzone.nordicsemi.com/thread/239004?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 08:44:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:78a1a358-7c98-4fd7-bb4c-6e7c257838f2</guid><dc:creator>hossein_m</dc:creator><description>&lt;p&gt;I guess setting a timer is my only option since we don&amp;#39;t know what event comes last.&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Thank you for your help&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PEER saved event</title><link>https://devzone.nordicsemi.com/thread/238998?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 08:26:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:93816e5d-2376-4664-965b-4099214dd02b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, &lt;/p&gt;
&lt;p&gt;You can see from the debug log which update events you get during a bonding procedure if you set the NRF_LOG_DEFAULT_LEVEL config option to &amp;#39;4&amp;#39; (Debug). Here&amp;#39;s from the ble_app_hrs example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app: BLE_GAP_EVT_AUTH_STATUS: status=0x0 bond=0x1 lv4: 0 kdist_own:0x3 kdist_peer:0x2
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Bonding data, action: Update
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Local database, action: Update
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Central address resolution, action: Update&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;However, I&amp;#39;m not sure if the central address resolution is always going to come last. It may depend on the peer device. Would it be an option to use a timer,etc to delay the reset until a few seconds after the last PM update event?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PEER saved event</title><link>https://devzone.nordicsemi.com/thread/238984?ContentTypeID=1</link><pubDate>Tue, 10 Mar 2020 07:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b50290b-bd40-4a7f-a4ec-e5fca6a730b3</guid><dc:creator>hossein_m</dc:creator><description>&lt;p&gt;Hi,&lt;br /&gt;Thank you for you reply&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;Yes that is the plan.&lt;/p&gt;
&lt;p&gt;Are you saying&amp;nbsp;I can restart the chip when&amp;nbsp;fstorage is not busy after receiving&amp;nbsp;&lt;span&gt;PM_EVT_PEER_DATA_UPDATE_SUCCEEDED with right pm_peer_data_id_t?&lt;br /&gt;Which&amp;nbsp;pm_peer_data_id_t value should I look for?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: PEER saved event</title><link>https://devzone.nordicsemi.com/thread/238866?ContentTypeID=1</link><pubDate>Mon, 09 Mar 2020 14:18:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9329482c-a282-4877-abf9-72294ec085cc</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The event information for the &amp;#39;PM_EVT_PEER_DATA_UPDATE_SUCCEEDED&amp;#39; event reported to your registered peer manager callback includes the data id (from&amp;nbsp;pm_peer_data_id_t enum) that you can use to determine what was updated by the PM. You can also use&amp;nbsp;nrf_fstorage_is_busy() to check if there are pending flash operations.&amp;nbsp;Is the plan to intentionally&amp;nbsp;restart the device after completed bonding procedures?&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>