<?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>Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/91808/bluetooth-transfer-speed-is-slow</link><description>- nRF connect SDK 1.9.1 
 - nRF5340 DK 
 We use the official samples Bluetooth: Central UART and Bluetooth: Peripheral UART to test bluetooth transfer between two development kit. We found observable delays and data loss when sending data continuously</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 19 Sep 2022 07:17:04 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/91808/bluetooth-transfer-speed-is-slow" /><item><title>RE: Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/thread/386768?ContentTypeID=1</link><pubDate>Mon, 19 Sep 2022 07:17:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8b5c2e21-8338-4a1e-b49b-565391eacdde</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;There are multiple parameters that can help increase the throughput, and you should begin by using the 2MBPS PHY, as well as enabling extended advertising to increase MTU and data length, and update the connection parameters/interval. All of this is done with functions like these which are used in the throughput example:&lt;/p&gt;
&lt;p&gt;&lt;pre class="ui-code" data-mode="c_cpp"&gt;static bool le_param_req(struct bt_conn *conn, struct bt_le_conn_param *param)
{
	printk(&amp;quot;Connection parameters update request received.\n&amp;quot;);
	printk(&amp;quot;Minimum interval: %d, Maximum interval: %d\n&amp;quot;,
	       param-&amp;gt;interval_min, param-&amp;gt;interval_max);
	printk(&amp;quot;Latency: %d, Timeout: %d\n&amp;quot;, param-&amp;gt;latency, param-&amp;gt;timeout);

	return true;
}

static void le_param_updated(struct bt_conn *conn, uint16_t interval,
			     uint16_t latency, uint16_t timeout)
{
	printk(&amp;quot;Connection parameters updated.\n&amp;quot;
	       &amp;quot; interval: %d, latency: %d, timeout: %d\n&amp;quot;,
	       interval, latency, timeout);

	k_sem_give(&amp;amp;throughput_sem);
}

static void le_phy_updated(struct bt_conn *conn,
			   struct bt_conn_le_phy_info *param)
{
	printk(&amp;quot;LE PHY updated: TX PHY %s, RX PHY %s\n&amp;quot;,
	       phy2str(param-&amp;gt;tx_phy), phy2str(param-&amp;gt;rx_phy));

	k_sem_give(&amp;amp;throughput_sem);
}&lt;/pre&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: Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/thread/386484?ContentTypeID=1</link><pubDate>Fri, 16 Sep 2022 04:05:43 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4cc27cec-6e23-42f3-b78c-f57d7bc398d8</guid><dc:creator>cheng_799</dc:creator><description>&lt;p&gt;I have read two examples. can you please tell me how to improve the transmission speed of the nus service? I checked the throughput example according to your instructions, but I still don&amp;#39;t understand how to set&amp;nbsp;the nus sample. I measured the speed of the peripheral&amp;nbsp;sample is only 6.4kbps. How can I set it to reach about 800kbps in the throughput&amp;nbsp;sample.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/thread/386306?ContentTypeID=1</link><pubDate>Thu, 15 Sep 2022 08:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e843c4c2-b406-4d93-bffc-8ee34370a653</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;The data is not stored in flash on the peripheral side, it is only temporarily stored in a buffer before forwarded to the UART terminal over the UART peripheral. You can see the &lt;strong&gt;UART_RX_RDY&lt;/strong&gt;, &lt;strong&gt;UART_RX_BUF_REQUEST&amp;nbsp;&lt;/strong&gt;in the peripheral UART example to see how this is handled.&amp;nbsp;&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: Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/thread/386073?ContentTypeID=1</link><pubDate>Wed, 14 Sep 2022 01:56:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:58ba2603-ac5f-460e-b803-68b4a562e2d4</guid><dc:creator>cheng_799</dc:creator><description>&lt;p&gt;Thank&amp;#39;s for your advise.&amp;nbsp;In addition,&amp;nbsp;we want to know where the data received by the peripheral is stored. We looked through the routines and found no relevant code&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/thread/385940?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 11:38:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f094bf5-33de-4159-86b4-ffe38a34c650</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;If your computer support Bluetooth Low Energy, this should be possible, but we don&amp;#39;t have a computer application that works as a Bluetooth central. You can use the &lt;a href="https://www.nordicsemi.com/Products/Development-tools/nrf-connect-for-desktop"&gt;nRF Connect for Desktop BLE app&lt;/a&gt;, but that requires a DK connected to the computer to act as the central device, where data is going from one DK to the one connected to the computer, and then forwards that to the computer.&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: Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/thread/385827?ContentTypeID=1</link><pubDate>Tue, 13 Sep 2022 02:45:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a38deccd-e29d-4ab3-b196-b8e7b0a43eb3</guid><dc:creator>cheng_799</dc:creator><description>&lt;p&gt;In addition, we did not find out where the&amp;nbsp;&lt;strong&gt;&lt;span class="kt"&gt;&lt;span class="pre"&gt;int&lt;/span&gt;&lt;/span&gt;&lt;span class="w"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="sig-name descname"&gt;&lt;span class="n"&gt;&lt;span class="pre"&gt;bt_throughput_read&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class="sig-paren"&gt;(&lt;/span&gt;&lt;span class="k"&gt;&lt;span class="pre"&gt;struct&lt;/span&gt;&lt;/span&gt;&lt;span class="w"&gt;&amp;nbsp;&lt;/span&gt;&lt;a class="reference internal" title="bt_throughput" href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/libraries/bluetooth_services/services/throughput.html#c.bt_throughput"&gt;&lt;span class="n"&gt;&lt;span class="pre"&gt;bt_throughput&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span class="w"&gt;&amp;nbsp;&lt;/span&gt;&lt;span class="p"&gt;&lt;span class="pre"&gt;*&lt;/span&gt;&lt;/span&gt;&lt;span class="n"&gt;&lt;span class="pre"&gt;throughput&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span class="sig-paren"&gt;&lt;strong&gt;)&lt;/strong&gt; stores the data.&amp;nbsp;We have no clue how to get the received data.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/thread/385660?ContentTypeID=1</link><pubDate>Mon, 12 Sep 2022 09:08:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f9e8fe04-0803-4872-a858-3c3e781aef5b</guid><dc:creator>cheng_799</dc:creator><description>&lt;p&gt;T&amp;#39;hanks for your answer.&amp;nbsp;We have read the sample you mentioned.&amp;nbsp;We found this program to transfer data between two development kits.&amp;nbsp;If it is to transfer data between the development&amp;nbsp;kit and the computer, is such a solution still feasible?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/thread/385528?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 13:13:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64ef8e28-127f-411f-9190-2e1dbf484f45</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;From what you explain here, it seems like you&amp;#39;re not handling the received data correctly (checking that it all arrives and is handled) before sending more. I would recommend checking out our&lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrf/samples/bluetooth/throughput/README.html"&gt; Throughput sample&lt;/a&gt; to see how transmitting and receiving big amounts of data is handled there. There must be some error message on your end that you&amp;#39;re not checking for or ignoring.&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: Bluetooth transfer speed is slow.</title><link>https://devzone.nordicsemi.com/thread/385475?ContentTypeID=1</link><pubDate>Fri, 09 Sep 2022 09:57:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d888f25d-46ba-468c-8c1a-7f5def77d9dd</guid><dc:creator>cheng_799</dc:creator><description>&lt;p&gt;We want to know how to solve the problem of real-time transmission and packet&amp;nbsp;loss&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>