<?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>data compression</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/99596/data-compression</link><description>hello Nordic 
 
 i am working with nrf52832 and nrf52840, with zephyr (ncs v2.1.2) 
 i am trying to compress vibration sensor data before sending it via ble (i have several 16k byte samples that i read from external flash before sending, i have some limitation</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Thu, 01 Jun 2023 17:13:52 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/99596/data-compression" /><item><title>RE: data compression</title><link>https://devzone.nordicsemi.com/thread/428827?ContentTypeID=1</link><pubDate>Thu, 01 Jun 2023 17:13:52 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ecee268d-b9c6-4e7a-aac5-340097675351</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="ziv123"]so its not clear for me if there is some implementation of Brotli compression algorithm in ncs ??[/quote]
&lt;p&gt;No, this is not implemented&amp;nbsp;in NCS.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data compression</title><link>https://devzone.nordicsemi.com/thread/428486?ContentTypeID=1</link><pubDate>Wed, 31 May 2023 13:21:08 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9e9201e1-0196-4d36-980c-c8fd3ee07dea</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;hello Sigurd&lt;/p&gt;
&lt;p&gt;we gave up the lz4 cause it did not gave such good compression rate for our data.&lt;/p&gt;
&lt;p&gt;i so in the ncs under the nrf dir that there is some reference to Brotli compression (by google) but i only saw include for the decoding, so its not clear for me if there is some implementation of Brotli compression algorithm in ncs ??&lt;/p&gt;
&lt;p&gt;hope to read you soon&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Ziv&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data compression</title><link>https://devzone.nordicsemi.com/thread/425158?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 14:41:44 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cc85e92d-d684-49d8-b5f7-2b68e9595b9e</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;Hi,&amp;nbsp;&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/99596/data-compression/425138"]Did you have a look at this sample?[/quote]
&lt;p&gt;yes i did look at the sample, it shows the basic default use of the lib, does not show how to integrate a dictionary&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data compression</title><link>https://devzone.nordicsemi.com/thread/425138?ContentTypeID=1</link><pubDate>Thu, 11 May 2023 14:02:21 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ca5616ac-b14e-434e-b9dc-124ae82040f2</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote user="ziv123"]since&amp;nbsp;my motivation to run compression (p.s. - loss less)&amp;nbsp; is to send less bytes OTA, to save on connection time with the central and battery.[/quote]
&lt;p&gt;Ok, I see your use-case now.&lt;/p&gt;
[quote user=""]if so, how can i use it i did not find any example or guide on that ?[/quote]
&lt;p&gt;Did you have a look at this sample?&amp;nbsp;&lt;a href="https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/compression/lz4/src/main.c"&gt;https://github.com/nrfconnect/sdk-zephyr/blob/main/samples/compression/lz4/src/main.c&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data compression</title><link>https://devzone.nordicsemi.com/thread/424892?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 13:35:49 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:db4b25dd-f08b-43d2-932e-08cea1290f20</guid><dc:creator>ziv123</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
[quote userid="15146" url="~/f/nordic-q-a/99596/data-compression/424877"]I think it&amp;#39;s better to just send the data as soon as you get it. The time you spend on buffering and compressing the data, you could have spend that time sending the data instead.[/quote]
&lt;p&gt;though i appreciate your thoughts on the matter i don&amp;#39;t understand the &amp;quot;time&amp;quot; relevance to that matter, since&amp;nbsp;my motivation to run compression (p.s. - loss less)&amp;nbsp; is to send less bytes OTA, to save on connection time with the central and battery. and in any case the time it will take me to compress the chunks of data will not cause and delay in BLE transmission on waiting for the compression. the data is collected in the endpoint according to some scheduler and there is no need to transmit the data collected while collecting it, but only after all sampling process has finished so no real time requirements&amp;nbsp;like&amp;nbsp;that.&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;
&lt;p&gt;hope to read you soon&lt;/p&gt;
&lt;p&gt;best regards&lt;/p&gt;
&lt;p&gt;Ziv&amp;nbsp;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: data compression</title><link>https://devzone.nordicsemi.com/thread/424877?ContentTypeID=1</link><pubDate>Wed, 10 May 2023 13:19:34 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:83076ff9-dd00-41c5-8af5-1e7f11d740b5</guid><dc:creator>Sigurd</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;This lz4 library does not seem to be commonly used, and as far as I can see, we are not using it for any of our nordic libraries and samples. If you need support on this lz4 library, then I think it&amp;#39;s better to check with the Zephyr community.&lt;/p&gt;
&lt;p&gt;When it comes to your use-case here,&amp;nbsp;I think it&amp;#39;s better to just send the data as soon as you get it. The time you spend on buffering and compressing the data, you could have spend that time sending the data instead.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>