<?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>How to update data in Softdevice Buffer after sd_ble_gatts_hvx call ?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/33249/how-to-update-data-in-softdevice-buffer-after-sd_ble_gatts_hvx-call</link><description>Hi, 
 After sd_ble_gatts_hvx() call, is it possible to change or delete value in softdevice buffer before a connection event ? 
 Thanks by advance for your help 
 Best regards,</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 11 Apr 2018 13:23:17 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/33249/how-to-update-data-in-softdevice-buffer-after-sd_ble_gatts_hvx-call" /><item><title>RE: How to update data in Softdevice Buffer after sd_ble_gatts_hvx call ?</title><link>https://devzone.nordicsemi.com/thread/127848?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 13:23:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:62bdfd9d-1a83-4d3e-a067-e972990094aa</guid><dc:creator>MPS</dc:creator><description>&lt;p&gt;Thanks, it&amp;#39;s perfect.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update data in Softdevice Buffer after sd_ble_gatts_hvx call ?</title><link>https://devzone.nordicsemi.com/thread/127800?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 10:55:20 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f5070c30-7bd2-43dd-8396-bd095651c3a6</guid><dc:creator>Edvin</dc:creator><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;If you want to sample some data right before the next connection interval, I suggest you look into the radio notification module. There is a good guide &lt;a href="https://devzone.nordicsemi.com/tutorials/b/software-development-kit/posts/radio-notification" target="_blank" rel="noopener noreferrer"&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Set the notification to trigger before the event by setting&amp;nbsp;NRF_RADIO_NOTIFICATION_TYPE_INT_ON_ACTIVE, and a distance at your choise (e.g.&amp;nbsp;NRF_RADIO_NOTIFICATION_DISTANCE_800US). This will give you an event 800µs before the next connection (interval), where you can use this to sample any data you want to send to the other device.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Check out the guide in the link, and see if it can be of use.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Best regards,&lt;/p&gt;
&lt;p&gt;Edvin&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update data in Softdevice Buffer after sd_ble_gatts_hvx call ?</title><link>https://devzone.nordicsemi.com/thread/127751?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 08:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:346e99cc-2829-4579-ba47-8c9665912c27</guid><dc:creator>MPS</dc:creator><description>&lt;p&gt;Thanks for your answer.&lt;/p&gt;
&lt;p&gt;I guess we&amp;nbsp;don&amp;#39;t really know&amp;nbsp;when the next connection will&amp;nbsp;be to call sd_ble_gatts_hvx() just before ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: How to update data in Softdevice Buffer after sd_ble_gatts_hvx call ?</title><link>https://devzone.nordicsemi.com/thread/127705?ContentTypeID=1</link><pubDate>Wed, 11 Apr 2018 01:50:13 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:90f5a5dd-bfb8-48f7-99bb-1f20631719ae</guid><dc:creator>Susheel Nuguru</dc:creator><description>&lt;p&gt;Unfortunately no. Once the buffer is given to softdevice, then you cannot edit the contents. This would also be logically wrong to do it, as softdevice will not be able to guarantee you a safe time between&amp;nbsp;hvx and your application wanting to edit it before it is sent by the RADIO.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>