<?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>NFC Pairing with Type 2 versus Type 4 Tag</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91820/nfc-pairing-with-type-2-versus-type-4-tag</link><description>Using NCS V2.0.0 
 NRF52840 DK 
 Testing Using NRF Connect Mobile on Android 
 
 Programed the Peripheral_nfc_pairing Example 
 when set as a type 2 tag it works and bonds multiple times without issue. 
 when set as type 4 tag it works intermittently</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Sep 2022 09:26:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91820/nfc-pairing-with-type-2-versus-type-4-tag" /><item><title>RE: NFC Pairing with Type 2 versus Type 4 Tag</title><link>https://devzone.nordicsemi.com/thread/386796?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 09:26:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bcb66e6e-6c0b-43cf-8e4e-192f4e960339</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wes,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;From what I can see from the code, after waking up from NFC, it will cycle through the bonded device list with the directed advertising. Each time the directed advertising timeout it will cycle to the next bonded device in the list and continue directed advertising. When the list is over, it will do the normal advertising.&amp;nbsp;&lt;br /&gt;Here is when it loops through the list of bonded device to do directed advertising and do regular advertising if the list is over:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:457px;max-width:398px;" alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/796x914/__key/communityserver-discussions-components-files/4/pastedimage1663579454286v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Here is when the directed advertising timeout (1.25ms):&amp;nbsp;&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/pastedimage1663579505787v2.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;&lt;br /&gt;So in your case it should do normal advertising after the timeout.&amp;nbsp;&lt;br /&gt;What do you see when you connect the second phone to it ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;In my case here when I test with my phone, I had an issue that a new bond is started with my phone everytime I bring the phone to wake the board up. Maybe something to do with the phone that it wants to do new pairing when reading NFC.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Pairing with Type 2 versus Type 4 Tag</title><link>https://devzone.nordicsemi.com/thread/386732?ContentTypeID=1</link><pubDate>Sat, 17 Sep 2022 11:18:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:989dd486-5f8a-455e-bc53-36b4faef7af7</guid><dc:creator>WesC</dc:creator><description>&lt;p&gt;Hung&lt;/p&gt;
&lt;p&gt;sorry for the delay.&amp;nbsp; I will ask the customer for the sniffer.&amp;nbsp; but he recently sent me an email&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;As for Tag 2/4, There was a period when even the peripheral_nfc_paring sample was not working for my Android phone.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It was not till after a reboot of my phone that it began to work, which leaves a big question as to why. But we have doubts whether that can be answered or not.&lt;/p&gt;
&lt;p&gt;The sample itself will pair with a single&amp;nbsp;phone. But once it has (and has then disconnected), the sample won&amp;#39;t pair with a second phone apparently due to direct advertising to the first phone.&lt;/p&gt;
&lt;p&gt;And only after a re-flash of the sample FW will it pair with the second phone.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Any thoughts?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NFC Pairing with Type 2 versus Type 4 Tag</title><link>https://devzone.nordicsemi.com/thread/385741?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 12:45:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b7ff1c7d-020e-4629-850b-e2f1c7458cd9</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Wes,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;It&amp;#39;s a little bit hard to summarize from the&amp;nbsp;sequence on how to reproduce the issue.&amp;nbsp;&lt;br /&gt;Could you list a step by step instruction on how to reproduce the issue ? Starting from a blank chip.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I would suggest to capture a sniffer trace of the process. We would need to see what exactly causing the issue. Please note that NFC would not involve after the device bonded. When re-encrypting the link the LTK will be used and that is stored on both side.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Error number 9 unfortunately doesn&amp;#39;t give us much information. It means&amp;nbsp;BT_SECURITY_ERR_UNSPECIFIED. A sniffer trace would help here.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
[quote user=""]As for&amp;nbsp; Type 4 vs Type 2 tags, I assumed type 4 would be more secure.&amp;nbsp;[/quote]
&lt;p&gt;I&amp;#39;m not so sure about the above statement, could you let me know you meant it&amp;#39;s more secure regarding NFC communication or the OOB BLE pairing is more secure with Tag type 4 ?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
[quote user=""]It also does not start advertising until an NFC touch occurs, so even a previously bonded unit cannot connect without NFC[/quote]
&lt;p&gt;Regarding the above line, I guess it&amp;#39;s just how it&amp;#39;s designed with the example. You can either add code to start advertising (call&amp;nbsp;advertising_start()) when booting up or call that when a button is pressed.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>