<?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>NRF maximum gatt mtu size</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27462/nrf-maximum-gatt-mtu-size</link><description>Hi, 
 I am trying to develop an application which recieves data over SPI and I want to send this data over ble, I am using NUS service. I am recieving 5 bytes over SPI at a time, and SPI sampling rate is around 4 Mhz. 
 I am sending this data to ble</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 23 Nov 2017 13:59:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27462/nrf-maximum-gatt-mtu-size" /><item><title>RE: NRF maximum gatt mtu size</title><link>https://devzone.nordicsemi.com/thread/108481?ContentTypeID=1</link><pubDate>Thu, 23 Nov 2017 13:59:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:35712056-5ad3-4e97-81c8-c97162a8cf79</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;You can have a look at the ble_app_att_mtu_throughput example, see if you see any differences. This configures for maximum throughput. What event length are you using? If the connection interval is 400 ms, the event length should also be 400 ms. 424.6 kbps is the maximum measured throughput in 1Mbps with simultaneous send Notification and receive Write command. Only sending notifications one way you can achieve 771.1 kbps.&lt;/p&gt;
&lt;p&gt;It also depends what you are connecting to, what kind of central device is it? You will typically only achieve the numbers above when you have our devices in both ends of the link.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF maximum gatt mtu size</title><link>https://devzone.nordicsemi.com/thread/108479?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 18:45:31 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:637a7ef8-38cf-4cb9-890a-72ac4dd65b0f</guid><dc:creator>pranavsk1994</dc:creator><description>&lt;p&gt;I am using nrf 13.0.0 SDK, with nrf52840 chip, and S140 softdevice.
I didn&amp;#39;t understand how to use the DEBUG option. But I solved the error I was not initializing the MAX size in ble stack. Now I am able to set att mtu to 247 bytes.
But the  throughput is coming out around 106 Kbps. But in the following link its mentioned you can get a throughput of 424 kbps for GATT size of 247, max conn interval time of 400ms.
&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.sds%2Fdita%2Fsoftdevices%2Fs130%2Fble_data_throughput%2Fble_data_throughput.html&amp;amp;cp=2_4_0_0_16"&gt;infocenter.nordicsemi.com/index.jsp&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t understand if I am missing something here&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF maximum gatt mtu size</title><link>https://devzone.nordicsemi.com/thread/108478?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 18:19:27 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fd9d5293-1028-46e8-b4ed-584c52e89e2d</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Did you try my suggestion?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF maximum gatt mtu size</title><link>https://devzone.nordicsemi.com/thread/108480?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 17:13:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:99a1bcdc-65c2-4985-bdd8-3f52acc817f5</guid><dc:creator>pranavsk1994</dc:creator><description>&lt;p&gt;So the data I recieve over SPI from peripheral device is sampled at really fast rate.  I am not sending only 5 bytes over ble. I am pushing data recieved over SPI to ble queue till I get an err_code message of NRF_ERROR RESOURCES. I want tp increase the ATT_MTU size which is currentky set to 158 in my config file. But if I increase it to 247 which is maximum as mentioned in documents the code doesn&amp;#39;t seem to work. It doesn&amp;#39;t even advertise.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NRF maximum gatt mtu size</title><link>https://devzone.nordicsemi.com/thread/108482?ContentTypeID=1</link><pubDate>Wed, 22 Nov 2017 09:58:26 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4807ab08-d81f-4729-b223-12e4b92bd3a6</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;Do you really need a bigger ATT MTU? If you are sending 5 bytes at the time?&lt;/p&gt;
&lt;p&gt;Anyways, which SDK and SoftDevice version are you using? Which example? Sounds like you are getting an error code somewhere and the chip resets. Please try to turn off optimizations, define DEBUG, and set a breakpoint in app_error_handler(). If you hit the breakpoint, extract the error code, line number and file name.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>