Search found 71 matches

by filipESP
Mon Sep 30, 2019 10:45 am
Forum: ESP-IDF
Topic: RSSI level from AP connected to the ESP station.
Replies: 3
Views: 5133

Re: RSSI level from AP connected to the ESP station.

In esp_wifi_types.h there is a struct: /** @brief Description of STA associated with AP */ typedef struct { uint8_t mac[6]; /**< mac address */ int8_t rssi; /**< current average rssi of sta connected */ uint32_t phy_11b:1; /**< bit: 0 flag to identify if 11b mode is enabled or not */ uint32_t phy_11...
by filipESP
Mon Sep 30, 2019 10:37 am
Forum: ESP-IDF
Topic: mbedtls_ssl_handshake returned -0x7200
Replies: 10
Views: 14726

Re: mbedtls_ssl_handshake returned -0x7200

You should to download the older version from openssl website. I don't know how to do it in CMD.
by filipESP
Fri Sep 20, 2019 8:03 am
Forum: ESP-IDF
Topic: Generate self-signed certificate and key in OTA.
Replies: 7
Views: 10504

Re: Generate self-signed certificate and key in OTA.

Just run opensll and enter this command: req -x509 -newkey rsa:2048 -keyout ca_key.pem -out ca_cert.pem -days 365
by filipESP
Thu Sep 19, 2019 7:21 am
Forum: ESP-IDF
Topic: Generate self-signed certificate and key in OTA.
Replies: 7
Views: 10504

Re: Generate self-signed certificate and key in OTA.

Try to instal opensll in version 1.0.2 and run it from console not msys.
by filipESP
Thu Sep 19, 2019 7:08 am
Forum: ESP-IDF
Topic: Stack usage.
Replies: 0
Views: 1749

Stack usage.

Hi,
I found info about component_compile_options(-fstack-usage) and #CFLAGS += -fstack-usage but after adding this instructions to makefile, it generate .su file for each module but not for total usage of stack.

How to get the total info?
by filipESP
Tue Sep 10, 2019 2:34 pm
Forum: ESP-IDF
Topic: mbedtls_ssl_handshake returned -0x7200
Replies: 10
Views: 14726

Re: mbedtls_ssl_handshake returned -0x7200

I resolved my problem.
Change version openssl from 1.1.1 to 1.0.2 helped me.
by filipESP
Tue Sep 10, 2019 6:36 am
Forum: ESP-IDF
Topic: mbedtls_ssl_handshake returned -0x7200
Replies: 10
Views: 14726

Re: mbedtls_ssl_handshake returned -0x7200

This expression is true: segment->data_len >= SIXTEEN_MB.
Is inside the verify_segment_header() function (esp_image_format.c file), which return return ESP_ERR_IMAGE_INVALID.
by filipESP
Mon Sep 09, 2019 2:52 pm
Forum: ESP-IDF
Topic: mbedtls_ssl_handshake returned -0x7200
Replies: 10
Views: 14726

Re: mbedtls_ssl_handshake returned -0x7200

It is getting better but next error is: I (6786) esp_https_ota: Starting OTA... I (6786) esp_https_ota: Writing to partition subtype 16 at offset 0x110000 I (6936) esp_https_ota: esp_ota_begin succeeded I (6936) esp_https_ota: Please Wait. This may take time I (6966) esp_https_ota: Connection closed...
by filipESP
Mon Sep 09, 2019 11:50 am
Forum: ESP-IDF
Topic: mbedtls_ssl_handshake returned -0x7200
Replies: 10
Views: 14726

Re: mbedtls_ssl_handshake returned -0x7200

OK, I resolve my issue but apears next:

E (6981) esp_ota_ops: OTA image has invalid magic byte (expected 0xE9, saw 0x45
E (7001) esp_https_ota: Error: esp_ota_write failed! err=0x0
E (7001) simple_ota_example: Firmware upgrade failed

I can't find any info about this error.
by filipESP
Mon Sep 09, 2019 6:32 am
Forum: ESP-IDF
Topic: mbedtls_ssl_handshake returned -0x7200
Replies: 10
Views: 14726

mbedtls_ssl_handshake returned -0x7200

Hi, I have a problem as below. I (5141) simple_ota_example: Starting OTA example I (5141) simple_ota_example: Connected to WiFi network! Attempting to connect to server... E (5171) esp-tls: mbedtls_ssl_handshake returned -0x7200 I (5171) esp-tls: Certificate verified. E (5171) esp-tls: Failed to ope...