<?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>Any way to reset hvx Tx buffer not losing connection?</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/27242/any-way-to-reset-hvx-tx-buffer-not-losing-connection</link><description>I need to transfer a lot data via BLE from periperal nrf52832 to central just like here. 
The answer looks like what i exactly need. Major priority is to maintain seamless data stream without losing packets and without twin packets on the central&amp;#39;s input</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 13 Nov 2017 22:49:22 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/27242/any-way-to-reset-hvx-tx-buffer-not-losing-connection" /><item><title>RE: Any way to reset hvx Tx buffer not losing connection?</title><link>https://devzone.nordicsemi.com/thread/107528?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 22:49:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:912c1a3b-4531-4ed2-92d5-b7723494fc90</guid><dc:creator>Fanis</dc:creator><description>&lt;p&gt;I just rearanged code flow with moving out time consuming action from BLE callbacks and it works better.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Any way to reset hvx Tx buffer not losing connection?</title><link>https://devzone.nordicsemi.com/thread/107525?ContentTypeID=1</link><pubDate>Mon, 13 Nov 2017 13:29:28 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:566dd49c-85a3-4bdc-9388-45541dfed0fc</guid><dc:creator>Petter Myhre</dc:creator><description>&lt;p&gt;I&amp;#39;m not sure I understand completely, but can&amp;#39;t you just don&amp;#39;t send notification if you haven&amp;#39;t filled the buffer with new data?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Any way to reset hvx Tx buffer not losing connection?</title><link>https://devzone.nordicsemi.com/thread/107527?ContentTypeID=1</link><pubDate>Sat, 11 Nov 2017 07:28:53 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:0578ba86-1d8e-4ad9-b79f-3858034259ee</guid><dc:creator>Fanis</dc:creator><description>&lt;p&gt;Thank you for your suggestions. In my case connection is established for short periods (1s-2s) and then disconnection is forced by central. 1 packet per connection interval is not a problem, the priority is continous sequence of the buffer in central input. Unfortunately the central requires transfer with notification, so i can&amp;#39;t establish stream using indication. I have to find a way to track sequentally every output packet successfully received by the central. I&amp;#39;ve already tried to just once send a hvx transfer task and wait until i pull up my flag on BLE_EVT_TX_COMPLETE, but with this rapid connection/disconnection it seems to hang the stream. It looks like i schedule one Tx, all works well several cycles until the tranfer couldn&amp;#39;t be sent, BLE_EVT_TX_COMPLETE is not reached and i can&amp;#39;t start new one. I also pull the flag ON_CONNECTED and ON_DISCONNECTED but i miss something else...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Any way to reset hvx Tx buffer not losing connection?</title><link>https://devzone.nordicsemi.com/thread/107526?ContentTypeID=1</link><pubDate>Sat, 11 Nov 2017 00:53:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ab563dfa-01a1-4367-9e15-fcd6b9c19a80</guid><dc:creator>RK</dc:creator><description>&lt;p&gt;it&amp;#39;s rather hard to work out what your problem is from this description. It sounds to me however like you are filling one large buffer, then sending bits of it in multiple HVX packets. However you are then rewriting the buffer when the &lt;em&gt;first&lt;/em&gt; TX complete notification comes in and not after the &lt;em&gt;last&lt;/em&gt; one arrives.&lt;/p&gt;
&lt;p&gt;If you queue up an HV packet for transmission and it points to a chunk of memory, you can&amp;#39;t use, change or update that memory until the TX notification for that packet has been returned to you. Between the sending and the TX received, the softdevice stack really owns the memory.&lt;/p&gt;
&lt;p&gt;Sounds like you need two buffers to write your data into. One for the transmission going out, one for the next transmission you&amp;#39;re calculating.&lt;/p&gt;
&lt;p&gt;If that&amp;#39;s not what you&amp;#39;re doing then perhaps you can write a better explanation.&lt;/p&gt;
&lt;p&gt;And if you only want to send out one HVX notification, then send out only one HVX notification. But you&amp;#39;ll only get to send 20+ bytes at a time if you do that.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>