Skip to main content
Shreyas H
Visitor II
Feb 5, 2019 5:31 PM UTC
Question

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 ?

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.

This topic has been closed for replies.

4 replies

S.Ma
Principal
Feb 5, 2019 6:35 PM UTC

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

Tesla DeLorean
Guru
Feb 5, 2019 7:01 PM UTC

Problem is ZIP is ubiquitous

I can do CAB files

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
Tesla DeLorean
Guru
Feb 5, 2019 6:58 PM UTC

zlib and more generically deflate and inflate should be usable.

miniz

Tips, Buy me a coffee, or three.. PayPal Venmo (See Profile) Up vote any posts that you find helpful, it shows what's working..
James Murray
Associate III
Feb 6, 2019 2:22 PM UTC

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