<?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>Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/8118/windows-8-1-bonding-pairing-error</link><description>Hello all, before I decided to write my own question I read the forum thoroughly. How ever no aid found to solve my problem.
At first I want to make &amp;quot;just work&amp;quot; bonding(pairing) to encrypt further communication.
I saw many nordic examples for this using</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 23 Oct 2015 09:24:07 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/8118/windows-8-1-bonding-pairing-error" /><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29148?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 09:24:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:811ef82a-5ca0-4144-90e8-b8123d54411c</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;@Hung Bui: I only have iPhone to test iOS, not Win8.1 to test.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29147?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 13:16:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:492f1028-6b07-49ab-98f6-64fb3f7ba4fa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Matt: Please confirm if it works on Windows 8.1 or not. If it&amp;#39;s only the issue with iOS we will continue in the other case.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29146?ContentTypeID=1</link><pubDate>Thu, 22 Oct 2015 07:11:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:735de3ec-eef1-4bb5-a8c3-69a7f89eec66</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;@Hung Bui: sec_param.bond = 1, I have test ble_app_proximity and nRF Toolbox in iOS9.1(Apple just release), have this issue. I have asked the question: &lt;a href="https://devzone.nordicsemi.com/question/54545/ios9-can-not-pairing-sdk61sd700/"&gt;link text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29144?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 13:59:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bec5d4a7-b0ff-4d7e-9aca-b30e1bc5fcaa</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Matt: It&amp;#39;s not configurable with the previous SDKs, but have you made sure you have set .sec_param.bond = 1 when call sd_ble_gap_sec_params_reply() ? This will force the peripheral to send LTK. Have you tried to test with the ble_app_proximity for example ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29145?ContentTypeID=1</link><pubDate>Tue, 20 Oct 2015 01:36:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7a37f2a4-6e31-45cd-b962-5196d3579d25</guid><dc:creator>Matt</dc:creator><description>&lt;p&gt;@Hung Bui: In SDK6.1 and SD7.0.0, have this issue, but the SD have not the &amp;quot;kdist_periph&amp;quot; struct of m_sec_params!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29143?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2015 14:37:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4120be28-89c5-4132-bcc3-fb278730e7fd</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Valer_I: It&amp;#39;s great that you found. I actually forgot that, if we don&amp;#39;t set the m_sec_params.kdist_periph.enc   = 1; we will not distribute LTK and will not do bonding. I think Windows won&amp;#39;t accept pairing without bonding. And this explained the issue you encounted.&lt;/p&gt;
&lt;p&gt;m_sec_params.kdist_periph.id    = 1; is not needed since we don&amp;#39;t use resolvable random address.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29142?ContentTypeID=1</link><pubDate>Thu, 16 Jul 2015 13:03:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1067ca7-95a9-4157-82da-aa379c81b4dc</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;The solution found!&lt;/p&gt;
&lt;p&gt;in &lt;code&gt;static void sec_params_init(void)&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve just add:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;m_sec_params.kdist_periph.enc   = 1;
m_sec_params.kdist_periph.id    = 1;
m_sec_params.kdist_periph.sign  = 0;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;And now it works.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29141?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 13:50:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:621f70c4-f9a8-4ead-9a6b-6a7a2a909c4c</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Valer_l: It&amp;#39;s pretty strange to see auth_status 0x88 which mean BLE_GAP_SEC_STATUS_UNSPECIFIED.&lt;/p&gt;
&lt;p&gt;Could you track and send me a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-Smart-Bluetooth-low-energy/nRF-Sniffer/(language)/eng-GB"&gt;sniffer trace&lt;/a&gt; ? It would help a lot. Do you have the same issue when testing with other examples that use the device manager ?&lt;/p&gt;
&lt;p&gt;You should set the break point in the content of the app_error_handler() function, It&amp;#39;s defined in the app_error.c file. You should add &amp;quot;DEBUG&amp;quot; in the compiler flag so that it won&amp;#39;t reset when there is an assert.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29140?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 11:19:00 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2baee7b-0930-4779-81b5-8edfa8ae5067</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;I add BP to case:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;case BLE_GAP_EVT_AUTH_STATUS:
    m_auth_status = p_ble_evt-&amp;gt;evt.gap_evt.params.auth_status;
					break;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and I caught:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;m_auth_status: 
 auth_status 0x88
 error_src 0x01
 bonded 0x00
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;The same result I&amp;#39;ve got previously before asking the question.&lt;/p&gt;
&lt;p&gt;Following your advice, I tried to set BP to  assert handler, is it  app_error_handler(DEAD_BEEF, line_num, p_file_name);  for this project? I couldn&amp;#39;t set the breakpoint ot this line, debugger shows icon on this line like (!) and it seems that this code does not execute. Could you please point me in to more details how to debug with  assert handler.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29139?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 09:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8d1c1adf-9493-4a17-86d8-5e68a7a16010</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Valer_I: Could you let me know what didn&amp;#39;t work when testing with Windows 8.1 ?
For debugging, you can either add a breakpoint in the assert handler to track back which error code, line number, file name cause the assertion.
Or you can use UART debug, as you mentioned. You can either use simple uart library or use app_uart.&lt;/p&gt;
&lt;p&gt;You can have a look at ble_app_uart on how to use it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29138?ContentTypeID=1</link><pubDate>Wed, 15 Jul 2015 08:13:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e006b7a-5781-4df0-b305-1c7c0df255ee</guid><dc:creator>Valer_I</dc:creator><description>&lt;p&gt;Thank you for the responce! the ble_app_template it&amp;#39;s really nice project for my application. However it doesn&amp;#39;t work with windows 8.1. I have just compiled it as is and downloaded to the chip.:(
I plan to add USART functionality to it to make some debug and investigate the issue.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Windows 8.1 bonding/pairing error</title><link>https://devzone.nordicsemi.com/thread/29137?ContentTypeID=1</link><pubDate>Mon, 13 Jul 2015 13:37:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26ef8ae2-15af-4eef-9024-2b85c21a16cf</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;@Valer_I : If you have SDK v8.x you can have a look at the ble_app_template. In that template we don&amp;#39;t use device manager and the distributed keys can be retreived with m_keys when the bonding is finished (BLE_GAP_EVT_AUTH_STATUS event).
In the ble_app_template, we don&amp;#39;t store the key to flash, (erased when restart) but you can implement that.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think you would have any issue with Android testing with this example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>