<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect in Wireless MCU</title>
    <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1156770#M10171</link>
    <description>&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Bluetooth Core Specification&lt;/STRONG&gt; in question is &lt;STRONG&gt;Version 4.2&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Thank you for clarifying where the "247" for the &lt;STRONG&gt;upper bound MTU size&lt;/STRONG&gt; comes from.&lt;/P&gt;&lt;P&gt;Unfortunately that &lt;STRONG&gt;does not solve my issue&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Currently, the &lt;STRONG&gt;USB-KW41Z&lt;/STRONG&gt;&amp;nbsp;is programmed with the &lt;STRONG&gt;SDK(2.2.2)-Provided&lt;/STRONG&gt; sample application "&lt;STRONG&gt;usbkw41z_kw41z_wireless_examples_bluetooth_ble_fsci_black_box_bm&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We drive the dongle via FSCI&lt;/STRONG&gt; from the Computer. This is working fine.&lt;/P&gt;&lt;P&gt;Once a BLE-Link-Layer connection is successfully established to a remote peer BLE device, we &lt;STRONG&gt;trigger an MTU-Exchange via FSCI&lt;/STRONG&gt; for that particular connection.&lt;/P&gt;&lt;P&gt;As a result, the Dongle issues an "&lt;STRONG&gt;Exchange MTU Request&lt;/STRONG&gt;" with "&lt;STRONG&gt;Client Rx MTU: 247&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;I want to &lt;STRONG&gt;decrease the supported "maximum MTU size" from 247 to e.g 150.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Therefore I changed line 82 in the "ble_constants.h" file to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/*! Maximum possible value of the ATT_MTU for this device. This is used during the MTU Exchange. */
#define gAttMaxMtu_c                    (150)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a fresh clean-build and downloading the modified version to the USB-KW41Z, the Dongle still&amp;nbsp;issues an "&lt;STRONG&gt;Exchange MTU Request&lt;/STRONG&gt;" with "&lt;STRONG&gt;Client Rx MTU: 247&lt;/STRONG&gt;" for a triggered MTU-Exchange via FSCI.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MTU-247.JPG" style="width: 200px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125827i443369BF5E72F4AE/image-size/small?v=v2&amp;amp;px=200" role="button" title="MTU-247.JPG" alt="MTU-247.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So it seems changing "gAttMaxMtu_c" has no effect.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I set a custom "Maximum MTU size", e.g. decrease from the default 247 to 150?&lt;/P&gt;</description>
    <pubDate>Tue, 22 Sep 2020 07:50:25 GMT</pubDate>
    <dc:creator>chilipp</dc:creator>
    <dc:date>2020-09-22T07:50:25Z</dc:date>
    <item>
      <title>USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1156213#M10167</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I want to &lt;STRONG&gt;decrease&lt;/STRONG&gt; the maximum MTU size of a USB-KW41Z for testing purpose from 247 to e.g. 150.&lt;/P&gt;&lt;P&gt;So I changed the&amp;nbsp;&lt;STRONG&gt;gAttMaxMtu_c&lt;/STRONG&gt; define within the&amp;nbsp;&lt;STRONG&gt;ble_constants.h&lt;/STRONG&gt;&amp;nbsp;file from 247 to 150.&lt;/P&gt;&lt;P&gt;Unfortunately, executing an MTU-Exchange still produces requests / responses with a maximum MTU size of 247.&lt;/P&gt;&lt;P&gt;Is it possible at all to change the maximum MTU size for the USB-KW41Z? Somewhere I read that the maximum MTU size of 247 results from the Bluetooth Core Specification Version 4.2 - but actually I was not able to find such requirement (What I did was searching the complete specification for "247" - no results regarding any MTU size) and as far as I know the only official specified limit for the ATT_MTU is its lower bound of 23.&lt;/P&gt;&lt;P&gt;Kind regards!&lt;/P&gt;</description>
      <pubDate>Mon, 21 Sep 2020 10:42:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1156213#M10167</guid>
      <dc:creator>chilipp</dc:creator>
      <dc:date>2020-09-21T10:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1156593#M10170</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;Which example do you use? bluetooth 4.0 and 4.1 are 23. But 4.2 and 5.0 are 247.&lt;/P&gt;
