Search found 67 matches

by gunar.kroeger
Mon Jun 03, 2019 2:31 pm
Forum: General Discussion
Topic: What is the best practice for push-button event tracking/handling without any hardware debouncing circuit
Replies: 7
Views: 652

Re: What is the best practice for push-button event tracking/handling without any hardware debouncing circuit

Sorry, I missed the dual functionality for long pressing the button. How about: - Checking for interrupts on rising and falling edge - onButtonPress => save esp_log_timestamp to uint32_t pressTimestamp; - onButtonRelease => save esp_log_timestamp to uint32_t releaseTimestamp; uint32_t pressMs = rele...
by gunar.kroeger
Mon Jun 03, 2019 2:22 pm
Forum: General Discussion
Topic: ESP32 BLE or Bluetooth Classic ?
Replies: 1
Views: 193

Re: ESP32 BLE or Bluetooth Classic ?

Both are perfectly suitable. BLE shall give you better power efficiency.
Classic SPP is easier to implement/understand.

But your application looks really close to a BLE example.
by gunar.kroeger
Fri May 31, 2019 8:18 pm
Forum: General Discussion
Topic: What happens with SD card if it gets unpowered during write?
Replies: 10
Views: 457

Re: What happens with SD card if it gets unpowered during write?

Well I'm just giving if I find better alternatives haha, Thanks for the suggestions mikemoy. Good supercaps are indeed expensive ): I've found this alternative https://www.freertos.org/FreeRTOS-Plus/Fail_Safe_File_System/Reliance_Edge_Fail_Safe_File_System.shtml wonder how hard it would be to implem...
by gunar.kroeger
Fri May 31, 2019 7:07 pm
Forum: General Discussion
Topic: What happens with SD card if it gets unpowered during write?
Replies: 10
Views: 457

Re: What happens with SD card if it gets unpowered during write?

I think that I will abandon FATFS. It looks like it really isn't design for robustness. We can't risk having to format the card and loose all logged data if the FATFS gets corrupted. Even if I get the unmount right during a power-down, there can be an unforeseen bug that causes a crash forcing the e...
by gunar.kroeger
Fri May 31, 2019 4:04 pm
Forum: General Discussion
Topic: What is the best practice for push-button event tracking/handling without any hardware debouncing circuit
Replies: 7
Views: 652

Re: What is the best practice for push-button event tracking/handling without any hardware debouncing circuit

You don't need to wait for a long button press to debounce it. Just save the esp_log_timestamp of when the button is released and ignore any new button press for the next say 100ms This should still be responsive enough and very simple to implement Also, use gpio interrupt to check for the button pr...
by gunar.kroeger
Fri May 31, 2019 3:57 pm
Forum: General Discussion
Topic: What happens with SD card if it gets unpowered during write?
Replies: 10
Views: 457

Re: What happens with SD card if it gets unpowered during write?

Have a look at the GPIO example. This is the way you can trigger something to happen outside an IRQ. https://github.com/espressif/esp-idf/blob/master/examples/peripherals/gpio/main/gpio_example_main.c yes, from what I understand it does the same as using event queue. But it is an extra delay. If do...
by gunar.kroeger
Fri May 31, 2019 3:40 pm
Forum: General Discussion
Topic: PEM Certificate expires in September?
Replies: 2
Views: 185

Re: PEM Certificate expires in September?

It just isn't clear to me if we have to do anything special in the server to keep the certificate forever or something

We generated a certificate that will expire in 7 days so we can test it
by gunar.kroeger
Fri May 31, 2019 2:51 pm
Forum: General Discussion
Topic: PEM Certificate expires in September?
Replies: 2
Views: 185

Re: PEM Certificate expires in September?

gunar.kroeger wrote:
Fri May 31, 2019 2:21 pm
EDIT: there is a ENABLE_MBEDTLS_CERTIFICATE_EXPIRACY_CHECK option in menuconfig disabled by default.
Does this mean it will not break and I don't have to worry?
found this post that seems to confirm it:
viewtopic.php?t=7585
by gunar.kroeger
Fri May 31, 2019 2:21 pm
Forum: General Discussion
Topic: PEM Certificate expires in September?
Replies: 2
Views: 185

PEM Certificate expires in September?

The examples show how to add PEM certificate to the flash (howsmyssl_com_root_cert.pem) All working fine to connect through HTTPS to our server. But a certificate has an expiration date. So after September I imagine the communication will suddenly stop, and we will not be able to do OTA to fix it. A...

Go to advanced search