This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Windows 10 pairing issue.

I am using the latest SDK 15.2 example of ble_app_hrs as a template for my code, modified it but by an large the initialization code is the same. When I try to pair it with Windows 10 right after the MTU exchange it fails to pair. Bonding is turned off with the following settngs. But when I use nRF Connect from a adnroid device it pairs perfectly without any issue. Attachedare screenshots. Please advice.

Here is the log from the RTT viewer

0> <info> app: Connected.
0> <info> app: GATT ATT MTU on connection 0x0 changed to 247.
0> <info> app: Fast advertising.
0> <info> app: Disconnected, reason 19.

#define SEC_PARAM_BOND                      0                                      /**< Perform bonding. */
#define SEC_PARAM_MITM                      0                                       /**< Man In The Middle protection not required. */
#define SEC_PARAM_LESC                      0                                       /**< LE Secure Connections enabled. */
#define SEC_PARAM_KEYPRESS                  0                                       /**< Keypress notifications not enabled. */
#define SEC_PARAM_IO_CAPABILITIES           BLE_GAP_IO_CAPS_NONE                    /**< No I/O capabilities. */
#define SEC_PARAM_OOB                       0                                       /**< Out Of Band data not available. */
#define SEC_PARAM_MIN_KEY_SIZE              7                                       /**< Minimum encryption key size. */
#define SEC_PARAM_MAX_KEY_SIZE              16                                      /**< Maximum encryption key size. */


Related