&lt;P&gt;From the picture, you will know the ATT data maximum value is 247.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125793i4720E09E04DC03CE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11.PNG" alt="11.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 06:27:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1156593#M10170</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-09-22T06:27:04Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1156770#M10171</link>
      <description>&lt;P&gt;Thank you for the reply!&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;Bluetooth Core Specification&lt;/STRONG&gt; in question is &lt;STRONG&gt;Version 4.2&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Thank you for clarifying where the "247" for the &lt;STRONG&gt;upper bound MTU size&lt;/STRONG&gt; comes from.&lt;/P&gt;&lt;P&gt;Unfortunately that &lt;STRONG&gt;does not solve my issue&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Currently, the &lt;STRONG&gt;USB-KW41Z&lt;/STRONG&gt;&amp;nbsp;is programmed with the &lt;STRONG&gt;SDK(2.2.2)-Provided&lt;/STRONG&gt; sample application "&lt;STRONG&gt;usbkw41z_kw41z_wireless_examples_bluetooth_ble_fsci_black_box_bm&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;We drive the dongle via FSCI&lt;/STRONG&gt; from the Computer. This is working fine.&lt;/P&gt;&lt;P&gt;Once a BLE-Link-Layer connection is successfully established to a remote peer BLE device, we &lt;STRONG&gt;trigger an MTU-Exchange via FSCI&lt;/STRONG&gt; for that particular connection.&lt;/P&gt;&lt;P&gt;As a result, the Dongle issues an "&lt;STRONG&gt;Exchange MTU Request&lt;/STRONG&gt;" with "&lt;STRONG&gt;Client Rx MTU: 247&lt;/STRONG&gt;".&lt;/P&gt;&lt;P&gt;I want to &lt;STRONG&gt;decrease the supported "maximum MTU size" from 247 to e.g 150.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Therefore I changed line 82 in the "ble_constants.h" file to:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;/*! Maximum possible value of the ATT_MTU for this device. This is used during the MTU Exchange. */
#define gAttMaxMtu_c                    (150)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After a fresh clean-build and downloading the modified version to the USB-KW41Z, the Dongle still&amp;nbsp;issues an "&lt;STRONG&gt;Exchange MTU Request&lt;/STRONG&gt;" with "&lt;STRONG&gt;Client Rx MTU: 247&lt;/STRONG&gt;" for a triggered MTU-Exchange via FSCI.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MTU-247.JPG" style="width: 200px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125827i443369BF5E72F4AE/image-size/small?v=v2&amp;amp;px=200" role="button" title="MTU-247.JPG" alt="MTU-247.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;So it seems changing "gAttMaxMtu_c" has no effect.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How can I set a custom "Maximum MTU size", e.g. decrease from the default 247 to 150?&lt;/P&gt;</description>
      <pubDate>Tue, 22 Sep 2020 07:50:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1156770#M10171</guid>
      <dc:creator>chilipp</dc:creator>
      <dc:date>2020-09-22T07:50:25Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1157370#M10183</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I am working on it. I use frdm-kw36. The example is w_uart. This example has the exchange process. I insert some code to test if it changed. &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1_3.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125913i5870534327CEA2B4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1_3.PNG" alt="1_3.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1_1.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125914iD465BE6C6B1AE529/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1_1.PNG" alt="1_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1_2.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125915i0F7CBDF73F187209/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1_2.PNG" alt="1_2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Here is the result. I can change it. When I modify the&amp;nbsp;gAttMaxMtu_c as 151, the result is 'not changed'. Hope you can get some ideals in this example. I will go on working on this.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="66.PNG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/125916i9F679A9842FAEDD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="66.PNG" alt="66.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 03:06:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1157370#M10183</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-09-23T03:06:25Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1157629#M10190</link>
      <description>&lt;P&gt;Thank you for your efforts!&lt;/P&gt;&lt;P&gt;I see you call the&amp;nbsp;&lt;STRONG&gt;&lt;EM&gt;GattClient_ExchangeMtu&lt;/EM&gt; function with 2 parameters&lt;/STRONG&gt;:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;GattClient_ExchangeMtu(peerDeviceId, gAttMaxMtu_c);&lt;/LI-CODE&gt;&lt;P&gt;Unfortunately, the SDK for the USB-KW41Z seems to ship with another "gatt_client_interface", since &lt;STRONG&gt;there is no&amp;nbsp;&lt;EM&gt;GattClient_ExchangeMtu&lt;/EM&gt;&amp;nbsp;function that takes 2 parameters&lt;/STRONG&gt;.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;../source/wireless_uart.c: In function 'BleApp_StateMachineHandler':
