<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Connecting with bonded peer</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88551/connecting-with-bonded-peer</link><description>Hi, 
 
 For some time I&amp;#39;m developing application for both central and peripheral devices. The Idea is that both devices have a special mode in which they pair &amp;amp; bond and add each other to the whitelist and then disconnect, as the peripheral hoes to sleep</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Mon, 06 Jun 2022 07:57:16 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88551/connecting-with-bonded-peer" /><item><title>RE: Connecting with bonded peer</title><link>https://test-devzone.nordicsemi.com/thread/370983?ContentTypeID=1</link><pubDate>Mon, 06 Jun 2022 07:57:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c812e64c-ae7c-4638-88cc-593ac2586eac</guid><dc:creator>user114812</dc:creator><description>&lt;p&gt;Thanks! Just FYI, I checked it and you don&amp;#39;t have to call pm_conn_secure. It will be done automatically after connecting with bonded peer&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting with bonded peer</title><link>https://test-devzone.nordicsemi.com/thread/370840?ContentTypeID=1</link><pubDate>Fri, 03 Jun 2022 10:37:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:429d8705-8e39-4e29-bde7-ade4045439c5</guid><dc:creator>user26071</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;The PM_EVT_BONDED_PEER_CONNECTED just means that a device that the peer manager is familiar with has connected. The connection is not encrypted at this point. If you wait until you get the event:&lt;/p&gt;
&lt;p&gt;PM_EVT_CONN_SEC_SUCCEEDED. This means that the connection is encrypted and secure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Actually, I am not 100% sure whether they will secure the connection automatically when they are already bonded. See if you get the PM_EVT_CONN_SEC_SUCCEEDED event (the one in&amp;nbsp;pm_handler_pm_evt_log() in peer_manager_handler.c will print it in the log).&lt;/p&gt;
&lt;p&gt;If you don&amp;#39;t see it, just add&amp;nbsp;pm_conn_secure() in the BLE_GAP_EVT_CONNECTED event on one of the devices.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>