<?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>MITM Bond Failure Android 5.0 and nrf51822</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/5181/mitm-bond-failure-android-5-0-and-nrf51822</link><description>I am working on a custom service using and nrf51822 device. SDK7.1 SD7.1

My security parameters are as follows:

#define SEC_PARAM_TIMEOUT 30 /**&amp;lt; Timeout for Pairing Request or Security Request (in seconds). */
#define SEC_PARAM_BOND 1 /**&amp;lt; Perform</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sat, 31 Oct 2015 06:47:41 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/5181/mitm-bond-failure-android-5-0-and-nrf51822" /><item><title>RE: MITM Bond Failure Android 5.0 and nrf51822</title><link>https://devzone.nordicsemi.com/thread/18167?ContentTypeID=1</link><pubDate>Sat, 31 Oct 2015 06:47:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d9c6f085-7429-496c-bfe1-10a0c2d02692</guid><dc:creator>vineeshvs</dc:creator><description>&lt;p&gt;@Petter Is this issue still there?&lt;/p&gt;
&lt;p&gt;I am getting the following error in nRF Toolbox (UART) app&lt;/p&gt;
&lt;p&gt;&lt;img src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/binding_5F00_unbinding_5F00_error_5F00_uart_5F00_nrftoolbox.png" alt="image description" /&gt;&lt;/p&gt;
&lt;p&gt;My settings are the following&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SEC_PARAM_BOND                  0                                           /**&amp;lt; Perform bonding. */
#define SEC_PARAM_MITM                  1                                           /**&amp;lt; Man In The Middle protection not required. */
// #define SEC_PARAM_IO_CAPABILITIES       BLE_GAP_IO_CAPS_DISPLAY_ONLY                        /**&amp;lt; No I/O capabilities. */
#define SEC_PARAM_IO_CAPABILITIES       BLE_GAP_IO_CAPS_DISPLAY_YESNO                        /**&amp;lt; No I/O capabilities. */
#define SEC_PARAM_OOB                   0                                           /**&amp;lt; Out Of Band data not available. */
#define SEC_PARAM_MIN_KEY_SIZE          7                                           /**&amp;lt; Minimum encryption key size. */
#define SEC_PARAM_MAX_KEY_SIZE          16                                          /**&amp;lt; Maximum encryption key size. */

#define START_STRING                    &amp;quot;Start...\n&amp;quot;                                /**&amp;lt; The string that will be sent over the UART when the application starts. */

#define PASSKEY_TXT                     &amp;quot;Passkey:&amp;quot;                                  /**&amp;lt; Message to be displayed together with the pass-key. */
#define PASSKEY_TXT_LENGTH              8                                           /**&amp;lt; Length of message to be displayed together with the pass-key. */
#define PASSKEY_LENGTH                  6                                           /**&amp;lt; Length of pass-key received by the stack for display. */
#define STATIC_PASSKEY					&amp;quot;123456&amp;quot; 									/**&amp;lt; Static pin. */
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MITM Bond Failure Android 5.0 and nrf51822</title><link>https://devzone.nordicsemi.com/thread/18166?ContentTypeID=1</link><pubDate>Tue, 03 Feb 2015 11:09:16 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6faa4488-be07-47ea-a909-776afb2e5521</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I have reproduced this and we have notified Google about the issue.&lt;/p&gt;
&lt;p&gt;Unfortunately, we just have to wait for them to fix this.&lt;/p&gt;
&lt;p&gt;I&amp;#39;m sorry for any inconvenience this causes.&lt;/p&gt;
&lt;p&gt;@Clem Regarding the BLE_GAP_IO_CAPS_DISPLAY_YESNO solution, I experienced the same as you, it didn&amp;#39;t make a difference.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MITM Bond Failure Android 5.0 and nrf51822</title><link>https://devzone.nordicsemi.com/thread/18165?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2015 19:01:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bb4b9a89-42fd-4a63-9a2c-a425ef06a536</guid><dc:creator>Lucas</dc:creator><description>&lt;p&gt;Awsome. Thanks for the information. Glad others are seeing simular issues.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: MITM Bond Failure Android 5.0 and nrf51822</title><link>https://devzone.nordicsemi.com/thread/18164?ContentTypeID=1</link><pubDate>Fri, 16 Jan 2015 10:04:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1b97587-486a-4b16-9a43-b8db95c5a78b</guid><dc:creator>Clem Taylor</dc:creator><description>&lt;p&gt;Thanks for asking this, I&amp;#39;ve been meaning to but have been busy working on other things.&lt;/p&gt;
&lt;p&gt;You aren&amp;#39;t the only one, this is a reported issue to the android folks but they do not seem to be in any hurry  to fix it.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://code.google.com/p/android/issues/detail?id=79668"&gt;code.google.com/.../detail&lt;/a&gt;
&lt;a href="https://code.google.com/p/android/issues/detail?id=80807"&gt;code.google.com/.../detail&lt;/a&gt;
&lt;a href="https://code.google.com/p/android/issues/detail?id=81160"&gt;code.google.com/.../detail&lt;/a&gt;
along with a few others&lt;/p&gt;
&lt;p&gt;There was a claim that you could get it to work with BLE_GAP_IO_CAPS_DISPLAY_YESNO instead of BLE_GAP_IO_CAPS_DISPLAY_ONLY like I have now, my quick try with that didn&amp;#39;t work. However, it wasn&amp;#39;t clear how to confirm the bond when using YESNO (no example).&lt;/p&gt;
&lt;p&gt;Maybe one the nordic folks has a suggestion how to work around this.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>