<?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>pairing failed</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/29950/pairing-failed</link><description>Hi ,Nordics 
 
when I use my host device (reffered to the example of ble_app_hrs_c)to pair and bond with a peripheral device(a gamepad) ,the pairing failed .I don&amp;#39;t kown the reason .And when I try to enable the cccd , it failed . I want to know why</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 13 Feb 2018 11:13:20 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/29950/pairing-failed" /><item><title>RE: pairing failed</title><link>https://devzone.nordicsemi.com/thread/120695?ContentTypeID=1</link><pubDate>Tue, 13 Feb 2018 11:13:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ddcfee7e-07fc-4ab0-82a5-c51cfb996cbc</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;And if you use the same &lt;code&gt;Security parameters&lt;/code&gt; with your own project?&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: pairing failed</title><link>https://devzone.nordicsemi.com/thread/119112?ContentTypeID=1</link><pubDate>Sat, 27 Jan 2018 10:06:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c5c11b1d-f7d6-42c4-a700-b3aa5c4bdcfa</guid><dc:creator>anna</dc:creator><description>&lt;p&gt;DM configuer is :&lt;/p&gt;
&lt;p&gt;static void device_manager_init(bool erase_bonds)
{
uint32_t               err_code;
dm_init_param_t        init_param = {.clear_persistent_data = erase_bonds};
dm_application_param_t register_param;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;err_code = pstorage_init();
APP_ERROR_CHECK(err_code);

err_code = dm_init(&amp;amp;init_param);
APP_ERROR_CHECK(err_code);

memset(&amp;amp;register_param.sec_param, 0, sizeof (ble_gap_sec_params_t));

// Event handler to be registered with the module.
register_param.evt_handler            = device_manager_event_handler;

// Service or protocol context for device manager to load, store and apply on behalf of application.
// Here set to client as application is a GATT client.
register_param.service_type           = DM_PROTOCOL_CNTXT_GATT_CLI_ID;

// Secuirty parameters to be used for security procedures.
register_param.sec_param.bond         = SEC_PARAM_BOND;
register_param.sec_param.mitm         = SEC_PARAM_MITM;
register_param.sec_param.io_caps      = SEC_PARAM_IO_CAPABILITIES;
register_param.sec_param.oob          = SEC_PARAM_OOB;
register_param.sec_param.min_key_size = SEC_PARAM_MIN_KEY_SIZE;
register_param.sec_param.max_key_size = SEC_PARAM_MAX_KEY_SIZE;
register_param.sec_param.kdist_periph.enc = 1;
register_param.sec_param.kdist_periph.id  = 1;
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;// register_param.sec_param.kdist_periph.sign =1;
err_code = dm_register(&amp;amp;m_dm_app_id, &amp;amp;register_param);
APP_ERROR_CHECK(err_code);
}
&lt;img src="https://devzone.nordicsemi.com/attachment/3f7a6e4dc94a9d315fda3f164fe44114" alt="image description" /&gt;&lt;img src="https://devzone.nordicsemi.com/attachment/d2ae7cb400d8a4e551cc601e977031d7" alt="image description" /&gt;&lt;img src="https://devzone.nordicsemi.com/attachment/602db9960a0bc4e131b6579175fdfb29" alt="image description" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>