Search found 10 matches

by Simon Leung
Tue Oct 08, 2019 9:03 am
Forum: ESP-IDF
Topic: Create two ports based on tcp_client example
Replies: 0
Views: 2118

Create two ports based on tcp_client example

Hi, Right now I am developing a software based on the blufi and tcp_client examples. As I have to set up two ports under the same IP address, one port for command sending and other for data transmission. Is there any one has any idea how to modify the tcp_client example to have 2 ports communication...
by Simon Leung
Thu Sep 26, 2019 8:36 am
Forum: ESP-IDF
Topic: Generate self-signed certificate and key in OTA.
Replies: 7
Views: 12213

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

It is ok now if I use OpenSSL 1.0.2d.
by Simon Leung
Thu Sep 26, 2019 4:53 am
Forum: ESP-IDF
Topic: mbedtls_ssl_handshake returned -0x7200
Replies: 10
Views: 17541

Re: mbedtls_ssl_handshake returned -0x7200

Hi filipESP,

How to change version openssl from 1.1.1 to 1.0.2 under msys2?
by Simon Leung
Wed Sep 25, 2019 9:55 am
Forum: ESP IoT Solution
Topic: esp_image: invalid segment length 0xffffffff
Replies: 11
Views: 37761

Re: esp_image: invalid segment length 0xffffffff

I also tried the native_ota_example. The result is just the same as the simple_ota_example. Then I tried to print out the error code from esp_ota_end, the error code, update_handle is 1503HEX.

Is there anyone got any idea of the meaning of this error code? Is there any solution to this issue?
by Simon Leung
Wed Sep 25, 2019 2:54 am
Forum: ESP-IDF
Topic: mbedtls_ssl_handshake returned -0x7200
Replies: 10
Views: 17541

Re: mbedtls_ssl_handshake returned -0x7200

Hi filipESP,

I think I have the same problem as the one you have before. I tried the OpenSSL version 1.0.2j and 1.1.01 And run it under CMD, it doesn't work in my case. Do you mind to provide more information of how you solve your problem please?

Thanks.
by Simon Leung
Mon Sep 23, 2019 9:37 am
Forum: ESP-IDF
Topic: Generate self-signed certificate and key in OTA.
Replies: 7
Views: 12213

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

Hi filipESP: I tried to use openssl 1.0.2. for both the certificate and the local server. When I run the simple_ota_example, there is an error message "esp-tls:Failed to connect to host (errno 113)". If I use the openssl in mintty and type in winpty openssl req -x509 -newkey rsa:2048 -keyout ca_key....
by Simon Leung
Mon Sep 23, 2019 7:48 am
Forum: ESP IoT Solution
Topic: esp_image: invalid segment length 0xffffffff
Replies: 11
Views: 37761

esp_image: invalid segment length 0xffffffff

When I run the simple_ota_example, I encountered the invalid segment length problem. The error message is "esp_image: invalid segment length 0xffffffff". Below is a capture from the development platform: Toolchain path: /opt/xtensa-esp32-elf/bin/xtensa-esp32-elf-gcc Toolchain version: crosstool-ng-1...
by Simon Leung
Fri Sep 20, 2019 4:11 am
Forum: ESP-IDF
Topic: Generate self-signed certificate and key in OTA.
Replies: 7
Views: 12213

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

you may try this for Windows user:

winpty openssl req -x509 -newkey rsa:2048 -keyout ca_key.pem -out ca_cert.pem -days 365 -nodes
by Simon Leung
Wed Sep 18, 2019 8:55 am
Forum: ESP-IDF
Topic: Generate self-signed certificate and key in OTA.
Replies: 7
Views: 12213

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

I have the same problem too. Is there any solution please?

Thanks.

Simon Leung
by Simon Leung
Tue Jun 25, 2019 9:32 am
Forum: ESP-IDF 中文讨论版
Topic: ESP-IDF 快速入门
Replies: 0
Views: 3862

ESP-IDF 快速入门

您好! 我是一个ESP32的新用家,我在用快速入门去安装ESP-IDF这个开发平台,我现在在用的是ESP32 DEVKIT V1 模块,OS 是Window 10. 我估计在连接ESP32 和 PC 时已有问题, 我在确认串口连接时,在PuTTY Configuration 选了 COM3, 115200 BAUD, 8 Data Bits, 1 Stop Bit, 按 Open 键时没有反应。 我改用了 Tera Term 时,便有以下的一大串信息在 Tera Term 上面打印出来 “rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOO...