<?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>Increased BLE security on NRF52832</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/114792/increased-ble-security-on-nrf52832</link><description>I&amp;#39;m working on a BLE project based off of the peripheral_lbs sample within the nRF Connect SDK v2.7.0. I am attempting to increase the BLE security level up to either level 3 or level 4 from within the connected callback as I saw done in the sample &amp;quot;peripheral_sc_only</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 20 Sep 2024 10:46:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/114792/increased-ble-security-on-nrf52832" /><item><title>RE: Increased BLE security on NRF52832</title><link>https://devzone.nordicsemi.com/thread/503242?ContentTypeID=1</link><pubDate>Fri, 20 Sep 2024 10:46:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1c7fba67-949e-434f-a5a0-ff0d22f44e7d</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Everything is linked to &lt;a href="https://docs.zephyrproject.org/2.7.5/reference/kconfig/CONFIG_BT_MAX_PAIRED.html"&gt;CONFIG_BT_MAX_PAIRED&lt;/a&gt;, try increasing this value in your prj.conf allowing a larger buffer and see if it helps.&lt;/p&gt;
&lt;p&gt;Also if you do not want more space to be allocated, then think about defining &lt;a href="https://docs.zephyrproject.org/2.7.5/reference/kconfig/CONFIG_BT_KEYS_OVERWRITE_OLDEST.html"&gt;CONFIG_BT_KEYS_OVERWRITE_OLDEST&lt;/a&gt;&lt;/p&gt;
&lt;div style="left:226px;top:-20.0028px;"&gt;
&lt;div&gt;&lt;/div&gt;
&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increased BLE security on NRF52832</title><link>https://devzone.nordicsemi.com/thread/502975?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 15:13:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2009534-e80e-43c1-9f63-31413be3ccc0</guid><dc:creator>Tim Scott</dc:creator><description>&lt;p&gt;This is the path of function calls to where the error is initially returned before being passed all the way up:&amp;nbsp;&lt;br /&gt;bt_conn_set_security -&amp;gt; start_security -&amp;gt; bt_smp_start_security -&amp;gt; smp_send_security_req&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1726672337916v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;This is the section of code that returns the error:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;	if (!conn-&amp;gt;le.keys) {
		conn-&amp;gt;le.keys = bt_keys_get_addr(conn-&amp;gt;id, &amp;amp;conn-&amp;gt;le.dst);
		if (!conn-&amp;gt;le.keys) {
			return -ENOMEM;
		}
	}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Increased BLE security on NRF52832</title><link>https://devzone.nordicsemi.com/thread/502879?ContentTypeID=1</link><pubDate>Wed, 18 Sep 2024 07:52:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:928de40b-c5d3-46eb-834a-8fae1c0dd0b9</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Can you please compile your application with debug options enabled and start the application in debugger and step inside&amp;nbsp;bt_conn_set_security function. It should give you exact context where this error ENOMEM is returned. If you can express that here, we can try to see if we have a configuration option to fix this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>