| CPC H04W 76/15 (2018.02) [G01S 5/0036 (2013.01); H04B 17/318 (2015.01); H04W 48/20 (2013.01)] | 20 Claims |

|
1. A device control method, applied to an electronic device, wherein the electronic device comprises a first Wi-Fi module and a second Wi-Fi module, and the device control method comprises:
detecting that the electronic device is in a state in which the electronic device is being connected to a first Wi-Fi network using the first Wi-Fi module;
in response to a request of connecting to a second Wi-Fi network using the second Wi-Fi module, acquiring an operating frequency and corresponding frequency band type associated with each of accessible access points for the second Wi-Fi module while the electronic device is connected to the first Wi-Fi network, the frequency band types at least comprising a 2.4 GHz band and a 5 GHz band;
in response to determining that the accessible access points for the second Wi-Fi module have different frequency band types, acquiring distances between the electronic device and the accessible access points for the second Wi-Fi module, and determining a target access point of the accessible access points for the second Wi-Fi module according to the distances, the operating frequencies of the accessible access points for the second Wi-Fi module, and a first operating frequency corresponding to the first Wi-Fi network; and
enabling a dual Wi-Fi function, by connecting to the target access point using the second Wi-Fi module while the electronic device is connected to the first Wi-Fi network using the first Wi-Fi module.
|