<?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>NRF52 BLE peripheral- pairing and bonding questions in NCS</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/94273/nrf52-ble-peripheral--pairing-and-bonding-questions-in-ncs</link><description>Hi 
 I am working on a BLE project and it requires some specific functionalities. I am not sure if all of them are doable. I have some questions about these. So, if someone could answer them, it would be very much helpful. I am using NRF52832 and 840</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Jan 2023 11:56:08 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/94273/nrf52-ble-peripheral--pairing-and-bonding-questions-in-ncs" /><item><title>RE: NRF52 BLE peripheral- pairing and bonding questions in NCS</title><link>https://devzone.nordicsemi.com/thread/403373?ContentTypeID=1</link><pubDate>Thu, 05 Jan 2023 11:56:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bc845620-a89d-48de-b6c9-30642edab302</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Sorry for the late response. I was on my vacation last week&lt;/p&gt;
[quote user="Midhunjac"]What I want to do is that whenever I try to CONNECT the device, the prompt for the fixed passkey must be shown. Not only for bonding but just for connecting too. Is it possible [/quote]
&lt;p&gt;Did you mean a notification for entering the passkey for making the connection/bond? If so it is possible, I think the sample I pointed in my last response does this. And also take a look at the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_bms/README.html"&gt;peripheral_bms&lt;/a&gt; sample in NCS which is only one according to your use case (I guess).&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Your disconnection reason 19 is not an error. This happens when the peer decided to disconnect for some reason. Are you getting another error or reason? This can also be specific to the device you are using.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 BLE peripheral- pairing and bonding questions in NCS</title><link>https://devzone.nordicsemi.com/thread/402138?ContentTypeID=1</link><pubDate>Sun, 25 Dec 2022 15:21:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9f4080e2-d38f-4ced-9d1e-f17892a96b47</guid><dc:creator>Midhunjac</dc:creator><description>&lt;p&gt;Hi, thanks for the links given. They helped me to get a basic idea and I got the static passkey functionality to work. There is one more thing that I want though. Right now, I have to explicitly use the BOND function in the NRF Connect android application for the fixed passkey functionality to work. What I want to do is that whenever I try to CONNECT the device, the prompt for the fixed passkey must be shown. Not only for bonding but just for connecting too. Is it possible ?&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;For the same application, I tried using the same changes as suggested in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77391/allow-lesc-just-works-pairing-bonding-with-nrf-connect-sdk-zephyr-after-pressing-button"&gt;this thread&lt;/a&gt;. However, it didnt work out as I expected it to. It connects and then disconnects itself almost instantly. This is the log.&lt;/p&gt;
&lt;p&gt;Bluetooth initializedConnected 72:83:E0:51:81:1D (random) Disconnected: 72:83:E0:51:81:1D (random) (reason 19)&lt;/p&gt;
&lt;p&gt;Can someone please guide me here ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 BLE peripheral- pairing and bonding questions in NCS</title><link>https://devzone.nordicsemi.com/thread/398136?ContentTypeID=1</link><pubDate>Tue, 29 Nov 2022 13:48:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8436af6d-9817-4897-aded-a2d071b64de4</guid><dc:creator>Menon</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;AFAIK, Your use case is possible but I don&amp;#39;t have dedicated sample which I can point to you in NCS. But &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v15.2.0/ble_sdk_app_gls.html"&gt;this sample&lt;/a&gt; from our old SDK shows your use case.&lt;/p&gt;
&lt;p&gt;Coming to NCS you can refer to &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/69202/zephyr-ble-static-passkey-between-central-and-peripheral-on-two-nrf52840s"&gt;this thread&lt;/a&gt; from my colleague showing how to implement a pass key while establishing a connection. Keep this &lt;a href="https://devzone.nordicsemi.com/guides/nrf-connect-sdk-guides/b/software/posts/building-a-ble-application-on-ncs-sdk---contrasting-to-softdevice-based-ble-applications---part-2-central-role"&gt;blog&lt;/a&gt; as reference for building the application in NCS.&lt;/p&gt;
&lt;p&gt;Please let me know if you need more clarification or help on this.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Kind Regards,&lt;/p&gt;
&lt;p&gt;Abhijith&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF52 BLE peripheral- pairing and bonding questions in NCS</title><link>https://devzone.nordicsemi.com/thread/397708?ContentTypeID=1</link><pubDate>Fri, 25 Nov 2022 15:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0e08cb4e-a927-489f-8ffc-a113e549b750</guid><dc:creator>Midhunjac</dc:creator><description>&lt;p&gt;I would like to add a few more points. As part of trying out (2), I tried different things and I implemented the BT_GATT_PERM_READ_AUTHEN in a characteristic and using the bt_passkey_set(), i could ALMOST get what i wanted. But this happens only when i try to use that particular service in my phone. What I want to do is forcing the user to enter the password just before connecting so that, only after entering the passkey, can the user connect to the nrf52 module. Is there any way to do that ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>