Search found 39 matches

by sazanof
Fri May 16, 2025 8:36 am
Forum: ESP-IDF
Topic: [SOLUTION HERE] Http server authorization using cookie!
Replies: 5
Views: 1630

Re: [SOLUTION HERE] Http server authorization using cookie!


A note on security: Using a timestamp as a 'unique' and 'unpredictable' session ID is generally considered pretty insecure, as timestamps tend to have little entropy and are easily predicted/extrapolated by an adversary. For better security, session IDs are usually long (e.g. 128 bits) fully ...
by sazanof
Fri May 16, 2025 7:11 am
Forum: ESP-IDF
Topic: [SOLUTION HERE] Http server authorization using cookie!
Replies: 5
Views: 1630

Re: [SOLUTION HERE] Http server authorization using cookie!

So, i found solution and it works.

0) #define AUTH_COOKIE_KEY "auth-token"

1) Create struct

typedef struct
{
uint64_t timestamp;
uint8_t fd;
} um_webserver_token_t;

static um_webserver_token_t auth_token;

2) Create basic methods, that operates with token

/**
* Get user token from ...
by sazanof
Wed Feb 26, 2025 9:15 am
Forum: ESP-IDF
Topic: ESP32 - supported types of microsd cards
Replies: 19
Views: 9229

Re: ESP32 - supported types of microsd cards

teletypeguy - thank you!

https://github.com/espressif/esp-idf/issues/15450 I also open new issue on github.

In the meantime, I'll double-check the schematics and check how your code works on my device.
by sazanof
Wed Feb 26, 2025 6:18 am
Forum: ESP-IDF
Topic: ESP32 - supported types of microsd cards
Replies: 19
Views: 9229

Re: ESP32 - supported types of microsd cards


If the hardware is working with arduino framework, but not idf, then you are correct that it is likely software-related.

Exactly! That's what I'm talking about.
Thanks for the example. I'm going to try it now and I'll come back with an answer.

Can you tell me how your card is connected to esp32 ...
by sazanof
Tue Feb 25, 2025 8:00 pm
Forum: ESP-IDF
Topic: ESP32 - supported types of microsd cards
Replies: 19
Views: 9229

Re: ESP32 - supported types of microsd cards

Once again, I reconnected everything with short wires using different ready-made SD card modules. The card was powered via AMS1117 3v3 (not from ESP32).

I conducted a comparative analysis of running programs on the Arduino IDE and on the ESP-IDF

Well, the cards do not work via the ESP-ID example ...
by sazanof
Tue Feb 25, 2025 4:30 am
Forum: ESP-IDF
Topic: ESP32 - supported types of microsd cards
Replies: 19
Views: 9229

Re: ESP32 - supported types of microsd cards


It almost looks like mosi and miso are mixing somewhat -- do you have the 3.3V connected to the pullups?


I checked and pullup all the lines with resistors, checked and pullup each one in turn. In different ways. I wrote about it. Thanks for the help. Do you have any idea why the signals are ...
by sazanof
Tue Feb 25, 2025 4:25 am
Forum: ESP-IDF
Topic: ESP32 - supported types of microsd cards
Replies: 19
Views: 9229

Re: ESP32 - supported types of microsd cards


Your scope signals are so bad that I am surprised you got any sd-cards to work. Whenever you see logic signals not at proper levels there is something wrong. It almost looks like mosi and miso are mixing somewhat -- do you have the 3.3V connected to the pullups? I did this once and then you have ...
by sazanof
Sat Feb 22, 2025 8:30 am
Forum: ESP-IDF
Topic: ESP32 - supported types of microsd cards
Replies: 19
Views: 9229

Re: ESP32 - supported types of microsd cards


In the logs of the working / failing card, the main difference I see, is the error code returned by the library when it tries to get the characteristics of the card. While the working card responses with 0x106 which means not supported, the failing card case shows 0x107 which means timeout ...
by sazanof
Sun Feb 16, 2025 10:31 am
Forum: ESP-IDF
Topic: ESP32 - supported types of microsd cards
Replies: 19
Views: 9229

Re: ESP32 - supported types of microsd cards

Friends, do you have any idea what's wrong with sd cards or their software support? Check out the pictures above that I sent. So far, the problem has remained the same.

Go to advanced search