<?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>SDK 15.3 SD 6.1.1 MTU negotiation fails</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/64774/sdk-15-3-sd-6-1-1-mtu-negotiation-fails</link><description>I setup gatt like the following: 
 static void gatt_init(void) { ret_code_t 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_central_set(&amp;amp;m_gatt, NRF_SDH_BLE_GATT_MAX_MTU_SIZE); APP_ERROR_CHECK</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Aug 2020 10:44:33 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/64774/sdk-15-3-sd-6-1-1-mtu-negotiation-fails" /><item><title>RE: SDK 15.3 SD 6.1.1 MTU negotiation fails</title><link>https://devzone.nordicsemi.com/thread/264426?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 10:44:33 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c890c7ed-5a6c-4198-9de3-15356bfd31cb</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I know that iOS has an &amp;quot;issue&amp;quot; with achieving 247 MTU, and this seems very similar to that, so my guess is that the macOS doesn&amp;#39;t accept 247 as the MTU size either. This issue (with iOS) is explained in length in &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/44825/ios-mtu-size-why-only-185-bytes"&gt;this case&lt;/a&gt;, and a few workarounds are suggested. You can also check out &lt;a href="https://jimmywongiot.com/2020/06/24/video-clips-of-ble-high-throughput-demo-on-nrf52-series/"&gt;this blog post by my colleague Jimmy&lt;/a&gt; where he explains how to maximize the BLE throughput in communication between nRF52 and iOS devices.&lt;/p&gt;
&lt;p&gt;One of the workarounds suggested is that you can delay the MTU request/negotiation to occur at a later point, as iOS devices do not seem to like MTU requests upon connection. The attached project is a modified version of the ble_app_uart example where the MTU requests are delayed and should allow iOS devices to achieve a 247 byte MTU. Please note that this example project has not been through thorough testing, so there might be some hitches to it.&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-e2dbb0364e40428bbd92894d360c75e3/ble_5F00_app_5F00_uart.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>