cancel
Showing results for 
Search instead for 
Did you mean: 

we are trying to zip the data which we received from sensor and send to the server, i want know any data compression library are there for STM322f423 ?

Shreyas H
Associate

we are design the iot based environmental parameter data logger where the data received from the sensor & same data should be zipped and transmit to server , am struggling to do zipping the data , please suggest any library which will do zipping data.

4 REPLIES 4
S.Ma
Principal

As I recall, Zip uses significant RAM for dictionary. Better stay with data in binary (and not ascii text) form and find out a way to compress it. For example, store the information with one absolute followed by relative more compact format. (store the delta)

Zip will be difficult to implement I guess.

Otherwise, few years back, bumped into string compressor here:

lz-string

=========

LZ-based compression algorithm for JavaScript

## Install via [npm](https://npmjs.org/)

```shell

$ npm install lz-string

```

## Home page

Home page for this program with examples, documentation and a live demo: http://pieroxy.net/blog/pages/lz-string/index.html

zlib and more generically deflate and inflate should be usable.

miniz

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

Problem is ZIP is ubiquitous

I can do CAB files

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
James Murray
Senior

Although far less efficient than newer compression algorithms, you may want to consider ncompress. The source is public domain. I have adapted it successfully for use on a microcontroller with only 64K RAM.

http://ncompress.sourceforge.net/

James