<?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>Two-step NFC OOB pairing and immediate pairing</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/108804/two-step-nfc-oob-pairing-and-immediate-pairing</link><description>Hi, 
 I am working on an application with NCS (2.5.0) that will have central and peripheral devices with no I/O capabilities. During the commissioning phase, I want to use LE Secure OOB pairing to ensure that the authenticity and integrity of the link</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 05 Mar 2024 14:06:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/108804/two-step-nfc-oob-pairing-and-immediate-pairing" /><item><title>RE: Two-step NFC OOB pairing and immediate pairing</title><link>https://devzone.nordicsemi.com/thread/472252?ContentTypeID=1</link><pubDate>Tue, 05 Mar 2024 14:06:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:989f7ee5-7abe-4419-b022-bd78bb3f7fd9</guid><dc:creator>WoutWG</dc:creator><description>&lt;p&gt;Hi Kenneth,&lt;/p&gt;
&lt;p&gt;Thank you for the feedback. I was able to transfer the &amp;#39;remote&amp;#39; bt_le_oob and to use that for pairing when accessing a characteristic with the BT_GATT_PERM_READ_LESC permission. I can indeed also implement a timeout to disconnect when the security level is not raised within a certain amount of time.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I was just wondering how it works with the &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/peripheral_nfc_pairing/README.html"&gt;Bluetooth: NFC Pairing sample&lt;/a&gt;, since there the phone automatically asks to pair with the device when scanning the tag, seemingly before there is any interaction with any characteristic or even before a connection is set up. But that&amp;#39;s mostly informational and not really a requirement, since I got everything working now, so I&amp;#39;ll verify your answer.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Two-step NFC OOB pairing and immediate pairing</title><link>https://devzone.nordicsemi.com/thread/471558?ContentTypeID=1</link><pubDate>Thu, 29 Feb 2024 14:02:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d74bbbf-04ff-4cd5-887a-75cee0df7d28</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;This is kind of a big topic of questions here, but here are some pointers I have.&lt;/p&gt;
&lt;p&gt;So NFC here is just used to transfer some data between the two peers, and you are using the phone as a way to transport that data. I do believe that should work, likely you can just the generic NFC example, and replace the &amp;quot;Hello World&amp;quot; with the OOB data and possible the name, address or irk of the peer (just to make sure the correct peer connect in the first place):&lt;br /&gt;&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nfc/record_text/README.html"&gt;https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/nfc/record_text/README.html&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;In terms of how to use the OOB data on the peer, I suggest to for instance look at the auth_oob_data_request() in main.c for peripheral_keyboard and replace app_nfc_oob_data_get() with the 128-bit key you want to use. Similar on central you need to add the .oob_data_request callback in conn_auth_callbacks to handle such event.&lt;/p&gt;
&lt;p&gt;You are right that by default it will connect using no security, and to ensure that it&amp;#39;s not &amp;quot;stuck&amp;quot; in a connection with an invalid peer, I suggest to add some timeout that for instance after 1-2seconds the peer will disconnect if it has not achieved the desired security level.&lt;/p&gt;
&lt;p&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>