<?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>How to increase BLE data transfer speed between 52840 and android mobile devices?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/58274/how-to-increase-ble-data-transfer-speed-between-52840-and-android-mobile-devices</link><description>Objective: I want to read 64MB data stored in external flash (interfaced with nrf52840) from android mobile App (specific: One Plus 7T) 
 SDK: nRF5 SDK v16.0.0 
 Soft Device: s140_nrf52_7.0.1_softdevice.hex 
 BLE Parameters: 
 #define NRF_SDH_BLE_GATT_MAX_MTU_SIZE</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 28 Feb 2020 13:56:13 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/58274/how-to-increase-ble-data-transfer-speed-between-52840-and-android-mobile-devices" /><item><title>RE: How to increase BLE data transfer speed between 52840 and android mobile devices?</title><link>https://devzone.nordicsemi.com/thread/237152?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 13:56:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8ac04b09-a5e6-46dd-a1a9-1b4543d21e88</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Max MTU is 247.&lt;br /&gt;&lt;br /&gt;The connection interval you&amp;#39;re given is dependent on the current load of the mobile device&amp;#39;s Multimodem. You might have gotten lucky when you were given a 11.25ms connection interval with the nRF Connect app. You need to log what connection parameters you are given during your throughput test, a connection parameter from another link is not valid data.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I also suggest that you compare your notification scheme with that of the ble_app_uart and throughput example, as these two examples try to maximize the throughput of a link.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Also, note that in a noisy RF environment a larger packet size will be more likely to be affected by transient noise than a smaller one, leading to lost packets and re-transmissions, lowering your throughput.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase BLE data transfer speed between 52840 and android mobile devices?</title><link>https://devzone.nordicsemi.com/thread/237096?ContentTypeID=1</link><pubDate>Fri, 28 Feb 2020 10:53:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfa1d3b2-045e-4669-8c56-340907096f1d</guid><dc:creator>Bhavya Mathukiya</dc:creator><description>&lt;p&gt;Hi Haakonsh,&lt;/p&gt;
&lt;p&gt;Thanks for your response.&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;quot;Most likely you&amp;#39;ve gotten -&amp;gt;100ms connection intervals.&amp;quot; I am able to get 11.25ms connection interval.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;You also need to extend your&amp;nbsp;NRF_SDH_BLE_GAP_DATA_LENGTH&amp;nbsp;to 251 -&amp;gt; I have done this but there is no change in throughput.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;And you will have to verify what connection parameters are actually negotiated-&amp;gt; from nrfConnect app I am able to check that:&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;MTU Size: 247&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;PHY(TX/RX): 2M&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Connection Interval: 11.25ms&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Can you please suggest &lt;strong&gt;what is the maximum MTU size&lt;/strong&gt; I can use for nrf52840 as in nrfConnect mobile app I can see that it supports up to ~517. But when I am setting MTU size to 400 my firmware is being crashed upon data transfer (&lt;strong&gt;#define NRF_SDH_BLE_GATT_MAX_MTU_SIZE 400&lt;/strong&gt;)&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to increase BLE data transfer speed between 52840 and android mobile devices?</title><link>https://devzone.nordicsemi.com/thread/236295?ContentTypeID=1</link><pubDate>Tue, 25 Feb 2020 14:41:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8588a6c0-71c7-42e4-ac88-a471832282ef</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;By setting your maximum connection interval to 7.5ms you essentially told the Central that if you cannot get a 7.5ms connection interval you don&amp;#39;t care what you get. Most likely you&amp;#39;ve gotten &amp;gt;100ms connection intervals.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;You also need to extend your&amp;nbsp;&lt;span&gt;NRF_SDH_BLE_GAP_DATA_LENGTH&amp;nbsp;to 251.&lt;br /&gt;&lt;br /&gt;And you will have to verify what connection parameters are actually negotiated.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;I suggest you read one of the following guides:&lt;br /&gt;&lt;a href="https://www.novelbits.io/bluetooth-5-speed-maximum-throughput/"&gt;https://www.novelbits.io/bluetooth-5-speed-maximum-throughput/&lt;/a&gt;&lt;br /&gt;&lt;a href="https://punchthrough.com/maximizing-ble-throughput-on-ios-and-android/"&gt;https://punchthrough.com/maximizing-ble-throughput-on-ios-and-android/&lt;/a&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>