<?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>the extension of MTU length</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/39822/the-extension-of-mtu-length</link><description>Hi, 
 My development environment is sdk12.3 s132_3.0 pca10040 I want to increase the MTU size to 64 bytes in nus. I programmed as below, but there is no MTU size change. It is not called with gatt_event_handler (). /**@brief Function for handling events</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 31 Oct 2018 01:10:43 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/39822/the-extension-of-mtu-length" /><item><title>RE: the extension of MTU length</title><link>https://devzone.nordicsemi.com/thread/155237?ContentTypeID=1</link><pubDate>Wed, 31 Oct 2018 01:10:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b4efd661-da4f-4dd0-8ad2-398cc303b9c3</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;Hi, Stain&lt;/p&gt;
&lt;p&gt;I solved it&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the extension of MTU length</title><link>https://devzone.nordicsemi.com/thread/155183?ContentTypeID=1</link><pubDate>Tue, 30 Oct 2018 14:56:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:abdb808e-67ae-4fb9-b581-016f95f619e3</guid><dc:creator>Stian R&amp;#248;ed Hafskjold</dc:creator><description>&lt;p&gt;Hi, did you solve the problem?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the extension of MTU length</title><link>https://devzone.nordicsemi.com/thread/154615?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 07:33:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db7819c7-713c-4bbb-81bc-5e389a284aa3</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;&lt;span&gt;I knew the cause of the problem.&lt;/span&gt;&lt;/p&gt;
&lt;pre class="tw-data-text tw-ta tw-text-small" id="tw-target-text" dir="ltr"&gt;&lt;span lang="en"&gt;There was no gatt event processing inside the function &lt;br /&gt;static void ble_evt_dispatch(ble_evt_t * p_ble_evt)&lt;br /&gt;{&lt;br /&gt;   ......&lt;br /&gt;   &lt;span&gt; &lt;/span&gt;nrf_ble_gatt_on_ble_evt(&amp;amp;m_gatt, p_ble_evt);&lt;br /&gt;    .....&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the extension of MTU length</title><link>https://devzone.nordicsemi.com/thread/154588?ContentTypeID=1</link><pubDate>Fri, 26 Oct 2018 02:30:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e5456719-789e-4e9d-9a3d-bfcda3404f2e</guid><dc:creator>alex kim</dc:creator><description>&lt;p&gt;Hi, Philip&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Thank you for your reply.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;I try&amp;nbsp;&lt;/span&gt;&lt;span lang="en"&gt;err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, 0x20);&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;but&amp;nbsp;&lt;/span&gt;&lt;span lang="en"&gt;MTU length did not increase and gatt_evt_handler() did not be called&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;In sdk_config.h&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;-&amp;nbsp;#define NRF_BLE_GATT_ENABLED 1&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;#define NRF_BLE_GATT_MAX_MTU_SIZE 244&lt;/p&gt;
&lt;p&gt;In ble_nus.h&lt;/p&gt;
&lt;p&gt;#define BLE_NUS_MAX_DATA_LEN (NRF_BLE_GATT_MAX_MTU_SIZE - 3)&lt;/p&gt;
&lt;p&gt;&lt;span lang="en"&gt;Best regards,&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the extension of MTU length</title><link>https://devzone.nordicsemi.com/thread/154401?ContentTypeID=1</link><pubDate>Thu, 25 Oct 2018 08:25:03 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:82de3e37-099e-4ca8-a371-098bb71a8d9e</guid><dc:creator>Philip</dc:creator><description>&lt;p&gt;Hi. Are you trying to set the MTU to 64 in this line?&lt;/p&gt;
&lt;pre dir="ltr"&gt;&lt;span lang="en"&gt;err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, 100);&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;If so are you trying to enter it in binary i.e. b&amp;#39;00000100&amp;#39; = 64?&lt;br /&gt;&lt;br /&gt;You normally edit the MTU size in the sdk_config.h file&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>