ESP8266 Developer Zone The Official ESP8266 Forum 2016-04-05T16:51:56+08:00 https://bbs.espressif.com:443/feed.php?f=66&t=1950 2016-04-05T16:51:56+08:00 2016-04-05T16:51:56+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1950&p=6345#p6345 <![CDATA[Re: Socke Accept takes 30 seconds on RTOS SDK 1.4.0]]>
The time it costed for connection depends on the network environment. If the network environment is good, it will take less time to create a connection.

You can try to ping the IP address. Or use Wireshark to capture the WiFi Packets for analysis.

Statistics: Posted by ESP_Faye — Tue Apr 05, 2016 4:51 pm


]]>
2016-03-29T02:47:01+08:00 2016-03-29T02:47:01+08:00 https://bbs.espressif.com:443/viewtopic.php?t=1950&p=6243#p6243 <![CDATA[【Feedback】Socke Accept takes 30 seconds on RTOS SDK 1.4.0]]>
- Wifi is configuread as an AP
- Static IP assigned (192.168.1.1)
- DHCP Server enabled

Then we made a very simple socket listening on port 80, using the standard socket programming functions: lwip_socket, lwip_bind, lwip_listen and lwip_accept on a thread created at boot.

Any client can successfully join the WiFi network and get an IP address from DHCP server (typically 192.168.1.2, the first available) but once we try to connect to socket listening on 192.168.1.1:80, it takes about 30 seconds to connect.

We don't think it's a matter of CPU performance because any other operation (join/leave wifi network, ping or whatever) is very quick. Only connecting to that listening port is so slow.

I don't think it's a matter of SDK 1.4.0 because we didn't try the same application on previous versions.

Statistics: Posted by cloudmonitor24 — Tue Mar 29, 2016 2:47 am


]]>