Search found 21 matches

by fanmen1
Wed Jun 19, 2024 7:38 am
Forum: General Discussion
Topic: ESP32-C3 and W5500 Link Up Issue
Replies: 2
Views: 467

Re: ESP32-C3 and W5500 Link Up Issue

Have you checked this?
by fanmen1
Wed Jun 12, 2024 3:51 pm
Forum: General Discussion
Topic: ESP32-dev-kitc MQTT SSL Muthual auth. cannot connect
Replies: 2
Views: 2024

Re: ESP32-dev-kitc MQTT SSL Muthual auth. cannot connect

Can you share the menuconfig options set for "TLS Key Exchange Methods"? Take a look at the ciphersuites that are enabled here.
by fanmen1
Tue Jun 11, 2024 2:01 pm
Forum: General Discussion
Topic: Using Miniz compression for JSON packet.
Replies: 7
Views: 856

Re: Using Miniz compression for JSON packet.

If anyone looking for decompression algorithm for their JSON packets, give a brotli compression a try: [url][/https://github.com/martinberlin/brotli/ ... e/compress]. Very simple and effective.
by fanmen1
Tue Jun 11, 2024 2:00 pm
Forum: General Discussion
Topic: TAMP compression technique for JSON packets.
Replies: 4
Views: 550

Re: TAMP compression technique for JSON packets.

If anyone looking for decompression algorithm for their JSON packets, give a brotli compression a try: [url][/https://github.com/martinberlin/brotli/ ... e/compress]. Very simple and effective.
by fanmen1
Thu Jun 06, 2024 11:59 am
Forum: General Discussion
Topic: TAMP compression technique for JSON packets.
Replies: 4
Views: 550

Re: TAMP compression technique for JSON packets.

I realised that, hence moved everything to PSRAM as below:
unsigned char *window = (unsigned char *)heap_caps_malloc(WINDOW_SIZE, MALLOC_CAP_SPIRAM);
unsigned char *output = (unsigned char *)heap_caps_malloc(BUFFER_SIZE, MALLOC_CAP_SPIRAM);
by fanmen1
Thu Jun 06, 2024 10:14 am
Forum: General Discussion
Topic: TAMP compression technique for JSON packets.
Replies: 4
Views: 550

Re: TAMP compression technique for JSON packets.

Documentation for TAMP compression technique: [url][/https://tamp.readthedocs.io/en/latest/c_library.html]
by fanmen1
Thu Jun 06, 2024 10:01 am
Forum: General Discussion
Topic: TAMP compression technique for JSON packets.
Replies: 4
Views: 550

TAMP compression technique for JSON packets.

Update on TAMP compression, the compression works fine. However, the decompression bytes are way out of line. For example: Compression successful! Original size: 9890 bytes Compressed size: 2005 bytes will return the decompression of: Decompression successful! Decompressed data: Decompressed size: 1...
by fanmen1
Thu Jun 06, 2024 9:57 am
Forum: General Discussion
Topic: Using Miniz compression for JSON packet.
Replies: 7
Views: 856

Re: Using Miniz compression for JSON packet.

Update on TAMP compression, the compression works fine. However, the decompression bytes are way out of line. For example: Compression successful! Original size: 9890 bytes Compressed size: 2005 bytes will return the decompression of: Decompression successful! Decompressed data: Decompressed size: 1...
by fanmen1
Wed Jun 05, 2024 10:19 am
Forum: General Discussion
Topic: Using Miniz compression for JSON packet.
Replies: 7
Views: 856

Re: Using Miniz compression for JSON packet.

Thanks guys, you're right it was stupid mistake.
As you mentioned, yes miniz is very RAM hungry method for a mediocre compression.
I'm now making use of the Tamp, which is definitely better than miniz, so thanks for the info.
by fanmen1
Tue Jun 04, 2024 3:31 pm
Forum: General Discussion
Topic: Using Miniz compression for JSON packet.
Replies: 7
Views: 856

Using Miniz compression for JSON packet.

Hi, I'm trying to link the miniz compression algorithm according to the example shown here https://github.com/richgel999/miniz/blob/master/miniz.c I have no problem compiling the code, but the linker is throwing the error shown below. The function its pointing to as the 'undefined reference' is defi...