Search found 11 matches

by Neil.Macmullen
Wed Aug 11, 2021 11:26 am
Forum: General Discussion
Topic: The esp32 timer drifted over half an hour in the course of 10 hours (in deep sleep). Is this normal?
Replies: 3
Views: 5282

Re: The esp32 timer drifted over half an hour in the course of 10 hours (in deep sleep). Is this normal?

If you need to avoid clock drift then you really need to use an external 32K crystal in your circuit. There are some dedicated APIs for this....

Code: Select all

rtc_clk_32k_enable(true);
rtc_clk_slow_freq_set(RTC_SLOW_FREQ_32K_XTAL);
by Neil.Macmullen
Wed Aug 11, 2021 11:21 am
Forum: General Discussion
Topic: Using httpclient libraries with custom transport
Replies: 0
Views: 2004

Using httpclient libraries with custom transport

I would like to communicate with an external web server from the ESP32. However, we need to be able to do this via an external cellular modem that provides a raw socket interface (we already have a network stack that provides this). It looks like the HttpClient library ( https://docs.espressif.com/p...
by Neil.Macmullen
Fri Jul 23, 2021 2:15 pm
Forum: ESP-IDF
Topic: Wifi Log Message meaning
Replies: 3
Views: 4132

Re: Wifi Log Message meaning

I had a search through the IDF source code (https://github.com/espressif/esp-idf) and couldn't find source for these error messages. I'm not sure if they are emitted from the ROM or included in the IDF as binaries but it's pretty frustrating. There seem to be quite a lot of google hits for wifi: sta...
by Neil.Macmullen
Mon Nov 25, 2019 9:03 am
Forum: ESP-IDF
Topic: Is it possible to protect against excessive deep-sleep delays?
Replies: 8
Views: 7945

Re: Is it possible to protect against excessive deep-sleep delays?

Thanks @boarchuz. The ULP is a good idea. I agree it's unlikely but in a previous life we had a significant issue with a similar problem (albeit high unit volumes and exacerbated by lack of brownout protection) and the current product is intended to work for 5-10 years in the field without any manua...
by Neil.Macmullen
Sat Nov 23, 2019 9:25 pm
Forum: ESP-IDF
Topic: Is it possible to protect against excessive deep-sleep delays?
Replies: 8
Views: 7945

Re: Is it possible to protect against excessive deep-sleep delays?

@chegewara Perhaps I haven't explained clearly enough.... Although it's very unlikely, the CPU program counter can get corrupted. One reason for this is supply brownout though this is protected against on the ESP and most modern CPUs. There are plenty of other reasons though and one of the most like...
by Neil.Macmullen
Sat Nov 23, 2019 12:00 pm
Forum: ESP-IDF
Topic: Is it possible to protect against excessive deep-sleep delays?
Replies: 8
Views: 7945

Re: Is it possible to protect against excessive deep-sleep delays?

@chegewara. That doesn't protect against the kinds of errors I'm talking about where the code is in such an error state (e.g. from a corrupted PC return address on the stack) that it is calling the raw API with a random value. @WiFive Thanks - that sounds interesting. Is there an API to control this...
by Neil.Macmullen
Fri Nov 22, 2019 12:14 pm
Forum: ESP-IDF
Topic: Is it possible to protect against excessive deep-sleep delays?
Replies: 8
Views: 7945

Is it possible to protect against excessive deep-sleep delays?

According to the documentation https://docs.espressif.com/projects/esp-idf/en/latest/api-reference/system/sleep_modes.html esp_sleep_enable_timer_wakeup accepts a 64 bit value which is the number of microseconds. The maximum value of this is rather high - hundreds of thousands of years! Since my app...
by Neil.Macmullen
Thu Oct 31, 2019 1:10 pm
Forum: ESP-IDF
Topic: Is there a way to persist an application reset reset through esp_restart?
Replies: 2
Views: 3352

Re: Is there a way to persist an application reset reset through esp_restart?

Perfect, RTC_NOINIT_ATTR is exactly what I was looking for - thanks! :D
by Neil.Macmullen
Wed Oct 30, 2019 11:56 am
Forum: ESP-IDF
Topic: Is there a way to persist an application reset reset through esp_restart?
Replies: 2
Views: 3352

Is there a way to persist an application reset reset through esp_restart?

My application is deeply embedded and so I have a 'fault' mechanism that performs esp_restart if unusual conditions are detected. I would like to persist the reason for the fault (e.g. "too many connection attempts") through the restart so that it can be written to the flash filing system then uploa...
by Neil.Macmullen
Thu Mar 14, 2019 4:49 pm
Forum: General Discussion
Topic: BLE-only power consumption
Replies: 21
Views: 57547

Re: BLE-only power consumption

*Bump* Any progress on this Espressif? We'd really love to be able to transmit a beacon every few seconds while averaging < 100uA but this just isn't possible at the moment.