<?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>BLE_NUS_MAX_DATA_LEN and buffer size question</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/35391/ble_nus_max_data_len-and-buffer-size-question</link><description>Hi! 
 What&amp;#39;s the difference between UART_TX_BUF_SIZE and BLE_NUS_MAX_DATA_LEN in case of ble_app_uart example? 
 As I have noticed BLE_NUS_MAX_DATA_LEN determines maximum length of data sent over BLE, for example BLE_NUS_MAX_DATA_LEN=244, I can send up</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 14 Jun 2018 14:07:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/35391/ble_nus_max_data_len-and-buffer-size-question" /><item><title>RE: BLE_NUS_MAX_DATA_LEN and buffer size question</title><link>https://devzone.nordicsemi.com/thread/136200?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 14:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:00f9c68a-3431-4a81-8dcc-7bdb6b970a45</guid><dc:creator>H&amp;#229;vard</dc:creator><description>&lt;p&gt;Correct,&amp;nbsp;&lt;span style="background-color:transparent;color:#11171a;float:none;font-family:&amp;#39;GT Eesti&amp;#39;,&amp;#39;Helvetica&amp;#39;,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;letter-spacing:normal;line-height:21px;text-align:left;text-decoration:none;text-indent:0px;text-transform:none;white-space:normal;"&gt;UART_TX_BUF_SIZE&lt;/span&gt; is only interesting if you are using the uart hardware peripheral (for example to interface a terminal on your pc), not if you are only using the Nordic UART Service to send data on air between two devices.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_NUS_MAX_DATA_LEN and buffer size question</title><link>https://devzone.nordicsemi.com/thread/136173?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 12:49:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13f6f735-76cf-4746-bff6-0b9a9b16ab21</guid><dc:creator>Pawel Niedbala</dc:creator><description>&lt;p&gt;Hi! Thanks for the answer.&lt;/p&gt;
&lt;p&gt;So when I do use NUS service (only sending data over BLE) but I don&amp;#39;t really want to use serial terminal and print it, I shouldn&amp;#39;t even bother setting buffer size. Am I right?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE_NUS_MAX_DATA_LEN and buffer size question</title><link>https://devzone.nordicsemi.com/thread/136171?ContentTypeID=1</link><pubDate>Thu, 14 Jun 2018 12:45:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c1f76e01-1cd5-4f3f-94de-1ed93c098873</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;UART_TX_BUF_SIZE is the SW FIFO buffer allocated to the UART interface, while&amp;nbsp;BLE_NUS_MAX_DATA_LEN defines the max. data length for BLE packets as you already pointed out.&lt;/p&gt;
&lt;p&gt;Throughput is typically higher on the UART interface compared to the BLE link so it may make sense to have a larger buffer for the UART in order to keep data while waiting for it to be transmitted over BLE.&amp;nbsp;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>