<?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>Not able to send large number of samples over BLE</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/52501/not-able-to-send-large-number-of-samples-over-ble</link><description>Hi, 
 I have an ADC which is interfaced with the nrf52. 
 The samples from the ADC are collected every 2ms (500Hz sampling rate). I store these samples, and when the number of samples stored equals to 100, I need to send it over BLE. 
 I have this system</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Tue, 24 Sep 2019 07:37:46 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/52501/not-able-to-send-large-number-of-samples-over-ble" /><item><title>RE: Not able to send large number of samples over BLE</title><link>https://devzone.nordicsemi.com/thread/211444?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 07:37:46 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a204fb3f-5e47-44f4-a790-51141e2f4070</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;29samples * 9bytes = 261bytes which is actually a decent large packet.&amp;nbsp;&lt;/p&gt;
[quote user="shr217"]but am not able to get it to send greater than 25samples at a time[/quote]
&lt;p&gt;This sentence doesn&amp;#39;t make sense, there must be some kind of error code somewhere (you may be ignoring it if you are not checking return err_codes).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to send large number of samples over BLE</title><link>https://devzone.nordicsemi.com/thread/211433?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 07:15:30 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c03758bd-a30e-4ad7-b2ba-40c8d375f366</guid><dc:creator>shr217</dc:creator><description>&lt;p&gt;My particular application requires a process where it is interfaced with the ADC. I have a constraint that I cannot send the data simultaneously while sensing, which requires me to store it and then send.&lt;/p&gt;
&lt;p&gt;So overall, it works such that I sense the data, then send and again sense. This process repeats. I need to send a burst of data.&lt;/p&gt;
&lt;p&gt;I am using &amp;nbsp;ble_nus_data_send to send the data array&lt;/p&gt;
&lt;p&gt;I tried to change the&amp;nbsp;BLE_GATT_ATT_MTU_DEFAULT, but am not able to get it to send greater than 25samples at a time&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not able to send large number of samples over BLE</title><link>https://devzone.nordicsemi.com/thread/211429?ContentTypeID=1</link><pubDate>Tue, 24 Sep 2019 07:02:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:253cddc1-b88e-40b0-a1f7-72cca0170c69</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;There is information missing here, for instance you are not writing how you are sending data (write command or notification), and if the softdevice api call to send data is returning any error code.&lt;/p&gt;
&lt;p&gt;You write you want to send data in 100bytes &amp;quot;chunks&amp;quot; but how do you know that is the most efficient data size. Typically you want to include&amp;nbsp;nrf_ble_gatt_init() if you want to send data that is longer than default 20byte, this can be handled by adding gatt_init() to your project.&lt;/p&gt;
&lt;p&gt;I suggest to check out:&lt;br /&gt;&lt;a href="https://devzone.nordicsemi.com/f/nordic-q-a/41629/what-is-the-difference-between-data-length-and-mtu"&gt;https://devzone.nordicsemi.com/f/nordic-q-a/41629/what-is-the-difference-between-data-length-and-mtu&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Also&amp;nbsp;you may find this useful:&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;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>