Chat freely about anything...

User avatar
By rith87
#10952 @Athena, thanks for helping out.

Does your router encrypt as WPA2 ?
Yes, I believe so. Here's the output from
Code: Select alliwlist wlan0 scanning
:

Code: Select all...
                    IE: IEEE 802.11i/WPA2 Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
...
                    IE: WPA Version 1
                        Group Cipher : CCMP
                        Pairwise Ciphers (1) : CCMP
                        Authentication Suites (1) : PSK
...


maybe you could try the simplest code as http://bbs.espressif.com/viewtopic.php?f=10&t=144 whether it can connect to router succeed
I've flashed that code onto the chip but I'm not able to ping it. I guess I can add some code to init UART and see what else is going wrong there.
User avatar
By rith87
#10955 With UART enabled and the code from http://bbs.espressif.com/viewtopic.php?f=10&t=144, I have similar observations. I see wifi_station_get_connect_status() returning STATION_CONNECTING for a while and then it returns STATION_WRONG_PASSWORD. Finally, after a while, the wifi_station_get_connect_status() returns STATION_GOT_IP.

I just don't understand why it takes so long to connect to the wifi network. How long does it take for the folks here to connect to a wifi network?
User avatar
By Athena
#11073 :roll: :roll: :roll:

Not that long。。 usually got ip in 2 seconds..

Code: Select all12:00:11   2nd boot version : 1.3(b3)
12:00:11     SPI Speed      : 40MHz
12:00:11     SPI Mode       : QIO
12:00:11     SPI Flash Size : 4Mbit
12:00:11   jump to run user1
12:00:11   
12:00:11   mode : sta(18:fe:34:97:d5:7b)
12:00:11   add if0
12:00:11   scandone
12:00:11   add 0
12:00:11   aid 2
12:00:11   pm open phy_2,type:2 0 0
12:00:11   cnt
12:00:11   
12:00:11   connected with TL_AC750_24G, channel 9
12:00:11   dhcp client start...
12:00:13   ip:192.168.0.104,mask:255.255.255.0,gw:192.168.0.1