../source/wireless_uart.c:744:21: error: too many arguments to function 'GattClient_ExchangeMtu'
  744 |                     GattClient_ExchangeMtu(peerDeviceId, gAttMaxMtu_c);
      |                     ^~~~~~~~~~~~~~~~~~~~~~&lt;/LI-CODE&gt;&lt;P&gt;The only one available is&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/*! *********************************************************************************
 * \defgroup GATT_CLIENT GATT - Client APIs
 * @{
 ********************************************************************************** */
/*!
* Copyright (c) 2015, Freescale Semiconductor, Inc.
* Copyright 2016-2017 NXP
* All rights reserved.
* 
* file
*
* SPDX-License-Identifier: BSD-3-Clause
*/

// ...

/*! *********************************************************************************
* \brief  Initializes the MTU Exchange procedure.
*
* \param[in] deviceId       Device ID of the connected peer.
*
* \return  gBleSuccess_c or error.
*
* \remarks If gBleSuccess_c is returned, the completion of this procedure is signalled
* by the Client Procedure callback.
*
********************************************************************************** */
bleResult_t GattClient_ExchangeMtu
(
    deviceId_t      deviceId
);

// ...&lt;/LI-CODE&gt;&lt;P&gt;Also, since I'm using the &lt;STRONG&gt;FSCI&lt;/STRONG&gt; implementation/blackbox example, &lt;STRONG&gt;I would not be able to edit the explicit implementation that is executed when the FSCI command for "Exchange MTU" arrives if I had to&lt;/STRONG&gt;, because the FSCI handling is all done within a pre-compiled library (as far as I know).&lt;/P&gt;&lt;P&gt;I attach the SDK manifest for further SDK information.&lt;/P&gt;</description>
      <pubDate>Wed, 23 Sep 2020 08:59:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1157629#M10190</guid>
      <dc:creator>chilipp</dc:creator>
      <dc:date>2020-09-23T08:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1158210#M10195</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I use fsci example for device. And modified the&amp;nbsp;gAttMaxMtu_c to 150. The device advertised and phone connected to the device. Then the phone request the MTU. I captured the packet. The device MTU doesn't change. I am not sure why this happen.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 06:14:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1158210#M10195</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-09-24T06:14:06Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1158448#M10197</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;this is &lt;STRONG&gt;exactly the kind of behavior I have experienced&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I also tried your previous suggestion and looked at the &lt;STRONG&gt;MTU-Exchange in the TestTool&lt;/STRONG&gt;, but there is &lt;STRONG&gt;no explicit parameter for setting the desired MTU size&lt;/STRONG&gt; except for the latest BLE stack (?) &lt;STRONG&gt;version 1.6.6&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BLE_1.6.6.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126070i6E73A91FB1EC1835/image-size/large?v=v2&amp;amp;px=999" role="button" title="BLE_1.6.6.JPG" alt="BLE_1.6.6.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, &lt;STRONG&gt;the NXP-USBKW41Z does not support that version&lt;/STRONG&gt;. The &lt;STRONG&gt;latest supported version&lt;/STRONG&gt; for the USB-KW41Z &lt;STRONG&gt;is version 1.2.8&lt;/STRONG&gt;. But &lt;STRONG&gt;that version (1.2.8)&lt;/STRONG&gt; - and any version prior to 1.6.6 - &lt;STRONG&gt;does not provide a parameter for setting the desired MTU size&lt;/STRONG&gt; during MTU exchange.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BLE_1.2.8.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126071iF155A95B2B11E851/image-size/large?v=v2&amp;amp;px=999" role="button" title="BLE_1.2.8.JPG" alt="BLE_1.2.8.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that I use the latest version of the Test-Tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TestTool.JPG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126072iDAF5471779742BAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TestTool.JPG" alt="TestTool.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, as you already said, &lt;STRONG&gt;you experienced the same issue as I did.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any possible workaround to fix this issue until a SDK update is released?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I suspect that the MTU size is hard-coded into the library "lib_ble_4-2_host_fsci_cm0p.a".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Maybe there is a chance to flip some bytes within the library to achieve the goal of setting a custom value for the used maximum MTU size during the MTU-Exchange?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 07:23:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1158448#M10197</guid>
      <dc:creator>chilipp</dc:creator>
      <dc:date>2020-09-24T07:23:27Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1158450#M10198</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;this is &lt;STRONG&gt;exactly the kind of behavior I have experienced&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;I also tried your previous suggestion and looked at the &lt;STRONG&gt;MTU-Exchange in the TestTool&lt;/STRONG&gt;, but there is &lt;STRONG&gt;no explicit parameter for setting the desired MTU size&lt;/STRONG&gt; except for the latest BLE stack (?) &lt;STRONG&gt;version 1.6.6&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BLE_1.6.6.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126070i6E73A91FB1EC1835/image-size/large?v=v2&amp;amp;px=999" role="button" title="BLE_1.6.6.JPG" alt="BLE_1.6.6.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Unfortunately, &lt;STRONG&gt;the NXP-USBKW41Z does not support that version&lt;/STRONG&gt;. The &lt;STRONG&gt;latest supported version&lt;/STRONG&gt; for the USB-KW41Z &lt;STRONG&gt;is version 1.2.8&lt;/STRONG&gt;. But &lt;STRONG&gt;that version (1.2.8)&lt;/STRONG&gt; - and any version prior to 1.6.6 - &lt;STRONG&gt;does not provide a parameter for setting the desired MTU size&lt;/STRONG&gt; during MTU exchange.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="BLE_1.2.8.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126071iF155A95B2B11E851/image-size/large?v=v2&amp;amp;px=999" role="button" title="BLE_1.2.8.JPG" alt="BLE_1.2.8.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Note that I use the latest version of the Test-Tool.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TestTool.JPG" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126072iDAF5471779742BAE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TestTool.JPG" alt="TestTool.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Nevertheless, as you already said, &lt;STRONG&gt;you experienced the same issue as I did.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any possible workaround to fix this issue until a SDK update is released?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I suspect that the MTU size is hard-coded into the library "lib_ble_4-2_host_fsci_cm0p.a".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Maybe there is a chance to flip some bytes within the library to achieve the goal of setting a custom value for the used maximum MTU size during the MTU-Exchange?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 07:27:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1158450#M10198</guid>
      <dc:creator>chilipp</dc:creator>
      <dc:date>2020-09-24T07:27:02Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1158917#M10202</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;when you choose the command, there is a button 'Raw' in ide. This can show the command packet data. And then you can modifiy this command. Do not forget to change the check bit.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Thu, 24 Sep 2020 23:49:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1158917#M10202</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-09-24T23:49:17Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1159211#M10203</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I tried that approach but without success.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;To eliminate potential error sources while calculating the checksum, I extended the Test-Tools XML file (BLE_1.2.8.xml) by adding one additional parameter for the GATTClient-ExchangeMtu.Request command as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;Parm&amp;gt;
	&amp;lt;ParmName&amp;gt;MTU&amp;lt;/ParmName&amp;gt;
	&amp;lt;ParmDesc&amp;gt;Desired MTU&amp;lt;/ParmDesc&amp;gt;
	&amp;lt;ParmSize&amp;gt;2&amp;lt;/ParmSize&amp;gt;
	&amp;lt;ParmType&amp;gt;tInt&amp;lt;/ParmType&amp;gt;
	&amp;lt;ParmLastValue&amp;gt;96&amp;lt;/ParmLastValue&amp;gt;
	&amp;lt;ParmDefaultValue&amp;gt;17&amp;lt;/ParmDefaultValue&amp;gt;
