<?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>NCS peripheral uart increase data length</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/77546/ncs-peripheral-uart-increase-data-length</link><description>Hello, 
 I use central_uart (nrf52840dk) and peripheral_uart (nrf52833dk) examples, NRF Connect SDK v1.6.0 
 I want to send more than 20 bytes of data, 
 So, I increase UART_BUF_SIZE 20 to 50, and when I send data from central device to peripheral It</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Jul 2021 07:48:09 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/77546/ncs-peripheral-uart-increase-data-length" /><item><title>RE: NCS peripheral uart increase data length</title><link>https://devzone.nordicsemi.com/thread/320613?ContentTypeID=1</link><pubDate>Mon, 19 Jul 2021 07:48:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:b670f084-c36b-4eeb-aa52-d2d3c909ebfa</guid><dc:creator>Karl Ylvisaker</dc:creator><description>[quote user="anSolo"]Thank you,&lt;br /&gt;I&amp;#39;ve set&amp;nbsp;&lt;br /&gt;CONFIG_BT_L2CAP_TX_MTU=128&lt;br /&gt;CONFIG_BT_BUF_ACL_RX_SIZE=128&lt;br /&gt;for both projects and it works[/quote]
&lt;p&gt;No problem at all, I am happy to hear that you got it working as intended!&amp;nbsp;&lt;span class="emoticon" data-url="https://devzone.nordicsemi.com/cfs-file/__key/system/emoji/1f642.svg" title="Slight smile"&gt;&amp;#x1f642;&lt;/span&gt;&amp;nbsp;&lt;/p&gt;
[quote user="anSolo"]What is the maximum possible value for these params?[/quote]
&lt;p&gt;The maximum LL PDU size is 251 bytes. However, you will have to make sure that your connection events are long enough for the device to handle your payload size.&lt;br /&gt;Packets that are larger than the LL PDU size will be split over several connection events.&lt;br /&gt;You could use&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/nordic/power/w/opp/2/online-power-profiler-for-ble"&gt;the Online Power Profiler for BLE&lt;/a&gt;&amp;nbsp;to visualize how the different parameters and configurations will play out.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS peripheral uart increase data length</title><link>https://devzone.nordicsemi.com/thread/320541?ContentTypeID=1</link><pubDate>Sat, 17 Jul 2021 12:33:01 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2f06c54d-1aee-42e4-a1d8-f012447305fa</guid><dc:creator>anSolo</dc:creator><description>&lt;p&gt;Thank you,&lt;br /&gt;I&amp;#39;ve set&amp;nbsp;&lt;br /&gt;CONFIG_BT_L2CAP_TX_MTU=128&lt;br /&gt;CONFIG_BT_BUF_ACL_RX_SIZE=128&lt;br /&gt;for both projects and it works&lt;/p&gt;
&lt;p&gt;What is the maximum possible value for these params?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: NCS peripheral uart increase data length</title><link>https://devzone.nordicsemi.com/thread/320427?ContentTypeID=1</link><pubDate>Fri, 16 Jul 2021 12:38:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:87a7cfa6-439e-442c-8448-0864fe8f96e1</guid><dc:creator>Karl Ylvisaker</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
[quote user=""]Is it possible to send more than 20 bytes from both sides?[/quote]
&lt;p&gt;It is, but you will need to increase the MTU size to be able to do so in a single transfer. The&amp;nbsp;&lt;span&gt;UART_BUF_SIZE&amp;nbsp;is the size of the UART buffer, and does not have to do with the BLE MTU size, or the NUS service configuration.&lt;/span&gt;&lt;br /&gt;Please see &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/77261/config-mtu-problem-on-ncs-v1-6-0/319753#319753"&gt;this answer by my colleague Heidi for more information on how to do this in NCS v1.6.0&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The summer holidays have begun here in Norway, and DevZone is therefore operating with reduced staff for the time being. Sorry for any inconvenience this might cause.&lt;br /&gt;&lt;br /&gt;Best regards,&lt;br /&gt;Karl&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>