<?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>LMP Responese Timeout - nRF52840 S140v6.1.0 SDK 15.2.0</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/43943/lmp-responese-timeout---nrf52840-s140v6-1-0-sdk-15-2-0</link><description>Hello everybody, 
 
 I&amp;#39;m using nRF5280 (Laird BL654) with SoftDeveice S140v6.1.0 and SDK 15.2.0 with a modified version of the blinky peripheral example. 
 I&amp;#39;ve changed NRF_SDH_BLE_GATT_MAX_MTU_SIZE to 138 and NRF_SDH_BLE_GAP_DATA_LENGTH to 142 
 
 After</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 11 Mar 2019 13:15:40 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/43943/lmp-responese-timeout---nrf52840-s140v6-1-0-sdk-15-2-0" /><item><title>RE: LMP Responese Timeout - nRF52840 S140v6.1.0 SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/175331?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 13:15:40 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ad03b7ec-79fe-44bf-b40a-624bc341246c</guid><dc:creator>Fabian Hauschild</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have tried out the new SoftDevice S140v6.1.1.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Using this new SoftSevice solved the problem for me.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LMP Responese Timeout - nRF52840 S140v6.1.0 SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/175330?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 13:09:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a344e0aa-2273-4851-bc26-2b5825126cd3</guid><dc:creator>Fabian Hauschild</dc:creator><description>&lt;p&gt;OK&lt;/p&gt;
&lt;p&gt;Yes it works with the PCA10040 project but not with the PCA10056 project.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LMP Responese Timeout - nRF52840 S140v6.1.0 SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/175325?ContentTypeID=1</link><pubDate>Mon, 11 Mar 2019 12:56:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:381bb43b-bcce-4f52-a8ba-f474242ab3bd</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;So it works when you use the PCA10040 project but not when you are using the PCA10056 project?&lt;/p&gt;
&lt;p&gt;No, it isn&amp;#39;t a typo.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LMP Responese Timeout - nRF52840 S140v6.1.0 SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/173983?ContentTypeID=1</link><pubDate>Mon, 04 Mar 2019 12:59:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6c38fc34-6f82-4562-a061-48a01e019c15</guid><dc:creator>Fabian Hauschild</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have added these two lines but it didn&amp;#39;t help me.&lt;/p&gt;
&lt;p&gt;The Problem is still the same.&lt;/p&gt;
&lt;p&gt;The error code after&amp;nbsp;&amp;nbsp;sd_ble_gap_data_length_update(conn_handle, &amp;amp;dlp, &amp;amp;dll)&amp;nbsp; is NRF_SUCCESS so the added lines of code won&amp;#39;t get executed&lt;/p&gt;
&lt;p&gt;However I have found out that there are no problems with SD132v6.1.0.&lt;/p&gt;
&lt;p&gt;I have tried the app_blinky example for pca10040 on the pca10056 with the same modifications i have mentioned above. (&lt;span&gt;changed NRF_SDH_BLE_GATT_MAX_MTU_SIZE to&amp;nbsp;138 and&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH to&amp;nbsp;142)&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;With this example the S7 didn&amp;#39;t disconnect with&amp;nbsp;&lt;span&gt;LMP Response Timeout.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;P.S.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think there is a typo in the two lines&amp;nbsp;I should add.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I think they schould be like this:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;err_code = sd_ble_gap_data_length_update(conn_handle, &amp;amp;dlp, &amp;amp;dll);
return err_code;&lt;/pre&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LMP Responese Timeout - nRF52840 S140v6.1.0 SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/173725?ContentTypeID=1</link><pubDate>Fri, 01 Mar 2019 13:55:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b41b8cf3-4dd8-4c75-a5f8-8f8818d9b021</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;In nrf_ble_gatt.c, inside data_length_update(..), could you add these two lines:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;err_code = sd_ble_gap_data_length_update(conn_handle, &amp;amp;dll, &amp;amp;dll);
return err_code;&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;Like this:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;static ret_code_t data_length_update(uint16_t conn_handle, uint16_t data_length)
{
    NRF_LOG_DEBUG(&amp;quot;Updating data length to %u on connection 0x%x.&amp;quot;,
                  data_length, conn_handle);

    ble_gap_data_length_params_t const dlp =
    {
        .max_rx_octets  = data_length,
        .max_tx_octets  = data_length,
        .max_rx_time_us = BLE_GAP_DATA_LENGTH_AUTO,
        .max_tx_time_us = BLE_GAP_DATA_LENGTH_AUTO,
    };

    ble_gap_data_length_limitation_t dll = {0};

    ret_code_t err_code = sd_ble_gap_data_length_update(conn_handle, &amp;amp;dlp, &amp;amp;dll);
    if (err_code != NRF_SUCCESS)
    {
        NRF_LOG_ERROR(&amp;quot;sd_ble_gap_data_length_update() (request) on connection 0x%x returned %s.&amp;quot;,
                      conn_handle, nrf_strerror_get(err_code));

        if (   (dll.tx_payload_limited_octets != 0)
            || (dll.rx_payload_limited_octets != 0))
        {
            NRF_LOG_ERROR(&amp;quot;The requested TX/RX packet length is too long by %u/%u octets.&amp;quot;,
                          dll.tx_payload_limited_octets, dll.rx_payload_limited_octets);
+                         err_code = sd_ble_gap_data_length_update(conn_handle, &amp;amp;dll, &amp;amp;dll);
+                         return err_code;
        }

        if (dll.tx_rx_time_limited_us != 0)
        {
            NRF_LOG_ERROR(&amp;quot;The requested combination of TX and RX packet lengths &amp;quot;
                          &amp;quot;is too long by %u microseconds.&amp;quot;,
                          dll.tx_rx_time_limited_us);
        }
    }

    return err_code;
}&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;See if this helps you solve the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LMP Responese Timeout - nRF52840 S140v6.1.0 SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/172783?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 13:39:48 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4331baea-2607-4ced-a1e7-756d7b1a1ace</guid><dc:creator>Fabian Hauschild</dc:creator><description>&lt;p&gt;Hi ,&lt;/p&gt;
&lt;p&gt;I have only changed the MTU.&lt;/p&gt;
&lt;p&gt;I Havn&amp;#39;t toched the connection interval.&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="text"&gt;#define MIN_CONN_INTERVAL               MSEC_TO_UNITS(100, UNIT_1_25_MS)        /**&amp;lt; Minimum acceptable connection interval (0.5 seconds). */
#define MAX_CONN_INTERVAL               MSEC_TO_UNITS(200, UNIT_1_25_MS)        /**&amp;lt; Maximum acceptable connection interval (1 second). */
#define SLAVE_LATENCY                   0                                       /**&amp;lt; Slave latency. */
#define CONN_SUP_TIMEOUT                MSEC_TO_UNITS(4000, UNIT_10_MS)         /**&amp;lt; Connection supervisory time-out (4 seconds). */

