<?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>Does BLE Pairing Using NFC support on nRF52840 (pa10056) ?&amp;nbsp;</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/59476/does-ble-pairing-using-nfc-support-on-nrf52840-pa10056</link><description>I have followed up this example and compiled successfully but the NFC pairing is not working at all. 
 I use my smartphone (Google Pixel 2) to touch the NFC antenna and nothing happened on the screen, even in the terminal. 
 
 After that, I went to check</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 27 Mar 2020 03:05:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/59476/does-ble-pairing-using-nfc-support-on-nrf52840-pa10056" /><item><title>RE: Does BLE Pairing Using NFC support on nRF52840 (pa10056) ?</title><link>https://devzone.nordicsemi.com/thread/241987?ContentTypeID=1</link><pubDate>Fri, 27 Mar 2020 03:05:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab7cba51-458f-4616-8876-f463f6a5cbc3</guid><dc:creator>hychiang</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thank you so much !&amp;nbsp; Adding pm_peers_delete() fixes the issue of reconnection, thank you again!&lt;/p&gt;
&lt;p&gt;And as you said, I just check if this function would be called after&amp;nbsp;pressed the button (default as button 0) and realized that it didn&amp;#39;t. I&amp;#39;m not sure it&amp;#39;s a bug or other factors.&lt;/p&gt;
&lt;p&gt;Besides, I found out that when I connected to the phone successfully. But&amp;nbsp;after around 10 sec, it will pop up a message shown &amp;quot;Could not connect Nordic_NFC_PAIR_REF&amp;quot; at the end of the screen.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://youtu.be/OM4vtBwXAAs"&gt;https://youtu.be/OM4vtBwXAAs&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;However, there are&amp;nbsp;no errors or warning messages on the terminal, does that indicate both devices still connected? Am I able to send data via Bluetooth in this situation? Just like to confirm with you before implementations.&lt;/p&gt;
&lt;p&gt;Very appreciated your help &lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BLE Pairing Using NFC support on nRF52840 (pa10056) ?</title><link>https://devzone.nordicsemi.com/thread/241733?ContentTypeID=1</link><pubDate>Thu, 26 Mar 2020 08:14:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7e29df94-5a5a-42b4-b8f0-b429d148a4b8</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Glad you got the devices to pair! As for the reconnection issue you&amp;#39;re seeing, you can try to delete the bonding information on the nRF side upon disconnection (or upon startup, this is up to you). Please check out the pm_peers_delete() function in peer_manager.c. By default, the example is set to delete peers upon the press of a button on the DK, but you can set it to trigger every time the device disconnects for example instead.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BLE Pairing Using NFC support on nRF52840 (pa10056) ?</title><link>https://devzone.nordicsemi.com/thread/241626?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 14:40:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35f4c5d9-6136-4d18-9018-56a8e69236b7</guid><dc:creator>hychiang</dc:creator><description>&lt;p&gt;Hi Simon,&lt;/p&gt;
&lt;p&gt;Thanks for your reply, I was able to detect the NFC by Android built-in NFC service.&lt;/p&gt;
&lt;p&gt;I think it may be related to the version of Android. The smartphone I took to experiment was the original version, it didn&amp;#39;t upgrade to Android 10 from Android 9, so it works after I upgraded to the newest version via Google system update.&lt;/p&gt;
&lt;p&gt;However, I&amp;#39;m now encountering another issue. At the first time, the NFC pairing was successful and be able to be connected through BLE. But when I want to try to connect in second time after disconnected, the terminal always shows the error -133&lt;/p&gt;
&lt;p&gt;This is the log shown the connection at the first time.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; app_timer: RTC: initialized.
&amp;lt;debug&amp;gt; nrf_ble_lesc: Initialized nrf_crypto.
&amp;lt;debug&amp;gt; nrf_ble_lesc: Initialized nrf_ble_lesc.
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; app: NFC Connection Handover BLE peripheral device example started.
&amp;lt;info&amp;gt; BLE_M: Fast advertising.
&amp;lt;info&amp;gt; BLE_M: Connected.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Peer on connection 0x0 requested a data length of 27 bytes.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 27 on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 27 on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 27
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 27
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 328
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120
&amp;lt;debug&amp;gt; BLE_M: PHY update request.
&amp;lt;debug&amp;gt; nrf_ble_lesc: BLE_GAP_EVT_LESC_DHKEY_REQUEST
&amp;lt;info&amp;gt; nrf_ble_lesc: Calling sd_ble_gap_lesc_dhkey_reply on conn_handle: 0
&amp;lt;info&amp;gt; BLE_M: BLE_GAP_EVT_CONN_SEC_UPDATE
&amp;lt;info&amp;gt; BLE_M: Security mode: 4
&amp;lt;info&amp;gt; peer_manager_handler: Connection secured: role: Peripheral, conn_handle: 0, procedure: Bonding
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; BLE_M: BLE_GAP_EVT_AUTH_STATUS
&amp;lt;info&amp;gt; BLE_M: Authorization succeeded!
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Bonding data, action: Update
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Central address resolution, action: Update&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;And this is the failed log shown the connection with the same device again.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;&amp;lt;info&amp;gt; BLE_M: Fast advertising.
&amp;lt;info&amp;gt; peer_manager_handler: Peer data updated in flash: peer_id: 0, data_id: Peer rank, action: Update, no change
&amp;lt;info&amp;gt; BLE_M: Connected.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Peer on connection 0x0 requested a data length of 27 bytes.
&amp;lt;debug&amp;gt; nrf_ble_gatt: Updating data length to 27 on connection 0x0.
&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 133
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; BLE_M: BLE_GAP_EVT_AUTH_STATUS
&amp;lt;info&amp;gt; BLE_M: Authorization failed with code: 133!
&amp;lt;debug&amp;gt; nrf_ble_gatt: Data length updated to 27 on connection 0x0.
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_octets: 27
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_octets: 27
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_rx_time: 328
&amp;lt;debug&amp;gt; nrf_ble_gatt: max_tx_time: 2120
&amp;lt;debug&amp;gt; BLE_M: PHY update request.
&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 133
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; BLE_M: BLE_GAP_EVT_AUTH_STATUS
&amp;lt;info&amp;gt; BLE_M: Authorization failed with code: 133!
&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 133
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; BLE_M: BLE_GAP_EVT_AUTH_STATUS
&amp;lt;info&amp;gt; BLE_M: Authorization failed with code: 133!
&amp;lt;info&amp;gt; peer_manager_handler: Connection security failed: role: Peripheral, conn_handle: 0x0, procedure: Bonding, error: 133
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; BLE_M: BLE_GAP_EVT_AUTH_STATUS
&amp;lt;info&amp;gt; BLE_M: Authorization failed with code: 133!
&amp;lt;debug&amp;gt; nrf_ble_lesc: Generating ECC key pair
&amp;lt;info&amp;gt; BLE_M: Disonnected&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve gone through previous posts and found out that it may be a problem that the Android would delete bond information in every disconnection, while the nRF board would store the bonding data into flash.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/56739/ble-nfc-pairing-issue"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/56739/ble-nfc-pairing-issue&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;And yes, it can be connected again after I erased all flash data and download them back.&lt;/p&gt;
&lt;p&gt;So I would like to know if there are any workaround solutions to avoid such this situation? Like I could read a specific address from flash and check if there is bonding data, I could then write it back or erase this particular bonding data at the address?&lt;/p&gt;
&lt;p&gt;Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Does BLE Pairing Using NFC support on nRF52840 (pa10056) ?</title><link>https://devzone.nordicsemi.com/thread/241553?ContentTypeID=1</link><pubDate>Wed, 25 Mar 2020 10:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4f6e4cc1-166f-469a-8c30-242deb63743e</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I think this example should work on the nRF52840 DK as well, and should not be restricted to the S132 SoftDevice. Do you have more than one DK available so you can test it towards the central example instead of a phone? You can also test it against other phones to see if you&amp;#39;re able to make it work that way.&lt;/p&gt;
&lt;p&gt;Keep in mind that this is an experimental example, which means it is not guaranteed to work, as we haven&amp;#39;t tested it sufficiently to call it a full-fledged example project. I&amp;#39;ll try to get a hold of someone that can test this. I don&amp;#39;t have an NFC antenna available at the moment, but I&amp;#39;ll try to get a hold of someone that does, and get them to test this.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>