<?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 accept pairing with non acceptable parameters</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59993/peer-manager-accept-pairing-with-non-acceptable-parameters</link><description>Hi, 
 I&amp;#39;m currently developping a peripheral. This one uses Peer Manager module to handle pairing. This peer manager is configured properly with pm_sec_params_set (as far as I can say), and accept pairing and probably bonding (I did not test it fully</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 16 Apr 2020 07:43:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59993/peer-manager-accept-pairing-with-non-acceptable-parameters" /><item><title>RE: Peer Manager accept pairing with non acceptable parameters</title><link>https://devzone.nordicsemi.com/thread/244874?ContentTypeID=1</link><pubDate>Thu, 16 Apr 2020 07:43:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf4416fe-1a8b-408d-a809-f067e6ee5d69</guid><dc:creator>benjamin.forest</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Thanks for your answer, I managed to have it working by adding the following lines on my peer manager events handler.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void pm_evt_handler(pm_evt_t const * p_pm_evt)
{
    ret_code_t err_code;

    pm_handler_on_pm_evt(p_pm_evt);
    pm_handler_disconnect_on_insufficient_sec(p_pm_evt, &amp;amp;m_min_sec_param);
    pm_handler_disconnect_on_sec_failure(p_pm_evt) ;
    pm_handler_flash_clean(p_pm_evt);
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;All the best,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager accept pairing with non acceptable parameters</title><link>https://devzone.nordicsemi.com/thread/244617?ContentTypeID=1</link><pubDate>Wed, 15 Apr 2020 08:24:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cae52e42-fbde-48bb-b255-29569476520f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]- Is it possible that I misunderstood my logs ?[/quote]
&lt;p&gt;Could you provide the log?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]- Is there somewhere in the peer manager configuration the possibility to refuse pairing if Central security parameters does not meets mine, or shall I code it in my peer manager event handler ? On which event ?[/quote]
&lt;p&gt;Please see this &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/50784/security-as-central-a"&gt;post&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]- Reading the doc, I found some mention of functions pm_handler_disconnect_on_insufficient_sec and so on, that seems to do what I want, could you provide me with an example ?[/quote]
&lt;p&gt;Unfortunately, we don&amp;#39;t have the example with&amp;nbsp;&lt;a title="pm_handler_disconnect_on_insufficient_sec" href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__pm__handler.html?cp=7_1_6_2_16_2_0#ga10e281bde0647f2393399ffa5c4f84a4"&gt;pm_handler_disconnect_on_insufficient_sec&lt;/a&gt;. You can check the documentation for the usage:&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Auxiliary standard function for disconnecting on insufficient connection security.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;This function disconnects whenever the connection security succeeds, that is whenever it receives a&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__peer__manager.html#gga4a0e37cf07eb91e1a1808995b957808ba029dc0c5885544eb721fa5ea9b478047"&gt;PM_EVT_CONN_SEC_SUCCEEDED&lt;/a&gt;, but the established security does not fulfill the provided criteria.&lt;/em&gt;&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;em&gt;Note&lt;/em&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;em&gt;In normal circumstances, this function should be called for every Peer Manager event.&lt;/em&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;em&gt;This function is a supplement to&amp;nbsp;&lt;a href="https://infocenter.nordicsemi.com/topic/sdk_nrf5_v16.0.0/group__pm__handler.html#ga87b3d3ebdd6d878ba4360bd9b98c303e"&gt;pm_handler_on_pm_evt&lt;/a&gt;, not its replacement.&lt;/em&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;p&gt;&lt;em&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]- Is it possible that I short-circuit the peer manager, if by any chance I have another observer at lower level ? (The one I&amp;#39;m thinking about only log, but maybe another module could do something ?)[/quote]
&lt;p&gt;&amp;nbsp;I don&amp;#39;t understand the question. Do you mean unpair or reject to pair? Could you elaborate more?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Peer Manager accept pairing with non acceptable parameters</title><link>https://devzone.nordicsemi.com/thread/244048?ContentTypeID=1</link><pubDate>Wed, 08 Apr 2020 10:55:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e84be2c-e7f0-495a-addf-a72f7808cd4f</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Just wanted to let you know that we have received your support case. Due to Easter holiday we may not be able to provide an answer until next week. Sorry for any inconvenience.&lt;/p&gt;
&lt;p&gt;-Amanda H.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>