<?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>Secure and unprotected connections simultaneously.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/50140/secure-and-unprotected-connections-simultaneously</link><description>Is it possible on the central device to create secure and unprotected connections simultaneously with different peripheral devices? How should the peer manager be configured in this case?</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 29 Jul 2019 13:42:31 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/50140/secure-and-unprotected-connections-simultaneously" /><item><title>RE: Secure and unprotected connections simultaneously.</title><link>https://devzone.nordicsemi.com/thread/200989?ContentTypeID=1</link><pubDate>Mon, 29 Jul 2019 13:42:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e18b4089-0c15-4581-847b-0061733d0db4</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I took a look at the Peer Manager library, and is seems like you simply call&amp;nbsp;&lt;em&gt;&lt;strong&gt;pm_sec_params_set(&lt;/strong&gt;)&amp;nbsp;&lt;/em&gt;right before calling &lt;strong&gt;&lt;em&gt;pm_conn_secure() &lt;/em&gt;&lt;/strong&gt;(which is called when all&amp;nbsp;the services are discovered).&amp;nbsp;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;&lt;em&gt;&lt;strong&gt;pm_sec_params_set()&lt;/strong&gt;&lt;/em&gt; will call&amp;nbsp;&lt;em&gt;&lt;strong&gt;sm_sec_params_set()&lt;/strong&gt;&lt;/em&gt;, and assign the security parameters to&amp;nbsp;&lt;strong&gt;&amp;nbsp;mp_sec_params&amp;nbsp;&lt;/strong&gt;in &lt;em&gt;security_manager.c&lt;/em&gt;&lt;/li&gt;
&lt;li&gt;The function &lt;strong&gt;&lt;em&gt;pm_conn_secure()&amp;nbsp;&lt;/em&gt;&lt;/strong&gt;calls&amp;nbsp;&lt;strong&gt;sm_link_secure()--&amp;gt;link_secure()&lt;/strong&gt;,&amp;nbsp;where&amp;nbsp;the last function uses&amp;nbsp;&lt;strong&gt;&lt;em&gt;new_context_get() &lt;/em&gt;&lt;/strong&gt;to get the security parameters&amp;nbsp;&lt;strong&gt;mp_sec_params&lt;/strong&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;I have not tested this myself, and don&amp;#39;t have time at the moment, due to reduces staffing in the summer holidays. I might be able to do it later on.&lt;/p&gt;
&lt;p&gt;I would recommend you to start with the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Fble_sdk_app_multilink.html&amp;amp;cp=5_1_4_2_0_2"&gt;BLE Multi-link Example&lt;/a&gt;, modify it and add bonding, and check out if this works.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure and unprotected connections simultaneously.</title><link>https://devzone.nordicsemi.com/thread/200459?ContentTypeID=1</link><pubDate>Thu, 25 Jul 2019 09:56:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9d6f4d5-3e2b-42d2-8ec4-a7de0e199fa7</guid><dc:creator>Vladislav Kolodiev</dc:creator><description>&lt;p&gt;Hi Simon! Thanks for the answer. This is a hypothetical case. In a real device, we will have 2 types of peripheral devices: 1) devices without a display and keyboard, and 2) smartphones. For the first type, I assume to use bonding (LESC with numerical comparison). For smartphones - use bonding : passkey entry, user inputs on peripheral. Also, smartphones may not support LESC. I have a question about the peer manager settings: do I need to make a new pm_sec_params_set () call for different connection types after receiving the BLE_GAP_EVT_CONNECTED event?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Secure and unprotected connections simultaneously.</title><link>https://devzone.nordicsemi.com/thread/200307?ContentTypeID=1</link><pubDate>Wed, 24 Jul 2019 14:07:12 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aeacbdfe-6d21-42b9-bd6c-2c076cd41dff</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I have not done this myself, and couldn&amp;#39;t find any other cases where people have done (after a quick search). However, I think this should be possible. In the central (or the peripheral), you simply call pm_conn_secure(), and provide the connection handle for the link you want to establish an encryption on. You also have to implement the steps explained in &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.3.0%2Flib_peer_manager.html&amp;amp;resultof=%22peer%22%20%22manager%22%20%22manag%22%20"&gt;Peer Manager - Usage&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;If you aren&amp;#39;t able to make this work, please tell me, and I&amp;#39;ll try to put together a simple project that demonstrates it.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>