<?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>BLE pairing process with nRF5340 Audio</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/113541/ble-pairing-process-with-nrf5340-audio</link><description>I have asked this before, but I will ask again. 
 I have a few questions about the sample source of nRF5340 Audio. 
 1. Where does the connection process between the gateway and the headset take place? 
 2. Where is the BLE bonding information set? 
</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Jul 2024 16:10:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/113541/ble-pairing-process-with-nrf5340-audio" /><item><title>RE: BLE pairing process with nRF5340 Audio</title><link>https://devzone.nordicsemi.com/thread/496453?ContentTypeID=1</link><pubDate>Wed, 31 Jul 2024 16:10:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:34848891-063a-4842-b6bc-46a617812bc1</guid><dc:creator>Amanda Hsieh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote user=""]1. Where does the connection process between the gateway and the headset take place?[/quote]
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;See&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/src/bluetooth/bt_management/bt_mgmt.c#L62"&gt;https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/src/bluetooth/bt_management/bt_mgmt.c#L62&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
[quote user=""]2. Where is the BLE bonding information set?[/quote]
&lt;p&gt;See &lt;a href="https://academy.nordicsemi.com/courses/bluetooth-low-energy-fundamentals/lessons/lesson-5-bluetooth-le-security-fundamentals/topic/blefund-lesson-5-exercise-2/"&gt;this course&lt;/a&gt; on how to implement bonding.&amp;nbsp;&lt;/p&gt;
[quote user=""]3. Is it possible to rewrite the bonding information?[/quote]
&lt;p&gt;&lt;span&gt;Yes, it is possible to rewrite the bonding information. To clear the bonding information, &lt;a href="https://github.com/nrfconnect/sdk-nrf/blob/v2.7.0/applications/nrf5340_audio/src/bluetooth/bt_management/bt_mgmt.c#L210"&gt;press and hold BTN 5&lt;/a&gt; during boot or reprogram all the development kits.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
[quote user=""]4. Will reconnection occur automatically after executing bt_mgmt_bonding_clear()?[/quote]
&lt;p&gt;yes, but it needs both sides to delete the bonding information.&lt;/p&gt;
[quote user=""]5. If I want to fix the key exchanged during pairing instead of generating it randomly, which source should I edit?[/quote]
&lt;p&gt;&lt;span&gt;You can use&amp;nbsp;the&amp;nbsp;&lt;code dir="ltr"&gt;CONFIG_BT_FIXED_PASSKEY&lt;/code&gt;&amp;nbsp;configuration option which&amp;nbsp;&lt;/span&gt;allows you to set a fixed passkey that will be used during the pairing process.&amp;nbsp;See my colleague&amp;#39;s example in&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69202/zephyr-ble-static-passkey-between-central-and-peripheral-on-two-nrf52840s/284187"&gt; this post&lt;/a&gt;.&amp;nbsp; However, please note that using a fixed passkey is less secure and is not recommended for production use, as it is easy to deduce during the pairing procedure.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Regards,&lt;br /&gt;Amanda H.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>