<?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>Connecting with nfc_ble_pair_lib</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/26154/connecting-with-nfc_ble_pair_lib</link><description>I am using the ble_app_hrs_nfc_pairing example (sdk 14.0.0) on my NRF52840 with the s140 soft device. I am able to bond with my phone (Android 8.0.0 Oreo) by tapping the sensor, and BLE_GAP_EVT_CONNECTED and BLE_GAP_EVT_CONN_SEC_UPDATE handlers are called</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 26 Oct 2017 09:11:32 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/26154/connecting-with-nfc_ble_pair_lib" /><item><title>RE: Connecting with nfc_ble_pair_lib</title><link>https://devzone.nordicsemi.com/thread/103050?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 09:11:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cea074d7-d9a0-494f-8e13-720e1757bd1a</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Good to know Rdecker. Happy to help :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting with nfc_ble_pair_lib</title><link>https://devzone.nordicsemi.com/thread/103052?ContentTypeID=1</link><pubDate>Thu, 26 Oct 2017 00:22:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a2b3d363-233f-4bb6-a473-859063a404fa</guid><dc:creator>rdecker</dc:creator><description>&lt;p&gt;You are correct, adding uECC.c was my mistake as I found out in my last reply. Using the library .a file only works correctly. I did also add the PM_EVT_CONN_SEC_PARAMS_REQ event as mentioned in the changes when looking over the example&amp;#39;s code. Everything seems to work fine on my phone now. I have had other issues with other friends phones but for now I will not worry about that and will write it off as them having older firmware. Thanks for the help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting with nfc_ble_pair_lib</title><link>https://devzone.nordicsemi.com/thread/103054?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 12:37:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26d76309-d2c9-42e6-b875-842458851a23</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure why you need to include uecc.c file. As I can see in our example (both SDK v14 and v14.1) we only include the .lib file instead of the uecc.c source file.
Note that &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.sdk5.v14.1.0/index.html?cp=4_0_0_0"&gt;there is a change&lt;/a&gt; in NFC BLE Pairing Library in SDK v14.1 that you need to modify if you porting your application from v14.0 to v14.1. Look at the Changes section.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting with nfc_ble_pair_lib</title><link>https://devzone.nordicsemi.com/thread/103049?ContentTypeID=1</link><pubDate>Wed, 25 Oct 2017 04:54:50 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4e41061-0c58-4726-9c46-a73b84fc93b9</guid><dc:creator>rdecker</dc:creator><description>&lt;p&gt;So after copying over the examples main.c and sdk_config.h into my project and still having issues I figured out that the problem was in my build system (I&amp;#39;m using cmake and gcc). After a diffing I found that I compiled uECC.c but the example did not. For some reason including uECC.c created the DHKEY_FAILURE. Removing it from the sources list has fixed my issue. Just to be sure I added it back in and the DH failures returned.&lt;/p&gt;
&lt;p&gt;Interestingly enough I remember setting up micro-ecc to fix a unresolved symbol error in the past. Perhaps it was required in 14.0.0 but is now unnecessary and in fact detrimental to 14.1.0. Very strange.&lt;/p&gt;
&lt;p&gt;Hopefully if someone else stumbles upon this they won&amp;#39;t spend the hours I did on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting with nfc_ble_pair_lib</title><link>https://devzone.nordicsemi.com/thread/103051?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 13:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b48d8834-b58b-44ef-862d-afb5c315dd3b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Have you also update the NFC library ?&lt;/p&gt;
&lt;p&gt;Code 139 = 0x8B = BLE_GAP_SEC_STATUS_DHKEY_FAILURE&lt;/p&gt;
&lt;p&gt;Could be something wrong with the OOB data to generate the key&lt;/p&gt;
&lt;p&gt;Which phone did you use to test with ? I also experience some issues with Samsung S8 (not same error code though), when the Nexus phones worked fine.&lt;/p&gt;
&lt;p&gt;&amp;quot;the board believes the connection is established but the phone does not&amp;quot; This will result the board disconnect because of timeout , after that can you connect and bond ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting with nfc_ble_pair_lib</title><link>https://devzone.nordicsemi.com/thread/103053?ContentTypeID=1</link><pubDate>Tue, 24 Oct 2017 09:57:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b6adb434-8c87-418a-a97c-2be1227ad8b7</guid><dc:creator>rdecker</dc:creator><description>&lt;p&gt;Testing the example with SDK14.1.0, it does infact work correctly. However I am unable to get it to work in my personal project even after matching all relevant lines and config options.&lt;/p&gt;
&lt;p&gt;Using NFC_PAIRING_MODE_LESC_... gives me a &amp;quot;app: Authorization failed with code: 139!&amp;quot;. Switching to NFC_PAIRING_MODE_... (no lesc) bonds but then creates the above problem where the board believes the connection is established but the phone does not.&lt;/p&gt;
&lt;p&gt;Any guidance would be appreciated. Perhaps I should make a new question for the authentication issue when using LESC modes in my code.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connecting with nfc_ble_pair_lib</title><link>https://devzone.nordicsemi.com/thread/103048?ContentTypeID=1</link><pubDate>Mon, 23 Oct 2017 10:55:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d2104499-85f2-4cdd-bf95-04861ab2dd5b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@rdecker: Are you sure it&amp;#39;s the nfc library caused the advertising to stop ? I can see from the code that when BLE_GAP_EVT_DISCONNECTED occurs, we will call ble_advertising_start(). That what I also experience when testing with my phone. The device advertised after bonded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>