ESP8266 Developer Zone The Official ESP8266 Forum 2016-08-18T11:32:59+08:00 https://bbs.espressif.com:443/feed.php?f=7&t=2594 2016-08-18T11:32:59+08:00 2016-08-18T11:32:59+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2594&p=8556#p8556 <![CDATA[Re: Station connection speed/time]]> Is there some way to tell the WIFI Station mode to go to a specific channel without scanning (I am not sure if this is happening thereby causing connection delays).

I will do a WireShark capture on the delays, so I can characterize the delays.

Is the calling sequence correct (the ones listed in this email). Is there anything else that can be done for speed up?

Statistics: Posted by narayan — Thu Aug 18, 2016 11:32 am


]]>
2016-08-17T10:19:04+08:00 2016-08-17T10:19:04+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2594&p=8533#p8533 <![CDATA[Re: Station connection speed/time]]>
The connection is authenticated by the router and it does play a decisive role in determining the connection time. If you want really fast connection, then you should try and avoid disconnection from the router if possible by using an appropriate sleep mode. But if power is a priority, you may try to optimize the network by setting the router to a fixed channel, disabling MAC authentication. This may further reduce the time, depending on how the router handles the requests.

Statistics: Posted by Guest — Wed Aug 17, 2016 10:19 am


]]>
2016-08-17T07:09:36+08:00 2016-08-17T07:09:36+08:00 https://bbs.espressif.com:443/viewtopic.php?t=2594&p=8528#p8528 <![CDATA[Station connection speed/time]]> The code uses these calls:

wifi_set_opmode (STATION_MODE)
wifi_station_get_config_default ()
wifi_station_set_config () /* used if the SSID and Pass are not the same from above */
wifi_station_set_auto_connect (1)
/* when not using dhcp */
wifi_set_ip_info ()
wifi_set_broadcast_if (3)
dns_set_server ()
wifi_station_connect ()

The time varies from 2 seconds to 12 seconds. The AP is a DLINK, and is very close the device (Signal strength is -33 dBm)

Please help with any suggestions on how I might speed up the connection.
We can use DHCP, but it only adds about 1 or 2 seconds extra compared to the 12+ seconds to connect.

1. Is the device doing a scan (can it remember the AP channel from before)?

Statistics: Posted by narayan — Wed Aug 17, 2016 7:09 am


]]>