WPA2 EAP TLS: Increasing speed to connect

nubiator
Posts: 1
Joined: Sun Jun 02, 2019 10:37 am

WPA2 EAP TLS: Increasing speed to connect

Postby nubiator » Sun Jun 02, 2019 8:58 pm

Hi there,

I am currently working on a project with the ESP32 (IDF 3.1.4) and WPA2 Enterprise network.

In my scenario I am using 4096 bit certificates. The ESP32 connects to the AP, sends a message via http and goes to deepsleep.

The certification process however takes up to two seconds. Is there a way to speed up the process?

It seems that the ESP is sending the certificate in chunks of 1000 bytes. Can I increase the size to speed up the process?

Question:
- Is there a way to speed up the WPA2 EAP TLS certification process (I am currently using the WPA2 Example)
- The Wifi Events seem to be a bit strange. Can I speed up something here? (After connecting to wifi i disconnect to AP)

Many thanks.

Best Regards
Nubiator

Example:

Code: Select all

I (560) [Wifi] Event: 2
I (560) [Wifi] Establish Wifi connection
I (690) wifi: new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (1670) wifi: state: init -> auth (b0)
I (1680) wifi: state: auth -> assoc (0)
I (1690) wifi: state: assoc -> run (10)
I (1690) wpa: wpa2_task prio:2, stack:6656

I (6740) wpa: SSL: Need 4486 bytes more input data
I (6750) wpa: SSL: Need 3462 bytes more input data
I (6760) wpa: SSL: Need 2438 bytes more input data
I (6760) wpa: SSL: Need 1414 bytes more input data
I (6770) wpa: SSL: Need 390 bytes more input data
I (9730) wpa: >>>>>wpa2 FINISH

I (9750) wifi: connected with XXX
I (9750) wifi: pm start, type: 1

I (9750) [Wifi] Event: 4
I (10380) event: sta ip: YYY
I (10380) [Wifi] Event: 7
I (11800) [WIFI] Disconnecting...
I (11800) wifi: state: run -> init (0)
I (11810) wifi: pm stop, total sleep time: 1326002 us / 2059794 us

I (11810) wifi: new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1
I (11820) [Wifi] Event: 5
W (11820) [Wifi] Disconnected (reason=8)
I (11920) [Wifi] Event: 3
I (11920) wifi: flush txq
I (11920) wifi: stop sw txq
I (11920) wifi: lmac stop hw txq
I (12020) wifi: Deinit lldesc rx mblock:10
Sometimes I also see this (unable to connect to the AP) > Restarting the client helps:

Code: Select all

I (441) wifi: new:<6,0>, old:<1,0>, ap:<255,255>, sta:<6,0>, prof:1
I (1011) wifi: state: init -> auth (b0)
I (1011) wifi: state: auth -> assoc (0)
I (1021) wifi: state: assoc -> run (10)
I (1021) wpa: wpa2_task prio:2, stack:6656

I (1041) wpa: SSL: Need 4486 bytes more input data
I (1051) wpa: SSL: Need 3462 bytes more input data
I (1061) wpa: SSL: Need 2438 bytes more input data
I (1081) wpa: SSL: Need 1414 bytes more input data
I (1101) wpa: SSL: Need 390 bytes more input data
I (16521) wifi: bcn_timout,ap_probe_send_start
I (19021) wifi: ap_probe_send over, resett wifi status to disassoc
I (19021) wifi: state: run -> init (c800)
I (19021) wifi: new:<6,0>, old:<6,0>, ap:<255,255>, sta:<6,0>, prof:1

Who is online

Users browsing this forum: Baldhead, Google [Bot] and 147 guests