<?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>Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/16902/only-one-device-is-getting-paired-with-nrf51422</link><description>I have read the previous questions regarding the above subject, i found that changing the maximum bonding devices limit defined in device_manager_cnfg.h will work, but it did not worked for me. I have edited the ble_app_uart example code to support passkey</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 24 Oct 2016 09:46:58 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/16902/only-one-device-is-getting-paired-with-nrf51422" /><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64775?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2016 09:46:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf16f2d0-8b8c-4d62-841c-280aa3e929a8</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Please add a new question.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64774?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2016 09:34:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:994bb9ef-c423-4aa9-9c70-c69ded7ef37d</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;what is the procedure to recognize connected device is bonded or not, should i store the device, application and service context in persistent memory to help recognizing bonded devices?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64776?ContentTypeID=1</link><pubDate>Mon, 24 Oct 2016 04:38:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3e77344a-b69e-4932-b591-297826f34f16</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;Thank you very much that was very helpful&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64773?ContentTypeID=1</link><pubDate>Fri, 21 Oct 2016 13:54:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2fc4f82e-3a24-45a9-aab5-207d6d262f10</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;It is not required.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64772?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 16:00:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0456ec26-e7b5-46a1-bd3b-7b22d5709695</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;Iam calling function app_context_load() in device_manager_Evt_handler() at event DM_EVT_LINK_SECURED. When i don&amp;#39;t call app_context_load() pairing is happening with success on p_ble_evt-&amp;gt;evt.gap_evt.params.auth_status.auth_status , i want to know that calling app_context_load() is required or not? if required how to pair with calling it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64771?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 15:57:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62546ccb-d827-46f7-b548-23ac62bb7938</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;pairing is not working. I inserted break points at BLE_GAP_EVT_AUTH_STATUS in on_ble_evt(), and also at DM_EVT_LINK_SECURED event in device_manager_Evt_handler(),break point  was hit at DM_EVT_LINK_SECURED, but not at DM_EVT_LINK_SECURED.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64770?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 15:16:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:81dde067-407c-45bf-b32e-35a83985c665</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;What is not working? The code or pairing? The version of Android should not matter. After pairing you should get the BLE_GAP_EVT_AUTH_STATUS event with succes in p_ble_evt-&amp;gt;evt.gap_evt.params.auth_status.auth_status and you should get the DM_EVT_LINK_SECURED event in device_manager_evt_handler().&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64769?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 15:04:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53c21d46-f09a-4621-8b2f-c384745c24e7</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;I used the same code before which is not working.
Does the version of android which we use for pairing matters?
After getting paired which call back function is called?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64768?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 14:40:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6528acb6-3f01-4bc6-9867-cb66aeebc45f</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You are correct. The following should work:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Register with the SoftDevice handler module for BLE events.
err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
APP_ERROR_CHECK(err_code);

