<?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>nrf52832 disconnecting frequently getting error 0x3b in nrfConnect</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/53832/nrf52832-disconnecting-frequently-getting-error-0x3b-in-nrfconnect</link><description>I&amp;#39;m using the ble_app_hrs example code and added a new custom services with multiple characteristics . conn.interval 10ms- 15ms and need to get maximum throughput so i set MTU size 160bytes packet and sending data in 1ms continuously but after 2-3 minutes</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 30 Oct 2019 16:15:53 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/53832/nrf52832-disconnecting-frequently-getting-error-0x3b-in-nrfconnect" /><item><title>RE: nrf52832 disconnecting frequently getting error 0x3b in nrfConnect</title><link>https://devzone.nordicsemi.com/thread/217599?ContentTypeID=1</link><pubDate>Wed, 30 Oct 2019 16:15:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:26e7a12f-dd5e-4687-a799-a58502561ea5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;You can find the&amp;nbsp;explanation for the error-codes at &lt;a href="https://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.1.1/group___b_l_e___h_c_i___s_t_a_t_u_s___c_o_d_e_s.html?cp=3_5_2_2_2_0_0"&gt;this link.&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;E.g. 0x3B is &amp;quot;Connection Interval Unacceptable.&amp;quot;.&lt;/p&gt;
&lt;p&gt;Note that the ble_app_hrs example will disconnect if the phone does not accept a connection interval between the max and min limit set in the example, so you should try to adjust the values. The default values are:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define MIN_CONN_INTERVAL                   MSEC_TO_UNITS(400, UNIT_1_25_MS)        /**&amp;lt; Minimum acceptable connection interval (0.4 seconds). */
#define MAX_CONN_INTERVAL                   MSEC_TO_UNITS(650, UNIT_1_25_MS)        /**&amp;lt; Maximum acceptable connection interval (0.65 second). */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;The disconnect is done in the ble_app_hrs example in the&amp;nbsp;on_conn_params_evt function, snippet:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static void on_conn_params_evt(ble_conn_params_evt_t * p_evt)
{
    ret_code_t err_code;

    if (p_evt-&amp;gt;evt_type == BLE_CONN_PARAMS_EVT_FAILED)
    {
        err_code = sd_ble_gap_disconnect(m_conn_handle, BLE_HCI_CONN_INTERVAL_UNACCEPTABLE);
        APP_ERROR_CHECK(err_code);
    }
}&lt;/pre&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>