<?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>Disable TX notifications</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/68425/disable-tx-notifications</link><description>Hello, 
 the peripheral (nRF52) bonds to a central (Android nRF Connect), central enables TX notifications, and the peripheral sends over 80 bytes by NUS. 
 If the central does not disable TX notifications and lets disconnect occur, and because the devices</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 19 Nov 2020 01:30:57 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/68425/disable-tx-notifications" /><item><title>RE: Disable TX notifications</title><link>https://devzone.nordicsemi.com/thread/280730?ContentTypeID=1</link><pubDate>Thu, 19 Nov 2020 01:30:57 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3919b60c-56fb-4fa2-a466-8e80747c5784</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;I added an additional send() to the trailing notification to only have 0xFFFFFFFF to signal the central that its ok to disable TX notification.&amp;nbsp;Maybe central is ok with this.&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: Disable TX notifications</title><link>https://devzone.nordicsemi.com/thread/280586?ContentTypeID=1</link><pubDate>Wed, 18 Nov 2020 11:56:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a47f7374-cb7d-4f2d-8268-8cb42c92a9c6</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;No, not that I&amp;#39;m aware of at least. If you always transmit the same amount of data from the peripheral, I guess you could make the central disable notifications once you have received X amount of data, but this won&amp;#39;t do if the peripheral doesn&amp;#39;t send the same amount of during every connection.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Disable TX notifications</title><link>https://devzone.nordicsemi.com/thread/280445?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 17:13:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:72c5a5d3-aff0-4ca1-afcc-d69755853f16</guid><dc:creator>Simon</dc:creator><description>&lt;p&gt;Other than the central managing start/stop, &lt;br /&gt;are any options are available for the peripheral to tell the central that there is no more data to send and that it is ok to disable TX notifications?&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: Disable TX notifications</title><link>https://devzone.nordicsemi.com/thread/280388?ContentTypeID=1</link><pubDate>Tue, 17 Nov 2020 14:04:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:02220d7e-92e9-48b2-867f-1d2c18dd31f2</guid><dc:creator>Simonr</dc:creator><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;Correct, the central will remember the settings of a paired connection and &amp;quot;automagically&amp;quot; keep the same settings for the next time the peripheral connects, so you will have to disable the TX notifications when you disconnect if you don&amp;#39;t want to have notifications enabled upon the next connections. When disabling the notifications, the queue will be emptied before the transmissions are stopped, however the application won&amp;#39;t be able to place new notifications in the queue after notifications are disabled by the peer.&lt;/p&gt;
&lt;p&gt;Typically, notifications are enabled on the initial connection, and then enabled for the remainder of the devices life time. This allows the peripheral to send notifications as it sees fit to the central device. If you want to control the amount of data received on the central device, it&amp;#39;s more common to add a characteristic that the central can write commands to. This may be a command to tell the peripheral device to send X amount of notifications and then stop.&lt;/p&gt;
&lt;p&gt;If you enable and disable notifications dynamically, you&amp;#39;ll quickly end up in race conditions between buffering of notifications on lower levels in the stack.&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Simon&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>