<?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 UART Slow Transfer to Android</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/30667/ble-uart-slow-transfer-to-android</link><description>Hi all, 
 I am using PCA10040 with nRF5_SDK_13.0.0 and using the ble_perpheral -&amp;gt; ble_app_uart example. 
 I am trying to stream data from UART to an android phone and the data is coming from an external MCU with its TX/RX pin connected to the RX/TX pin</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 27 Feb 2018 04:25:02 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/30667/ble-uart-slow-transfer-to-android" /><item><title>RE: BLE UART Slow Transfer to Android</title><link>https://devzone.nordicsemi.com/thread/122030?ContentTypeID=1</link><pubDate>Tue, 27 Feb 2018 04:25:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d6ef8aa8-dd2c-4a9f-a77c-eb5a113097c2</guid><dc:creator>kian79</dc:creator><description>&lt;p&gt;Thanks Martin.&lt;/p&gt;
&lt;p&gt;I solved the problem by min and max connection interval to 7.5 and ATT MUT to 150.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;#define MIN_CONN_INTERVAL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MSEC_TO_UNITS(7.5, UNIT_1_25_MS)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;#define MAX_CONN_INTERVAL&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;MSEC_TO_UNITS(7.5, UNIT_1_25_MS)&amp;nbsp;&lt;/p&gt;
&lt;p&gt;err_code = nrf_ble_gatt_att_mtu_periph_set(&amp;amp;m_gatt, 150);&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: BLE UART Slow Transfer to Android</title><link>https://devzone.nordicsemi.com/thread/121563?ContentTypeID=1</link><pubDate>Wed, 21 Feb 2018 16:34:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:14cd40df-f29a-4886-b21a-11bca0cd5863</guid><dc:creator>Martin Lesund</dc:creator><description>&lt;p&gt;Hi Kian79,&lt;/p&gt;
&lt;p&gt;&lt;span style="text-decoration:underline;"&gt;&lt;strong&gt;Tips from last &lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/30427/ble-uart-losing-packets" rel="noopener noreferrer" target="_blank"&gt;thread&lt;/a&gt;:&lt;/strong&gt;&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;span&gt;You can increase the bandwidth by:&lt;/span&gt;&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;- Send fewer, larger packets, reducing overhead.&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;&lt;span&gt;-Use the high speed 2 Mbps mode introduced in Bluetooth 5&lt;/span&gt;&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;To increase the ATT MTU you can look at the &amp;quot;ble_app_uart&amp;quot; example and take a look in the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;em&gt;gatt_init(),&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;/em&gt;you can see how this is handled for the&lt;span&gt;&amp;nbsp;&lt;/span&gt;&lt;span&gt;peripheral side&lt;/span&gt;&lt;span&gt;&amp;nbsp;with the function&amp;nbsp;&lt;/span&gt;(&lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Fgroup__nrf__ble__gatt.html&amp;amp;anchor=ga4fd7e5c4607cba63f00b8bf9711c3ca3" rel="noopener noreferrer" target="_blank"&gt;nrf_ble_gatt_att_mtu_periph_set&lt;/a&gt;()). Another tips can be to look at the &lt;a href="http://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.sdk5.v14.2.0%2Fble_sdk_app_att_mtu.html&amp;amp;cp=4_0_0_4_2_1_0" rel="noopener noreferrer" target="_blank"&gt;ATT_MTU Throughput Example&lt;/a&gt;&amp;nbsp;and use parts of it as reference.&amp;nbsp; You could also check out this &lt;a href="https://devzone.nordicsemi.com/b/blog/posts/throughput-and-long-range-demo" rel="noopener noreferrer" target="_blank"&gt;blog&lt;/a&gt;&amp;nbsp;describing the different parameters of the example.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Anyway, If you could provide a &lt;a href="https://www.nordicsemi.com/eng/Products/Bluetooth-low-energy/nRF-Sniffer" rel="noopener noreferrer" target="_blank"&gt;sniffer&lt;/a&gt;&amp;nbsp;log that would also be helpful to see what&amp;#39;s happening over the air.&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>