<?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>Dynamic Buffer allocation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41854/dynamic-buffer-allocation</link><description>Hi, 
 I wanted to setup a dynamic buffer but I don&amp;#39;t have any leads on how to set it up. 
 Basically, i want to store a stream of data every time it is recorded and then send it over BLe. If a particular stream of data has not been transmitted over ble</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 13 Aug 2020 16:23:44 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41854/dynamic-buffer-allocation" /><item><title>RE: Dynamic Buffer allocation</title><link>https://devzone.nordicsemi.com/thread/264522?ContentTypeID=1</link><pubDate>Thu, 13 Aug 2020 16:23:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ea670d2e-e453-4d5f-8630-227156fce9ab</guid><dc:creator>Alanarf</dc:creator><description>&lt;p&gt;Hello,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;could share how you do it?&amp;nbsp;&lt;br /&gt;&lt;br /&gt;pls&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic Buffer allocation</title><link>https://devzone.nordicsemi.com/thread/162957?ContentTypeID=1</link><pubDate>Mon, 24 Dec 2018 13:42:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c87c323e-7311-4276-9c27-114c2f24afb6</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;Yes I am .just wanted to confirm as I was thinking of some other approach .&lt;/p&gt;
&lt;p&gt;Had this in mind before though&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thanks for your help .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic Buffer allocation</title><link>https://devzone.nordicsemi.com/thread/162956?ContentTypeID=1</link><pubDate>Mon, 24 Dec 2018 13:35:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6bcd7d9f-0fe9-40e8-a686-99344058164d</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes - that&amp;#39;s the idea.&lt;/p&gt;
&lt;p&gt;Are you familiar with the concept of a Ring - aka &amp;quot;Circular&amp;quot; - Buffer?&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://devzone.nordicsemi.com/cfs-file/__key/communityserver-discussions-components-files/4/Circular_5F00_Buffer_5F00_Animation.gif" width="320" /&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://en.wikipedia.org/wiki/Circular_buffer"&gt;en.wikipedia.org/.../Circular_buffer&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " src="https://commons.wikimedia.org/wiki/File:Circular_Buffer_Animation.gif" /&gt;&lt;img alt=" " src="https://commons.wikimedia.org/wiki/File:Circular_Buffer_Animation.gif" /&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic Buffer allocation</title><link>https://devzone.nordicsemi.com/thread/162946?ContentTypeID=1</link><pubDate>Mon, 24 Dec 2018 11:07:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:53f6fe56-e581-4439-afd9-db5cbe33b5be</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;So i like declare a buffer N times the size of my data frame so that it can store a data frame upto N times and then send it over BLE?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic Buffer allocation</title><link>https://devzone.nordicsemi.com/thread/162878?ContentTypeID=1</link><pubDate>Fri, 21 Dec 2018 15:01:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c31d52fa-80d7-42fe-8439-6437229d65b1</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Yes, but you only have a finite amount of memory anyhow.&lt;/p&gt;
&lt;p&gt;You have to fix the heap size at build time anyhow.&lt;/p&gt;
&lt;p&gt;So, whatever way you do it, you are going to have define that maximum amount of data you can ever have buffered.&lt;/p&gt;
&lt;p&gt;Dynamic allocation brings a number of issues and overheads ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic Buffer allocation</title><link>https://devzone.nordicsemi.com/thread/162873?ContentTypeID=1</link><pubDate>Fri, 21 Dec 2018 14:44:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7952402e-e51f-4c3a-9b78-8eaa9ff89264</guid><dc:creator>ahmdm</dc:creator><description>&lt;p&gt;A ring buffer has a fixed size no?&amp;nbsp;&lt;/p&gt;
&lt;p&gt;How am I suppose to use that in my application?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Dynamic Buffer allocation</title><link>https://devzone.nordicsemi.com/thread/162871?ContentTypeID=1</link><pubDate>Fri, 21 Dec 2018 14:20:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9b1ead46-279f-43e1-b911-1f2aabd077f8</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;Why do you want a dynamic buffer for that?&lt;/p&gt;
&lt;p&gt;A Ring Buffer would do the job ...&lt;/p&gt;
[quote userid="74960" url="~/f/nordic-q-a/41854/dynamic-buffer-allocation"]I was thinking of vectors[/quote]
&lt;p&gt;That&amp;#39;s a C++ thing ...&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>