#define FIRST_CONN_PARAMS_UPDATE_DELAY  APP_TIMER_TICKS(20000)                  /**&amp;lt; Time from initiating event (connect or start of notification) to first time sd_ble_gap_conn_param_update is called (15 seconds). */
#define NEXT_CONN_PARAMS_UPDATE_DELAY   APP_TIMER_TICKS(5000)                   /**&amp;lt; Time between each call to sd_ble_gap_conn_param_update after the first call (5 seconds). */
#define MAX_CONN_PARAMS_UPDATE_COUNT    3                                       /**&amp;lt; Number of attempts before giving up the connection parameter negotiation. */

#define BUTTON_DETECTION_DELAY          APP_TIMER_TICKS(50)                     /**&amp;lt; Delay from a GPIOTE event until a button is reported as pushed (in number of timer ticks). */&lt;/pre&gt;&lt;/p&gt;
&lt;p&gt;These are the original connection Parameter from the example.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: LMP Responese Timeout - nRF52840 S140v6.1.0 SDK 15.2.0</title><link>https://devzone.nordicsemi.com/thread/172775?ContentTypeID=1</link><pubDate>Mon, 25 Feb 2019 13:28:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1da1a11d-95df-4bc4-ad64-32e86792a393</guid><dc:creator>Mttrinh</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have talked to one of our Android developers and it seems like that there shouldn&amp;#39;t be different MTU size for different phones. Android supports MTU from 23 up to 517. What other changes have you done to the example? What is your connection interval?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>