<?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>central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113548/central-device-will-not-raise-security-level-with-new-periphral-if-no-power-reset-on-central-side</link><description>The central device has the below settings 
 
 One central device A and two peripheral devices B and C, B and C have the exact same firmware. A can establish the connection with B or C. 
 but I have to power reset A in order to change the connection between</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 14 Aug 2024 06:40:03 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113548/central-device-will-not-raise-security-level-with-new-periphral-if-no-power-reset-on-central-side" /><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/498169?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 06:40:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7d4a4657-9e6c-4ea3-a86c-f5930f0b91d1</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi again&lt;/p&gt;
&lt;p&gt;1. One LTK is 128 bits (16 bytes), but there is an overhead on bonding data&amp;nbsp;&lt;span&gt;depending on what options you enable&amp;nbsp;(CONFIG_BT_SIGNING/CONFIG_BT_SMP_SC_PAIR_ONLY/CONFIG_BT_KEYS_OVERWRITE_OLDEST) and the bond data size will be ~80 bytes per device. Please note that there&amp;#39;s an upper limit of how many devices you can pair with in Zephyr.&amp;nbsp;&lt;/span&gt;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/subsys/bluetooth/host/Kconfig#L670"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/subsys/bluetooth/host/Kconfig#L670&lt;/a&gt;&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;2. No guide or sample to do this, as we do not recommend this. We just wanted you to be aware that it&amp;#39;s possible, but we don&amp;#39;t have any further information on how to do it. This you will have to figure out.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/498145?ContentTypeID=1</link><pubDate>Wed, 14 Aug 2024 02:01:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:36a25494-7297-49bd-9b5b-3b1c4d8dcc19</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;1. How to calculate the flash size needed for the keys persistent and how to partition for this purpose?&lt;/p&gt;
&lt;p&gt;2. How to &amp;quot;&lt;span&gt;tweak the host layer&lt;/span&gt;&amp;quot;? Is there any guide document and sample application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/497627?ContentTypeID=1</link><pubDate>Fri, 09 Aug 2024 12:47:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4325f4a7-bd32-41fe-9564-d302f8a7e428</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;The key handling for pairing is handled in the BLE Host, and uses settings that are by default to store the keys persistently in flash. It is highly recommended not to use RAM for this due to its volatile nature, so we do not have an alternative like this available. I&amp;#39;m sorry, but it will be up to you to tweak the host layer if this is necessary.&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: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/497425?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 07:10:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f3b5ca7-3fa6-469a-b50e-43737e41f2e0</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;My understanding of pairing from the &lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/topic/pairing-process/"&gt;course&lt;/a&gt; is that:&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Pairing:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;The process of generating, distributing, and authenticating keys for encryption purposes.&lt;/span&gt;&lt;br /&gt;&lt;strong&gt;Bonding:&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/strong&gt;&lt;span&gt;The process of pairing followed by distribution of keys used to encrypt the link in future reconnections.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;but let&amp;#39;s not struggling the concept of these two words. Our&amp;nbsp;product still needs&amp;nbsp;static passkey entry but not store the&amp;nbsp;encryption keys to flash. How to do that?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/497414?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 06:25:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5e3108c7-dd27-4c7c-9716-798fd424bf1f</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Connections can be done without storing specific info in either of the flash, but if they are going to&amp;nbsp;&lt;strong&gt;pair&lt;/strong&gt; over BLE, some pairing information will be stored on both ends.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can read more on the pairing process in the &lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/topic/pairing-process/"&gt;Bluetooth Low Energy Devacademy course here&lt;/a&gt;.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;quot;&lt;span&gt;&lt;em&gt;The pairing process requires the devices to repeat the process every time they want to encrypt the link again. In addition to “pairing”, the term “bonding” is used when the peers store the encryption key so they can re-encrypt the link in future connections with the same peer. During bonding, they can also exchange and store identity keys so they can recognize each other for future connections through the random resolvable private address.&lt;/em&gt;&amp;quot;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/497401?ContentTypeID=1</link><pubDate>Thu, 08 Aug 2024 03:37:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:54c9e08d-9965-4aac-a6c1-cce7cd9d47d8</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;I&amp;#39;m confused. Why saving the pair info or not will affect the pairing process? are you sure about this? So I can not pair without saving the config to flash?&amp;nbsp;keep erasing is not the solution, it&amp;#39;ll damage the flash very soon because the robots will come to charging station very often.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/497326?ContentTypeID=1</link><pubDate>Wed, 07 Aug 2024 11:48:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eacdf135-d13e-47e8-b9c1-61a92d5a8aa2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;That&amp;#39;s not possible I&amp;#39;m afraid, setting this config to 0 means your device won&amp;#39;t support pairing. You will need to erase the pairing information upon disconnection if that is a way out.&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: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/497109?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 08:36:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d7143ff-533e-4650-a584-fecb78244827</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;I think pair is still needed but just not saving the pair information to flash. Could you recommend how to config this? will&amp;nbsp;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BT_MAX_PAIRED"&gt;&lt;span&gt;CONFIG_BT_MAX_PAIRED&lt;/span&gt;&lt;/a&gt;=0 works?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/497101?ContentTypeID=1</link><pubDate>Tue, 06 Aug 2024 08:13:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b58e174-e920-4a2a-a1c7-85bd17a7f449</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think the way to do this would be to not pair or delete the paired devices at a certain point. You can&amp;#39;t &lt;strong&gt;not&amp;nbsp;&lt;/strong&gt;set a number for max paired devices,&amp;nbsp;as that would require a lot of Flash memory.&amp;nbsp; If you&amp;#39;re dependent on the security pairing gives you I&amp;#39;d recommend deleting the pairing info when the maximum is reached.&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: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/496916?ContentTypeID=1</link><pubDate>Mon, 05 Aug 2024 08:33:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1e82404d-ff63-4961-b26e-20e01202b373</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/simonr"&gt;Simonr&lt;/a&gt;&amp;nbsp;is there any update?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/496576?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 09:41:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc79b6d4-a4bd-467c-8a56-679155ceef3d</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;&lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BT_MAX_PAIRED"&gt;&lt;span&gt;CONFIG_BT_MAX_PAIRED&amp;nbsp;&lt;/span&gt;&lt;/a&gt;works for me but&amp;nbsp;our application is a typical robot charger system. robot is peripheral and charger is central. there are multiple&amp;nbsp;robot&amp;nbsp;and&amp;nbsp;charger&amp;nbsp;in a fleet, any&amp;nbsp;robot can go for any charger. and&amp;nbsp;the robot and charger quantity may be a big number for some project. Is there a way&amp;nbsp;NOT to limit the pair number?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/496516?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 06:38:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b68a7f8f-debd-44e2-a44b-e016b66654b6</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;I intend to have one connection only, A-B or A-C, not at the same time.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/496512?ContentTypeID=1</link><pubDate>Thu, 01 Aug 2024 06:17:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6108ecd5-643a-4698-b232-2908acd2dcd9</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;What is the &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BT_MAX_CONN"&gt;CONFIG_BT_MAX_CONN &lt;/a&gt;and &lt;a href="https://docs.nordicsemi.com/bundle/ncs-latest/page/kconfig/index.html#CONFIG_BT_MAX_PAIRED"&gt;&lt;span&gt;CONFIG_BT_MAX_PAIRED&amp;nbsp;&lt;/span&gt;&lt;/a&gt;set to in your central application? My initial guess would be that you are only allowing one connected/paired device at a time, so the central device isn&amp;#39;t able to connect to the other device, and you have to reset the central to disconnect and unpair with one device. Please give these two configs a try and see if that helps. You can also try to enable some logging so we can see what kind of error/return value the central returns when trying to connect to the other device.&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: central device will not raise security level with new periphral if no power reset on central side</title><link>https://devzone.nordicsemi.com/thread/496378?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 09:31:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0bcfb4c9-8058-4352-9020-685f1e3d9c0f</guid><dc:creator>LongQi</dc:creator><description>&lt;p&gt;I tried to remove the authtication then the switching process will be very smoth without any issue.&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/pastedimage1722418243385v1.png" alt=" " /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>