<?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>UART BLE Example - Data size limit</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/47930/uart-ble-example---data-size-limit</link><description>Hi, 
 What is the limitation in terms of the number of bytes that can be sent over the UART to be sent over BLE on the usart ble example? I tried sending 32 bytes and it worked, but sending 64 bytes does not seem to work. 
 I thought Bluetooth 4.1 onwards</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 05 Jun 2019 16:29:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/47930/uart-ble-example---data-size-limit" /><item><title>RE: UART BLE Example - Data size limit</title><link>https://devzone.nordicsemi.com/thread/191179?ContentTypeID=1</link><pubDate>Wed, 05 Jun 2019 16:29:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d8ed7840-5624-4a93-b7ca-fdf272d95a45</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Do you want to send 64 bytes in a single packet or divided over several packets? I assume the first.&lt;/p&gt;
&lt;p&gt;BLE 4.2 and 5.0 supports the feature Data Length Extension (DLE), which makes it possible to send up to 244 bytes in one packet (see image below).&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/resized-image/__size/700x600/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-7915e57f3c854e2aa0ea61f314c71466/pastedimage1559750556683v1.png" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;In order to set the data length, use the function &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v4.0.2%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=gac4a6ef5c106107eb2a1707bb26f3245c"&gt;sd_ble_gap_data_length_update()&lt;/a&gt;. If you look at the ble_app_uart_mtu_throughput example, you can see that this function is called in the following manner:&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;button_evt_handler()--&amp;gt;data_len_set()--&amp;gt;nrf_ble_gatt_data_length_set()--&amp;gt;data_length_update()--&amp;gt;&lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.s132.api.v4.0.2%2Fgroup___b_l_e___g_a_p___f_u_n_c_t_i_o_n_s.html&amp;amp;anchor=gac4a6ef5c106107eb2a1707bb26f3245c"&gt;sd_ble_gap_data_length_update()&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Remember to set the MTU size accordingly (NRF_SDH_BLE_GATT_MAX_MTU_SIZE).&lt;/p&gt;
&lt;p&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><item><title>RE: UART BLE Example - Data size limit</title><link>https://devzone.nordicsemi.com/thread/190604?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 17:00:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:63058abf-f485-41d4-8c22-4e6311338691</guid><dc:creator>firmware_master</dc:creator><description>&lt;p&gt;I have checked the USART-BLE example as given and it looks like I should be able to send much larger messages. What is the need for the new example?&lt;/p&gt;
&lt;p&gt;Thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: UART BLE Example - Data size limit</title><link>https://devzone.nordicsemi.com/thread/190550?ContentTypeID=1</link><pubDate>Mon, 03 Jun 2019 13:58:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:726f5eee-2a78-40b1-9530-55dbbed25a36</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Check out the &lt;a href="https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v15.0.0%2Fble_sdk_app_att_mtu.html"&gt;ATT_MTU Throughput Example&lt;/a&gt;&lt;span&gt;&amp;nbsp;of how to send more than 32 bytes (By increasing the ATT_MTU size).&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Best regards,&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Simon&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>