<?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>the speed can not reach 2Mbit/s</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33070/the-speed-can-not-reach-2mbit-s</link><description>I want use two 52DK for BLE transfer demo, one 52DK download nRF5_SDK_15.0.0_a53641a\examples\ble_peripheral\ble_app_uart&amp;quot;, 
 other 52DK download &amp;quot;nRF5_SDK_15.0.0_a53641a\examples\ble_central\ble_app_uart_c&amp;quot;, 
 and i changed the connection interval to</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 05 Apr 2018 11:37:11 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33070/the-speed-can-not-reach-2mbit-s" /><item><title>RE: the speed can not reach 2Mbit/s</title><link>https://devzone.nordicsemi.com/thread/127010?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 11:37:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:153b2338-93f0-41f3-8289-5c0b78cc6125</guid><dc:creator>haakonsh</dc:creator><description>&lt;p&gt;Hey Carey,&lt;/p&gt;
&lt;p&gt;First you need to request an update of the PHY to 2mbps:&amp;nbsp;&lt;a title="PHY Update Procedure" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___e_v_t___p_h_y___m_s_c.html?cp=2_3_1_1_0_2_1_3_7"&gt;PHY Update Procedure&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Then you need to request an update of the MTU size:&amp;nbsp;&lt;a title="GATTS ATT_MTU Exchange" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_t_t_s___m_t_u___e_x_c_h_a_n_g_e.html?cp=2_3_1_1_0_2_4_3_1"&gt;GATTS ATT_MTU Exchange&lt;/a&gt;.&amp;nbsp;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Then you need to request an update of the Data Length:&amp;nbsp;&lt;a title="Data Length Update Procedure" href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v6.0.0/group___b_l_e___g_a_p___d_a_t_a___l_e_n_g_t_h___u_p_d_a_t_e___p_r_o_c_e_d_u_r_e___m_s_c.html?cp=2_3_1_1_0_2_1_3_6"&gt;Data Length Update Procedure&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;See this blog post for more information:&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/b/blog/posts/throughput-and-long-range-demo"&gt;https://devzone.nordicsemi.com/b/blog/posts/throughput-and-long-range-demo&lt;/a&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Cheers,&lt;/p&gt;
&lt;p&gt;Håkon.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the speed can not reach 2Mbit/s</title><link>https://devzone.nordicsemi.com/thread/127006?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 11:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1682b084-c711-4156-a9fd-7c2810d0d097</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;I forgot to mention that you should probably increase the TX queue for write commands or HVN (depending on your mode of transport). The peer should keep pulling events, and must also have similar parameters set for event length (or enable event extension), DLE and ATT MTU size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the speed can not reach 2Mbit/s</title><link>https://devzone.nordicsemi.com/thread/127004?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 11:06:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:d135ab0b-012e-4dec-b0db-e18e159c39af</guid><dc:creator>Carey</dc:creator><description>&lt;p&gt;&lt;span&gt;ok, now i try to send more packets in each connection event, when i use moble phone for receive, it seems the maximum can send three&amp;nbsp;packets per connection( packet 251byte, interval 7.5ms, ), but if i use 52832 &amp;quot;ble_central\ble_app_uart_c&amp;quot; example to recive, it seems just can receive one&amp;nbsp;packets per connection, Why? &amp;nbsp;should i modify some&amp;nbsp;parameter in the code? How to change it?&amp;nbsp;&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the speed can not reach 2Mbit/s</title><link>https://devzone.nordicsemi.com/thread/126980?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 08:35:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:1be9a83d-0b96-4524-ae32-03ade8a8f7e7</guid><dc:creator>Ulrich Myhre</dc:creator><description>&lt;p&gt;2Mbit is the symbol rate, and includes non-payload data like the preamble, access address, CRC and various protocol-level headers. The theoretical maximum is a bit tricky to calculate, since it depends on a lot of factors. For instance, if you can live with a slower connection (higher connection interval), you gain some speed for huge transfers. With a slightly longer connection interval, longer event length, higher DLE and ATT MTU size, you avoid much of the overhead, since you spend more time sending data in each event. &lt;/p&gt;
&lt;p&gt;Your brief calculation also doesn&amp;#39;t take into account that you are able to send multiple packets in each connection event. The number of packets depends on the peer, as some will have a low buffer size and start to NACK packets after a few have gotten through. If the peer is sending you data too, instead of just sending empty ACKs, this will &amp;quot;steal&amp;quot; from the event time, leading to less packets sent.&lt;/p&gt;
&lt;p&gt;I ran a quick example locally now with PHY=2Mbit, ATT_MTU=247, DLE Size=251, connection interval = event length* = 0x140 (401.25ms) and got about 1.4Mbit/s of user-controlled (ATT) data. That is excluding the L2CAP and ATT header. This was by sending write commands in one direction, with a peer that absorbs all the data without waiting. A connection interval that long sounds like it should be quite slow, but for long transfers it will actually be beneficial, given that the other parameters allow you to spend the entire event sending data. The result is that the event ends just as the new event is starting, reaching close to 100% utilization of the radio.&lt;/p&gt;
&lt;p&gt;* Instead of setting the event length this high, you can enable event extension instead with the `BLE_COMMON_OPT_CONN_EVT_EXT`&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the speed can not reach 2Mbit/s</title><link>https://devzone.nordicsemi.com/thread/126956?ContentTypeID=1</link><pubDate>Thu, 05 Apr 2018 05:34:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:79f05fa4-8aa2-486c-856d-d85e9a20617b</guid><dc:creator>Carey</dc:creator><description>&lt;p&gt;ok, understand, but if i use two 52832 for test, could i transfer more fast? &amp;nbsp;now the speed just can reach to&amp;nbsp;&lt;span&gt;(251B*1000/7.5)=33.5kbyte/s.&lt;/span&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the speed can not reach 2Mbit/s</title><link>https://devzone.nordicsemi.com/thread/126914?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 17:25:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c30d7b0c-da83-4531-91ed-74a5188604e2</guid><dc:creator>John</dc:creator><description>&lt;p&gt;D&amp;#39;oh. Thanks!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the speed can not reach 2Mbit/s</title><link>https://devzone.nordicsemi.com/thread/126911?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 16:17:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ef2f9e08-1d31-4367-9247-c24cc3377eab</guid><dc:creator>Daniel Wang</dc:creator><description>[quote userid="2214" url="~/f/nordic-q-a/33070/the-speed-can-not-reach-2mbit-s/126905"]You won&amp;#39;t be able to do the 2Mbit on the nRF52832[/quote]
&lt;p&gt;All nRF52 series devices support 2Mbit PHY, including nRF52832. It is CODED PHY that is only support on the nRF52840.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: the speed can not reach 2Mbit/s</title><link>https://devzone.nordicsemi.com/thread/126905?ContentTypeID=1</link><pubDate>Wed, 04 Apr 2018 15:44:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:fbd3bba5-f4f2-48c2-b0d0-cdf1c237096a</guid><dc:creator>John</dc:creator><description>&lt;p&gt;You won&amp;#39;t be able to do the 2Mbit on the nRF52832. It does not have the radio PHY that supports 2Mbit speeds. You will need to use the nRF52840 that supports the BLE 5 2M PHY. Nordic provides a throughput tester as one of their examples. It will allow you to configure the the nRF52840 PHY for 2M operation and larger MTU sizes needed to achieve the best throughput. Note that I doubt you will ever get to 2Mbit/s transfer rates because the protocol is not 100% efficient. I&amp;#39;ve gotten up to about 1.3Mbit/s, but not much better. Some of that may be because we have a very busy 2.4 radio spectrum in our office.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>