<?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>android pairing fail.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18855/android-pairing-fail</link><description>I use it. nRF52832 PCA10040
I have coded based on NUS. 
 However, I failed to pair with my Android device. 
 Even with ble_app_uart, the result is the same.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 10 Jan 2017 01:54:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18855/android-pairing-fail" /><item><title>RE: android pairing fail.</title><link>https://devzone.nordicsemi.com/thread/72822?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 01:54:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f7a220fa-b884-43a8-8a7f-4176f4611bce</guid><dc:creator>bull</dc:creator><description>&lt;p&gt;Thank you. I tried several times and it succeeded.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: android pairing fail.</title><link>https://devzone.nordicsemi.com/thread/72823?ContentTypeID=1</link><pubDate>Tue, 10 Jan 2017 01:10:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a152c0b9-26ad-483e-a148-162271cf8064</guid><dc:creator>bull</dc:creator><description>&lt;p&gt;I applied this, but it does not work. Do I need a peer manager?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: android pairing fail.</title><link>https://devzone.nordicsemi.com/thread/72821?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2017 11:36:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6cd5e84b-e6d3-4be2-aca1-f2c9a1231f93</guid><dc:creator>Gauti</dc:creator><description>&lt;p&gt;Try to set the security parameters as below and check if works:
static ble_gap_sec_params_t m_sec_params;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;  m_sec_params.bond         = 1;
m_sec_params.mitm         = 0;
m_sec_params.io_caps      = 3;
m_sec_params.oob          = 0;
m_sec_params.min_key_size = 7;
m_sec_params.max_key_size = 16;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;and then this:
err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_SUCCESS, &amp;amp;m_sec_params, NULL);
check the infocenter for the details about setting the right values into m_sec_params. hope this works!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: android pairing fail.</title><link>https://devzone.nordicsemi.com/thread/72820?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2017 10:39:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5c89dac0-ccd9-48ea-bd66-ee0fa4fab687</guid><dc:creator>bull</dc:creator><description>&lt;p&gt;Couldn&amp;#39;t pair with PGMEDEM_NRF_52 (CC88) because of an incorrect PIN or passkey.&lt;/p&gt;
&lt;p&gt;The above message has occurred. T.T&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: android pairing fail.</title><link>https://devzone.nordicsemi.com/thread/72819?ContentTypeID=1</link><pubDate>Mon, 09 Jan 2017 10:28:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cb751c1-d554-4851-b465-28e85274057d</guid><dc:creator>Gauti</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You are setting the security status as: BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP in the line below.
err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_PAIRING_NOT_SUPP, NULL, NULL);&lt;/p&gt;
&lt;p&gt;Changing it to:
err_code = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_SUCCESS, NULL, NULL);&lt;/p&gt;
&lt;p&gt;might solve the problem.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>