<?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>Is it possible to update or flush stale notify data so a subscriber gets the freshest possible data even with a long connection interval?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/71877/is-it-possible-to-update-or-flush-stale-notify-data-so-a-subscriber-gets-the-freshest-possible-data-even-with-a-long-connection-interval</link><description>I am using nrf52840 via NRF Connect and Zephyr configured to use the Nordic SoftDevice BLE controller. 
 My use case is for a central to sample a rapidly changing real-time sensor on the peripheral with the condition that when a connection event occurs</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 22 Feb 2021 17:53:59 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/71877/is-it-possible-to-update-or-flush-stale-notify-data-so-a-subscriber-gets-the-freshest-possible-data-even-with-a-long-connection-interval" /><item><title>RE: Is it possible to update or flush stale notify data so a subscriber gets the freshest possible data even with a long connection interval?</title><link>https://devzone.nordicsemi.com/thread/295703?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 17:53:59 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:8a351f69-35d1-46e8-9407-dce3563be80e</guid><dc:creator>JustinL</dc:creator><description>&lt;p&gt;Thanks for the quick reply.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think timestamps will help since it is a real-time system so timestamps will let you know how stale the data is, but not actually allow improvement in the freshness itself.&lt;/p&gt;
&lt;p&gt;However, the radio notification signal looks like it will basically solve the problem for me, if the data can be reliably queued just in time for the connection. So that is an excellent idea.&lt;/p&gt;
&lt;p&gt;I look forward to trying it.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update or flush stale notify data so a subscriber gets the freshest possible data even with a long connection interval?</title><link>https://devzone.nordicsemi.com/thread/295684?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 16:45:09 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:154d7d7a-0502-4d3e-a83d-f36959fc6618</guid><dc:creator>JustinL</dc:creator><description>&lt;p&gt;Thanks for the quick reply.&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t think timestamps will help since it is a real-time system so timestamps will let you know how stale the data is, but not actually allow improvement in the freshness itself.&lt;/p&gt;
&lt;p&gt;However, the radio notification signal looks like it will basically solve the problem for me, if the data can be reliably queued just in time for the connection. So that is an excellent idea.&lt;/p&gt;
&lt;p&gt;I look forward to trying it.&lt;/p&gt;
&lt;p&gt;Thank you for your help.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Is it possible to update or flush stale notify data so a subscriber gets the freshest possible data even with a long connection interval?</title><link>https://devzone.nordicsemi.com/thread/295676?ContentTypeID=1</link><pubDate>Mon, 22 Feb 2021 16:27:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a6e903b9-a755-4d18-80e1-9c8fd45ac50b</guid><dc:creator>Hung Bui</dc:creator><description>&lt;p&gt;Hi Justin,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;As mentioned in the github issue you quoted, it&amp;#39;s not possible to flush the data that&amp;#39;s already queued to the controller.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I checked with the team and providing pointer to the&amp;nbsp;data is also not an option.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Please note that BLE is a reliable protocol, so data can be retransmitted. On the peer side, it shouldn&amp;#39;t expect that the notification just arrives is the latest data, it can be retransmitted data. So the best option I think is to have a timestamp in each of the packet. This way you can discard the data that has less meaning.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Another option is to use &lt;a href="https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/nrfxlib/mpsl/doc/radio_notification.html"&gt;radio notification&lt;/a&gt;, so that you can setup a timing event, a distance before the radio is active and can sample the data and queue it just right before the connection event. Again, there isn&amp;#39;t any guarantee that the data will be sent at the exact connection event as there can be queued data, or retransmitting data.&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>