<?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 throughput to Android central quick start</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/54492/ble-throughput-to-android-central-quick-start</link><description>Just got my first nRF52DK (PCA10040) device today and the blinky sample simply works. 
 Since my ultimate purpose is to use it collect data from SPI then stream it to Android devices via BLE notifications, as a starting point I am wondering if I can quickly</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 20 Nov 2019 09:07:24 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/54492/ble-throughput-to-android-central-quick-start" /><item><title>RE: BLE throughput to Android central quick start</title><link>https://devzone.nordicsemi.com/thread/220987?ContentTypeID=1</link><pubDate>Wed, 20 Nov 2019 09:07:24 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6575d03c-effd-449c-a421-aab69f7da2ac</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
[quote user="yf13"]It seems that this nRF program will show the throughput at nRF sender side and it uses NUS for sending in a loop and will quit with any error.&amp;nbsp;[/quote]
&lt;p&gt;&amp;nbsp;Yes. It uses NUS, and will send as long as there is free space in the queue for the softdevice. When it returns NRF_ERROR_RESOURCES, it means that it can&amp;#39;t queue any more packets, and it will wait until the next TX complete event and try to queue more packets.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;NUS is a custom service. It will not add any more overhead to the data stream than using any other service. I don&amp;#39;t know if you noticed, but it should also print out what MTU size you get when you connect with your phone. This will typically vary from phone to phone. It also takes some time to change from 1MBPS to 2MBPS after the connected event.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to quickly check BLE throughput to Android central device?</title><link>https://devzone.nordicsemi.com/thread/220694?ContentTypeID=1</link><pubDate>Tue, 19 Nov 2019 00:58:02 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:bf6a50e7-c62d-4d6f-8d76-837bf60df6c7</guid><dc:creator>yf13</dc:creator><description>&lt;p&gt;Thank you &lt;a href="https://devzone.nordicsemi.com/members/edvin-holmseth"&gt;Edvin&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;It seems that this nRF program will show the throughput at nRF sender side and it uses NUS for sending in a loop and will quit with any error.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I feel that using NUS&amp;nbsp;might be simpler than using&amp;nbsp;a&amp;nbsp;custom GATTS service --- is this right?&amp;nbsp; Will NUS add any overhead to the one-way data streaming problem?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;regards,&lt;/p&gt;
&lt;p&gt;yf13&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to quickly check BLE throughput to Android central device?</title><link>https://devzone.nordicsemi.com/thread/220617?ContentTypeID=1</link><pubDate>Mon, 18 Nov 2019 14:22:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:64c43520-f7b9-480d-9428-935009488565</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/support-attachments/beef5d1b77644c448dabff31668f3a47-ff7b48287b5545ef955fad67b5fe2f6b/ble_5F00_app_5F00_uart_5F00_TP.zip"&gt;devzone.nordicsemi.com/.../ble_5F00_app_5F00_uart_5F00_TP.zip&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I wrote this example once for SDK14.1.0. It prints the throughput in the log. Connect to your phone with nRF Connect, and enable notifications on the TX Characteristic, and the nRF should print the throughpt every second or so.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;If you want to use a later SDK, you can look at this one for inspiration, and port it to SDK16.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>