<?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>How to reduce the disconnecting time of two (central and peripheral) devices</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/89760/how-to-reduce-the-disconnecting-time-of-two-central-and-peripheral-devices</link><description>Hi There, 
 I have almost done the project, I used nrf52832 as central(master) and nrf52810 as peripheral(slave). 
 i use the blinky example and everything working fine. I found that when i turn off the power of the slave, the central device takes little</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Jul 2022 11:16:38 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/89760/how-to-reduce-the-disconnecting-time-of-two-central-and-peripheral-devices" /><item><title>RE: How to reduce the disconnecting time of two (central and peripheral) devices</title><link>https://devzone.nordicsemi.com/thread/376179?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 11:16:38 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d46cc9f6-1a5f-4830-aefc-befdc9146696</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi Habib,&lt;/p&gt;
&lt;p&gt;Please verify that your supervision timeout got updated. You do this by monitoring the BLE_GAP_EVT_CONN_PARAM_UPDATE event like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static void ble_evt_handler(ble_evt_t const * p_ble_evt, void * p_context)
{
    uint32_t err_code;

    switch (p_ble_evt-&amp;gt;header.evt_id)
    {
     ....
        case BLE_GAP_EVT_CONN_PARAM_UPDATE:
        {
            /* Interval is given in units of 1.25 ms. Multiply by 1.25 to get interval in ms */
            uint32_t new_conn_interval =
                p_ble_evt-&amp;gt;evt.gap_evt.params.conn_param_update.conn_params.max_conn_interval *
                1.25;
            uint32_t supervision_timeout =
                p_ble_evt-&amp;gt;evt.gap_evt.params.conn_param_update.conn_params.conn_sup_timeout * 10;


            NRF_LOG_INFO(
                &amp;quot;Connection paramaters updated. New interval is %d ms. Supervision timeout: %d&amp;quot;,
                new_conn_interval, supervision_timeout);
        }
        
        ....&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;img style="max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/pastedimage1657278960560v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;You may also need to adjust the default NRF_BLE_CONN_PARAMS_MAX_SUPERVISION_TIMEOUT_DEVIATION setting in sdk_config.h.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reduce the disconnecting time of two (central and peripheral) devices</title><link>https://devzone.nordicsemi.com/thread/376112?ContentTypeID=1</link><pubDate>Fri, 08 Jul 2022 07:12:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:15e69ca2-1634-44cb-ae5a-9b673a6ce563</guid><dc:creator>Md Habibur Rahman</dc:creator><description>&lt;p&gt;Hi Vidar,&lt;/p&gt;
&lt;p&gt;Thank you, I have tested by changing the time. But I couldn&amp;#39;t feel any change.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Habib&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to reduce the disconnecting time of two (central and peripheral) devices</title><link>https://devzone.nordicsemi.com/thread/375995?ContentTypeID=1</link><pubDate>Thu, 07 Jul 2022 11:44:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b0c0211-e21e-4fb2-b322-24afc64750d6</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Yes, you make the peripheral request a shorter supervision timeout. This parameters defines how long the central needs to wait before it should consider the connection as lost.&lt;/p&gt;
&lt;p&gt;&lt;img style="cursor:zoom-in;max-height:240px;max-width:320px;" src="https://devzone.nordicsemi.com/resized-image/__size/640x480/__key/communityserver-discussions-components-files/4/7002.pastedimage1657192854691v1.png" alt=" " /&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>