<?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 resolve nRF52832 encountering disconnect reason 0x22 LMP Response Timeout when based S132 SoftDevice v6.1.0 ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/44474/how-to-resolve-nrf52832-encountering-disconnect-reason-0x22-lmp-response-timeout-when-based-s132-softdevice-v6-1-0</link><description>Dear all, 
 I modified the example &amp;quot;ble_app_uart&amp;quot; based nRF5_SDK_15.2.0_9412b96 and S132 SoftDevice v6.1.0 to do some tests . But now I encounter the disconnect reason 0x22 LMP Response Timeout error when andriod device established connection with nRF52832</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 08 Mar 2019 08:00:14 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/44474/how-to-resolve-nrf52832-encountering-disconnect-reason-0x22-lmp-response-timeout-when-based-s132-softdevice-v6-1-0" /><item><title>RE: How to resolve nRF52832 encountering disconnect reason 0x22 LMP Response Timeout when based S132 SoftDevice v6.1.0 ?</title><link>https://devzone.nordicsemi.com/thread/174948?ContentTypeID=1</link><pubDate>Fri, 08 Mar 2019 08:00:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6d72d965-5f0d-480a-a07c-dd02510a5e44</guid><dc:creator>tianfei00</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;Follow your advice,&amp;nbsp;&lt;span&gt;0x22&amp;nbsp;BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT error has been resolved when I modified the NRF_SDH_BLE_GATT_MAX_MTU_SIZE as 23.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Thanks a lot.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tianfei00&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve nRF52832 encountering disconnect reason 0x22 LMP Response Timeout when based S132 SoftDevice v6.1.0 ?</title><link>https://devzone.nordicsemi.com/thread/174748?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 09:27:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3ab1578b-2050-4a46-9cc4-1d99cfe2b90c</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;You can find the sniffer downloads here:&amp;nbsp;&lt;a href="https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer/Download#infotabs"&gt;https://www.nordicsemi.com/Software-and-Tools/Development-Tools/nRF-Sniffer/Download#infotabs&lt;/a&gt;. But you will need to have another DK/Dongle to sniff with.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;The fact that it works with some android phones make me suspect that this is still related to MTU (some android phones does not support longer MTUs).&amp;nbsp;Do you get the &amp;quot;Data len is set to &amp;lt;bytes&amp;gt;&amp;quot; message in your debug log?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Edit: have you changed anything in main.c-&amp;gt;ble_evt_handler()?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve nRF52832 encountering disconnect reason 0x22 LMP Response Timeout when based S132 SoftDevice v6.1.0 ?</title><link>https://devzone.nordicsemi.com/thread/174731?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 08:19:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4ee650f6-9b3c-48d4-b91d-04eae2e79a18</guid><dc:creator>tianfei00</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;&amp;nbsp; If any other hardware device will be needed, for example nRF51 Dongle , when &amp;nbsp;I want to use&amp;nbsp;&lt;span&gt;Bluetooth sniffer ?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;But actually I do not have any nRF51 Dongle at all. So how can I resolve this error?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tianfei00&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve nRF52832 encountering disconnect reason 0x22 LMP Response Timeout when based S132 SoftDevice v6.1.0 ?</title><link>https://devzone.nordicsemi.com/thread/174728?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 08:08:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fc32d87c-4487-41c4-b92c-3bf632c71cee</guid><dc:creator>tianfei00</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;The 0x22&amp;nbsp;BLE_HCI_STATUS_CODE_LMP_RESPONSE_TIMEOUT error which I encountered is not in all the andriod devices but only some of them.&lt;/p&gt;
&lt;p&gt;&amp;nbsp; &amp;nbsp;So whether you have the download address of the&amp;nbsp;&lt;span&gt;Bluetooth sniffer and the detailed user guide&amp;nbsp;of&amp;nbsp;the&amp;nbsp;Bluetooth sniffer to acquire the data which your wanted so you can analysis the reason result in 0x22. Please provide them for&amp;nbsp;me.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Because your official website is difficlut to visit, especially to download files in China. So if you can provide any other download address for me.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp; &amp;nbsp;Thanks a lot.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Tianfei00&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve nRF52832 encountering disconnect reason 0x22 LMP Response Timeout when based S132 SoftDevice v6.1.0 ?</title><link>https://devzone.nordicsemi.com/thread/174710?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 07:27:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1d0f3772-73a7-4de4-ba8a-53e4fcff4a0b</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can you upload the project or post the changes you made so I can test it here? Alternatively, if you have access to a Bluetooth sniffer, upload a trace showing the packet exchange from connection to disconnect.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Vidar&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve nRF52832 encountering disconnect reason 0x22 LMP Response Timeout when based S132 SoftDevice v6.1.0 ?</title><link>https://devzone.nordicsemi.com/thread/174686?ContentTypeID=1</link><pubDate>Thu, 07 Mar 2019 01:46:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:be4d8aec-ec06-4367-8532-aced6adea853</guid><dc:creator>tianfei00</dc:creator><description>&lt;p&gt;Hi Vidar Berg,&lt;/p&gt;
&lt;p&gt;Firstly I used the example &amp;quot;ble_app_uart&amp;quot; based nRF5_SDK_15.2.0_9412b96.&lt;/p&gt;
&lt;p&gt;Secondly, in my project the code realated to gatt_init() as following:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;
/**@brief Function for handling events from the GATT library. */
void gatt_evt_handler(nrf_ble_gatt_t * p_gatt, nrf_ble_gatt_evt_t const * p_evt)
{
    if ((m_conn_handle == p_evt-&amp;gt;conn_handle) &amp;amp;&amp;amp; (p_evt-&amp;gt;evt_id == NRF_BLE_GATT_EVT_ATT_MTU_UPDATED))
    {
        m_ble_nus_max_data_len = p_evt-&amp;gt;params.att_mtu_effective - OPCODE_LENGTH - HANDLE_LENGTH;
        NRF_LOG_INFO(&amp;quot;Data len is set to 0x%X(%d)&amp;quot;, m_ble_nus_max_data_len, m_ble_nus_max_data_len);
    }
    NRF_LOG_DEBUG(&amp;quot;ATT MTU exchange completed. central 0x%x peripheral 0x%x&amp;quot;,
                  p_gatt-&amp;gt;att_mtu_desired_central,
                  p_gatt-&amp;gt;att_mtu_desired_periph);
}


/**@brief Function for initializing the GATT library. */
void gatt_init(void)
{
    ret_code_t err_code;

    err_code = nrf_ble_gatt_init(&amp;amp;m_gatt, gatt_evt_handler);
    APP_ERROR_CHECK(err_code);

    err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, NRF_SDH_BLE_GATT_MAX_MTU_SIZE);
    APP_ERROR_CHECK(err_code);
}
&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;As you mentioned before, but the&amp;nbsp;&lt;span&gt; gatt_init() has already existed in my code. How can I resolve this error.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Many thanks for you.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;tianfei00&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to resolve nRF52832 encountering disconnect reason 0x22 LMP Response Timeout when based S132 SoftDevice v6.1.0 ?</title><link>https://devzone.nordicsemi.com/thread/174601?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 14:19:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fe65e5ad-a84d-4d94-aab9-e8e9bf27a100</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Did you keep the &lt;a href="https://www.nordicsemi.com/DocLib/Content/SDK_Doc/nRF5_SDK/v15-3-0/lib_ble_gatt"&gt;gatt_init&lt;/a&gt;() function responsible for handling MTU and DLE requests? I would expect this error if you have removed it.&amp;nbsp;&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>