Station connection speed/time

narayan
Posts: 14
Joined: Tue Feb 02, 2016 5:23 am

Station connection speed/time

Postby narayan » Wed Aug 17, 2016 7:09 am

I am building a WiFi remote control that needs to connect very quickly to the Network (with Zentri modules based on ESP8266)
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)?

pratik

Re: Station connection speed/time

Postby pratik » Wed Aug 17, 2016 10:19 am

Hello,

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.

narayan
Posts: 14
Joined: Tue Feb 02, 2016 5:23 am

Re: Station connection speed/time

Postby narayan » Thu Aug 18, 2016 11:32 am

This is a "remote control" that is a consumer product. We have no control over the type of APs found on Customer Premises (peoples houses). The device has a battery that must last for 6+ months, so power is very important.
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?

Who is online

Users browsing this forum: No registered users and 14 guests