&amp;lt;/Parm&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;--edit-- also tried with ParamSize 1 - also without success --end edit--&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Unfortunately, even though the Dongle replies with "gBleSuccess_c" for "GATTClient-ProcedureExchangeMtu-Indication" it still issues the "Exchange MTU Request" with "Client Rx MTU" = 247&lt;/STRONG&gt; (I captured the air-traffic to verify).&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TestToolBle1.2.8WithMtu.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126179i61D1D62562235DB5/image-size/large?v=v2&amp;amp;px=999" role="button" title="TestToolBle1.2.8WithMtu.JPG" alt="TestToolBle1.2.8WithMtu.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MTUAirTrace.JPG" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/126180i283D5F3A921AEE54/image-size/large?v=v2&amp;amp;px=999" role="button" title="MTUAirTrace.JPG" alt="MTUAirTrace.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I guess the MTU size used for the MTU-Exchange is hard coded&lt;/STRONG&gt; (at least for the current SDK &lt;STRONG&gt;for the USB-KW41Z&lt;/STRONG&gt;) and &lt;STRONG&gt;not taken from the defined "gAttMaxMtu_c"&lt;/STRONG&gt; - even though the comment for that define states "This is used during the MTU Exchange." and &lt;STRONG&gt;some other code depend on that value&lt;/STRONG&gt; (buffer sizes etc.). &lt;STRONG&gt;In my opinion, this can be considered as bug.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Will there be a bugfix sometime, and if so, when can it be expected?&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 08:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1159211#M10203</guid>
      <dc:creator>chilipp</dc:creator>
      <dc:date>2020-09-25T08:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1159391#M10204</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;I asked our internal engineer, he told me the mtu function which has only one parameter won't use the&amp;nbsp;gAttMaxMtu_c. So the modification of gAttMaxMtu_c won't take effect. And they do not sure if they will update sdk to solve this problem. I&amp;nbsp;have to say it is unfortunate.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;
