<?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>Is there a specific API to enable and disable the pairing and bonding functions of nrf52833?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/85064/is-there-a-specific-api-to-enable-and-disable-the-pairing-and-bonding-functions-of-nrf52833</link><description>Hi, 
 In the product I developed, there is a UI flow about the mode of pairing and binding, which has a limitation that it can only be paired and bound when entering this mode. In other modes, only those that have been paired and bound can be connected</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 24 Feb 2022 12:06:27 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/85064/is-there-a-specific-api-to-enable-and-disable-the-pairing-and-bonding-functions-of-nrf52833" /><item><title>RE: Is there a specific API to enable and disable the pairing and bonding functions of nrf52833?</title><link>https://devzone.nordicsemi.com/thread/354803?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 12:06:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c46f367e-4bae-4655-888d-241a0f9e01e4</guid><dc:creator>Mikey</dc:creator><description>&lt;p&gt;In this way, I can achieve the effect I want. When the whitelist broadcast is turned on, only the bound ones can connect; when the whitelist broadcast is turned off, any device can connect. The test is as good as I want, I haven&amp;#39;t been able to port it better to my project. Still debugging.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a specific API to enable and disable the pairing and bonding functions of nrf52833?</title><link>https://devzone.nordicsemi.com/thread/354786?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 11:31:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:95f21926-7e84-4f9b-b3c0-81666c25adf1</guid><dc:creator>Mikey</dc:creator><description>&lt;p&gt;Maybe my statement is inaccurate, I think that&amp;#39;s what you mean now. So I use the &amp;quot;nRF5_SDK_17.1.0_ddde560\examples\ble_peripheral\ble_app_hids_mouse&amp;quot; to debug today, and use the timer to enable and disable the whitelist broadcast every time through ble_advertising_modes_config_set(), but I haven&amp;#39;t debugged it yet.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a specific API to enable and disable the pairing and bonding functions of nrf52833?</title><link>https://devzone.nordicsemi.com/thread/354756?ContentTypeID=1</link><pubDate>Thu, 24 Feb 2022 10:07:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8754f3d-977a-4906-8a9c-fbae4ed5e5b1</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;I am not sure what you mean. Can you elaborate?&lt;/p&gt;
&lt;p&gt;In case that helps to clear confusion, let me describe in another way how this (or rather what I &lt;em&gt;think&lt;/em&gt; is what you want) is normally achieved:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;To allow a new device to connect (and potentially pair/bond), advertise&amp;nbsp;without a whitelist. Then &lt;em&gt;any&lt;/em&gt; central can connect.&lt;/li&gt;
&lt;li&gt;To allow only know peers to connect, advertise with a whitelist. Then only centrals in the whitelist (which is typically already bonded peers) are allowed to connect.&lt;/li&gt;
&lt;/ul&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a specific API to enable and disable the pairing and bonding functions of nrf52833?</title><link>https://devzone.nordicsemi.com/thread/354670?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 16:15:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa198bc3-3fde-406c-a34d-1863b3e92b01</guid><dc:creator>Mikey</dc:creator><description>&lt;p&gt;That is to say, when my ui interface is not bound and paired, I use the whitelist to broadcast; after entering the binding mode, turn on the easy broadcast mode to achieve the effect of the ui process?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is there a specific API to enable and disable the pairing and bonding functions of nrf52833?</title><link>https://devzone.nordicsemi.com/thread/354617?ContentTypeID=1</link><pubDate>Wed, 23 Feb 2022 14:12:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9bef8758-d170-46a6-8212-9092054395aa</guid><dc:creator>Einar Thorsrud</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user=""]it can only be paired and bound when entering this mode. In other modes, only those that have been paired and bound can be connected, and new devices are not allowed to connect.[/quote]
&lt;p&gt;There is no direct support in the SDK for dynamically allowing or disallowing pairing/bonding. However, based on what&amp;nbsp;you write, I am not sure it is needed?&lt;/p&gt;
&lt;p&gt;It sound like you have one of two states:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;State A: Already bonded peers are allowed to connect.&lt;/li&gt;
&lt;li&gt;State B: Any device can connect and pair/bond.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Is this correct, and are these the only two states?&lt;/p&gt;
&lt;p&gt;If so, you do not need to consider allowing pairing/bonding or not, but instead need to control if any device should be able to connect (and then potentially pair/bond), or if only bonded devices should be able to connect. &lt;em&gt;This&lt;/em&gt; is a typical scenario for bluetooth, and is normally handled using whitelisting. In state A, where only bonded peers should be allowed to connect, you advertise with whitelisting. When entering mode B, you restart&amp;nbsp;advertising&amp;nbsp;without whitelist, allowing anyone to connect.&lt;/p&gt;
&lt;p&gt;You can for instance refer to the&amp;nbsp;Glucose Application for an example of the method described above. There, when there is already a bond, the device by default advertise with whitelist enabled. However with a button press, advertising without whitelist is started when any device should be allowed to connect. This is also the typical&amp;nbsp;behavior&amp;nbsp;you find in Bluetooth HID devices like mice, where you&amp;nbsp;often have a &amp;quot;Connect&amp;quot; button or similar, or the device allows any central to connect for the first (say) 60 seconds after power-cycling.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>