Search found 24 matches

by fanmen1
Wed Sep 04, 2024 2:36 pm
Forum: General Discussion
Topic: ESP32 assert failed: block_next tlsf_block_functions.h:94 (!block_is_last(block))
Replies: 1
Views: 685

ESP32 assert failed: block_next tlsf_block_functions.h:94 (!block_is_last(block))

This project Incorporates Ethernet SPI for hosting local web page and SD card for data logging in sdspi mode. Moreover, I have enabled SPIRAM and use it for other dynamic memory allocation. I have 4 RTOS tasks running in the background, 2 for UART operations while other task is the data logging (wri...
by fanmen1
Wed Jul 31, 2024 1:53 pm
Forum: General Discussion
Topic: sharing UART for multiple tasks.
Replies: 3
Views: 975

Re: sharing UART for multiple tasks.

Any Modbus request with the correct checksum that is received in UART port 2 constitutes a packet. At the moment, given that data logging task is initialised with lower priority, it misses a few logging cycles whenever UART1 is occupied. Moreover, the data logging contains time stamp, therefore usin...
by fanmen1
Wed Jul 31, 2024 8:26 am
Forum: General Discussion
Topic: sharing UART for multiple tasks.
Replies: 3
Views: 975

sharing UART for multiple tasks.

Hi there, I'm developing a device for data logging purpose. It mostly performs 2 FreeRTOS tasks. Firstly, forward all the packets received at UART2 to UART1 and vice versa (High priority). Secondly, send requests of its own to gather data for logging register values via UART1 (lower priority). As yo...
by fanmen1
Wed Jun 19, 2024 7:38 am
Forum: General Discussion
Topic: ESP32-C3 and W5500 Link Up Issue
Replies: 2
Views: 859

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: 2343

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: 1205

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: 1225

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: 1225

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: 1225

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: 1225

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...