&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;
&lt;P&gt;- We are following threads for 7 days after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 13:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1159391#M10204</guid>
      <dc:creator>nxf56274</dc:creator>
      <dc:date>2020-09-25T13:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: USB-KW41Z - MTU Exchange - Changing gAttMaxMtu_c has no effect</title>
      <link>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1159415#M10205</link>
      <description>&lt;P&gt;What a pity!&lt;/P&gt;&lt;P&gt;Yet it seems as simple this:&lt;/P&gt;&lt;P&gt;File: &lt;EM&gt;ble_globals.c&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;uint16_t gAttMaxMtu = gAttMaxMtu_c;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And within the source code of the "host" static libraries:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;extern uint16_t gAttMaxMtu;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;while using the "gAttMaxMtu" variable for every reference to the currently used and hard coded (variables) value of "247".&lt;/P&gt;&lt;P&gt;Nevertheless, if there is any possibility for an SDK update or news about this topic, I would appreciate a notification!&lt;/P&gt;&lt;P&gt;Kind regards.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Sep 2020 15:08:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Wireless-MCU/USB-KW41Z-MTU-Exchange-Changing-gAttMaxMtu-c-has-no-effect/m-p/1159415#M10205</guid>
      <dc:creator>chilipp</dc:creator>
      <dc:date>2020-09-25T15:08:12Z</dc:date>
    </item>
  </channel>
</rss>