static void sys_evt_dispatch(uint32_t sys_evt)
{
    pstorage_sys_event_handler(sys_evt);
    ble_advertising_on_sys_evt(sys_evt);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64767?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 14:28:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:353618f6-de77-4ace-b647-f14dd21f8fa5</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;I copied the definition you posted above, but on_sys_evt(sys_evt); was not defined in ble_app_uart example code , so i used ble_advertising_on_sys_evt(sys_evt); instead, but didn&amp;#39;t worked.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64766?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 13:12:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9d14e1fa-6e79-4513-a8e9-f015723e8ad2</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can just copy the definition I posted above.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64765?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 12:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:44090ecc-2a6e-4767-be0b-e3695e4de7ab</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;can i copy sys_evt_dispatch() definition from any example code if possible.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64764?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 12:00:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d55ddf09-4761-4424-80f6-6f28979e9686</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Yes. And you need to define it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64763?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 11:47:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:29948745-87be-430e-8650-a44c706e5e10</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;in ble_stack_init() function i called softdevice_sys_evt_handler_set(sys_evt_dispatch); does that work? or there are other steps to perform&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64778?ContentTypeID=1</link><pubDate>Thu, 20 Oct 2016 10:08:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f67fbe7d-62b7-4ffc-a5ed-c528468b09c1</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I had a look at your project. You have not registered a handler for system events in ble_stack_init() and sys_evt_dispatch have not been registered. Without this, bonding will not work.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64762?ContentTypeID=1</link><pubDate>Wed, 19 Oct 2016 06:56:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39c45bd7-3af2-4c8b-9660-1eb4002fe4f0</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;I have optimized the project and attached in my question, please find the same.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64760?ContentTypeID=1</link><pubDate>Tue, 18 Oct 2016 14:54:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:09075afa-d70d-4489-8725-08d51cf5d898</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;Compressed file is not getting uploaded, kindly suggest any other way to send the project&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64761?ContentTypeID=1</link><pubDate>Mon, 17 Oct 2016 10:16:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2cd9a3b6-d8f2-47bb-bc77-6dc0a296760d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I can&amp;#39;t see anything wrong with your code. See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s110.api.v8.0.0/group___b_l_e___g_a_p___p_e_r_i_p_h___b_o_n_d_i_n_g___s_t_a_t_i_c___p_k___p_e_r_i_p_h_e_r_a_l.html?cp=3_6_0_0_0_2_1_0_9"&gt;this&lt;/a&gt; for how static passkey is implemented.&lt;/p&gt;
&lt;p&gt;Have you registered a handler for system events in ble_stack_init()?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;// Register with the SoftDevice handler module for BLE events.
err_code = softdevice_sys_evt_handler_set(sys_evt_dispatch);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Have you defined the function?&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;static void sys_evt_dispatch(uint32_t sys_evt)
{
    pstorage_sys_event_handler(sys_evt);
    on_sys_evt(sys_evt);
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;Please try again to attach your &lt;strong&gt;complete&lt;/strong&gt; project. Zip it, edit your question by clicking edit below it, and click the papir clip symbol.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64759?ContentTypeID=1</link><pubDate>Fri, 14 Oct 2016 12:19:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f2e543a-4f8e-422e-bd91-3608659f7682</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;I just want to know which functions are responsible for passkey pairing and with what arguments.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64751?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 14:14:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8bec2a4c-204c-4b4a-8e11-a07fdf8eb88e</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;security parameters initialization&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;#define SEC_PARAM_BOND 1
#define SEC_PARAM_MITM 1
#define SEC_PARAM_IO_CAPABILITIESBLE_GAP_IO_CAPS_DISPLAY_ONLY
#define SEC_PARAM_OOB 0
#define SEC_PARAM_MIN_KEY_SIZE 7
#define SEC_PARAM_MAX_KEY_SIZE 16
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64750?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 14:12:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:73353b8b-8a22-449f-87c4-65143757af3a</guid><dc:creator>sunil kumar</dc:creator><description>&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;// Initialize persistent storage module.
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));

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.evt_handler            = device_manager_evt_handler;
register_param.service_type           = DM_PROTOCOL_CNTXT_GATT_SRVR_ID;

