can ESP32 establish a HTTPS Access Point connection?

threeboys
Posts: 3
Joined: Mon Dec 02, 2019 7:42 pm

can ESP32 establish a HTTPS Access Point connection?

Postby threeboys » Mon Dec 02, 2019 10:18 pm

Hello team

I'm attempting to have my ESP32 generate a HTTPS Access Point connection. Can this be done with an ESP32?

I am using Platformio as my build environment running on a Raspberry Pi 4.
The source code can be found at the following github link: https://github.com/tsbiberdorf/httpsConnection.git

The code compiles and loads fine, but when I make the connection to my ESP32, the ESP32 resets with the following error message.

Thanks.

========== reboot message ==========
Rebooting...
ets Jun 8 2016 00:22:57

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
configure WifFi: 1
creating access point SecureConnection
Starting server...
Server ready.
dhcps: send_offer>>udp_sendto result 0
Guru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was u.
Core 0 register dump:
PC : 0x00000000 PS : 0x00060e30 A0 : 0x8012cb8d A1 : 0x3
A2 : 0x3ffcf9a4 A3 : 0x3ffcfbd8 A4 : 0x3ffce69c A5 : 0x3
A6 : 0x650a0a0a A7 : 0x6f0a0a0a A8 : 0x8012ca30 A9 : 0x3
A10 : 0x3ffcf9b4 A11 : 0x3ffcfbd8 A12 : 0x3ffb3d3c A13 : 0x0
A14 : 0x00000001 A15 : 0x00000006 SAR : 0x00000010 EXCCAUSE: 0x0
EXCVADDR: 0x00000000 LBEG : 0x4000c349 LEND : 0x4000c36b LCOUNT : 0x0

Backtrace: 0x00000000:0x3ffb3d30 0x4012cb8a:0x3ffb3d70 0x40135cd5:0x3ffb3d90 0x0

ESP_Sprite
Posts: 2910
Joined: Thu Nov 26, 2015 4:08 am

Re: can ESP32 establish a HTTPS Access Point connection?

Postby ESP_Sprite » Tue Dec 03, 2019 2:12 am

Any chance you can decode that backtrace?

mikemoy
Posts: 399
Joined: Fri Jan 12, 2018 9:10 pm

Re: can ESP32 establish a HTTPS Access Point connection?

Postby mikemoy » Tue Dec 03, 2019 2:57 pm

@threeboys is right, His example does not work, nor does this one. It resets as well.
https://techtutorialsx.com/2019/04/07/e ... eb-server/

threeboys
Posts: 3
Joined: Mon Dec 02, 2019 7:42 pm

Re: can ESP32 establish a HTTPS Access Point connection?

Postby threeboys » Wed Dec 04, 2019 3:21 pm

sorry for the delay, I had problems getting decoder working. Below is my decoded results:

PC: 0x00000000
EXCVADDR: 0x00000000

Decoding stack results
0x4012ca0a: handle_dhcp at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/apps/dhcpserver/dhcpserver.c line 1031
0x40138319: udp_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/udp.c line 401
0x4013d321: ip4_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4/ip4.c line 740
0x40142446: ethernet_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/netif/ethernet.c line 184
0x4012d2c7: tcpip_thread at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/tcpip.c line 135
0x40088b9d: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

threeboys
Posts: 3
Joined: Mon Dec 02, 2019 7:42 pm

Re: can ESP32 establish a HTTPS Access Point connection?

Postby threeboys » Thu Dec 05, 2019 3:32 pm

Here is a more complete back trace details:
Paste your stack trace hereGuru Meditation Error: Core 0 panic'ed (InstrFetchProhibited). Exception was unhandled.
Core 0 register dump:
PC : 0x00000000 PS : 0x00060e30 A0 : 0x8012ca0d A1 : 0x3ffb44f0
A2 : 0x3ffcf0c0 A3 : 0x3ffd0990 A4 : 0x3ffced3c A5 : 0x3ffced1c
A6 : 0x650a0a0a A7 : 0x6f0a0a0a A8 : 0x8012c8b0 A9 : 0x3ffb44b0
A10 : 0x3ffcf0d0 A11 : 0x3ffd0990 A12 : 0x3ffb44fc A13 : 0x00000044
A14 : 0x00000001 A15 : 0x00000006 SAR : 0x00000010 EXCCAUSE: 0x00000014
EXCVADDR: 0x00000000 LBEG : 0x4000c349 LEND : 0x4000c36b LCOUNT : 0x00000000

Backtrace: 0x00000000:0x3ffb44f0 0x4012ca0a:0x3ffb4530 0x40138319:0x3ffb4550 0x4013d321:0x3ffb4590 0x40142446:0x3ffb45b0 0x4012d2c7:0x3ffb45d0 0x40088b9d:0x3ffb4600


PC: 0x00000000
EXCVADDR: 0x00000000

Decoding stack results
0x4012ca0a: handle_dhcp at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/apps/dhcpserver/dhcpserver.c line 1031
0x40138319: udp_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/udp.c line 401
0x4013d321: ip4_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/core/ipv4/ip4.c line 740
0x40142446: ethernet_input at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/netif/ethernet.c line 184
0x4012d2c7: tcpip_thread at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/lwip/lwip/src/api/tcpip.c line 135
0x40088b9d: vPortTaskWrapper at /home/runner/work/esp32-arduino-lib-builder/esp32-arduino-lib-builder/esp-idf/components/freertos/port.c line 143

Who is online

Users browsing this forum: No registered users and 24 guests