Search found 22 matches

by AloyseTech
Thu Jun 18, 2020 5:18 pm
Forum: General Discussion
Topic: Websocket with client authentication (mutual SSL)
Replies: 1
Views: 3015

Websocket with client authentication (mutual SSL)

Hi, I'm trying to setup a websocket (wss) client with mutual SSL authentication. Currently (ESP-IDF 4.0.1) the websocket API seems to only offer server authentication (by providing the trusted certificate). Is there any way to add client authentication (i.e. provide client cert and key to the server...
by AloyseTech
Mon Jan 27, 2020 12:02 am
Forum: General Discussion
Topic: Include header from main into components with CMake
Replies: 0
Views: 1551

Include header from main into components with CMake

Hi, I have a project with the following structure : esp_project ├── CMakeLists.txt ├── components │   └── my_comp │   ├── CMakeLists.txt │   ├── my_comp.c │   └── my_comp.h └── main ├── CMakeLists.txt ├── main.c └── my_conf.h How can I tell CMake to include my_conf.h when building my_comp components ?
by AloyseTech
Fri Nov 22, 2019 9:26 pm
Forum: General Discussion
Topic: How to use the 64bit timer as a 32bit counter (overflow at 0xFFFFFFFF), but keep alarm function available
Replies: 3
Views: 3884

Re: How to use the 64bit timer as a 32bit counter (overflow at 0xFFFFFFFF), but keep alarm function available

I don't understand the advantage of the 32-bit rollover I’m connected to a system which expect 32bit timestamp and send me 32bit alarm. I can send a 32bit timestamp easily from the 64bit timer, but I can’t set a 64bit alarm from a 32bit one. The remote system expect that my time base rollover at 32...
by AloyseTech
Fri Nov 22, 2019 3:22 pm
Forum: General Discussion
Topic: How to use the 64bit timer as a 32bit counter (overflow at 0xFFFFFFFF), but keep alarm function available
Replies: 3
Views: 3884

How to use the 64bit timer as a 32bit counter (overflow at 0xFFFFFFFF), but keep alarm function available

Hi, For a time constrained application I need a freerunning 32bit microsecond time base timer to trigger alarm at given 32bit timestamp. Currently I use the two 64bit timers of a timer group as follow : The first timer is used to generate one shot alarm at a given absolute 32bit timestamp. The secon...
by AloyseTech
Fri Nov 15, 2019 6:51 pm
Forum: General Discussion
Topic: Set an alarm with the same time base as returned by esp_timer_get_time()
Replies: 1
Views: 2148

Re: Set an alarm with the same time base as returned by esp_timer_get_time()

The esp_timer common components has a function called esp_timer_start_once(timer, relative_time_from_now) It could be great to have a similar API called esp_timer_start_alarm(timer, absolute_time) Implementation would be : esp_err_t IRAM_ATTR esp_timer_start_alarm(esp_timer_handle_t timer, uint64_t ...
by AloyseTech
Fri Nov 15, 2019 4:19 pm
Forum: General Discussion
Topic: Set an alarm with the same time base as returned by esp_timer_get_time()
Replies: 1
Views: 2148

Set an alarm with the same time base as returned by esp_timer_get_time()

Hi, How can I set an alarm to a given timestamp in microseconds with the same base as esp_timer_get_time() ? It seems that esp_timer_get_time does not use timer group so they do not share the same time base. Here is a pseudo code of what I need: void app_main() { execAt = postParam(esp_timer_get_tim...
by AloyseTech
Sun Oct 06, 2019 11:51 am
Forum: General Discussion
Topic: Append an incremented version/build number to compiled firmware binary name
Replies: 5
Views: 5996

Re: Append an incremented version/build number to compiled firmware binary name

I'm one windows and I use the CMake build system. Do you plan to put your component on github?
by AloyseTech
Fri Oct 04, 2019 12:08 pm
Forum: General Discussion
Topic: Append an incremented version/build number to compiled firmware binary name
Replies: 5
Views: 5996

Re: Append an incremented version/build number to compiled firmware binary name

I was hoping for a way to use the current cmake build system to do it.
I'm getting the version from the generated sdkconfig.h (it is set using menuconfig). I could also use the sdkconfig.json intermediate file.
by AloyseTech
Thu Oct 03, 2019 3:08 pm
Forum: General Discussion
Topic: Append an incremented version/build number to compiled firmware binary name
Replies: 5
Views: 5996

Append an incremented version/build number to compiled firmware binary name

Hi, I would like my binary executable firmware to have the version and build number appended to the filename automatically. How can I do that? For example, if I have a project "myProject", currently the binary generated is always "myProject.bin". I would like to append a version (which is defined us...
by AloyseTech
Tue Sep 03, 2019 10:36 am
Forum: Hardware
Topic: Proper EMAC/PHY design: RMII Timing Documentation Missing
Replies: 3
Views: 6759

Re: Proper EMAC/PHY design: RMII Timing Documentation Missing

From the latest documentation ( https://docs.espressif.com/projects/esp-idf/en/latest/hw-reference/get-started-ethernet-kit.html ) : Note GPIO2 is used to enable external oscillator of the PHY. GPIO0 is a source of 50 MHz reference clock for the PHY. The clock signal is first inverted, to account fo...