<?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>Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/18162/data-loss-while-sending-large-data-by-notifications</link><description>log1.pcap Hi, I am developing a peripheral application that can send around 68k of data in the notifications to the central
Notifications are send at the frequency of 284 notifications per sec, but number of notifications are loss after sometime,
At</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Sep 2017 07:12:51 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/18162/data-loss-while-sending-large-data-by-notifications" /><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70106?ContentTypeID=1</link><pubDate>Mon, 04 Sep 2017 07:12:51 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:787737b0-ce0f-42aa-b1a3-b6dce3d91d0a</guid><dc:creator>Bayram ZAYET</dc:creator><description>&lt;p&gt;OK,&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70105?ContentTypeID=1</link><pubDate>Thu, 31 Aug 2017 09:39:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:47146761-7224-4aca-8fda-fe8a61fd1699</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Excellent, thanks. I see that Petter is already looking at that. So I&amp;#39;ll leave it with him.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70109?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2017 12:37:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c42a24f2-0177-4485-97ac-75e166be5a91</guid><dc:creator>Bayram ZAYET</dc:creator><description>&lt;p&gt;here is the question and details about the problem:&lt;/p&gt;
&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/question/165494/throughput-manage-ble_error_no_tx_packets/"&gt;devzone.nordicsemi.com/.../&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70107?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2017 09:22:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:13f659a6-6432-46d4-9bff-64076f9a5a5a</guid><dc:creator>Bayram ZAYET</dc:creator><description>&lt;p&gt;Hello run_ar,
I would post a question but I get always a server problem when I post a question and donnow why!!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70104?ContentTypeID=1</link><pubDate>Mon, 28 Aug 2017 09:09:14 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:74665c3d-250e-457d-adf4-947fd5e408b0</guid><dc:creator>run_ar</dc:creator><description>&lt;p&gt;Bayram, Could you consider creating a new question for this. Please provide exact detail on application, SDK and SD versions. Make sure you check the error codes returned by sd_ble_gatts_hvx and describe how you handle them. It would also be interesting to know which peer device you are testing against. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70108?ContentTypeID=1</link><pubDate>Fri, 25 Aug 2017 09:43:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e212625c-12d6-42b2-b2e6-f111e4d976eb</guid><dc:creator>Bayram ZAYET</dc:creator><description>&lt;p&gt;Hello,
Same problem here with S130 SDK12!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70103?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 11:45:36 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7bb887d3-ca01-4014-99cc-1479d28592ee</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;No, the problem is not related to the SDK version, it should work fine to use SDK 11.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70102?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 06:05:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:623d2c16-c504-4af1-8e18-3237a97ff46e</guid><dc:creator>Richa</dc:creator><description>&lt;p&gt;is it because, I am using SDK11??&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70101?ContentTypeID=1</link><pubDate>Wed, 07 Dec 2016 06:04:18 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ee43e40c-ac39-4146-be94-fcbc5583ddf5</guid><dc:creator>Richa</dc:creator><description>&lt;p&gt;I used the same logic of DATA_SEND_IRQn as it is in k_uart app in my peripheral application and i captured the packets received by the central, central is still not receiving all the packets&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70097?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 12:24:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cfe38962-df76-44d2-8c76-8957da17a7ea</guid><dc:creator>Richa</dc:creator><description>&lt;p&gt;I verified with uploaded application, there is no data loss, I have kept const buffer in k_uart app that i want to transmit, and increased the index of buffer by 20 after receiving NRF_SUCCESS, nrf-connect is receiving all the data successfully&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70099?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 07:38:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecae778f-8ccf-451f-b3ab-c1a9f3431baa</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;The notifications in log1.pcap are the notifications transmitted by the peripheral. Could you use the example I uploaded to check if data will be lost with that example as well, or if that example is working fine?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70098?ContentTypeID=1</link><pubDate>Tue, 06 Dec 2016 06:01:35 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c676f68e-b05c-4556-80c4-8f9ce19f3e81</guid><dc:creator>Richa</dc:creator><description>&lt;p&gt;I verified with the data that peripheral is transmitting, all data are transmitted, i verified it by printing the data on console that are transmitted successfully
But if we see log1.pcap on central that number of received notifications  are less so notifications are missing in between&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70096?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2016 13:45:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:03a461dd-3b1c-44bc-90cd-1eeabf57a0a7</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Where in log1.pcap is data is not correctly received?&lt;/p&gt;
&lt;p&gt;If you go through the data that the peripheral is supposed to transmit, and the data captured by the sniffer, is the data consistent? Is there some data missing in the transmitted data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70095?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2016 12:53:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:49fccb22-178e-4e23-8bee-01cbab1b08dd</guid><dc:creator>Richa</dc:creator><description>&lt;p&gt;pcap file I attached shows that data are not received completely, and I also used nrf logger app to check the loss of data on the central side.
According to nrf logger only 61k data is received, other data are loss and even it shows in pcap I attached that large amount of data is loss in between&lt;/p&gt;
&lt;p&gt;I validated the last bytes of the buffer, last bytes of the buffer is received but data is loss in between&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70094?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2016 12:44:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:39e776f4-3669-49a6-b40d-3f0a6652fe62</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;How do you verify that the data was correctly received?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70093?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2016 12:31:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0f46598f-e030-4c89-9bc2-d878b15ada32</guid><dc:creator>Richa</dc:creator><description>&lt;p&gt;I am using nrf connect app as a central device&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70092?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2016 12:29:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3520d1ed-0e58-4c8d-ab23-ab960db44c96</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;Okay, I see. In BLE all packets are ack&amp;#39;ed in the link layer. It means that if a notification is transmitted but there is no ack, that notification will be re-transmitted until ack or until connection supervision timeout (disconnect).&lt;/p&gt;
&lt;p&gt;Which central device do you use? Is it possible that there could be some kind of data overflow on the central side?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70100?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2016 09:56:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecfc0130-07d8-41bf-809d-458ed816cc12</guid><dc:creator>Richa</dc:creator><description>&lt;p&gt;There is data loss, On peripheral, I have taken care of handling error codes like BLE_ERROR_NO_TX_PACKETS and NRF_SUCCESS to continue sending notification in a while loop
And for any other error code other than NRF_SUCCESS or BLE_ERROR_NO_TX_PACKETS, Application stops sending notification.
next notification is send only when NRF_SUCCESS is received. And I have checked on peripheral side, that it is successfully sending all the notifications but all are not received on central side.
I have also attached log1.pcap in the question&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data loss while sending large data by notifications</title><link>https://devzone.nordicsemi.com/thread/70091?ContentTypeID=1</link><pubDate>Mon, 05 Dec 2016 09:44:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:287cd8ea-89a0-45cb-8a69-ef8942fa4a31</guid><dc:creator>FormerMember</dc:creator><description>&lt;p&gt;What do you mean by notifications are missing? Is some data lost, or is the transfer slower than expected? &lt;a href="https://devzone.nordicsemi.com/blogs/1046/what-to-keep-in-mind-when-developing-your-ble-andr/"&gt;This&lt;/a&gt; blog post contains the number of packets per connection interval that various phones can handle.&lt;/p&gt;
&lt;p&gt;How do you handle the other error codes that can be returned from sd_ble_gatts_hvx(..)?
The error codes NRF_ERROR_INVALID_STATE and NRF_ERROR_BUSY do also indicate that the system is busy or the system is currently in an invalid state.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Update 06.12.2016:&lt;/strong&gt; Could you use &lt;a href="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/2311.ble_5F00_app_5F00_uart_5F00_test_5F00_throughput.zip"&gt;ble_app_uart_test_throughput.zip&lt;/a&gt; (SDK 12) to check if any data is lost with that example?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>