<?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>Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30808/connection-parameters-update-failed-lmp-timeout</link><description>Hi, i am working on a bluetooth application with the nRF52832. When i try to connect a Samsung Galaxy S8 (Android 8.0) via nRF Connect, i get a LMP TIMEOUT error after 40 seconds (see LOG1). I do not get the error with a BQ Aquaris X5 Plus (Android 7</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 05 Jul 2019 12:19:05 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30808/connection-parameters-update-failed-lmp-timeout" /><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/196835?ContentTypeID=1</link><pubDate>Fri, 05 Jul 2019 12:19:05 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:07a9ce9f-e53c-4947-ab09-92274efa75ee</guid><dc:creator>sridharnaidu</dc:creator><description>&lt;p&gt;&lt;span&gt;Hi &lt;a href="https://devzone.nordicsemi.com/members/mttrinh"&gt;Mttrinh&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I am also facing similar issue with old android devices&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;The phone first sends a LL_VERSION_IND and then it sends a LL_FEATURE_REQ&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;the peripheral has sent its LL_VERSION_IND. In other words, the phone initiates a seconds&amp;nbsp;LL Control Procedure before the first is finished, and this is a clear violation of the Bluetooth&amp;nbsp;specification. The SoftDevice will disconnect at this point&amp;quot;.&amp;nbsp;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;span&gt;Is it really violation of specification?. If so why Nordic fixed it from s132v4.0.2 ?. Is there any part in specification which mention this?. In my case i using s132v3, so how can i fix this in my case?&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/193962?ContentTypeID=1</link><pubDate>Thu, 20 Jun 2019 21:20:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9cae8eb4-2641-4b13-859c-c5148c7f1724</guid><dc:creator>arthare</dc:creator><description>&lt;p&gt;I fixed this problem in my firmware by responding to the BLE_GAP_EVT_PHY_UPDATE_REQUEST message sent to my on_ble_evt handler.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;      case BLE_GAP_EVT_PHY_UPDATE_REQUEST:
      {
          ble_gap_phys_t const phys =
          {
              .tx_phys = BLE_GAP_PHY_AUTO,
              .rx_phys = BLE_GAP_PHY_AUTO,
          };
          ret_code_t err = sd_ble_gap_phy_update(pEvent-&amp;gt;evt.gap_evt.conn_handle, &amp;amp;phys);
          APP_ERROR_CHECK(err);
          break;
      } &lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;I had a Google Pixel 3A XL running Android 9, and every 30 seconds it would time out with the same complaints yours had.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/174448?ContentTypeID=1</link><pubDate>Wed, 06 Mar 2019 07:44:58 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381a5f6e-2dc6-4e33-824d-3a9f99d13442</guid><dc:creator>tianfei00</dc:creator><description>&lt;p&gt;I also encounter the&amp;nbsp;0x22 error(LMP Responese Timeout). But the&amp;nbsp;&lt;span&gt;answer above is not&amp;nbsp;specific and I also can not resolve this problem.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/172158?ContentTypeID=1</link><pubDate>Wed, 20 Feb 2019 15:35:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e3141ae9-4e40-4095-b1eb-feacca4175ee</guid><dc:creator>Fabian Hauschild</dc:creator><description>&lt;p&gt;Hi I&amp;#39;m having a simular problem with a Galaxy S7 with Android 8.0.0.&lt;/p&gt;
&lt;p&gt;Could you please specify the contet of your&amp;nbsp;&lt;span&gt;gatt_evt_handler() and gatt_init() function.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/127180?ContentTypeID=1</link><pubDate>Fri, 06 Apr 2018 09:26:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:087bf868-b5fc-41ff-8d85-d56014f04686</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Look at the answer above :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/125888?ContentTypeID=1</link><pubDate>Mon, 26 Mar 2018 01:44:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d703ba4d-531b-43a6-a71c-b3b6fba28aad</guid><dc:creator>Takeshi Goda</dc:creator><description>&lt;p&gt;Hello how did you solve it and I encountered the same problem&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/124129?ContentTypeID=1</link><pubDate>Tue, 13 Mar 2018 10:44:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:33bc5782-d942-415c-bec8-d5b771903c84</guid><dc:creator>Andreas123</dc:creator><description>&lt;p&gt;We fixed the issue by enabling the GATT module in sdk_config.h and adding a gatt_evt_handler() and gatt_init() to our main file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/122992?ContentTypeID=1</link><pubDate>Tue, 06 Mar 2018 09:32:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0ac70e3-e7e8-4c3b-bdd0-f4aca97d5604</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;The thingy firmware is based on SDK13, and since&amp;nbsp;your application is&amp;nbsp;&lt;span&gt;a mix of the thingy firmware and ble-examples from SDK14, there will be softdevice compatibility issues. According to the &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.nrf52/dita/nrf52/compatibility_matrix/ic_rev_sdk_sd_comp_matrix.html?cp=2_1_3_2" rel="noopener noreferrer" target="_blank"&gt;compatibility matrix&lt;/a&gt;, you can see that SDK13 is compatible with softdevice s132v4.0.x, and SDK14 is compatible with softdevice s132v5.0.0.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/122293?ContentTypeID=1</link><pubDate>Wed, 28 Feb 2018 13:02:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b0585bfe-fba7-4385-a1f3-f405d17eb8d5</guid><dc:creator>Andreas123</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;thank you for your suggestions. Yes i have tried to increase the connection interval. I also tried to use exactly&amp;nbsp; the same connection settings as in the ble_app_hrs example.&lt;/p&gt;
&lt;p&gt;Our application is a mix of the thingy firmware and the ble-examples of the SDK 14.0.0, where we use the motion service of the thingy and the ble settings of the SDK to transmit accelerometer values via Bluetooth.&lt;/p&gt;
&lt;p&gt;From my understanding of the sniffer trace, the phone seems to send LL_FEATURE_REQ after both the phone and the peripheral have sent a LL_VERSION_IND (lines 120-124)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;120	10.078095	Master_0x50655a6f	Slave_0x50655a6f	LE LL	32	Control Opcode: LL_VERSION_IND
121	10.078764	Slave_0x50655a6f	Master_0x50655a6f	LE LL	26	Empty PDU
122	10.079386	Master_0x50655a6f	Slave_0x50655a6f	LE LL	26	Empty PDU
123	10.079974	Slave_0x50655a6f	Master_0x50655a6f	LE LL	32	Control Opcode: LL_VERSION_IND
124	10.080565	Master_0x50655a6f	Slave_0x50655a6f	LE LL	35	Control Opcode: LL_FEATURE_REQ&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Complete sniffer trace: &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2555.km_5F00_log.pcapng"&gt;devzone.nordicsemi.com/.../2555.km_5F00_log.pcapng&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Connection parameters update failed, LMP TIMEOUT</title><link>https://devzone.nordicsemi.com/thread/122155?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 15:02:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a89b58a9-283c-49c4-9ce7-dee62fbb2200</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Have you tried to increase the connection interval?&lt;/p&gt;
&lt;p&gt;Error 133 is a known error on some Android phones. I&amp;#39;m not sure in this case but the error occurs when the phone first sends a LL_VERSION_IND and then it sends a LL_FEATURE_REQ&amp;nbsp;&lt;em&gt;before&lt;/em&gt;&amp;nbsp;the peripheral has sent its LL_VERSION_IND. In other words, the phone initiates a seconds&amp;nbsp;LL Control Procedure before the first is finished, and this is a clear violation of the Bluetooth&amp;nbsp;specification. The SoftDevice will disconnect at this point. Can&amp;nbsp;you do a sniffer trace to confirm that this is the case?&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;EDIT:&lt;/strong&gt; We added a Compatibility mode 2 in the Softdevice(&lt;strong&gt;s132v3.1.0&lt;/strong&gt;), which let the phone connect to the device regardless of this.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;To Enable&amp;nbsp;Compatibility Mode 2, add this:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;ble_opt_t ble_opt;

memset(&amp;amp;ble_opt, 0, sizeof(ble_opt));

ble_opt.gap_opt.compat_mode_2.enable = 1;

err_code = sd_ble_opt_set(BLE_GAP_OPT_COMPAT_MODE_2,&amp;amp;ble_opt); 

APP_ERROR_CHECK(err_code);&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You say that the example ble_app_hrs from the SDK works with all devices. W&lt;/span&gt;hich example are you testing with that gives you these issues? Have you modified anything?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>