Search found 14 matches

by StefanRvO
Sat Jan 04, 2020 10:38 pm
Forum: ESP32 IDF
Topic: ESP-MESH Flushing downstrem queues
Replies: 0
Views: 118

ESP-MESH Flushing downstrem queues

Hi. I'm wondering if it is possible to flush the to_child and broadcast queues in ESP-MESH? My application is driven by the root node broadcasting packages to the childs in the network. It would be nice to be able to flush the broadcasting queue once in a while to ensure i don't run out of memory by...
by StefanRvO
Mon Dec 30, 2019 1:49 am
Forum: ESP32 IDF
Topic: SHA-256 for running partition all zero?
Replies: 12
Views: 1000

Re: SHA-256 for running partition all zero?

Any update on this issue? I have currently made a hack in my ESP-idf which just handles computing the sha for app partitions like it was any other partition: --- a/components/bootloader_support/src/bootloader_common.c +++ b/components/bootloader_support/src/bootloader_common.c @@ -168,7 +168,7 @@ es...
by StefanRvO
Mon Dec 30, 2019 1:48 am
Forum: ESP32 IDF
Topic: Web Socket Server
Replies: 7
Views: 550

Re: Web Socket Server

Hello, Did you try to port libwebsocket Library for ESP32? Because we have tried it earlier and faced some compilation issues with ESP32 IDF. Let us know if anyone has tried and used it for ESP32 Target. I belive i got it working some time ago (~a year). I can't really remember what i did to make i...
by StefanRvO
Sun Dec 08, 2019 11:46 am
Forum: ESP32 IDF
Topic: Web Socket Server
Replies: 7
Views: 550

Re: Web Socket Server

I am using mongoose(https://github.com/cesanta/mongoose) in my project (see here for how i use it: (https://gitlab.com/StefanRvO/light-equalizer-platform/blob/master/software/firmware/main/modules/web_server_module/web_server_module.c). Libwebsockets (https://github.com/warmcat/libwebsockets) should...
by StefanRvO
Wed Aug 14, 2019 4:44 pm
Forum: ESP32 MDF
Topic: ESP_ERR_MESH_ARGUMENT When sending package to root
Replies: 1
Views: 657

ESP_ERR_MESH_ARGUMENT When sending package to root

Hi. I'm trying to send a package from a node to the root. I call the following function: esp_mesh_send(NULL, &data, 0, NULL, 0); Where &data is just my custom payload. I have no problem sending broadcasts from the root to the other nodes, but i can't seem to make data flow the other way, i just get ...
by StefanRvO
Sun Jul 28, 2019 11:46 am
Forum: Hardware
Topic: 100K spi transactions per second
Replies: 3
Views: 555

Re: 100K spi transactions per second

I have attached a scope shot with the Chipselect and clock lines. As you can see, the issue is not the clock speed, but rather the long intervals between transactions. I don't think raising the clock speed would increase my sampling rate by more than maybe 20%, and there is some practical reasons in...
by StefanRvO
Sat Jul 27, 2019 8:17 am
Forum: Hardware
Topic: 100K spi transactions per second
Replies: 3
Views: 555

100K spi transactions per second

Hi. I want to sample from an MCP3002 SPI ADC 100K times per second. I'm currently using the following code and only archiving about 40000 (20K for each ADC channel) samples per second. https://gitlab.com/StefanRvO/light-equalizer-platform/blob/master/software/firmware/main/drivers/mcp3002/mcp3002.c ...
by StefanRvO
Sat Jul 22, 2017 6:35 pm
Forum: ESP32 IDF
Topic: [SPI master] only recieving first byte from slave
Replies: 1
Views: 2046

[SPI master] only recieving first byte from slave

Hi I'm trying to use the spi_master driver to communicate with an CS5463 Energy monitoring IC. . I have no problems with writing to the registers of the chip, but if i try to read them, I only recieve the first byte of the data sent on SDO. I have attached a logic analyzer, and i can see that the ch...
by StefanRvO
Thu Jul 06, 2017 2:10 pm
Forum: ESP32 IDF
Topic: itterating over keys in nvs namespace
Replies: 2
Views: 1821

itterating over keys in nvs namespace

Hi
I want to itterate over all the keys in a given NVS namespace. Is this possible, or do i have to store a list of keys somewhere and use that?

Regards
Stefan
by StefanRvO
Thu Mar 16, 2017 8:39 pm
Forum: ESP32 IDF
Topic: Getting the uptime
Replies: 9
Views: 10030

Getting the uptime

Hi
Is it possible to find the time since last boot?
I know that it is possible to use gettimeofday() in some cases, but this (obviously) does not work if sntp is enabled. Is there any other way to find the uptime?

Regards
Stefan

Go to advanced search