<?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 bond control</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/14213/peer-manager-bond-control</link><description>what I am basically trying to do is only allow a single bond and any new bonds disallowed until the user selects and option to allow a new bond and then and only then delete the old one. I can&amp;#39;t delete the old bond until the new one succeeds. 
 I would</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Jun 2016 07:24:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/14213/peer-manager-bond-control" /><item><title>RE: peer manager bond control</title><link>https://devzone.nordicsemi.com/thread/54289?ContentTypeID=1</link><pubDate>Mon, 13 Jun 2016 07:24:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bfd538e4-f11b-4afd-8fcf-349c4ea711f0</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I don&amp;#39;t see how including a bit in advertisment would avoid a connect-&amp;gt;pairing failed. The peripheral wouldn&amp;#39;t know that the central has deleted its bond. You would only be able to set the bit after a connect-&amp;gt;pairing failed wouldn&amp;#39;t you?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peer manager bond control</title><link>https://devzone.nordicsemi.com/thread/54288?ContentTypeID=1</link><pubDate>Tue, 07 Jun 2016 14:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e4cee445-72e0-48e0-beef-7986220fa103</guid><dc:creator>Jim Dattolo</dc:creator><description>&lt;p&gt;so right now I am just letting it limit cycle and alerting the user on the side with the UI that the bond is failing.  This triggers the user to go &amp;quot;aha&amp;quot; and then interact with the peripheral side to enable pairing.   When the cycle comes around it starts the pairing off.   The central side always erases bonds when starting a new pairing cycle.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peer manager bond control</title><link>https://devzone.nordicsemi.com/thread/54287?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 12:31:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a19b32b2-1ff9-40c6-ab27-2904bdfbb3a4</guid><dc:creator>Jim Dattolo</dc:creator><description>&lt;p&gt;one last thing.  When I delete the old bond on the central but not on the peripheral and the central connects to the peripheral and it tries and secure the link both sides throw a 0x85 in p_ble_evt-&amp;gt;evt.gap_evt.params.auth_status.auth_status.    I&amp;#39;m trying to work out what to do when this happens, I don&amp;#39;t want to simply repair on the peripheral since it could be an attacker.  Right now I am leaning towards using a bit in the mfg spec data in the adv packet to state that this peripheral radio needs to be repaired and to alert the user on the central&amp;#39;s UI.  That way I don&amp;#39;t limit cycle through connect/fail/reconnect.   Is there an easier way for this case?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peer manager bond control</title><link>https://devzone.nordicsemi.com/thread/54286?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 12:26:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:365bd285-bb14-4756-a979-1cdd405c0043</guid><dc:creator>Jim Dattolo</dc:creator><description>&lt;p&gt;I am deleting the old peer when the CONN_SEC_SUCCEEDED event is thrown so that works.   So if I call pm_sec_params_set with bond=0 after I get my first one I can set it back to 1 when the user wants to replace the existing bond?  That kind of makes sense.  I was trying to work within the events but this is a lot simpler.  Thanks, I&amp;#39;ll try it and let you know later today if it works.  If it does that makes things really simple on my peripheral role side.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: peer manager bond control</title><link>https://devzone.nordicsemi.com/thread/54285?ContentTypeID=1</link><pubDate>Wed, 01 Jun 2016 11:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:035588b8-6f8c-4c3f-9b2b-ea5a03f69ab4</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I have a suggestion.&lt;/p&gt;
&lt;p&gt;pm_sec_params_set() can be called multiple times. You can disallow new bonds by calling it with NULL. If a bonded device connects, it will still be able to re-encrypt the link.&lt;/p&gt;
&lt;p&gt;You can delete a bond with pm_peer_delete(), maybe you can do this when you get the PM_EVT_CONN_SEC_SUCCEEDED event for the newly bonded peer?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>