Search found 55 matches

by dizcza
Sun Jan 21, 2024 9:05 am
Forum: Hardware
Topic: ADS1256 with ESP32 idf
Replies: 3
Views: 7069

Re: ADS1256 with ESP32 idf

Hi e2738729, can you please share your final code?
I'm also searching for ADS1256 ESP-IDF and found no solutions.
Thanks.
by dizcza
Tue Jun 06, 2023 7:19 pm
Forum: ESP-IDF
Topic: Example of a TCP socket with SSL?
Replies: 1
Views: 967

Example of a TCP socket with SSL?

I already have a TCP client running on an ESP32 but I'd like to make it secure with SSL. I found something similar for Arduino: https://github.com/khoih-prog/AsyncTCP_SSL. But, firstly, it's on Arduino and, secondly, the project is no longer maintained. On the documentation page of ESP-IDF, I found ...
by dizcza
Fri May 26, 2023 7:57 am
Forum: ESP-IDF
Topic: WiFi APSTA keeps disconnecting clients
Replies: 2
Views: 884

Re: WiFi APSTA keeps disconnecting clients

I don't see your code starting the timer anywhere. Also, could this be part of the issue: if (event_base == WIFI_EVENT && event_id == WIFI_EVENT_STA_DISCONNECTED) { wifi_apsta_reconnect(NULL); ? WRONG: The timer is obsolete, sorry, I should have removed it. And yes, this function block in the `wifi...
by dizcza
Thu May 25, 2023 6:31 pm
Forum: ESP-IDF
Topic: WiFi APSTA keeps disconnecting clients
Replies: 2
Views: 884

WiFi APSTA keeps disconnecting clients

If a wifi STA connection fails, I start WIFI_APSTA wifi to provision clients that changed their home wifi SSID and therefore the ESP board is unable to connect. #define WIFI_RECONNECT_TIMEOUT_S 30 static const char *TAG = "wifi_apsta"; static esp_timer_handle_t m_timer_reconnect; static bool m_ap_co...
by dizcza
Tue Apr 25, 2023 11:24 am
Forum: ESP-IDF
Topic: [SOLVED] Save core dump to flash and read it after reboot as file.
Replies: 4
Views: 7019

Re: [SOLVED] Save core dump to flash and read it after reboot as file.

Thank you @leschge for providing the snippet code, it works for me. I'd like to go further: I want to print the traceback directly from the hardware. Most of the time I'm interested only in the current thread stack: ==================== CURRENT THREAD STACK ===================== #0 0x40082720 in pan...
by dizcza
Sat Mar 18, 2023 7:42 pm
Forum: ESP-IDF
Topic: SD SPI CS pin inverted logic possible?
Replies: 1
Views: 946

SD SPI CS pin inverted logic possible?

I'm kinda running out of pins with my WT32-SC01. The SPI bus is shared between the SD card and the LCD. I'd like to share the CS pin as well. Is it possible to setup esp_vfs_fat_sdspi_mount with the CS inverted logic? I'll probably need to add an external logic inverter before the SD card CS pin to ...
by dizcza
Thu Mar 09, 2023 7:43 am
Forum: ESP-IDF
Topic: How to disable mbedtls on ESP-IDF
Replies: 5
Views: 2143

Re: How to disable mbedtls on ESP-IDF

Yeah I do use WPA connections, I didn't think of that. Well, at least I found the minimal working configuration of mbedtls that doesn't require tinkering with ESP-IDF components code.
by dizcza
Wed Mar 08, 2023 11:29 am
Forum: General Discussion
Topic: Super slow sdcard on Wrover kit
Replies: 4
Views: 7035

Re: Super slow sdcard on Wrover kit

To increase the write speed, allocate a large (16kB or 32kB) buffer. Fill it with incoming data. Then write to the file, bypassing stdio buffering (using write(fileno(f), buffer, size);, instead of fprintf). I'm trying to find the fastest way to dump a JPEG image from ESP32-CAM to my SD card mounte...
by dizcza
Wed Mar 08, 2023 9:18 am
Forum: ESP-IDF
Topic: How to disable mbedtls on ESP-IDF
Replies: 5
Views: 2143

Re: How to disable mbedtls on ESP-IDF

In some projects I need WiFi but the communication is within the local network only, so I don't need encryption. The way I'm currently doing this is disabling each and every feature in mbedtls menuconfig: # CONFIG_MBEDTLS_SSL_RENEGOTIATION is not set # CONFIG_MBEDTLS_CLIENT_SSL_SESSION_TICKETS is no...
by dizcza
Tue Mar 07, 2023 11:38 am
Forum: ESP-IDF
Topic: Stopping ULP & ULP Lockup
Replies: 10
Views: 10025

Re: Stopping ULP & ULP Lockup

You're missing a bunch of the #includes from my above comment. And you will need to add component dependencies to your 'my_boot_hooks' component's CMakeLists.txt: idf_component_register( SRCS "hooks.c" REQUIRES soc hal esp_hw_support ) True, I haven't noticed the other header imports in your post. ...