Search found 69 matches

by gunar.kroeger
Wed Aug 28, 2019 4:42 pm
Forum: ESP32 IDF
Topic: Firmware update with LwM2M.
Replies: 1
Views: 220

Re: Firmware update with LwM2M.

I'm also interested in this topic. Have you been able to do something with LwM2M yet?
I found this post: http://uhurumkate.blogspot.com/2019/02/ ... lwm2m.html but he does not share his code I think
by gunar.kroeger
Fri Aug 16, 2019 6:06 pm
Forum: ESP32 IDF
Topic: Problems porting Reliance Edge File System to ESP32 - No Persistence
Replies: 0
Views: 154

Problems porting Reliance Edge File System to ESP32 - No Persistence

I'm trying use the Reliance Edge library to a project I'm developing with ESP32, which is a fail-safe file system for SD cards. I have found a GitHub project that ports the library to ESP32, but I'm having some issues trying to persist a written file. My application is just initializing the port lib...
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: 983

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

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

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

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

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

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

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

Go to advanced search