err_code = dm_register(&amp;amp;m_app_handle, &amp;amp;register_param);
APP_ERROR_CHECK(err_code);
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64749?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 14:12:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:440f424f-8efb-484f-acec-5e29908cf117</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;static uint32_t device_manager_evt_handler(dm_handle_t const * p_handle,
dm_event_t const  * p_event,
ret_code_t        event_result)
{&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    APP_ERROR_CHECK(event_result);

    #ifdef BLE_DFU_APP_SUPPORT
    if (p_event-&amp;gt;event_id == DM_EVT_LINK_SECURED)
    {
        app_context_load(p_handle);
    }
    #endif // BLE_DFU_APP_SUPPORT

    return NRF_SUCCESS;
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64748?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 14:11:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:df148ca3-6ed4-40f0-8e4d-ff6e971088b1</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;static void ble_evt_dispatch(ble_evt_t * p_ble_evt)
{&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    dm_ble_evt_handler(p_ble_evt); 
    ble_conn_params_on_ble_evt(p_ble_evt);
    ble_bas_on_ble_evt(&amp;amp;m_bas, p_ble_evt);
    ble_nus_on_ble_evt(&amp;amp;m_nus, p_ble_evt);
    //bsp_btn_ble_on_ble_evt(p_ble_evt);

    #ifdef BLE_DFU_APP_SUPPORT
    /** @snippet [Propagating BLE Stack events to DFU Service] */
    ble_dfu_on_ble_evt(&amp;amp;m_dfus, p_ble_evt);
    /** @snippet [Propagating BLE Stack events to DFU Service] */
    #endif // BLE_DFU_APP_SUPPORT
    on_ble_evt(p_ble_evt);
    ble_advertising_on_ble_evt(p_ble_evt);
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64747?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 14:10:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:de16ef7b-45fd-431c-a938-0d8e7dc4fc7e</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;static void on_ble_evt(ble_evt_t * p_ble_evt)
{
uint32_t                         err_code;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;switch (p_ble_evt-&amp;gt;header.evt_id)
{
    case BLE_GAP_EVT_CONNECTED:
        err_code = bsp_indication_set(BSP_INDICATE_CONNECTED);
        APP_ERROR_CHECK(err_code);
        m_conn_handle = p_ble_evt-&amp;gt;evt.gap_evt.conn_handle;
        xl_appl_send_rtc_time();
        xl_isconnectec_to_app_b = true;
        send_active_event_num_flag_b = true;
        break;
    case BLE_GAP_EVT_DISCONNECTED:
        err_code = bsp_indication_set(BSP_INDICATE_IDLE);
        APP_ERROR_CHECK(err_code);
        m_conn_handle = BLE_CONN_HANDLE_INVALID;

        xl_isconnectec_to_app_b = false;
        break;

    case BLE_GAP_EVT_SEC_PARAMS_REQUEST:
        // Pairing not supported       
       
  //      sec_param_ret = sd_ble_gap_sec_params_reply(m_conn_handle, BLE_GAP_SEC_STATUS_BR_EDR_IN_PROG,&amp;amp;register_param.sec_param , &amp;amp;p_sec_keyset);
        APP_ERROR_CHECK(sec_param_ret);
        break;
    case BLE_GATTS_EVT_SYS_ATTR_MISSING:
       //  No system attributes have been stored.
        err_code = sd_ble_gatts_sys_attr_set(m_conn_handle, NULL, 0, 0);
        APP_ERROR_CHECK(err_code);
        break;

    case BLE_GAP_EVT_AUTH_KEY_REQUEST:
        sd_ble_gap_auth_key_reply(m_conn_handle,BLE_GAP_AUTH_KEY_TYPE_PASSKEY,passkey);
    break;//todo: PASSKEY
    
    case BLE_GAP_EVT_PASSKEY_DISPLAY:{
             //       memcpy(passkey1, p_ble_evt-&amp;gt;evt.gap_evt.params.passkey_display.passkey, PASSKEY_LENGTH);
            //        passkey1[PASSKEY_LENGTH] = 0;
             //       break;
        }
    default:
        // No implementation needed.
        break;
}
&lt;/code&gt;&lt;/pre&gt;
&lt;p&gt;}&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Only one device is getting paired with nrf51422</title><link>https://devzone.nordicsemi.com/thread/64745?ContentTypeID=1</link><pubDate>Thu, 13 Oct 2016 14:07:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dbb4dc27-4da8-4c4f-943b-72f4b8479a62</guid><dc:creator>sunil kumar</dc:creator><description>&lt;p&gt;static void gap_params_init(void)
{
uint32_t                err_code;
ble_gap_conn_params_t   gap_conn_params;
ble_gap_conn_sec_mode_t sec_mode;&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;    BLE_GAP_CONN_SEC_MODE_SET_OPEN(&amp;amp;sec_mode);
    
    err_code = sd_ble_gap_device_name_set(&amp;amp;sec_mode,
                                          (const uint8_t *) DEVICE_NAME,
                                          strlen(DEVICE_NAME));
    APP_ERROR_CHECK(err_code);

    memset(&amp;amp;gap_conn_params, 0, sizeof(gap_conn_params));

    gap_conn_params.min_conn_interval = MIN_CONN_INTERVAL;
    gap_conn_params.max_conn_interval = MAX_CONN_INTERVAL;
    gap_conn_params.slave_latency     = SLAVE_LATENCY;
    gap_conn_params.conn_sup_timeout  = CONN_SUP_TIMEOUT;

    err_code = sd_ble_gap_ppcp_set(&amp;amp;gap_conn_params);
    APP_ERROR_CHECK(err_code);
                                          
    //Static key implementation                                                                                     STATIC KEY IMPLEMENTATION
    m_static_pin_option.gap_opt.passkey.p_passkey = &amp;amp;passkey[0];
    err_code_temp = sd_ble_opt_set(BLE_GAP_OPT_PASSKEY, &amp;amp;m_static_pin_option);
    APP_ERROR_CHECK(err_code_temp);                                            
}
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>