WiFi roaming method and device, mobile terminal, and storage medium
View Patent ↗A WiFi roaming method and device, a mobile terminal, and a storage medium are provided. The method includes the following. When both the first WiFi module and the second WiFi module are in a connected state, the first WiFi module is connected with an access point (AP) operating at a first frequency band, and the second WiFi module is connected with an AP operating at a second frequency band, the first frequency band being not overlapped with the second frequency band, the first WiFi module to be in a first roaming restriction mode to restrict the first WiFi module to roam in the first frequency band.
1 . A WiFi roaming method performed by a mobile terminal having dual WiFi modules, the dual WiFi modules comprising a first WiFi module and a second WiFi module, the first WiFi module and the second WiFi module are each capable of operating in both a first frequency band and a second frequency band, the first WiFi module and the second WiFi module are capable of operating simultaneously, the method comprising:
controlling the first WiFi module to be in a first roaming restriction mode to restrict the first WiFi module to roam in the first frequency band, in response to both the first WiFi module and the second WiFi module being in a connected state, the first WiFi module being connected with an access point (AP) operating at the first frequency band, and the second WiFi module being connected with an AP operating at the second frequency band, the first frequency band being not overlapped with the second frequency band; and
controlling the second WiFi module to be in a second roaming restriction mode to restrict the second WiFi module to roam in the second frequency band; and
wherein the method further comprises:
switching the second WiFi module from a roaming restriction mode to a restriction release mode to release a roaming frequency-band restriction for the second WiFi module, in response to the second WiFi module being in the roaming restriction mode, the first WiFi module being in a disconnected state, and the second WiFi module being in the connected state.
2 . The method according to claim 1 , further comprising:
switching the first WiFi module from the roaming restriction mode to the restriction release mode to release a roaming frequency-band restriction for the first WiFi module, on condition that the first WiFi module is in the roaming restriction mode when the second WiFi module is in a disconnected state and the first WiFi module is in the connected state.
3 . The method according to claim 1 , wherein the second WiFi module is a main WiFi module, and the method further comprises:
controlling the second WiFi module to be in the restriction release mode to allow the second WiFi module to roam.
4 . The method according to claim 3 , further comprising:
after controlling the first WiFi module to be in the first roaming restriction mode to restrict the first WiFi module to roam in the first frequency band:
disconnecting the first WiFi module once the second WiFi module roams to the first frequency band.
5 . The method according to claim 3 , further comprising:
after controlling the first WiFi module to be in the first roaming restriction mode to restrict the first WiFi module to roam in the first frequency band:
controlling the first WiFi module to switch from the first roaming restriction mode to the second roaming restriction mode to restrict the first WiFi module to roam in the second frequency band, once the second WiFi module roams to the first frequency band.
6 . The method according to claim 1 , further comprising:
comparing a historical signal-transceiving capability of each of the first WiFi module and the second WiFi module in the second frequency band and selecting a WiFi module with a higher signal-transceiving capability to operate, once the first WiFi module is forced to be disconnected due to no available AP in the first frequency band near a mobile terminal with the dual WiFi modules.
7 . The method according to claim 6 , wherein the historical signal transceiving capability of the first WiFi module in the second frequency band is determined based on historical average transmission power of the first WiFi module in the second frequency band, historical average transmission delay of the first WiFi module in the second frequency band, a historical average packet loss rate of the first WiFi module in the second frequency band, a historical average downlink transmission rate of the first WiFi module in the second frequency band, and a historical average uplink transmission rate of the first WiFi module in the second frequency band.
8 . A mobile terminal, comprising:
a first WiFi module and a second WiFi module, wherein the first WiFi module and the second WiFi module are each capable of operating in both a first frequency band and a second frequency band, and the first WiFi module and the second WiFi module are capable of operating simultaneously;
a processor and a memory, wherein the memory is configured to store one or more programs, the one or more programs are configured to be executed by the processor, and the programs comprise instructions for executing:
controlling the first WiFi module to be in a first roaming restriction mode to restrict the first WiFi module to roam in the first frequency band in response to both the first WiFi module and the second WiFi module being in a connected state, the first WiFi module being connected with an access point (AP) operating at the first frequency band, and the second WiFi module being connected with an AP operating at the second frequency band, the first frequency band being not overlapped with the second frequency band; and
controlling the second WiFi module to be in a second roaming restriction mode to restrict the second WiFi module to roam in the second frequency band; and
wherein the programs further comprise instructions for executing:
switching the second WiFi module from a roaming restriction mode to a restriction release mode to release a roaming frequency-band restriction for the second WiFi module, in response to the second WiFi module being in the roaming restriction mode, the first WiFi module being in a disconnected state, and the second WiFi module being in the connected state.
9 . The mobile terminal according to claim 8 , wherein the programs further comprise instructions for executing:
switching the first WiFi module from the roaming restriction mode to the restriction release mode to release a roaming frequency-band restriction for the first WiFi module, on condition that the first WiFi module is in the roaming restriction mode when the second WiFi module is in a disconnected state and the first WiFi module is in the connected state.
10 . The mobile terminal according to claim 8 , wherein the second WiFi module is a main WiFi module, and the programs further comprise instructions for executing:
controlling the second WiFi module to be in the restriction release mode to allow the second WiFi module to roam.
11 . The mobile terminal according to claim 10 , wherein the programs further comprise instructions for executing:
after controlling the first WiFi module to be in the first roaming restriction mode to restrict the first WiFi module to roam in the first frequency band:
disconnecting the first WiFi module once the second WiFi module roams to the first frequency band.
12 . The mobile terminal according to claim 10 , wherein the programs further comprise instructions for executing:
after controlling the first WiFi module to be in the first roaming restriction mode to restrict the first WiFi module to roam in the first frequency band:
controlling the first WiFi module to switch from the first roaming restriction mode to the second roaming restriction mode to restrict the first WiFi module to roam in the second frequency band, once the second WiFi module roams to the first frequency band.
13 . The mobile terminal according to claim 8 , wherein the programs further comprise instructions for executing:
comparing a historical signal-transceiving capability of each of the first WiFi module and the second WiFi module in the second frequency band and selecting a WiFi module with a higher signal-transceiving capability to operate, once the first WiFi module is forced to be disconnected due to no available AP in the first frequency band near a mobile terminal.
14 . The mobile terminal according to claim 13 , wherein the historical signal transceiving capability of the first WiFi module in the second frequency band is determined based on historical average transmission power of the first WiFi module in the second frequency band, historical average transmission delay of the first WiFi module in the second frequency band, a historical average packet loss rate of the first WiFi module in the second frequency band, a historical average downlink transmission rate of the first WiFi module in the second frequency band, and a historical average uplink transmission rate of the first WiFi module in the second frequency band.
15 . A non-transitory computer-readable storage medium for storing a computer program for electronic data interchange, wherein the computer program causes a mobile terminal having a first WiFi module and a second WiFi module to execute:
controlling the first WiFi module to be in a first roaming restriction mode to restrict the first WiFi module to roam in a first frequency band in response to both the first WiFi module and the second WiFi module being in a connected state, the first WiFi module being connected with an access point (AP) operating at the first frequency band, and the second WiFi module being connected with an AP operating at a second frequency band; and wherein the first WiFi module and the second WiFi module are each capable of operating in both the first frequency band and the second frequency band, the first WiFi module and the second WiFi module are capable of operating simultaneously, and the first frequency band is not overlapped with the second frequency band; and
controlling the second WiFi module to be in a second roaming restriction mode to restrict the second WiFi module to roam in the second frequency band; and
wherein the computer program further causes the mobile terminal to execute:
switching the second WiFi module from a roaming restriction mode to a restriction release mode to release a roaming frequency-band restriction for the second WiFi module, in response to the second WiFi module being in the roaming restriction mode, the first WiFi module being in a disconnected state, and the second WiFi module being in the connected state.