Search found 143 matches
- 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: 10963
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...
- 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: 19773
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...
- 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: 10963
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...
- Fri May 31, 2019 3:40 pm
- Forum: General Discussion
- Topic: PEM Certificate expires in September?
- Replies: 2
- Views: 3224
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
We generated a certificate that will expire in 7 days so we can test it
- Fri May 31, 2019 2:51 pm
- Forum: General Discussion
- Topic: PEM Certificate expires in September?
- Replies: 2
- Views: 3224
Re: PEM Certificate expires in September?
found this post that seems to confirm it:gunar.kroeger wrote: ↑Fri May 31, 2019 2:21 pmEDIT: 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?
viewtopic.php?t=7585
- Fri May 31, 2019 2:21 pm
- Forum: General Discussion
- Topic: PEM Certificate expires in September?
- Replies: 2
- Views: 3224
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...
- Fri May 31, 2019 2:00 pm
- Forum: General Discussion
- Topic: What happens with SD card if it gets unpowered during write?
- Replies: 10
- Views: 10963
Re: What happens with SD card if it gets unpowered during write?
Just stick a 1-20F cap on your power rail depending on all what your power needs are. Use the built in A/D to detect the power fail, and close the file system right away. A cap like this will give you 10's of seconds of running time when the power fails. This is what I had done on the previous vers...
- Thu May 30, 2019 2:06 pm
- Forum: General Discussion
- Topic: What happens with SD card if it gets unpowered during write?
- Replies: 10
- Views: 10963
What happens with SD card if it gets unpowered during write?
- You have a data logger writing data to a file every 100ms. - You send a fsync and fflush every 5 seconds - After every hour you close the log and open a new one. If there is a power down, could you loose more than the last 5 seconds of log? Are the writes on the FAT sector atomic? or could the SD ...
- Mon May 27, 2019 1:37 pm
- Forum: General Discussion
- Topic: ESP-IDF and BG96 GSM Module
- Replies: 7
- Views: 10091
Re: ESP-IDF and BG96 GSM Module
Hi @leonardo.zambonelli,
I'm thinking of using the BG96 Module.
Are you still having problems with it?
Thanks
I'm thinking of using the BG96 Module.
Are you still having problems with it?
Thanks
- Thu May 16, 2019 5:40 pm
- Forum: General Discussion
- Topic: Why make -j8 flash rebuilds the project?
- Replies: 8
- Views: 8541
Re: Why make -j8 flash rebuilds the project?
Hi, recently i found that changing Makefile also is causing full project rebuild. It has to do this because there's no way for Make to know what you changed. For example, if the change added a compiler flag to CFLAGS for every source file compilation then it needs to rebuild every source file to ge...