<?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 calculate effective throughput in nRF52</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18911/how-to-calculate-effective-throughput-in-nrf52</link><description>Hi, 
 I measured the throughput using the ATT_MTU Throughput Example.
I referred to Testing in the following URL.
 infocenter.nordicsemi.com/.../ble_sdk_app_att_mtu.html 
 It is simple to measure the throughput and it is very wonderful. 
 I want</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 23 Jan 2017 06:32:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18911/how-to-calculate-effective-throughput-in-nrf52" /><item><title>RE: How to calculate effective throughput in nRF52</title><link>https://devzone.nordicsemi.com/thread/73082?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 06:32:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e547a172-7fce-4dd1-9c9f-30a239cf3509</guid><dc:creator>UBAN</dc:creator><description>&lt;p&gt;Thank you for your detailed explanation. I understand.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate effective throughput in nRF52</title><link>https://devzone.nordicsemi.com/thread/73081?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 13:11:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0ae3712f-22dd-4488-b2aa-ea6f6072afbb</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;Since you have turned off DLE, the PDU (packet size) will be 27 bytes, of which 23 bytes will be ATT data.&lt;/p&gt;
&lt;p&gt;With 247 bytes ATT MTU you will have to send 247/23 ~= &lt;strong&gt;11 packets per ATT MTU&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;The ATT MTU has 3 byte header (1 byte OPCODE_LENGTH and 2 byte HANDLE_LENGTH), so the effective data payload is 244 bytes per ATT MTU. So effective data per packet will be 244/11 ~= &lt;strong&gt;22 bytes per packet&lt;/strong&gt;.&lt;/p&gt;
&lt;p&gt;How many packets you get per connection event is a bit tricky to figure out. With 2Mbps PHY, a 27 byte packet (PDU) takes about 160us to send, an empty packet takes about 40us. Between each RX or TX packet there is a 150us interframing space. One RX/TX pair where you send 27 bytes and receives an empty packet will take about 160us + 150us + 40us + 150us = &lt;strong&gt;500us&lt;/strong&gt;. You would then guess that you could send 15 packets per connection event when the connection interval is 7.5ms, but there have to be a little bit of space between the last packet sent on one connection event, and the first packet sent the next connection event. I did a quick check and you will get &lt;strong&gt;13 packets&lt;/strong&gt; sent every connection event with your configuration.&lt;/p&gt;
&lt;p&gt;Adding all these pieces together the total throughput will be:&lt;/p&gt;
&lt;pre&gt;&lt;code&gt;22 bytes pr packet * 8 bits pr byte * 13 packets pr conn event / 7.5ms conn int = 305kbps
&lt;/code&gt;&lt;/pre&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate effective throughput in nRF52</title><link>https://devzone.nordicsemi.com/thread/73080?ContentTypeID=1</link><pubDate>Thu, 19 Jan 2017 08:22:07 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:46497205-e64a-4678-9df8-47e6778ed14a</guid><dc:creator>UBAN</dc:creator><description>&lt;p&gt;Thanks for the reply and the explanation about Connection event extension.
Yes, connection event length extension is set to enable.
Of course, both ends are nRF 52 DK.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to calculate effective throughput in nRF52</title><link>https://devzone.nordicsemi.com/thread/73079?ContentTypeID=1</link><pubDate>Wed, 11 Jan 2017 16:14:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:aa5b1442-6529-488d-9303-326bd240b557</guid><dc:creator>Ole Bauck</dc:creator><description>&lt;p&gt;It depends on how many packets you can send on each connection event. Do you intend to enable connection event length extension? Connection event extension will enable the SoftDevice to keep sending packets until the next connection event if there is data ready and no other roles are requestion radio time, See &lt;a href="http://infocenter.nordicsemi.com/topic/com.nordic.infocenter.s132.api.v5.0.0/structble__common__opt__conn__evt__ext__t.html?resultof=%22%42%4c%45%5f%43%4f%4d%4d%4f%4e%5f%4f%50%54%5f%43%4f%4e%4e%5f%45%56%54%5f%45%58%54%22%20"&gt;here&lt;/a&gt;. If not, the number of packets will be limited by the buffer size allocated by the SoftDevice, which again is dependent on the bandwidth (BW) configuration.&lt;/p&gt;
&lt;p&gt;Is there an nRF in both ends? If there is not an nRF in the other end, the number of packets sent each connection event may be less.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>