<?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 lost after disable and enable the notification</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/65893/data-lost-after-disable-and-enable-the-notification</link><description>Hi, 
 I am working on a project of throughput data from sensors to my central via nrf52805 through a notifying service (SDK16.0.0). 
 Symptom description 
 We have app from mobile phone which is ble central. 
 nRF52805 is ble peripheral and there are</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 17 Sep 2020 07:58:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/65893/data-lost-after-disable-and-enable-the-notification" /><item><title>RE: Data lost after disable and enable the notification</title><link>https://devzone.nordicsemi.com/thread/269998?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 07:58:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f882e6d7-c8cc-4a6b-b907-3e35f0398eb2</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Yes, that was what I meant yes.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data lost after disable and enable the notification</title><link>https://devzone.nordicsemi.com/thread/269972?ContentTypeID=1</link><pubDate>Thu, 17 Sep 2020 02:21:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a968653-bbbc-4d26-b3ea-03857983f519</guid><dc:creator>Tanglang</dc:creator><description>&lt;p&gt;Hi, Kenneth&lt;/p&gt;
&lt;p&gt;Thanks for your reply.&lt;/p&gt;
&lt;p&gt;If we enable and disable notification dynamically, this problem happens.&lt;/p&gt;
&lt;p&gt;The solution is to provide another characteristic that the central can write commands to acknowledge. After nRF52805 (ble peripheral) receives the characteristic with correct value/acknowledge, then sends the next piece of data.&lt;/p&gt;
&lt;p&gt;Hope my understanding is correct. Thanks.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Data lost after disable and enable the notification</title><link>https://devzone.nordicsemi.com/thread/269424?ContentTypeID=1</link><pubDate>Mon, 14 Sep 2020 14:23:11 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6e697d1c-67fd-4baa-beea-a5eb2fc588ad</guid><dc:creator>Kenneth</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It is not common to enable and disable notification dynamically. Typically notification are enabled on initial connection, and then it&amp;#39;s enabled for the remaining life time, this allow the peripheral device to send notification as it see fit to the central device. If you want to control the amount of data received on the central device, it is more common to add a characteristic that the central can write commands to, this may be commands to indicate to the application on the peripheral device to please send X notifications and/or start/stop sending notifications.&lt;/p&gt;
&lt;p&gt;The problem with enabling and disabling notifications dynamically is that you quickly end up in race conditions between buffering of notifications on lower level in the stack and exactly when a notification is enabled/disabled on lower level compared to the state of the application.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;br /&gt;Kenneth&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>