Search found 25 matches

by jubueche
Thu May 16, 2019 7:36 am
Forum: General Discussion
Topic: Compression using miniz
Replies: 5
Views: 627

Re: Compression using miniz

That’s great news. I will check it out. I haven’t done any benchmarking yet.
by jubueche
Tue May 14, 2019 9:18 am
Forum: General Discussion
Topic: Compression using miniz
Replies: 5
Views: 627

Re: Compression using miniz

#include "compression.h" #include "assert.h" #include "zlib.h" #include <string.h> #include "stdio.h" #include "freertos/FreeRTOS.h" #include "freertos/task.h" #include "stdlib.h" #include "esp_log.h" const char * TAG = "Chaze-Compression"; /** * @brief When recording sensor data, multiple tasks ne...
by jubueche
Thu Apr 25, 2019 6:29 am
Forum: Hardware
Topic: Discrepancy between WROOM-32 and ESP Hardware design guidelines
Replies: 1
Views: 283

Discrepancy between WROOM-32 and ESP Hardware design guidelines

Hi, There is a difference in the two reference sheets "Hardware design guidelines" and "ESP32-WROOM-32 datasheet". Both can be found here: https://www.espressif.com/sites/default/files/documentation/esp32-wroom-32_datasheet_en.pdf https://www.espressif.com/sites/default/files/documentation/esp32_har...
by jubueche
Mon Feb 11, 2019 1:00 pm
Forum: General Discussion
Topic: zlib on esp32
Replies: 2
Views: 522

Re: zlib on esp32

UPDATE: This code actually works. Somehow I corrupted my board. I tried the same code on a different board and it worked. Let me know if you run into any trouble.
by jubueche
Sun Feb 10, 2019 10:02 pm
Forum: General Discussion
Topic: zlib on esp32
Replies: 2
Views: 522

zlib on esp32

Hi, I am currently working on gettingt zlib to work on the esp32. The compression already works, but there is some error when trying to close the compressed file. Anyway, here is the code for anybody who wants to use it. I will update it as soon as I will find the bug. #include "freertos/FreeRTOS.h"...
by jubueche
Fri Feb 08, 2019 2:15 pm
Forum: General Discussion
Topic: max size of filename to save on sd card
Replies: 6
Views: 3301

Re: max size of filename to save on sd card

Can you put a note in https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/storage/fatfs.html#_CPPv216ff_diskio_impl_t ? I got hung up on this and the solution is so simple! You find it if you search for it, but I feel like this should be mentioned. Also maybe mention that the size in...
by jubueche
Fri Feb 08, 2019 10:26 am
Forum: General Discussion
Topic: Compression using miniz
Replies: 5
Views: 627

Compression using miniz

Hi, I am trying to run the test sketch for miniz compression. However, my heap space is too small (available size is bigger, but fragmented) and I was wondering how to reduce the size used by tdefl_compressor without breaking the algorithm. Here is the short code that I am trying to run: #include "f...
by jubueche
Fri Feb 08, 2019 10:17 am
Forum: General Discussion
Topic: How to properly clean up WiFi
Replies: 1
Views: 343

Re: How to properly clean up WiFi

This is resolved now. But I still don't know how to disable the event handler.
by jubueche
Thu Feb 07, 2019 3:56 pm
Forum: ESP32 IDF
Topic: Library for compression algorithm
Replies: 5
Views: 3728

Re: Library for compression algorithm

I had to add #include <unistd.h> to gzread and gzwrite. Also, I added #include <unistd.h> and #include <sys/types.h> to gzlib.c

It compiled afterwards. Don't forget to put header files in components/zlib/include and c files in components/zlib/
by jubueche
Wed Feb 06, 2019 7:36 pm
Forum: General Discussion
Topic: How to properly clean up WiFi
Replies: 1
Views: 343

How to properly clean up WiFi

When closing a WiFi connection, this is what I am doing: ESP_ERROR_CHECK(esp_wifi_stop()); ESP_ERROR_CHECK(esp_wifi_deinit()); The problem is that after I call esp_wifi_stop, I disconnect and the event handler, which is still running, calls connect(), which is not possible, because we already called...

Go to advanced search