Search found 68 matches

by Zingemneire
Thu Nov 22, 2018 8:19 am
Forum: General Discussion
Topic: esp_http_client_fetch_headers behaviour
Replies: 2
Views: 4485

Re: esp_http_client_fetch_headers behaviour

Hi again, I really wanted/needed to know what is causing this so I did some experimenting. Instead of not providing a timeout value myself, and therefore relying on the code used in esp_http_client_init to fill in the default value of 5000 milliseconds, now I do provide a timeout value of 2000 milli...
by Zingemneire
Thu Nov 22, 2018 7:48 am
Forum: General Discussion
Topic: Secondary boot loader version
Replies: 9
Views: 10258

Re: Secondary boot loader version

Hi ESP_Angus, I am not 100% sure that the older bootloader was written in assembly. It is an assumption because I can only find ".s" type code in folder bootloader support in the build directory so that may be generated code. For the new bootloader used in ESP-IDF v3.1 I can find the original C code...
by Zingemneire
Wed Nov 21, 2018 2:59 pm
Forum: General Discussion
Topic: esp_http_client_fetch_headers behaviour
Replies: 2
Views: 4485

esp_http_client_fetch_headers behaviour

Hi, I have some code which calls a few functions in this order: httpClient = esp_http_client_init ( &clientConfig ); ESP_LOGI ( TAG, "httpClient configured and created!"); espError = esp_http_client_open( httpClient, 0); imageLength = esp_http_client_fetch_headers ( httpClient ); ESP_LOGI ( TAG, "Re...
by Zingemneire
Wed Nov 21, 2018 2:36 pm
Forum: General Discussion
Topic: Secondary boot loader version
Replies: 9
Views: 10258

Re: Secondary boot loader version

The risk is acceptable as the units are permanently battery powered. The only time it could go wrong is that when the battery just comes below the brownout level when we happen to be writing the new partition and/or bootloader sections. That is not entirely impossible but extremely unlikely as the u...
by Zingemneire
Fri Nov 09, 2018 11:50 am
Forum: General Discussion
Topic: Secondary boot loader version
Replies: 9
Views: 10258

Re: Secondary boot loader version

Ah, it is a bit of a chameleon then. Never mind: in the mean time I have found a solution for my problem for which getting the bootloader version may have helped. My problem was the following: We have two versions of our application software: my, recent, version and an earlier prototype version that...
by Zingemneire
Fri Nov 09, 2018 7:37 am
Forum: General Discussion
Topic: Secondary boot loader version
Replies: 9
Views: 10258

Re: Secondary boot loader version

Hi,

In reply to both earlier replies, this will do it: esp_get_idf_version(). I found out that that is how the bootloader reports the version on the UART during boot.
by Zingemneire
Thu Nov 08, 2018 12:49 pm
Forum: General Discussion
Topic: Secondary boot loader version
Replies: 9
Views: 10258

Secondary boot loader version

Hi,

A short question as I have not found the answer yet in the documentation: is there a way to determine the version of the secondary boot loader that was used to start an application from within that same application ?
by Zingemneire
Tue Oct 30, 2018 1:48 pm
Forum: General Discussion
Topic: Guru meditation error when using esp_http_client_init
Replies: 1
Views: 2860

Re: Guru meditation error when using esp_http_client_init

Hi, I have figured it out: the way to solve it is to add a bit more initialisation data. Adding this: clientConfig.path = "/"; clientConfig.username = ""; clientConfig.password = ""; clientConfig.query = ""; Does the trick. It looks like some of the normal fallbacks to default values don't quite cut...
by Zingemneire
Fri Oct 26, 2018 1:20 pm
Forum: General Discussion
Topic: Guru meditation error when using esp_http_client_init
Replies: 1
Views: 2860

Guru meditation error when using esp_http_client_init

Hi, This is a summary of what I am trying to do: esp_http_client_handle_t httpClient; clientConfig.url = httpServerFirmwareUrl; clientConfig.host = HttpServerIpString; clientConfig.port = httpServerPortNumber; clientConfig.method = HTTP_METHOD_GET; clientConfig.transport_type = HTTP_TRANSPORT_OVER_T...
by Zingemneire
Fri Oct 26, 2018 1:11 pm
Forum: General Discussion
Topic: brownout detection not operating as expected
Replies: 4
Views: 6290

Re: brownout detection not operating as expected

Hi, I have figured it out in the mean time: I do detect the brownout as desired and manage to do all of the required complicated stuff as well. The method to do it is as follows: First of all: when I detect brownout there is still enough life in the battery to do the complicated stuff as there is ve...