STA_GOT_IP takes too long on WPA / WPA2.

cendev
Posts: 1
Joined: Sat Jul 14, 2018 12:32 pm

STA_GOT_IP takes too long on WPA / WPA2.

Postby cendev » Sat Jul 14, 2018 1:27 pm

Connecting to a WPA network takes too much time compared to ESP8266 modules. While it is possible for me to connect to a open network within a 0.3 to 0.5 second, it is 0.5 to 0.8 second to connect to a WEP and between 1.1 to 3.4 seconds to connect to WPA secured network. These results are with static ip and from boot to STA_GOT_IP.


While using 8266 modules I was able to wake up, connect to WiFi with WPA, connect to TCP server on the same LAN, Auth,Send,Get Replies, Interprete and sleep back in just a second, 1.4 seconds at max..

For Both I use Static IPs,

Tried both on arduino32 and IDF and the results are the same.

Are there any tips for me to reach STA_GOT_IP phase faster? Am I missing something?

User avatar
fly135
Posts: 606
Joined: Wed Jan 03, 2018 8:33 pm
Location: Orlando, FL

Re: STA_GOT_IP takes too long on WPA / WPA2.

Postby fly135 » Sat Jul 14, 2018 5:14 pm

I've been trying to get help from others to verify an issue I'm seeing. Do you see a time to connect difference between WPA and WPA2 (PSK)? I am seeing multiple (random from 0 to 15 observed) disconnects with 203 reason code when using WPA2 (vs WPA). Which of course just lengthens the time it takes to get connected.

John A

Deouss
Posts: 425
Joined: Tue Mar 20, 2018 11:36 am

Re: STA_GOT_IP takes too long on WPA / WPA2.

Postby Deouss » Sat Jul 14, 2018 5:50 pm

Small question - how to measure ticks and convert them to μs and ms?
Once someone posted code in asm how to read ticks

JLIspace
Posts: 4
Joined: Sun Feb 18, 2018 10:39 pm

Re: STA_GOT_IP takes too long on WPA / WPA2.

Postby JLIspace » Mon Mar 11, 2019 1:15 am

Hey, did you eventually solve the issue? Sometimes my esp32 takes up to 8 seconds for STA_GOT_IP to appear.. :/

regards

Who is online

Users browsing this forum: noweare and 179 guests