WO2018019058A1 - Wireless access point switching method and apparatus, and terminal - Google Patents

Wireless access point switching method and apparatus, and terminal Download PDF

Info

Publication number
WO2018019058A1
WO2018019058A1 PCT/CN2017/089373 CN2017089373W WO2018019058A1 WO 2018019058 A1 WO2018019058 A1 WO 2018019058A1 CN 2017089373 W CN2017089373 W CN 2017089373W WO 2018019058 A1 WO2018019058 A1 WO 2018019058A1
Authority
WO
WIPO (PCT)
Prior art keywords
network
network card
wireless access
access point
card
Prior art date
Application number
PCT/CN2017/089373
Other languages
French (fr)
Chinese (zh)
Inventor
张庆立
丁雪华
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2018019058A1 publication Critical patent/WO2018019058A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/08Reselecting an access point
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/24Reselection being triggered by specific parameters
    • H04W36/30Reselection being triggered by specific parameters by measured or perceived connection quality data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/34Reselection control
    • H04W36/36Reselection control by user or terminal equipment

Definitions

  • This application relates to, but is not limited to, the field of wireless local area network technology.
  • Wireless-Fidelity is one of the most commonly used functions of smart terminals.
  • the performance of the device greatly affects the user experience.
  • the Wi-Fi of the terminal after connecting a hotspot, usually does not automatically connect to other hotspots before disconnecting the connected hotspots, or simply switches according to the signal strength.
  • the hotspot signal being connected causes the network quality to deteriorate due to many users or other factors, the terminal cannot automatically switch the currently connected hotspot to other hotspots with better network quality, thereby affecting the user experience.
  • the present invention provides a wireless access point switching method, device, and terminal, to solve the problem that the terminal cannot automatically switch the current access point to an access point with better network quality in the related art.
  • a wireless access point switching method includes:
  • Each of the network cards respectively detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality parameter between the wireless access point and the target server;
  • the network quality detected by each of the network cards is used as one of the determining factors, and the preset switching condition is determined, and the working network card and the standby network card to be switched are determined, and the switching is completed according to the determination result.
  • the determining factor further includes a signal quality
  • the method further includes after the at least two network cards configured to establish a communication connection with at least two wireless access points that meet an access condition.
  • Each of the network cards respectively detects a signal quality of a wireless access point corresponding to the network card
  • the working network card and the standby network card to be switched are determined and the handover is completed.
  • the preset switching condition includes:
  • the network quality detected by at least one standby network card is better than the network quality detected by at least one working network card.
  • each of the network cards respectively detects network quality of the wireless access point corresponding to the network card, including:
  • Each of the network cards respectively detects one or more of a network delay, a packet loss rate, a theoretical bandwidth, and an actual bandwidth of the wireless access point corresponding to the network card.
  • the at least two network cards of the configuration include:
  • At least two virtual NICs created by a wireless network card At least two virtual NICs created by a wireless network card.
  • the method further includes:
  • a wireless access point switching device includes:
  • a communication module configured to: establish, by using at least two network cards configured, a communication connection with at least two wireless access points that meet an access condition, wherein at least one of the network cards is configured as a working network card, At least one of the network cards is set as a backup network card;
  • the network quality detecting module is configured to: each of the network cards respectively detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality between the wireless access point and the target server;
  • the access point switching module is configured to: determine the network quality detected by each of the network cards as one of the determining factors, determine the preset switching condition, and determine the working network card and the standby network card to be switched when the switching is required, according to the judgment The result is completed.
  • the determining factor further includes a signal quality
  • the device further includes:
  • a signal quality detecting module configured to: after the communication module establishes a communication connection with at least two wireless access points satisfying an access condition by using at least two network cards configured, each of the network cards respectively detects a network card corresponding to the network card Signal quality of the wireless access point;
  • the signal quality judging module is configured to: determine, according to the signal quality detected by each of the network cards, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
  • the access point switching module is further configured to: when the signal quality determining module determines that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, determine the working network card and the standby network card to be switched. Complete the switch.
  • the preset switching condition includes:
  • the network quality detected by at least one standby network card is better than the network quality detected by at least one working network card.
  • the device further includes:
  • the network card configuration module is configured to: configure the at least two network cards
  • the network card configuration module configures the at least two network cards, including:
  • a terminal comprising: the wireless access point switching device according to any one of the preceding claims.
  • a computer readable storage medium having a computer readable storage medium stored therein Executing an instruction, when the processor executes the computer executable instruction, performing the following operations:
  • Each of the network cards respectively detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality between the wireless access point and the target server;
  • the network quality detected by each of the network cards is used as one of the determining factors, and the preset switching condition is determined, and the working network card and the standby network card to be switched are determined, and the switching is completed according to the determination result.
  • the determining factor further includes a signal quality, and when the processor executes the computer executable instruction, performing the following operations:
  • Each of the network cards respectively detects a signal quality of a wireless access point corresponding to the network card
  • the working network card and the standby network card to be switched are determined and the handover is completed.
  • the wireless access point switching method, device, and terminal provided by the embodiment of the present invention establish a communication connection with at least two wireless access points that meet the access condition by using at least two network cards, where at least one network card is set as a working network card.
  • the remaining at least one network card is set as a standby network card; each network card detects the network quality of the wireless access point corresponding to the network card, and determines the network quality detected by each network card as one of the determining factors, and determines the preset switching condition, and determines Work network card and backup to be switched
  • the network card is used to complete the handover according to the judgment result.
  • the embodiment of the present invention enables the terminal to automatically switch to the access point with better network quality for service transmission when the network quality of the currently connected access point is deteriorated.
  • FIG. 1 is a flowchart of a method for switching a wireless access point according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another method for switching a wireless access point according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of a handover scenario of a method for switching a wireless access point according to an embodiment of the present disclosure
  • FIG. 4 is a schematic diagram of another handover scenario of a method for switching a wireless access point according to an embodiment of the present disclosure
  • FIG. 5 is a schematic structural diagram of a wireless access point switching apparatus according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of another wireless access point switching apparatus according to an embodiment of the present invention.
  • FIG. 1 is a schematic diagram of a wireless access point according to an embodiment of the present invention.
  • the method for switching the wireless access point includes the following steps, namely, S110 to S130:
  • At least two network cards may be configured in advance for the terminal.
  • at least two network cards configured in the embodiment of the present invention may be a wireless network card; or at least two virtual network cards virtualized by one wireless network card, thereby establishing a communication connection with the access point through the virtual network card to implement services. transmission.
  • the network card and the wireless access point may have a one-to-one correspondence, wherein at least one network card is configured as a working network card, and the remaining at least one network card is configured as a standby network card.
  • the terminal will not detect the available wireless access points in the real-time through the network card, and the corresponding communication connection will not be established with the wireless access point. Therefore, the communication connection is established.
  • the premise is that the user turns on the automatic network selection function, or the terminal automatically turns on the function.
  • the access condition in the embodiment of the present invention refers to a wireless access point that can cover the terminal and can be normally connected, and each configured network card establishes a communication connection with the one-to-one corresponding wireless access point, in actual
  • one wireless access point can also correspond to multiple network cards, and each network card communicates with the same wireless access point.
  • at least one network card of the configured network card is set as a working network card, and at least one of the remaining network cards is set as a standby network card, the working network card is used for service transmission, and the communication connection is maintained; the standby network card also maintains a communication connection, but is not used for transmission service.
  • the working network card When the working network card network quality is poor, the working network card is switched to the standby network card, and the original standby network card is switched to the working network card, and the service network card continues to transmit the service, because the working network card (that is, the standby network card before the switching) is always held. Communication connection, and only the state of the network card is switched (that is, the working network card is switched to the standby network card, and the standby network card is switched to the working network card), so that the subsequent service is directly transmitted through the switched working network card and its corresponding wireless access point, thereby The maximum guarantee that the terminal service will not be interrupted due to the switching of the access point.
  • Each network card separately detects network quality of a wireless access point corresponding to the network card.
  • the configured at least two network cards respectively detect the network quality of the wireless access point corresponding thereto, and select one wireless access point to perform handover according to the detected network quality.
  • the network quality is the quality of service communication between the wireless access point and the target server, that is, each network card check
  • the quality of the communication between the wireless access point and the target server is measured.
  • the network quality may also be the quality of service communication between the wireless access point and the network card.
  • the implementation manner of S120 in the embodiment of the present invention may include: each network card separately detecting one of a network delay, a packet loss rate, a theoretical bandwidth, and an actual bandwidth of a wireless access point corresponding to the network card. Multiple.
  • network quality is measured by network quality detection indicators such as network delay, packet loss rate, theoretical bandwidth, and actual bandwidth, so as to ensure that the selected wireless access point is the access point with the best connection quality, thereby maximizing the degree.
  • the network after the handover is guaranteed to be the optimal network.
  • S130 Determine the network quality detected by each network card as one of the determining factors, determine the preset switching condition, determine the working network card and the standby network card to be switched, and complete the switching according to the determination result.
  • the network quality is evaluated, for example, by network detection indicators such as network delay, packet loss rate, theoretical bandwidth, and actual bandwidth, to determine whether the network quality of the wireless access point corresponding to the backup network card is currently connected.
  • the wireless access point network is of good quality, providing more efficient data for network switching.
  • the wireless access point switching method provided by the embodiment of the present invention establishes a communication connection with at least two wireless access points that meet the access condition by using at least two network cards, wherein at least one network card is set as a working network card, and at least one other network card is configured.
  • the network card and the backup network card are used to complete the handover according to the judgment result.
  • the terminal can automatically switch to the access point with better network quality to perform service transmission when the network quality of the currently connected access point is deteriorated.
  • the process of network switching since each network card and the access point have established a communication connection, only the state of the network card needs to be switched, for example, the working network card is switched to the standby network card, and the standby network card is switched to the working network card, and the communication does not need to be reestablished. Connection, you can ensure that the terminal's business will not be cut as much as possible. Interrupted, so as to enhance the user experience.
  • the foregoing preset switching condition may include: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card. That is to say, the network quality is used as one of the determining factors to determine the preset switching condition, that is, according to the network quality and other determining factors, whether the network quality of the wireless access point corresponding to the standby network card is better than the wireless access corresponding to the working network card.
  • the network quality of the point In practical applications, it is not necessary to require an alternate network card.
  • the network quality of the wireless access point is better than the network quality of the wireless access point corresponding to the current working network card, as long as the network quality of the wireless access point corresponding to the standby network card is better than the network quality of the wireless access point corresponding to the current working network card.
  • the packet loss rate of the wireless access point corresponding to the current working network card is low, but the network delay, the actual bandwidth, and the theoretical bandwidth are both poor, and the network delay of the wireless access point corresponding to one network card in the standby network card,
  • the actual bandwidth is better than the network delay and actual bandwidth of the current wireless access point, but the packet loss rate is higher than the current packet loss rate of the wireless access point; in the case where the packet loss rate is not high, the The network quality of the wireless access point corresponding to the backup network card is better than the network quality of the current wireless access point. Therefore, the measurement indicators such as the network quality of each wireless access point can be comprehensively considered, and the most suitable wireless access point can be selected for switching.
  • the actual switch is the network card, that is, the current working network card is switched to the standby network card, and the standby network card to be switched is switched to the working network card for service transmission, so as to ensure that the service of the terminal is not caused by the network card to the greatest extent. Switched and interrupted.
  • the embodiment of the present invention may also consider whether the terminal currently performs continuous network services such as downloading. If the continuous network service is performed, the network service may be temporarily interrupted, and the network connection is automatically Continue to complete the download.
  • the wireless access point switching method provided by the implementation of the present invention can ensure that the service is not interrupted by the network switching to the greatest extent, it still has a small impact on the continuous network service, and therefore, the continuous network is not downloaded.
  • the network performs fast switching in the background, and the temporary interruption of the network is basically invisible to the user, so that the user has a good use experience.
  • the working network card includes at least one, and the service network card also includes at least one.
  • the working network card includes at least two, when some network cards in the working network card have a network quality deterioration, the network quality may be deteriorated.
  • the communication connection is always established with the corresponding wireless access point, and is in a standby state capable of performing service transmission at any time, and once the network quality is detected is better than the network corresponding to the wireless access point of the current working network card.
  • the subsequent service directly transmits the service through the switched standby network card, thereby maximally avoiding the network interruption caused by switching from the current wireless access point to the next wireless access point.
  • FIG. 2 is a flowchart of another method for switching a wireless access point according to an embodiment of the present invention.
  • the signal quality may be detected, such as detecting the signal strength of each wireless access point.
  • the method provided by the embodiment of the present invention may further include the following steps, that is, S140 to S160:
  • Each network card separately detects a signal quality of a wireless access point corresponding to the network card
  • S150 Determine, according to the signal quality detected by each network card, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card.
  • the signal quality may be a service communication quality parameter between the wireless access point and the target server, and it is determined by the signal quality which wireless access point in each wireless access point has better connection quality.
  • the quality of the currently connected wireless access point connection so as to more accurately select an optimal wireless access point for network switching for more efficient data.
  • each network card After each network card detects the signal quality of the corresponding wireless access point, it is determined according to the signal quality detected by each network card whether there is at least one standby network card detecting signal quality better than at least one working network card detecting signal quality, when there is at least When the signal quality detected by an alternate network card is better than the signal quality detected by at least one working network card, the working network card and the standby network card to be switched are determined and the switching is completed, that is, the network card that needs to be switched, for example, which working network card needs to be switched to standby. As an alternative, the NIC needs to be switched to a working NIC for subsequent service transmission.
  • the foregoing preset switching condition includes: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card.
  • the network card is used as the standby network card to be switched, and the standby network card to be switched is switched to any one of the working network card replacement working network cards, or according to The priority is replaced.
  • any one of the network qualities is used as the standby network card to be switched, and the standby network card is switched to work.
  • the NIC replaces any one of the working NICs or replaces them according to priority.
  • the connection quality of the wireless access point is comprehensively evaluated according to the two dimensions, and the wireless access point with good network quality is not a letter.
  • the quality of the number is good.
  • the wireless access point with good signal quality is not good in network quality.
  • the overall better is the first choice for network switching, that is, the network quality and signal quality of the wireless access point to be switched are in the whole wireless.
  • the access point is not optimal, the overall connection quality of the two is better than other wireless access points. Therefore, when performing network switching, a suitable wireless access point is comprehensively evaluated for handover. For the same reason, for other judgment factors, it can also be used as a criterion for judging the connection quality of wireless access points.
  • the method provided by the embodiment of the present invention may further include: determining, according to the preset enabling condition, that the unconnected Whether the wireless access point can establish a communication connection with the network card; in the case where the communication connection can be established, communication is established by the at least two network cards with the already connected wireless access point and the wireless access point satisfying the enabling condition.
  • a setting item may be added to the terminal to set whether to allow the terminal to try to connect without being connected.
  • the wireless access point when the function is enabled, establishes a communication connection with the wireless access point through the network card, thereby ensuring the automatic switching of the wireless access point with better network quality. User information is secure.
  • the terminal can automatically switch from an access point with poor network quality to an access point with better network quality, and at the same time, can ensure that the service of the terminal is not caused by the network to the utmost extent. Switching and interrupting greatly enhances the user experience.
  • FIG. 3 is a schematic diagram of a handover scenario of the method for switching a wireless access point according to the embodiment.
  • the handover process in the application scenario is as follows:
  • the terminal is currently connected to the AP1 in the U1 location of the AP1 coverage area.
  • the user currently watches the TV through the application (Application: APP) on the terminal in the living room.
  • the terminal uses the working network card (wlan1) to connect to the AP1.
  • the corresponding APP also goes online through AP1.
  • the terminal detects the surrounding available wireless access points in real time, around The available wireless access point is AP2, and the terminal in the U1 position is also in the coverage of AP2.
  • the terminal creates a standby network card (wlan2) through the wireless network card, and attempts to connect to AP2 using wlan2.
  • AP2 since the signal strength of AP2 is detected to be weaker than that of AP1, AP2 is not used as a working network card for service transmission, but is used as a backup network card to connect to AP2 and detect the network quality of AP2.
  • the black arrow indicates the user's movement track, and the user moves to the U2 position of the AP2 coverage.
  • the working network card (wlan1) and the standby network card (wlan2) respectively detect the network quality of AP1 and AP2, for example, detecting both.
  • the network delay, packet loss rate, ideal bandwidth, and actual bandwidth are evaluated by the above indicators.
  • the network quality of AP2 is better than that of AP1.
  • the signal quality of AP2 is better than AP1 due to user mobility. Signal quality.
  • the standby network card (wlan2) corresponding to the AP2 is switched to the working network card (wlan2), and the AP1 is connected.
  • the corresponding working network card (wlan1) is switched to the standby network card (wlan1), and the working states of wlan1 and wlan2 are switched, and the work is switched to standby, and the standby is switched to work.
  • the network performs fast switching in the background. In the case of non-continuous network services, the temporary interruption of the network is basically invisible to the user.
  • both the working network card and the standby network card establish a communication connection with the corresponding wireless access points AP1 and AP2 in advance, and then the working network card performs service transmission, and the standby network card does not perform service transmission. However, it is also in the state of maintaining communication, and the service can be transmitted as needed. While the backup network card detects the network quality of the corresponding wireless access point AP2, AP1 also performs network quality detection during the service transmission process, and finally comprehensively evaluates the network quality of AP1 and AP2 to determine whether to perform network switching, so that the user obtains more Good network experience.
  • the wireless access point switching method determines a wireless access point with the best connection quality by comprehensively evaluating the network quality and signal quality of each wireless access point, and switches the state of the network card through the network card. Quickly switch the network to avoid re-establishing the communication connection after the handover, so as to ensure that the terminal service is not interrupted due to network switching.
  • the shopping mall scene is The method of wireless access point switching is described in detail.
  • AP1 and AP2 there are two wireless access points, AP1 and AP2, and both access point terminals have been connected.
  • the current AP1 corresponds to the working network card
  • the AP2 corresponds to the standby network card.
  • the working network card and the standby network card are virtual network cards created by a wireless network card.
  • the switching process of the wireless access point is implemented based on the scenario.
  • FIG. 4 is a schematic diagram of another switching scenario of the wireless access point switching method according to the embodiment.
  • the switching process in the application scenario is as follows:
  • the terminal is currently in the U1 position in the coverage area of AP1. It is detected that the signal strength of other nearby wireless access points AP2 is close to that of AP1.
  • the terminal first connects to AP1 using the working network card (wlan1).
  • the terminal detects the available wireless access points in real time, and the surrounding available wireless access points are AP2, and the terminals in the U1 position are also in the coverage of AP2, and the terminal is created through the wireless network card.
  • An alternate NIC wlan2 and try to connect to AP2 using wlan2. Because the signal strengths of AP1 and AP2 are similar, the terminal does not switch the status of the working network card (wlan1) corresponding to AP1, that is, the working network card is not switched to the standby network card.
  • the number of users connected to the AP1 wireless access point in the shopping mall is increasing. Although the signal strength of the AP1 is close to that of the AP2, the working network card (wlan1) detects the packet loss rate and network delay of the corresponding AP1. The network quality value is obviously increased, and the network quality value such as the packet loss rate and network delay of the corresponding AP2 is still at a reasonable level, from the signal strength, network delay, packet loss rate, and ideal.
  • a plurality of indicators, such as bandwidth and actual bandwidth, are comprehensively evaluated for AP1 and AP2, and the connection quality of AP2 is better than that of AP1.
  • the current coverage of AP1 is connected to four terminals, which are A1, A2, A3, and A4.
  • the U1 is connected to A1; the current coverage of AP2 is only connected to one terminal A5, because AP1 is connected.
  • the number of terminals is significantly higher than that of AP2.
  • the AP1 packet loss rate and network delay are significantly higher than AP2, so that the network quality of AP1 is lower than that of AP2.
  • the working network card (wlan1) corresponding to AP1 is switched to the standby network card (wlan1) for preparation for subsequent network switching, and the standby network card (wlan2) is switched to The working network card (wlan2) continues the subsequent service transmission.
  • the subsequent service directly transmits the service to the wireless access point AP2 through the working network card (wlan2), thereby avoiding re-establishing the communication connection with the wireless access point AP2, resulting in a long interruption of the network.
  • the network performs fast switching in the background.
  • the temporary interruption of the network is basically invisible to the user.
  • FIG. 5 is a schematic structural diagram of a wireless access point switching device according to an embodiment of the present invention.
  • the in point switching device can include:
  • the communication module 42 is configured to establish a communication connection with at least two wireless access points that meet the access condition by using the configured at least two network cards, wherein at least one network card is set as a working network card, and the remaining at least one network card is configured as a standby network card;
  • the network quality detecting module 43 is configured to: each network card separately detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality between the wireless access point and the target server;
  • the access point switching module 44 is configured to: determine the network quality detected by each network card as one of the determining factors, determine the preset switching condition, and determine the working network card and the standby network card to be switched when the switching needs to be performed, according to the judgment result. Complete the switch.
  • FIG. 6 is a schematic structural diagram of another wireless access point switching apparatus according to an embodiment of the present invention.
  • the foregoing determining factor further includes a signal quality.
  • the apparatus provided by the embodiment of the present invention may further include:
  • the signal quality detecting module 45 is configured to: after the communication module 42 establishes a communication connection with at least two wireless access points satisfying the access condition by the configured at least two network cards, each network card respectively detects the wireless connection corresponding to the network card Signal quality of the entry point;
  • the signal quality determining module 46 is configured to: determine, according to the signal quality detected by each network card, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
  • the access point switching module 44 is further configured to: when the signal quality determining module 46 determines that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, determine the working network card and the standby network card to be switched. Complete the switch.
  • the device provided by the embodiment of the present invention may further include: a network card configuration module 41, configured to: configure at least two network cards.
  • a network card configuration module 41 configured to: configure at least two network cards.
  • the network card configured by the network card configuration module 41 when the network card configured by the network card configuration module 41 is a virtual network card
  • the function of the network card configuration module 41 can be implemented by a wireless network card, that is, at least two virtual network cards are created by using a wireless network card.
  • the network card configuration module 41 can also integrate at least two wireless network cards in the terminal, and perform at least two wireless network cards. Network switching.
  • the function of the communication module 42 may be implemented by a WiFi module, where the WIFI module may include a hardware module and a corresponding driving module, and provide a WiFi path to communicate with the access point.
  • the WiFi module may include a hardware module and a corresponding driving module, and provide a WiFi path to communicate with the access point.
  • At least two virtual network card interfaces can be virtualized through the WiFi module, one of which is set as a working network card to provide service transmission service for applications in the terminal, and the remaining network card interfaces are set as standby network cards for detecting network quality and signal quality of other wireless access points. And stay connected, but not used for business transfers.
  • the functions implemented by the network quality detecting module 43, the access point switching module 44, the signal quality detecting module 45, and the access point switching module 46 can be completed by the processor.
  • the network card and the wireless access point may have a one-to-one correspondence, wherein at least one network card is set as a working network card, and the remaining at least one network card is configured as a standby network card.
  • the terminal will not detect the available wireless access points in the real-time through the network card, and the corresponding communication connection will not be established with the wireless access point. Therefore, the communication connection is established.
  • the premise is that the user turns on the automatic network selection function, or the terminal automatically turns on the function.
  • the access condition in the embodiment of the present invention refers to a wireless access point that can cover the terminal and can be normally connected, and each configured network card establishes a communication connection with the one-to-one corresponding wireless access point.
  • one wireless access point may also correspond to multiple network cards, and each network card communicates with the same wireless access point.
  • at least one network card of the configured network card is set as a working network card, and at least one of the remaining network cards is set as a standby network card, the working network card is used for service transmission, and the communication connection is maintained; the standby network card also maintains a communication connection, but is not used for transmission service.
  • the working network card When the working network card network quality is poor, the working network card is switched to the standby network card, and the original standby network card is switched to the working network card, and the service network card continues to transmit the service, because the working network card (that is, the standby network card before the switching) is always held. Communication connection, and only the state of the network card is switched (that is, the working network card is switched to the standby network card, and the standby network card is switched to the working network card), so that the subsequent service is directly transmitted through the switched working network card and its corresponding wireless access point, thereby Maximum guarantee of terminal business It will be interrupted due to the switching of the access point.
  • the configured at least two network cards respectively detect the network quality of the wireless access point corresponding thereto, and select one wireless access point to perform handover according to the detected network quality.
  • the network quality is the quality of service communication between the wireless access point and the target server, that is, each network card detects the quality of service communication between the wireless access point and the target server.
  • the network quality may also be the quality of service communication between the wireless access point and the network card.
  • the method for detecting the network quality by the network quality detecting module 43 in the embodiment of the present invention may include: each network card separately detecting a network delay, a packet loss rate, a theoretical bandwidth, and a wireless access point corresponding to the network card. One or more of the actual bandwidth.
  • network quality is measured by network quality detection indicators such as network delay, packet loss rate, theoretical bandwidth, and actual bandwidth, so as to ensure that the selected wireless access point is the access point with the best connection quality, thereby maximizing the degree.
  • the network after the handover is guaranteed to be the optimal network.
  • the network quality involved in the access point switching module 44 of the embodiment of the present invention is evaluated by network detection indicators such as network delay, packet loss rate, theoretical bandwidth, and actual bandwidth, to determine that the backup network card corresponds to the wireless connection. Whether the network quality of the ingress is better than the quality of the currently connected wireless access point network, thus providing more efficient data for network switching.
  • network detection indicators such as network delay, packet loss rate, theoretical bandwidth, and actual bandwidth
  • the foregoing preset switching condition may include: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card. That is to say, the network quality is used as one of the determining factors to determine the preset switching condition, that is, according to the network quality and other determining factors, whether the network quality of the wireless access point corresponding to the standby network card is better than the wireless access corresponding to the working network card. The network quality of the point.
  • the network quality of the wireless access point corresponding to the secondary network card is not necessarily higher than the network quality of the wireless access point corresponding to the current working network card, as long as the network quality of the wireless access point corresponding to the standby network card corresponds to the current working network card.
  • the network quality of the wireless access point is OK.
  • the packet loss rate of the wireless access point corresponding to the current working network card is low, but the network delay, the actual bandwidth, and the theoretical bandwidth are both poor, and the network delay of the wireless access point corresponding to one network card in the standby network card,
  • the actual bandwidth is better than the network delay and actual bandwidth of the current wireless access point, but the packet loss rate is higher than the current packet loss rate of the wireless access point; in the case where the packet loss rate is not high, the The network quality of the wireless access point corresponding to the backup network card is better than the current wireless access.
  • the network quality of the point Therefore, the measurement indicators such as the network quality of each wireless access point can be comprehensively considered, and the most suitable wireless access point can be selected for switching.
  • the actual switch is the network card, that is, the current working network card is switched to the standby network card, and the standby network card to be switched is switched to the working network card for service transmission, so as to ensure that the service of the terminal is not caused by the network card to the greatest extent. Switched and interrupted.
  • the embodiment of the present invention may also consider whether the terminal currently performs continuous network services such as downloading. If the continuous network service is performed, the network service may be temporarily interrupted, and the network connection is automatically Continue to complete the download.
  • the wireless access point switching method provided by the implementation of the present invention can ensure that the service is not interrupted by the network switching to the greatest extent, it still has a small impact on the continuous network service, and therefore, the continuous network is not downloaded.
  • the network performs fast switching in the background, and the temporary interruption of the network is basically invisible to the user, so that the user has a good use experience.
  • the signal quality in addition to detecting the network quality by the network quality detecting module 43, the signal quality may be detected by the signal quality detecting module 45, such as detecting the signal strength of each wireless access point. .
  • the signal quality may be a service communication quality parameter between the wireless access point and the target server, by which the quality of the connection of each wireless access point is better than the currently connected wireless access point. The quality of the connection allows for a more precise selection of an optimal wireless access point for network switching for more efficient data.
  • each network card After each network card detects the signal quality of the corresponding wireless access point, it is determined according to the signal quality detected by each network card whether there is at least one standby network card detecting signal quality better than at least one working network card detecting signal quality, when there is at least When the signal quality detected by an alternate network card is better than the signal quality detected by at least one working network card, the working network card and the standby network card to be switched are determined and the switching is completed, that is, the network card that needs to be switched, for example, which working network card needs to be switched to standby. As an alternative, the NIC needs to be switched to a working NIC for subsequent service transmission.
  • the foregoing preset switching condition includes: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card.
  • the network card is used as the standby network card to be switched, and the standby network card to be switched is switched to any one of the working network card replacement working network cards, or according to Priority is replaced;
  • the network quality detected by the alternate NIC is present to When two network qualities are better than the at least one working network card detection, any one of the network quality is used as the standby network card to be switched, and the standby network card is switched to any one of the working network card replacement working network cards, or according to the priority. replace.
  • whether the unconnected wireless access point can be connected to the network card may be determined according to a preset enabling condition.
  • Establishing a communication connection in the case of being able to establish a communication connection, establishing communication with the already connected wireless access point and the wireless access point satisfying the enabling condition by at least two network cards, in practical applications, considering unconnected Wireless access points (including unconnected open wireless access points) may have security risks. Therefore, you can add a setting item to the terminal to set whether to allow the terminal to try to connect to the unconnected wireless access point.
  • the network card establishes a communication connection with the wireless access point, thereby ensuring user information security in the case of automatically switching wireless access points with better network quality.
  • the wireless access point switching device provided by the embodiment of the present invention can ensure that the terminal automatically connects or switches to the most suitable wireless access point, providing the best network access service for the user, and at the same time, during the network switching process, because only Switch the status of the network card. For example, if the working network card is switched to the standby network card, the backup network card is switched to the working network card. It is not necessary to establish a communication connection with the access point through the network card after the network is switched, so as to ensure that the service of the terminal is not caused by the network switching. And interrupt, thereby improving the user's network experience.
  • the embodiment of the invention further provides a terminal, which comprises the wireless access point switching device in any of the embodiments shown in FIG. 5 and FIG.
  • the terminal can be a terminal capable of WiFi connection, such as a smart phone, a tablet computer, or a notebook computer.
  • At least one application is installed in the terminal, and each application needs to establish communication with the wireless access point through the WiFi module, thereby realizing service transmission.
  • At least two virtual network cards are created in the WiFi module, and the terminal provides network services for each application through the virtual network card.
  • An embodiment of the present invention further provides a computer readable storage medium having stored therein computer executable instructions, and when the processor executes the computer executable instructions, performing the following operations, namely, S1 to S3:
  • S1 configured by using at least two network cards and at least two wireless access points that meet the access conditions.
  • a communication connection wherein at least one network card is set as a working network card, and the remaining at least one network card is set as a standby network card.
  • the at least two network cards configured in the embodiment of the present invention may include: at least two configured wireless network cards; or at least two virtual network cards created by one wireless network card.
  • Each network card detects the network quality of the wireless access point corresponding to the network card, and the network quality is the quality of service communication between the wireless access point and the target server.
  • the preset switching condition in the embodiment of the present invention includes: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card.
  • the determining factor further includes a signal quality, and when the processor executes the computer executable instruction, after S1, performing the following operations, that is, S4 to S6:
  • Each network card separately detects a signal quality of a wireless access point corresponding to the network card
  • S5. Determine, according to the signal quality detected by each network card, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
  • performing the implementation of S2 may include:
  • Each network card detects one or more of a network delay, a packet loss rate, a theoretical bandwidth, and an actual bandwidth of the wireless access point corresponding to the network card.
  • the processor executes the computer executable instruction
  • the wireless access point that satisfies the access condition includes the unconnected wireless access point
  • the following operation is performed, that is, the S7 ⁇ S8:
  • the wireless access point establishes a communication connection.
  • all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
  • the devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
  • the device/function module/functional unit in the above embodiment When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium.
  • the above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
  • At least two network cards are configured to establish a communication connection with at least two wireless access points that meet the access conditions, wherein at least one network card is set as a working network card, and at least one other network card is set as a standby network card; each network card is separately configured. Detecting the network quality of the wireless access point corresponding to the network card, determining the network quality detected by each network card as one of the determining factors, determining the preset switching condition, and determining the working network card and the standby network card to be switched, thereby determining the result according to the judgment The handover is completed.
  • the terminal can automatically switch to an access point with better network quality for service transmission when the network quality of the currently connected access point is deteriorated, and in addition, the network is switched.
  • the network is switched.
  • the working network card is switched to the standby network card, and the standby network card is switched to the working network card. There is no need to re-establish the communication connection, which can ensure that the terminal's service is not interrupted due to network switching, thereby improving the user experience.

Abstract

A wireless access point switching method and apparatus, and a terminal. The wireless access point switching method comprises: establishing a communication connection with at least two wireless access points satisfying an access condition by means of at least two configured network cards, wherein at least one of the network cards is set as a working network card, and the remaining at least one network card is set as a standby network card; each of the network cards respectively detecting the network quality of a wireless access point corresponding to the present network card; and using the network quality detected by each network card as one of determination factors to determine a pre-set switching condition, and determining a working network card and a standby network card to be switched, so as to complete switching according to a determination result.

Description

一种无线接入点切换方法、装置及终端Wireless access point switching method, device and terminal 技术领域Technical field
本申请涉及但不限于无线局域网技术领域。This application relates to, but is not limited to, the field of wireless local area network technology.
背景技术Background technique
无线保真(Wireless-Fidelity,简称为:Wi-Fi)作为智能终端最常用的功能之一,性能的好坏非常影响用户的体验。相关技术中终端的Wi-Fi在连接一个热点之后,在断开已连接的热点之前通常不会自动连接其他热点,或者只是根据信号强度进行切换。当正在连接的热点信号因为使用者较多或其他因素导致网络质量变差时,终端无法自动将当前连接的热点切换至其他网络质量更好的热点,从而影响用户体验。Wireless-Fidelity (Wi-Fi for short) is one of the most commonly used functions of smart terminals. The performance of the device greatly affects the user experience. In the related art, after connecting a hotspot, the Wi-Fi of the terminal usually does not automatically connect to other hotspots before disconnecting the connected hotspots, or simply switches according to the signal strength. When the hotspot signal being connected causes the network quality to deteriorate due to many users or other factors, the terminal cannot automatically switch the currently connected hotspot to other hotspots with better network quality, thereby affecting the user experience.
发明概述Summary of invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供一种无线接入点切换方法、装置及终端,以解决相关技术中终端不能自动将当前接入点切换至网络质量更优的接入点的问题。The present invention provides a wireless access point switching method, device, and terminal, to solve the problem that the terminal cannot automatically switch the current access point to an access point with better network quality in the related art.
一种无线接入点切换方法,包括:A wireless access point switching method includes:
通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中,至少一个所述网卡设置为工作网卡,其余至少一个所述网卡设置为备用网卡;Establishing a communication connection with at least two wireless access points that meet the access conditions by using at least two network cards, wherein at least one of the network cards is configured as a working network card, and at least one of the remaining network cards is configured as a standby network card;
每个所述网卡分别检测与本网卡对应的无线接入点的网络质量,所述网络质量为无线接入点与目标服务器之间的业务通信质量参数;Each of the network cards respectively detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality parameter between the wireless access point and the target server;
将每个所述网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定待切换的工作网卡和备用网卡,根据判断结果完成切换。The network quality detected by each of the network cards is used as one of the determining factors, and the preset switching condition is determined, and the working network card and the standby network card to be switched are determined, and the switching is completed according to the determination result.
可选地,所述判断因子还包括信号质量,所述通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接之后,所述方法还包 括:Optionally, the determining factor further includes a signal quality, where the method further includes after the at least two network cards configured to establish a communication connection with at least two wireless access points that meet an access condition. include:
每个所述网卡分别检测与本网卡对应的无线接入点的信号质量;Each of the network cards respectively detects a signal quality of a wireless access point corresponding to the network card;
根据每个所述网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量;Determining, according to the signal quality detected by each of the network cards, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
当判断出存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换。When it is determined that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, the working network card and the standby network card to be switched are determined and the handover is completed.
可选地,所述预设切换条件包括:Optionally, the preset switching condition includes:
至少一个备用网卡检测的网络质量优于至少一个工作网卡检测的网络质量。The network quality detected by at least one standby network card is better than the network quality detected by at least one working network card.
可选地,每个所述网卡分别检测与本网卡对应的无线接入点的网络质量,包括:Optionally, each of the network cards respectively detects network quality of the wireless access point corresponding to the network card, including:
每个所述网卡分别检测与本网卡对应的无线接入点的网络延时、丢包率、理论带宽和实际带宽中的一项或多项。Each of the network cards respectively detects one or more of a network delay, a packet loss rate, a theoretical bandwidth, and an actual bandwidth of the wireless access point corresponding to the network card.
可选地,所述配置的至少两个网卡包括:Optionally, the at least two network cards of the configuration include:
配置的至少两个无线网卡;或,Configure at least two wireless network cards; or,
通过一个无线网卡创建的至少两个虚拟网卡。At least two virtual NICs created by a wireless network card.
可选地,当满足接入条件的无线接入点包括未连接过的无线接入点时,所述方法还包括:Optionally, when the wireless access point that meets the access condition includes the wireless access point that is not connected, the method further includes:
根据预先设定的使能条件确定所述未连接过的无线接入点是否能够与所述网卡建立通信连接;Determining, according to a preset enabling condition, whether the unconnected wireless access point can establish a communication connection with the network card;
所述通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,包括:Establishing, by the configured at least two network cards, a communication connection with at least two wireless access points that meet an access condition, including:
通过所述至少两个网卡与已经连接过的无线接入点以及满足所述使能条件的无线接入点建立通信连接。Establishing a communication connection with the already connected wireless access point and the wireless access point satisfying the enabling condition by the at least two network cards.
一种无线接入点切换装置,包括:A wireless access point switching device includes:
通信模块,设置为:通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中,至少一个所述网卡设置为工作网卡,其 余至少一个所述网卡设置为备用网卡;a communication module, configured to: establish, by using at least two network cards configured, a communication connection with at least two wireless access points that meet an access condition, wherein at least one of the network cards is configured as a working network card, At least one of the network cards is set as a backup network card;
网络质量检测模块,设置为:每个所述网卡分别检测与本网卡对应的无线接入点的网络质量,所述网络质量为无线接入点与目标服务器之间的业务通信质量;The network quality detecting module is configured to: each of the network cards respectively detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality between the wireless access point and the target server;
接入点切换模块,设置为:将每个所述网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定如需要切换时待切换的工作网卡和备用网卡,根据判断结果完成切换。The access point switching module is configured to: determine the network quality detected by each of the network cards as one of the determining factors, determine the preset switching condition, and determine the working network card and the standby network card to be switched when the switching is required, according to the judgment The result is completed.
可选地,所述判断因子还包括信号质量,所述装置还包括:Optionally, the determining factor further includes a signal quality, and the device further includes:
信号质量检测模块,设置为:在所述通信模块通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接之后,每个所述网卡分别检测与本网卡对应的无线接入点的信号质量;a signal quality detecting module, configured to: after the communication module establishes a communication connection with at least two wireless access points satisfying an access condition by using at least two network cards configured, each of the network cards respectively detects a network card corresponding to the network card Signal quality of the wireless access point;
信号质量判断模块,设置为:根据每个所述网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量;The signal quality judging module is configured to: determine, according to the signal quality detected by each of the network cards, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
所述接入点切换模块,还设置为:当信号质量判断模块判断出存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换。The access point switching module is further configured to: when the signal quality determining module determines that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, determine the working network card and the standby network card to be switched. Complete the switch.
可选地,所述预设切换条件包括:Optionally, the preset switching condition includes:
至少一个备用网卡检测的网络质量优于至少一个工作网卡检测的网络质量。The network quality detected by at least one standby network card is better than the network quality detected by at least one working network card.
可选地,所述装置还包括:Optionally, the device further includes:
网卡配置模块,设置为:配置所述至少两个网卡;The network card configuration module is configured to: configure the at least two network cards;
其中,所述网卡配置模块配置所述至少两个网卡,包括:The network card configuration module configures the at least two network cards, including:
配置至少两个无线网卡;或,Configure at least two wireless network cards; or,
通过一个无线网卡创建至少两个虚拟网卡。Create at least two virtual NICs through a wireless network card.
一种终端,包括:如上任一项所述的无线接入点切换装置。A terminal comprising: the wireless access point switching device according to any one of the preceding claims.
一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可 执行指令,所述处理器执行所述计算机可执行指令时,进行如下操作:A computer readable storage medium having a computer readable storage medium stored therein Executing an instruction, when the processor executes the computer executable instruction, performing the following operations:
通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中,至少一个所述网卡设置为工作网卡,其余至少一个所述网卡设置为备用网卡;Establishing a communication connection with at least two wireless access points that meet the access conditions by using at least two network cards, wherein at least one of the network cards is configured as a working network card, and at least one of the remaining network cards is configured as a standby network card;
每个所述网卡分别检测与本网卡对应的无线接入点的网络质量,所述网络质量为无线接入点与目标服务器之间的业务通信质量;Each of the network cards respectively detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality between the wireless access point and the target server;
将每个所述网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定待切换的工作网卡和备用网卡,根据判断结果完成切换。The network quality detected by each of the network cards is used as one of the determining factors, and the preset switching condition is determined, and the working network card and the standby network card to be switched are determined, and the switching is completed according to the determination result.
可选地,所述判断因子还包括信号质量,所述处理器执行所述计算机可执行指令时,还进行如下操作:Optionally, the determining factor further includes a signal quality, and when the processor executes the computer executable instruction, performing the following operations:
每个所述网卡分别检测与本网卡对应的无线接入点的信号质量;Each of the network cards respectively detects a signal quality of a wireless access point corresponding to the network card;
根据每个所述网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量;Determining, according to the signal quality detected by each of the network cards, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
当判断出存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换。When it is determined that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, the working network card and the standby network card to be switched are determined and the handover is completed.
可选地,所述处理器执行所述计算机可执行指令时,且当满足接入条件的无线接入点包括未连接过的无线接入点时,还进行如下操作:Optionally, when the processor executes the computer executable instructions, and when the wireless access point that satisfies the access condition includes the unconnected wireless access point, the following operations are also performed:
根据预先设定的使能条件确定所述未连接过的无线接入点是否能够与所述网卡建立通信连接;Determining, according to a preset enabling condition, whether the unconnected wireless access point can establish a communication connection with the network card;
所述通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,包括:Establishing, by the configured at least two network cards, a communication connection with at least two wireless access points that meet an access condition, including:
通过所述至少两个网卡与已经连接过的无线接入点以及满足所述使能条件的无线接入点建立通信连接。Establishing a communication connection with the already connected wireless access point and the wireless access point satisfying the enabling condition by the at least two network cards.
本发明实施例提供的无线接入点切换方法、装置及终端,通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中至少一个网卡设置为工作网卡,其余至少一个网卡设置为备用网卡;每个网卡分别检测与本网卡对应无线接入点的网络质量,将每个网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定待切换的工作网卡和备 用网卡,从而根据判断结果完成切换;本发明实施例通过上述技术方案,使得终端能够在当前连接的接入点网络质量变差的情况下自动切换至网络质量更好的接入点进行业务传输,另外,在网络切换的过程中,由于每个网卡与接入点已建立通信连接,只需对网卡状态进行切换,如工作网卡切换成备用网卡,备用网卡切换成工作网卡,无需重新建立通信连接,可以最大限度的确保终端的业务不会因为网络切换而中断,从而提升用户体验。The wireless access point switching method, device, and terminal provided by the embodiment of the present invention establish a communication connection with at least two wireless access points that meet the access condition by using at least two network cards, where at least one network card is set as a working network card. The remaining at least one network card is set as a standby network card; each network card detects the network quality of the wireless access point corresponding to the network card, and determines the network quality detected by each network card as one of the determining factors, and determines the preset switching condition, and determines Work network card and backup to be switched The network card is used to complete the handover according to the judgment result. The embodiment of the present invention enables the terminal to automatically switch to the access point with better network quality for service transmission when the network quality of the currently connected access point is deteriorated. In addition, in the process of network switching, since each network card and the access point have established a communication connection, only the state of the network card needs to be switched, for example, the working network card is switched to the standby network card, and the standby network card is switched to the working network card, and the communication does not need to be reestablished. Connections can maximize the user's experience by ensuring that the terminal's services are not interrupted due to network switching.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1为本发明实施例提供的一种无线接入点切换方法的流程图;FIG. 1 is a flowchart of a method for switching a wireless access point according to an embodiment of the present invention;
图2为本发明实施例提供的另一种无线接入点切换方法的流程图;2 is a flowchart of another method for switching a wireless access point according to an embodiment of the present invention;
图3为本发明实施例提供的无线接入点切换方法的一种切换场景的示意图;FIG. 3 is a schematic diagram of a handover scenario of a method for switching a wireless access point according to an embodiment of the present disclosure;
图4为本发明实施例提供的无线接入点切换方法的另一种切换场景的示意图;FIG. 4 is a schematic diagram of another handover scenario of a method for switching a wireless access point according to an embodiment of the present disclosure;
图5为本发明实施例提供的一种无线接入点切换装置的结构示意图;FIG. 5 is a schematic structural diagram of a wireless access point switching apparatus according to an embodiment of the present disclosure;
图6为本发明实施例提供的另一种无线接入点切换装置的结构示意图。FIG. 6 is a schematic structural diagram of another wireless access point switching apparatus according to an embodiment of the present invention.
详述Detailed
下文中将结合附图对本发明的实施方式进行详细说明。需要说明的是,在不冲突的情况下,本文中的实施例及实施例中的特征可以相互任意组合。Embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments herein may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸根据一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system in accordance with a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
为了解决相关技术中当前已连接的接入点因为使用者或其他因素导致网络质量变差,终端却无法自动由当前接入点切换至网络质量更优的接入点进行业务传输,从而降低用户使用体验的问题,本发明实施例提供一种无线接入点切换方法,请参见图1,图1为本发明实施例提供的一种无线接入点切 换方法的流程图,该无线接入点切换方法包括如下步骤,即S110~S130:In order to solve the problem that the currently connected access point in the related art is degraded due to users or other factors, the terminal cannot automatically switch from the current access point to the access point with better network quality for service transmission, thereby reducing the user. For a problem of the experience, the embodiment of the present invention provides a method for switching a wireless access point. Referring to FIG. 1, FIG. 1 is a schematic diagram of a wireless access point according to an embodiment of the present invention. For a flowchart of the method, the method for switching the wireless access point includes the following steps, namely, S110 to S130:
S110,通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接。S110. Establish a communication connection with at least two wireless access points that meet the access condition by using at least two network cards configured.
在本发明实施例中,可以预先为终端配置至少两个网卡。可选地,本发明实施例中配置的至少两个网卡可以是无线网卡;也可以是由一个无线网卡虚拟出的至少两个虚拟网卡,从而通过虚拟网卡与接入点建立通信连接,实现业务传输。In the embodiment of the present invention, at least two network cards may be configured in advance for the terminal. Optionally, at least two network cards configured in the embodiment of the present invention may be a wireless network card; or at least two virtual network cards virtualized by one wireless network card, thereby establishing a communication connection with the access point through the virtual network card to implement services. transmission.
可选地,在本发明实施例中,网卡与无线接入点可以为一一对应的关系,其中至少一个网卡设置为工作网卡,其余至少一个网卡设置为备用网卡。在实际应用中,若用户未开启自动选择网络功能,则终端不会通过网卡实时检测周围的可用无线接入点,相应的也不会与无线接入点建立通信连接,因此,建立通信连接的前提是用户开启自动选择网络功能,或者,终端自动开启该功能。Optionally, in the embodiment of the present invention, the network card and the wireless access point may have a one-to-one correspondence, wherein at least one network card is configured as a working network card, and the remaining at least one network card is configured as a standby network card. In practical applications, if the user does not enable the automatic network selection function, the terminal will not detect the available wireless access points in the real-time through the network card, and the corresponding communication connection will not be established with the wireless access point. Therefore, the communication connection is established. The premise is that the user turns on the automatic network selection function, or the terminal automatically turns on the function.
可选地,本发明实施例中的接入条件是指信号能够覆盖到终端且能够正常连接的无线接入点,配置的每个网卡与一一对应的无线接入点建立通信连接,在实际应用中,一个无线接入点也可对应多个网卡,每个网卡与同一个无线接入点进行通信。此外,将配置的网卡中至少一个网卡设置为工作网卡,其余至少一个网卡设置为备用网卡,工作网卡用于进行业务传输,且保持通信连接;备用网卡同样保持通信连接,但不用于传输业务,当工作网卡网络质量较差时,将工作网卡切换为备用网卡,将原来的备用网卡切换为工作网卡,通过该工作网卡继续业务的传输,由于该工作网卡(即切换前的备用网卡)一直持通信连接,且只是将网卡的状态进行切换(也即将工作网卡切换为备用网卡,备用网卡切换为工作网卡),使得后续业务直接通过切换后的工作网卡与其对应的无线接入点进行传输,从而最大程度的保证终端业务不会因为接入点的切换而中断。Optionally, the access condition in the embodiment of the present invention refers to a wireless access point that can cover the terminal and can be normally connected, and each configured network card establishes a communication connection with the one-to-one corresponding wireless access point, in actual In the application, one wireless access point can also correspond to multiple network cards, and each network card communicates with the same wireless access point. In addition, at least one network card of the configured network card is set as a working network card, and at least one of the remaining network cards is set as a standby network card, the working network card is used for service transmission, and the communication connection is maintained; the standby network card also maintains a communication connection, but is not used for transmission service. When the working network card network quality is poor, the working network card is switched to the standby network card, and the original standby network card is switched to the working network card, and the service network card continues to transmit the service, because the working network card (that is, the standby network card before the switching) is always held. Communication connection, and only the state of the network card is switched (that is, the working network card is switched to the standby network card, and the standby network card is switched to the working network card), so that the subsequent service is directly transmitted through the switched working network card and its corresponding wireless access point, thereby The maximum guarantee that the terminal service will not be interrupted due to the switching of the access point.
S120,每个网卡分别检测与本网卡对应无线接入点的网络质量。S120: Each network card separately detects network quality of a wireless access point corresponding to the network card.
在本发明实施例中,配置的至少两个网卡分别检测与其对应的无线接入点的网络质量,根据检测的网络质量选择一个无线接入点进行切换。其中,网络质量为无线接入点与目标服务器之间的业务通信质量,也即每个网卡检 测的是无线接入点与目标服务器之间的业务通信质量。在实际应用中,网络质量也可以是无线接入点与网卡之间的业务通信质量。In the embodiment of the present invention, the configured at least two network cards respectively detect the network quality of the wireless access point corresponding thereto, and select one wireless access point to perform handover according to the detected network quality. The network quality is the quality of service communication between the wireless access point and the target server, that is, each network card check The quality of the communication between the wireless access point and the target server is measured. In practical applications, the network quality may also be the quality of service communication between the wireless access point and the network card.
可选地,本发明实施例中S120的实现方式,可以包括:每个网卡分别检测与本网卡对应的无线接入点的网络延时、丢包率、理论带宽和实际带宽中的一项或多项。本发明实施例通过网络延时、丢包率、理论带宽、实际带宽等网络质量检测指标对网络质量进行衡量,以保证选择的无线接入点为连接质量最优的接入点,从而最大程度的保证切换后的网络为最优的网络。Optionally, the implementation manner of S120 in the embodiment of the present invention may include: each network card separately detecting one of a network delay, a packet loss rate, a theoretical bandwidth, and an actual bandwidth of a wireless access point corresponding to the network card. Multiple. In the embodiment of the present invention, network quality is measured by network quality detection indicators such as network delay, packet loss rate, theoretical bandwidth, and actual bandwidth, so as to ensure that the selected wireless access point is the access point with the best connection quality, thereby maximizing the degree. The network after the handover is guaranteed to be the optimal network.
S130,将每个网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定待切换的工作网卡和备用网卡,根据判断结果完成切换。S130: Determine the network quality detected by each network card as one of the determining factors, determine the preset switching condition, determine the working network card and the standby network card to be switched, and complete the switching according to the determination result.
在本发明实施例中,网络质量例如是通过网络延时、丢包率、理论带宽、实际带宽等网络检测指标进行评估的,以判断备用网卡对应无线接入点的网络质量是否比当前连接的无线接入点网络质量好,从而为网络切换提供更有效的数据。In the embodiment of the present invention, the network quality is evaluated, for example, by network detection indicators such as network delay, packet loss rate, theoretical bandwidth, and actual bandwidth, to determine whether the network quality of the wireless access point corresponding to the backup network card is currently connected. The wireless access point network is of good quality, providing more efficient data for network switching.
本发明实施例提供的无线接入点切换方法,通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中至少一个网卡设置为工作网卡,其余至少一个网卡设置为备用网卡;每个网卡分别检测与本网卡对应无线接入点的网络质量,将每个网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定待切换的工作网卡和备用网卡,从而根据判断结果完成切换;本发明实施例通过上述方法使得终端能够在当前连接的接入点网络质量变差的情况下自动切换至网络质量更好的接入点进行业务传输,另外,在网络切换的过程中,由于每个网卡与接入点已建立通信连接,只需对网卡状态进行切换,如工作网卡切换成备用网卡,备用网卡切换成工作网卡,无需重新建立通信连接,可以最大限度的确保终端的业务不会因为网络切换而中断,从而提升用户体验。The wireless access point switching method provided by the embodiment of the present invention establishes a communication connection with at least two wireless access points that meet the access condition by using at least two network cards, wherein at least one network card is set as a working network card, and at least one other network card is configured. Set as the standby network card; each network card detects the network quality of the wireless access point corresponding to the network card, and determines the network quality detected by each network card as one of the determining factors, determines the preset switching condition, and determines the work to be switched. The network card and the backup network card are used to complete the handover according to the judgment result. In the embodiment of the present invention, the terminal can automatically switch to the access point with better network quality to perform service transmission when the network quality of the currently connected access point is deteriorated. In addition, in the process of network switching, since each network card and the access point have established a communication connection, only the state of the network card needs to be switched, for example, the working network card is switched to the standby network card, and the standby network card is switched to the working network card, and the communication does not need to be reestablished. Connection, you can ensure that the terminal's business will not be cut as much as possible. Interrupted, so as to enhance the user experience.
可选地,在本发明实施例中,上述预设切换条件可以包括:至少一个备用网卡检测的网络质量优于至少一个工作网卡检测的网络质量。也就是说,将网络质量作为判断因子之一对预设切换条件进行判断,也即根据网络质量等判断因子判断备用网卡对应的无线接入点的网络质量是否优于工作网卡对应的无线接入点的网络质量。在实际应用中,并非一定要求备用网卡对应 无线接入点的网络质量优于当前工作网卡对应无线接入点的网络质量,只要该备用网卡对应无线接入点的网络质量整体比当前工作网卡对应无线接入点的网络质量即可。例如,当前工作网卡对应的无线接入点的丢包率较低,但网络延时、实际带宽和理论带宽均较差,而备用网卡中的一个网卡对应的无线接入点的网络延时、实际带宽均优于当前无线接入点的网络延时、实际带宽,但丢包率却高于当前无线接入点的丢包率;在对丢包率要求不高的情况下,可认为该备用网卡对应的无线接入点的网络质量要优于当前无线接入点的网络质量。因此,可综合考量每个无线接入点的网络质量等衡量指标,选择最合适的无线接入点进行切换。同时,在进行切换时,实际切换的是网卡,即将当前的工作网卡切换为备用网卡,将待切换的备用网卡切换为工作网卡进行业务传输,以最大程度的确保终端的业务不会因为网卡的切换而中断。Optionally, in the embodiment of the present invention, the foregoing preset switching condition may include: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card. That is to say, the network quality is used as one of the determining factors to determine the preset switching condition, that is, according to the network quality and other determining factors, whether the network quality of the wireless access point corresponding to the standby network card is better than the wireless access corresponding to the working network card. The network quality of the point. In practical applications, it is not necessary to require an alternate network card. The network quality of the wireless access point is better than the network quality of the wireless access point corresponding to the current working network card, as long as the network quality of the wireless access point corresponding to the standby network card is better than the network quality of the wireless access point corresponding to the current working network card. For example, the packet loss rate of the wireless access point corresponding to the current working network card is low, but the network delay, the actual bandwidth, and the theoretical bandwidth are both poor, and the network delay of the wireless access point corresponding to one network card in the standby network card, The actual bandwidth is better than the network delay and actual bandwidth of the current wireless access point, but the packet loss rate is higher than the current packet loss rate of the wireless access point; in the case where the packet loss rate is not high, the The network quality of the wireless access point corresponding to the backup network card is better than the network quality of the current wireless access point. Therefore, the measurement indicators such as the network quality of each wireless access point can be comprehensively considered, and the most suitable wireless access point can be selected for switching. At the same time, when switching, the actual switch is the network card, that is, the current working network card is switched to the standby network card, and the standby network card to be switched is switched to the working network card for service transmission, so as to ensure that the service of the terminal is not caused by the network card to the greatest extent. Switched and interrupted.
可选地,本发明实施例在进行切换网卡之前,还可考虑终端当前是否进行下载等连续性的网络业务,若在进行连续性网络业务,可能会导致网络业务短暂中断,当网络连接后自动继续完成下载。虽然本发明实施提供的无线接入点切换方法能够最大程度的保证业务不会因为网络切换而中断,但对于连续性网络业务依然会产生较小的影响,因此,在没有进行下载等连续性网络业务的情况下,对于应用来说,网络在后台进行快速切换,并且网络的临时中断对于用户基本不可见,使得用户有很好的使用体验。Optionally, before performing the handover of the network card, the embodiment of the present invention may also consider whether the terminal currently performs continuous network services such as downloading. If the continuous network service is performed, the network service may be temporarily interrupted, and the network connection is automatically Continue to complete the download. Although the wireless access point switching method provided by the implementation of the present invention can ensure that the service is not interrupted by the network switching to the greatest extent, it still has a small impact on the continuous network service, and therefore, the continuous network is not downloaded. In the case of services, for the application, the network performs fast switching in the background, and the temporary interruption of the network is basically invisible to the user, so that the user has a good use experience.
可选地,在本发明实施例的S110中,工作网卡包括至少一个,业务网卡同样包括至少一个,当工作网卡包括至少两个时,当工作网卡中部分网卡出现网络质量变差的情况,可从备用网卡中选择对应数量的网卡进行切换,以替代原有工作网卡进行传输业务,只需将原有工作网卡切换为备用网卡,将待传输业务的备用网卡切换为工作网卡。需要说明的是,无论备用网卡、工作网卡,始终与对应无线接入点建立通信连接,处于随时能够进行业务传输的待命状态,一旦检测到网络质量优于当前工作网卡对应无线接入点的网络质量的备用网卡时,后续的业务直接通过切换后的备用网卡进行传输业务,从而最大程度的避免因为从当前无线接入点切换至下一无线接入点导致网络中断的情况发生。 Optionally, in S110 of the embodiment of the present invention, the working network card includes at least one, and the service network card also includes at least one. When the working network card includes at least two, when some network cards in the working network card have a network quality deterioration, the network quality may be deteriorated. Select the corresponding number of network cards from the standby network card to switch to replace the original working network card for the transmission service. You only need to switch the original working network card to the standby network card and switch the standby network card to be transmitted to the working network card. It should be noted that, regardless of the backup network card and the working network card, the communication connection is always established with the corresponding wireless access point, and is in a standby state capable of performing service transmission at any time, and once the network quality is detected is better than the network corresponding to the wireless access point of the current working network card. When the quality of the backup network card is used, the subsequent service directly transmits the service through the switched standby network card, thereby maximally avoiding the network interruption caused by switching from the current wireless access point to the next wireless access point.
可选地,图2为本发明实施例提供的另一种无线接入点切换方法的流程图。在本发明实施例中,除了对网络质量进行检测外,还可对信号质量进行检测,如检测每个无线接入点的信号强度。本发明实施例提供的方法还可以包括如下步骤,即S140~S160:Optionally, FIG. 2 is a flowchart of another method for switching a wireless access point according to an embodiment of the present invention. In the embodiment of the present invention, in addition to detecting the network quality, the signal quality may be detected, such as detecting the signal strength of each wireless access point. The method provided by the embodiment of the present invention may further include the following steps, that is, S140 to S160:
S140,每个网卡分别检测与本网卡对应的无线接入点的信号质量;S140: Each network card separately detects a signal quality of a wireless access point corresponding to the network card;
S150,根据每个网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量;S150. Determine, according to the signal quality detected by each network card, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card.
S160,当判断出存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换。S160. When it is determined that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, determine the working network card and the standby network card to be switched, and complete the handover.
在本发明实施例中,上述信号质量可以是无线接入点与目标服务器之间的业务通信质量参数,通过该信号质量确认每个无线接入点中哪个无线接入点的连接质量更优于当前连接的无线接入点连接质量,从而更精准的选择一个最优的无线接入点,为网络切换以供更有效的数据。每个网卡检测到与其对应的无线接入点的信号质量后,根据每个网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量,当存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换,也即确定需要进行状态切换的网卡,如哪个工作网卡需要切换成备用网卡作为备选,哪个备用网卡需要切换成工作网卡进行后续的业务传输。In the embodiment of the present invention, the signal quality may be a service communication quality parameter between the wireless access point and the target server, and it is determined by the signal quality which wireless access point in each wireless access point has better connection quality. The quality of the currently connected wireless access point connection, so as to more accurately select an optimal wireless access point for network switching for more efficient data. After each network card detects the signal quality of the corresponding wireless access point, it is determined according to the signal quality detected by each network card whether there is at least one standby network card detecting signal quality better than at least one working network card detecting signal quality, when there is at least When the signal quality detected by an alternate network card is better than the signal quality detected by at least one working network card, the working network card and the standby network card to be switched are determined and the switching is completed, that is, the network card that needs to be switched, for example, which working network card needs to be switched to standby. As an alternative, the NIC needs to be switched to a working NIC for subsequent service transmission.
可选地,在本发明实施例中,上述预设切换条件包括:至少一个备用网卡检测的网络质量优于至少一个工作网卡检测的网络质量。当备用网卡检测的网络质量中存在一个优于至少一个工作网卡检测的网络质量时,将网卡作为待切换备用网卡,将待切换的备用网卡切换为工作网卡替换工作网卡中的任意一个,或者根据优先级进行替换;当备用网卡检测的网络质量中存在至少两个优于至少一个工作网卡检测的网络质量时,将该网络质量中的任意一个作为待切换备用网卡,将该备用网卡切换为工作网卡替换工作网卡中的任意一个,或者根据优先级进行替换。Optionally, in the embodiment of the present invention, the foregoing preset switching condition includes: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card. When there is a network quality better than the at least one working network card detection in the network quality detected by the backup network card, the network card is used as the standby network card to be switched, and the standby network card to be switched is switched to any one of the working network card replacement working network cards, or according to The priority is replaced. When there are at least two network qualities better than the at least one working network card detection in the network quality detected by the backup network card, any one of the network qualities is used as the standby network card to be switched, and the standby network card is switched to work. The NIC replaces any one of the working NICs or replaces them according to priority.
可选地,在本发明实施例中,对于网络质量和信号质量,根据这两个维度综合对无线接入点的连接质量进行评估,网络质量好的无线接入点并非信 号质量好,同理,信号质量好的无线接入点并非网络质量好,二者整体较好才是网络切换的首选,也即待切换的无线接入点的网络质量和信号质量在整个无线接入点中虽然并非是最优的,但二者整体连接质量要优于其他无线接入点,因此,在进行网络切换时,综合评估出一个合适的无线接入点进行切换。同理,对于其他判断因子,也可作为无线接入点连接质量的判断标准。Optionally, in the embodiment of the present invention, for the network quality and the signal quality, the connection quality of the wireless access point is comprehensively evaluated according to the two dimensions, and the wireless access point with good network quality is not a letter. The quality of the number is good. Similarly, the wireless access point with good signal quality is not good in network quality. The overall better is the first choice for network switching, that is, the network quality and signal quality of the wireless access point to be switched are in the whole wireless. Although the access point is not optimal, the overall connection quality of the two is better than other wireless access points. Therefore, when performing network switching, a suitable wireless access point is comprehensively evaluated for handover. For the same reason, for other judgment factors, it can also be used as a criterion for judging the connection quality of wireless access points.
可选地,在本发明实施例中,当前无线接入点包括未连接的无线接入点时,本发明实施例提供的方法还可以包括:根据预先设定的使能条件确定该未连接过的无线接入点是否能够与网卡建立通信连接;在能够建立通信连接的情况下,通过至少两个网卡与已经连接过的无线接入点以及满足该使能条件的无线接入点建立通信。在实际应用中,考虑到未连接的无线接入点(包括未连接的开放无线接入点)可能会存在安全隐患,因此,可以在终端中增加一个设置项,设置是否允许终端尝试连接未连接过的无线接入点,在该功能被使能的情况下则会通过网卡与该无线接入点建立通信连接,从而在自动切换网络质量更优的无线接入点的情况下,也可保证用户信息安全。Optionally, in the embodiment of the present invention, when the current wireless access point includes an unconnected wireless access point, the method provided by the embodiment of the present invention may further include: determining, according to the preset enabling condition, that the unconnected Whether the wireless access point can establish a communication connection with the network card; in the case where the communication connection can be established, communication is established by the at least two network cards with the already connected wireless access point and the wireless access point satisfying the enabling condition. In practical applications, considering that an unconnected wireless access point (including an unconnected open wireless access point) may have a security risk, a setting item may be added to the terminal to set whether to allow the terminal to try to connect without being connected. The wireless access point, when the function is enabled, establishes a communication connection with the wireless access point through the network card, thereby ensuring the automatic switching of the wireless access point with better network quality. User information is secure.
基于本发明实施例提供的无线接入点切换方法,终端能够自动从网络质量差的接入点切换到网络质量较优的接入点,同时,能够最大限度的确保终端的业务不会因为网络切换而中断,大大提升了用户的使用体验。Based on the wireless access point switching method provided by the embodiment of the present invention, the terminal can automatically switch from an access point with poor network quality to an access point with better network quality, and at the same time, can ensure that the service of the terminal is not caused by the network to the utmost extent. Switching and interrupting greatly enhances the user experience.
以本发明上述实施例提供的无线接入点切换方法为基础,以家庭场景为例对无线接入点切换方法做出详细说明。该场景中,用户家里有两个无线接入点无线访问接入点(Wireless Access Point,简称为:AP)1和AP2,分别放在客厅和书房里,且终端都已连接过,当前AP1对应工作网卡,AP2对应备用网卡,工作网卡和备用网卡均是通过一个无线网卡创建的虚拟网卡。基于该场景实现无线接入点的切换,请参见图3,图3为本实施例提供的无线接入点切换方法的一种切换场景的示意图,该应用场景中的切换过程如下:Based on the wireless access point switching method provided by the foregoing embodiment of the present invention, a home scene is taken as an example to describe a wireless access point switching method in detail. In this scenario, the user has two wireless access point wireless access points (APs) 1 and AP2, which are placed in the living room and the study room, and the terminals are connected. The current AP1 corresponds. The working network card, AP2 corresponds to the standby network card, and the working network card and the standby network card are virtual network cards created by a wireless network card. The switching of the wireless access point is implemented based on the scenario. Referring to FIG. 3, FIG. 3 is a schematic diagram of a handover scenario of the method for switching a wireless access point according to the embodiment. The handover process in the application scenario is as follows:
终端当前处于AP1覆盖范围中的U1位置与AP1连接,用户当前在客厅中通过终端上的应用程序(Application,简称为:APP)看电视,此时,终端使用工作网卡(wlan1)连接到AP1,APP相应的也通过AP1上网。在用户设置自动选择网络为开的情况下,终端实时检测周围的可用无线接入点,周围 的可用无线接入点为AP2,处于U1位置的终端同样处于AP2的覆盖范围,终端通过无线网卡创建一个备用网卡(wlan2),并使用wlan2尝试连接AP2。但是,由于检测到AP2的信号强度弱于AP1,因此,并未将AP2作为工作网卡进行业务传输,而是将其作为备用网卡连接AP2并检测AP2的网络质量。The terminal is currently connected to the AP1 in the U1 location of the AP1 coverage area. The user currently watches the TV through the application (Application: APP) on the terminal in the living room. At this time, the terminal uses the working network card (wlan1) to connect to the AP1. The corresponding APP also goes online through AP1. In the case that the user sets the automatic selection network to be on, the terminal detects the surrounding available wireless access points in real time, around The available wireless access point is AP2, and the terminal in the U1 position is also in the coverage of AP2. The terminal creates a standby network card (wlan2) through the wireless network card, and attempts to connect to AP2 using wlan2. However, since the signal strength of AP2 is detected to be weaker than that of AP1, AP2 is not used as a working network card for service transmission, but is used as a backup network card to connect to AP2 and detect the network quality of AP2.
用户现在从客厅移到书房看书,如图中黑色箭头,该黑色箭头指示用户移动轨迹,用户移动至AP2覆盖范围的U2位置。随着用户向AP2方向的移动,AP1的信号强度逐渐减弱,而AP2的信号强度逐渐增强,工作网卡(wlan1)和备用网卡(wlan2)分别对AP1和AP2的网络质量进行检测,例如检测二者的网络延时、丢包率、理想带宽、实际带宽等指标,通过上述指标,评估得到AP2的网络质量优于AP1的网络质量,另外,由于用户的移动,导致AP2的信号质量也优于AP1的信号质量。在实际应用中,还可以检测当前终端是否进行下载等连接性的网络业务,在未进行连续性网络业务的情况下,将AP2对应的备用网卡(wlan2)切换为工作网卡(wlan2),将AP1对应的工作网卡(wlan1)切换为备用网卡(wlan1),也即将wlan1和wlan2的工作状态进行切换,由工作切换为备用,由备用切换为工作。对于终端上的应用来讲,网络在后台就进行了快速的切换,在进行非连续性的网络业务的情况下,网络的临时中断对于用户基本不可见。The user now moves from the living room to the study to read the book, as shown by the black arrow in the figure, the black arrow indicates the user's movement track, and the user moves to the U2 position of the AP2 coverage. As the user moves in the direction of AP2, the signal strength of AP1 is gradually weakened, and the signal strength of AP2 is gradually enhanced. The working network card (wlan1) and the standby network card (wlan2) respectively detect the network quality of AP1 and AP2, for example, detecting both. The network delay, packet loss rate, ideal bandwidth, and actual bandwidth are evaluated by the above indicators. The network quality of AP2 is better than that of AP1. In addition, the signal quality of AP2 is better than AP1 due to user mobility. Signal quality. In the actual application, it is also possible to detect whether the current terminal performs a connection network service such as downloading, and if the continuous network service is not performed, the standby network card (wlan2) corresponding to the AP2 is switched to the working network card (wlan2), and the AP1 is connected. The corresponding working network card (wlan1) is switched to the standby network card (wlan1), and the working states of wlan1 and wlan2 are switched, and the work is switched to standby, and the standby is switched to work. For the application on the terminal, the network performs fast switching in the background. In the case of non-continuous network services, the temporary interruption of the network is basically invisible to the user.
需要说明的是,本发明实施例涉及的工作网卡与备用网卡均事先与对应的无线接入点AP1和AP2建立通信连接,然后工作网卡在进行业务传输的情况下,备用网卡虽不进行业务传输,但同样处于通信的维持状态,随时可根据需要进行业务传输。备用网卡在检测对应无线接入点AP2的网络质量的同时,AP1在业务传输的过程中也进行网络质量的检测,最后综合评估AP1和AP2的网络质量以判断是否进行网络切换,使得用户获得更好的网络体验。It should be noted that both the working network card and the standby network card according to the embodiment of the present invention establish a communication connection with the corresponding wireless access points AP1 and AP2 in advance, and then the working network card performs service transmission, and the standby network card does not perform service transmission. However, it is also in the state of maintaining communication, and the service can be transmitted as needed. While the backup network card detects the network quality of the corresponding wireless access point AP2, AP1 also performs network quality detection during the service transmission process, and finally comprehensively evaluates the network quality of AP1 and AP2 to determine whether to perform network switching, so that the user obtains more Good network experience.
本发明实施例提供的无线接入点切换方法,通过综合评估每个无线接入点的网络质量、信号质量等指标,确定一个连接质量最优的无线接入点,并通过网卡状态的切换,快速的将网络进行切换,避免切换后重新建立通信连接的情况出现,从而最大程度的确保终端业务不会因为网络切换而中断。The wireless access point switching method provided by the embodiment of the present invention determines a wireless access point with the best connection quality by comprehensively evaluating the network quality and signal quality of each wireless access point, and switches the state of the network card through the network card. Quickly switch the network to avoid re-establishing the communication connection after the handover, so as to ensure that the terminal service is not interrupted due to network switching.
以本发明上述实施例提供的无线接入点切换方法为基础,以商场场景为 例对无线接入点切换方法做出详细说明。该场景中,有两个无线接入点AP1和AP2,两个接入点终端都已连接过。当前AP1对应工作网卡,AP2对应备用网卡,工作网卡和备用网卡均是通过一个无线网卡创建的虚拟网卡。基于该场景实现无线接入点的切换,请参见图4,图4为本实施例提供的无线接入点切换方法的另一种切换场景的示意图,该应用场景中的切换过程如下:Based on the wireless access point switching method provided by the foregoing embodiment of the present invention, the shopping mall scene is The method of wireless access point switching is described in detail. In this scenario, there are two wireless access points, AP1 and AP2, and both access point terminals have been connected. The current AP1 corresponds to the working network card, and the AP2 corresponds to the standby network card. The working network card and the standby network card are virtual network cards created by a wireless network card. The switching process of the wireless access point is implemented based on the scenario. Referring to FIG. 4, FIG. 4 is a schematic diagram of another switching scenario of the wireless access point switching method according to the embodiment. The switching process in the application scenario is as follows:
终端当前处于AP1覆盖范围中的U1位置,检测到附近其他无线接入点AP2的信号强度与AP1的信号强度较接近,终端首先使用工作网卡(wlan1)连接到AP1。在用户设置自动选择网络为开的情况下,终端实时检测周围的可用无线接入点,周围的可用无线接入点为AP2,处于U1位置的终端同样处于AP2的覆盖范围,终端通过无线网卡创建一个备用网卡(wlan2),并使用wlan2尝试连接AP2。由于AP1和AP2的信号强度相仿,终端不会对AP1对应的工作网卡(wlan1)的状态进行切换,即不会将工作网卡切换为备用网卡。The terminal is currently in the U1 position in the coverage area of AP1. It is detected that the signal strength of other nearby wireless access points AP2 is close to that of AP1. The terminal first connects to AP1 using the working network card (wlan1). In the case that the user sets the automatic selection network to be on, the terminal detects the available wireless access points in real time, and the surrounding available wireless access points are AP2, and the terminals in the U1 position are also in the coverage of AP2, and the terminal is created through the wireless network card. An alternate NIC (wlan2) and try to connect to AP2 using wlan2. Because the signal strengths of AP1 and AP2 are similar, the terminal does not switch the status of the working network card (wlan1) corresponding to AP1, that is, the working network card is not switched to the standby network card.
由于商场中连接AP1无线接入点的用户数越来越多,虽然AP1的信号强度与AP2的信号强度较接近,但工作网卡(wlan1)检测到对应的AP1的丢包率、网络延时等网络质量值明显上升,而备用网卡(wlan2)检测到对应的AP2的丢包率、网络延时等网络质量值依然保持在比较合理的水平,从信号强度、网络延时、丢包率、理想带宽、实际带宽等多项指标综合对AP1和AP2进行评估,得出AP2的连接质量优于AP1的连接质量。图4中,AP1当前覆盖范围中连接了4个终端,分别是A1、A2、A3、A4,其中,U1位置连接的是A1;AP2当前覆盖范围中仅连接了1个终端A5,由于连接AP1的终端明显多于AP2,相应的,综合评估后AP1的丢包率、网络延时等指标明显高于AP2,使得AP1的网络质量低于AP2的网络质量。The number of users connected to the AP1 wireless access point in the shopping mall is increasing. Although the signal strength of the AP1 is close to that of the AP2, the working network card (wlan1) detects the packet loss rate and network delay of the corresponding AP1. The network quality value is obviously increased, and the network quality value such as the packet loss rate and network delay of the corresponding AP2 is still at a reasonable level, from the signal strength, network delay, packet loss rate, and ideal. A plurality of indicators, such as bandwidth and actual bandwidth, are comprehensively evaluated for AP1 and AP2, and the connection quality of AP2 is better than that of AP1. In Figure 4, the current coverage of AP1 is connected to four terminals, which are A1, A2, A3, and A4. The U1 is connected to A1; the current coverage of AP2 is only connected to one terminal A5, because AP1 is connected. The number of terminals is significantly higher than that of AP2. Correspondingly, the AP1 packet loss rate and network delay are significantly higher than AP2, so that the network quality of AP1 is lower than that of AP2.
因此,在确保终端没有进行下载等连续性网络业务的前提下,将AP1对应的工作网卡(wlan1)切换为备用网卡(wlan1)以供后续的网络切换做准备,将备用网卡(wlan2)切换为工作网卡(wlan2)继续后续的业务传输。网卡切换后,后续的业务直接通过工作网卡(wlan2)与无线接入点AP2进行业务传输,从而避免重新建立与无线接入点AP2的通信连接,导致网络较长时间的中断。对于终端上的应用来讲,网络在后台就进行了快速的切换,在进行非连续性的网络业务的情况下,网络的临时中断对于用户基本不可见。 Therefore, under the premise of ensuring that the terminal does not perform continuous network services such as downloading, the working network card (wlan1) corresponding to AP1 is switched to the standby network card (wlan1) for preparation for subsequent network switching, and the standby network card (wlan2) is switched to The working network card (wlan2) continues the subsequent service transmission. After the NIC is switched, the subsequent service directly transmits the service to the wireless access point AP2 through the working network card (wlan2), thereby avoiding re-establishing the communication connection with the wireless access point AP2, resulting in a long interruption of the network. For the application on the terminal, the network performs fast switching in the background. In the case of non-continuous network services, the temporary interruption of the network is basically invisible to the user.
本发明实施例还提供了一种无线接入点切换装置,请参见图5,图5为本发明实施例提供的一种无线接入点切换装置的结构示意图,本发明实施例提供的无线接入点切换装置可以包括:The embodiment of the present invention further provides a wireless access point switching device. Referring to FIG. 5, FIG. 5 is a schematic structural diagram of a wireless access point switching device according to an embodiment of the present invention. The in point switching device can include:
通信模块42,设置为:通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中,至少一个网卡设置为工作网卡,其余至少一个网卡设置为备用网卡;The communication module 42 is configured to establish a communication connection with at least two wireless access points that meet the access condition by using the configured at least two network cards, wherein at least one network card is set as a working network card, and the remaining at least one network card is configured as a standby network card;
网络质量检测模块43,设置为:每个网卡分别检测与本网卡对应的无线接入点的网络质量,该网络质量为无线接入点与目标服务器之间的业务通信质量;The network quality detecting module 43 is configured to: each network card separately detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality between the wireless access point and the target server;
接入点切换模块44,设置为:将每个网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定如需要切换时待切换的工作网卡和备用网卡,根据判断结果完成切换。The access point switching module 44 is configured to: determine the network quality detected by each network card as one of the determining factors, determine the preset switching condition, and determine the working network card and the standby network card to be switched when the switching needs to be performed, according to the judgment result. Complete the switch.
可选地,图6为本发明实施例提供的另一种无线接入点切换装置的结构示意图。上述判断因子还包括信号质量,在图5所示装置的结构基础上,本发明实施例提供的装置还可以包括:Optionally, FIG. 6 is a schematic structural diagram of another wireless access point switching apparatus according to an embodiment of the present invention. The foregoing determining factor further includes a signal quality. Based on the structure of the apparatus shown in FIG. 5, the apparatus provided by the embodiment of the present invention may further include:
信号质量检测模块45,设置为:在通信模块42通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接之后,每个网卡分别检测与本网卡对应的无线接入点的信号质量;The signal quality detecting module 45 is configured to: after the communication module 42 establishes a communication connection with at least two wireless access points satisfying the access condition by the configured at least two network cards, each network card respectively detects the wireless connection corresponding to the network card Signal quality of the entry point;
信号质量判断模块46,设置为:根据每个网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量;The signal quality determining module 46 is configured to: determine, according to the signal quality detected by each network card, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
接入点切换模块44,还设置为:当信号质量判断模块46判断出存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换。The access point switching module 44 is further configured to: when the signal quality determining module 46 determines that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, determine the working network card and the standby network card to be switched. Complete the switch.
可选地,本发明实施例提供的装置还可以包括:网卡配置模块41,设置为:配置至少两个网卡。Optionally, the device provided by the embodiment of the present invention may further include: a network card configuration module 41, configured to: configure at least two network cards.
可选地,在本发明实施例中,当网卡配置模块41配置的网卡为虚拟网卡 时,该网卡配置模块41的功能可由无线网卡实现,即通过无线网卡创建至少两个虚拟网卡;另外,网卡配置模块41也可在终端中集成至少两个无线网卡,通过至少两个无线网卡进行网络切换。Optionally, in the embodiment of the present invention, when the network card configured by the network card configuration module 41 is a virtual network card The function of the network card configuration module 41 can be implemented by a wireless network card, that is, at least two virtual network cards are created by using a wireless network card. In addition, the network card configuration module 41 can also integrate at least two wireless network cards in the terminal, and perform at least two wireless network cards. Network switching.
可选地,在本发明实施例中,通信模块42的功能可由WiFi模块来实现,WIFI模块可以包括硬件模块以及相应的驱动模块,提供WiFi通路与接入点进行通信。通过WiFi模块可虚拟至少两个虚拟网卡接口,其中一个接口设置为工作网卡为终端中的应用提供业务传输服务,其余网卡接口设置为备用网卡用于检测其他无线接入点的网络质量和信号质量,并保持连接状态,但不用于业务传输。Optionally, in the embodiment of the present invention, the function of the communication module 42 may be implemented by a WiFi module, where the WIFI module may include a hardware module and a corresponding driving module, and provide a WiFi path to communicate with the access point. At least two virtual network card interfaces can be virtualized through the WiFi module, one of which is set as a working network card to provide service transmission service for applications in the terminal, and the remaining network card interfaces are set as standby network cards for detecting network quality and signal quality of other wireless access points. And stay connected, but not used for business transfers.
可选地,在本发明实施例中,网络质量检测模块43、接入点切换模块44、信号质量检测模块45以及接入点切换模块46实现的功能,可通过处理器来完成操作。Optionally, in the embodiment of the present invention, the functions implemented by the network quality detecting module 43, the access point switching module 44, the signal quality detecting module 45, and the access point switching module 46 can be completed by the processor.
可选地,本发明实施例的通信模块42中,网卡与无线接入点可以是一一对应的关系,其中至少一个网卡设置为工作网卡,其余至少一个网卡设置为备用网卡。在实际应用中,若用户未开启自动选择网络功能,则终端不会通过网卡实时检测周围的可用无线接入点,相应的也不会与无线接入点建立通信连接,因此,建立通信连接的前提是用户开启自动选择网络功能,或者,终端自动开启该功能。Optionally, in the communication module 42 of the embodiment of the present invention, the network card and the wireless access point may have a one-to-one correspondence, wherein at least one network card is set as a working network card, and the remaining at least one network card is configured as a standby network card. In practical applications, if the user does not enable the automatic network selection function, the terminal will not detect the available wireless access points in the real-time through the network card, and the corresponding communication connection will not be established with the wireless access point. Therefore, the communication connection is established. The premise is that the user turns on the automatic network selection function, or the terminal automatically turns on the function.
可选地,本发明实施例中的接入条件是指信号能够覆盖到终端且能够正常连接的无线接入点,配置的每个网卡与一一对应的无线接入点建立通信连接。在实际应用中,一个无线接入点也可对应多个网卡,每个网卡与同一个无线接入点进行通信。此外,将配置的网卡中至少一个网卡设置为工作网卡,其余至少一个网卡设置为备用网卡,工作网卡用于进行业务传输,且保持通信连接;备用网卡同样保持通信连接,但不用于传输业务,当工作网卡网络质量较差时,将工作网卡切换为备用网卡,将原来的备用网卡切换为工作网卡,通过该工作网卡继续业务的传输,由于该工作网卡(即切换前的备用网卡)一直持通信连接,且只是将网卡的状态进行切换(也即将工作网卡切换为备用网卡,备用网卡切换为工作网卡),使得后续业务直接通过切换后的工作网卡与其对应的无线接入点进行传输,从而最大程度的保证终端业务不 会因为接入点的切换而中断。Optionally, the access condition in the embodiment of the present invention refers to a wireless access point that can cover the terminal and can be normally connected, and each configured network card establishes a communication connection with the one-to-one corresponding wireless access point. In practical applications, one wireless access point may also correspond to multiple network cards, and each network card communicates with the same wireless access point. In addition, at least one network card of the configured network card is set as a working network card, and at least one of the remaining network cards is set as a standby network card, the working network card is used for service transmission, and the communication connection is maintained; the standby network card also maintains a communication connection, but is not used for transmission service. When the working network card network quality is poor, the working network card is switched to the standby network card, and the original standby network card is switched to the working network card, and the service network card continues to transmit the service, because the working network card (that is, the standby network card before the switching) is always held. Communication connection, and only the state of the network card is switched (that is, the working network card is switched to the standby network card, and the standby network card is switched to the working network card), so that the subsequent service is directly transmitted through the switched working network card and its corresponding wireless access point, thereby Maximum guarantee of terminal business It will be interrupted due to the switching of the access point.
可选地,本发明实施例的网络质量检测模块43中,配置的至少两个网卡分别检测与其对应的无线接入点的网络质量,根据检测的网络质量选择一个无线接入点进行切换。其中,网络质量为无线接入点与目标服务器之间的业务通信质量,也即每个网卡检测的是无线接入点与目标服务器之间的业务通信质量。在实际应用中,网络质量也可以是无线接入点与网卡之间的业务通信质量。Optionally, in the network quality detecting module 43 of the embodiment of the present invention, the configured at least two network cards respectively detect the network quality of the wireless access point corresponding thereto, and select one wireless access point to perform handover according to the detected network quality. The network quality is the quality of service communication between the wireless access point and the target server, that is, each network card detects the quality of service communication between the wireless access point and the target server. In practical applications, the network quality may also be the quality of service communication between the wireless access point and the network card.
可选地,本发明实施例中网络质量检测模块43检测网络质量的实现方式,可以包括:每个网卡分别检测与本网卡对应的无线接入点的网络延时、丢包率、理论带宽和实际带宽中的一项或多项。本发明实施例通过网络延时、丢包率、理论带宽、实际带宽等网络质量检测指标对网络质量进行衡量,以保证选择的无线接入点为连接质量最优的接入点,从而最大程度的保证切换后的网络为最优的网络。Optionally, the method for detecting the network quality by the network quality detecting module 43 in the embodiment of the present invention may include: each network card separately detecting a network delay, a packet loss rate, a theoretical bandwidth, and a wireless access point corresponding to the network card. One or more of the actual bandwidth. In the embodiment of the present invention, network quality is measured by network quality detection indicators such as network delay, packet loss rate, theoretical bandwidth, and actual bandwidth, so as to ensure that the selected wireless access point is the access point with the best connection quality, thereby maximizing the degree. The network after the handover is guaranteed to be the optimal network.
可选地,本发明实施例的接入点切换模块44中涉及的网络质量是通过网络延时、丢包率、理论带宽、实际带宽等网络检测指标进行评估的,以判断备用网卡对应无线接入点的网络质量是否比当前连接的无线接入点网络质量好,从而为网络切换提供更有效的数据。Optionally, the network quality involved in the access point switching module 44 of the embodiment of the present invention is evaluated by network detection indicators such as network delay, packet loss rate, theoretical bandwidth, and actual bandwidth, to determine that the backup network card corresponds to the wireless connection. Whether the network quality of the ingress is better than the quality of the currently connected wireless access point network, thus providing more efficient data for network switching.
可选地,在本发明实施例中,上述预设切换条件可以包括:至少一个备用网卡检测的网络质量优于至少一个工作网卡检测的网络质量。也就是说,将网络质量作为判断因子之一对预设切换条件进行判断,也即根据网络质量等判断因子判断备用网卡对应的无线接入点的网络质量是否优于工作网卡对应的无线接入点的网络质量。在实际应用中,并非一定要求备用网卡对应无线接入点的网络质量优于当前工作网卡对应无线接入点的网络质量,只要该备用网卡对应无线接入点的网络质量整体比当前工作网卡对应无线接入点的网络质量即可。例如,当前工作网卡对应的无线接入点的丢包率较低,但网络延时、实际带宽和理论带宽均较差,而备用网卡中的一个网卡对应的无线接入点的网络延时、实际带宽均优于当前无线接入点的网络延时、实际带宽,但丢包率却高于当前无线接入点的丢包率;在对丢包率要求不高的情况下,可认为该备用网卡对应的无线接入点的网络质量要优于当前无线接入 点的网络质量。因此,可综合考量每个无线接入点的网络质量等衡量指标,选择最合适的无线接入点进行切换。同时,在进行切换时,实际切换的是网卡,即将当前的工作网卡切换为备用网卡,将待切换的备用网卡切换为工作网卡进行业务传输,以最大程度的确保终端的业务不会因为网卡的切换而中断。Optionally, in the embodiment of the present invention, the foregoing preset switching condition may include: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card. That is to say, the network quality is used as one of the determining factors to determine the preset switching condition, that is, according to the network quality and other determining factors, whether the network quality of the wireless access point corresponding to the standby network card is better than the wireless access corresponding to the working network card. The network quality of the point. In practical applications, the network quality of the wireless access point corresponding to the secondary network card is not necessarily higher than the network quality of the wireless access point corresponding to the current working network card, as long as the network quality of the wireless access point corresponding to the standby network card corresponds to the current working network card. The network quality of the wireless access point is OK. For example, the packet loss rate of the wireless access point corresponding to the current working network card is low, but the network delay, the actual bandwidth, and the theoretical bandwidth are both poor, and the network delay of the wireless access point corresponding to one network card in the standby network card, The actual bandwidth is better than the network delay and actual bandwidth of the current wireless access point, but the packet loss rate is higher than the current packet loss rate of the wireless access point; in the case where the packet loss rate is not high, the The network quality of the wireless access point corresponding to the backup network card is better than the current wireless access. The network quality of the point. Therefore, the measurement indicators such as the network quality of each wireless access point can be comprehensively considered, and the most suitable wireless access point can be selected for switching. At the same time, when switching, the actual switch is the network card, that is, the current working network card is switched to the standby network card, and the standby network card to be switched is switched to the working network card for service transmission, so as to ensure that the service of the terminal is not caused by the network card to the greatest extent. Switched and interrupted.
可选地,本发明实施例在进行切换网卡之前,还可考虑终端当前是否进行下载等连续性的网络业务,若在进行连续性网络业务,可能会导致网络业务短暂中断,当网络连接后自动继续完成下载。虽然本发明实施提供的无线接入点切换方法能够最大程度的保证业务不会因为网络切换而中断,但对于连续性网络业务依然会产生较小的影响,因此,在没有进行下载等连续性网络业务的情况下,对于应用来说,网络在后台进行快速切换,并且网络的临时中断对于用户基本不可见,使得用户有很好的使用体验。Optionally, before performing the handover of the network card, the embodiment of the present invention may also consider whether the terminal currently performs continuous network services such as downloading. If the continuous network service is performed, the network service may be temporarily interrupted, and the network connection is automatically Continue to complete the download. Although the wireless access point switching method provided by the implementation of the present invention can ensure that the service is not interrupted by the network switching to the greatest extent, it still has a small impact on the continuous network service, and therefore, the continuous network is not downloaded. In the case of services, for the application, the network performs fast switching in the background, and the temporary interruption of the network is basically invisible to the user, so that the user has a good use experience.
可选地,在本发明实施例中,除了通过网络质量检测模块43对网络质量进行检测外,还可通过信号质量检测模块45对信号质量进行检测,如检测每个无线接入点的信号强度。该信号质量可以是无线接入点与目标服务器之间的业务通信质量参数,通过该信号质量确认每个无线接入点中哪个无线接入点的连接质量更优于当前连接的无线接入点连接质量,从而更精准的选择一个最优的无线接入点,为网络切换以供更有效的数据。每个网卡检测到与其对应的无线接入点的信号质量后,根据每个网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量,当存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换,也即确定需要进行状态切换的网卡,如哪个工作网卡需要切换成备用网卡作为备选,哪个备用网卡需要切换成工作网卡进行后续的业务传输。Optionally, in the embodiment of the present invention, in addition to detecting the network quality by the network quality detecting module 43, the signal quality may be detected by the signal quality detecting module 45, such as detecting the signal strength of each wireless access point. . The signal quality may be a service communication quality parameter between the wireless access point and the target server, by which the quality of the connection of each wireless access point is better than the currently connected wireless access point. The quality of the connection allows for a more precise selection of an optimal wireless access point for network switching for more efficient data. After each network card detects the signal quality of the corresponding wireless access point, it is determined according to the signal quality detected by each network card whether there is at least one standby network card detecting signal quality better than at least one working network card detecting signal quality, when there is at least When the signal quality detected by an alternate network card is better than the signal quality detected by at least one working network card, the working network card and the standby network card to be switched are determined and the switching is completed, that is, the network card that needs to be switched, for example, which working network card needs to be switched to standby. As an alternative, the NIC needs to be switched to a working NIC for subsequent service transmission.
可选地,在本发明实施例中,上述预设切换条件包括:至少一个备用网卡检测的网络质量优于至少一个工作网卡检测的网络质量。当备用网卡检测的网络质量中存在一个优于至少一个工作网卡检测的网络质量时,将网卡作为待切换备用网卡,将待切换的备用网卡切换为工作网卡替换工作网卡中的任意一个,或者根据优先级进行替换;当备用网卡检测的网络质量中存在至 少两个优于至少一个工作网卡检测的网络质量时,将该网络质量中的任意一个作为待切换备用网卡,将该备用网卡切换为工作网卡替换工作网卡中的任意一个,或者根据优先级进行替换。Optionally, in the embodiment of the present invention, the foregoing preset switching condition includes: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card. When there is a network quality better than the at least one working network card detection in the network quality detected by the backup network card, the network card is used as the standby network card to be switched, and the standby network card to be switched is switched to any one of the working network card replacement working network cards, or according to Priority is replaced; when the network quality detected by the alternate NIC is present to When two network qualities are better than the at least one working network card detection, any one of the network quality is used as the standby network card to be switched, and the standby network card is switched to any one of the working network card replacement working network cards, or according to the priority. replace.
可选地,在本发明实施例中,当前无线接入点包括未连接的无线接入点时,还可以根据预先设定的使能条件确定该未连接过的无线接入点是否能够与网卡建立通信连接;在能够建立通信连接的情况下,通过至少两个网卡与已经连接过的无线接入点以及满足该使能条件的无线接入点建立通信在实际应用中,考虑到未连接的无线接入点(包括未连接的开放无线接入点)可能会存在安全隐患,因此,可以在终端中增加一个设置项,设置是否允许终端尝试连接未连接过的无线接入点,在该功能被使能的情况下则会通过网卡与该无线接入点建立通信连接,从而在自动切换网络质量更优的无线接入点的情况下,也可保证用户信息安全。Optionally, in the embodiment of the present invention, when the current wireless access point includes an unconnected wireless access point, whether the unconnected wireless access point can be connected to the network card may be determined according to a preset enabling condition. Establishing a communication connection; in the case of being able to establish a communication connection, establishing communication with the already connected wireless access point and the wireless access point satisfying the enabling condition by at least two network cards, in practical applications, considering unconnected Wireless access points (including unconnected open wireless access points) may have security risks. Therefore, you can add a setting item to the terminal to set whether to allow the terminal to try to connect to the unconnected wireless access point. When enabled, the network card establishes a communication connection with the wireless access point, thereby ensuring user information security in the case of automatically switching wireless access points with better network quality.
本发明实施例提供的无线接入点切换装置,可确保终端自动连接或切换到最合适的无线接入点,为用户提供最好的网络接入服务,同时,在网络切换过程中,因为只是对网卡的状态进行切换,如工作网卡切换为备用网卡,备用网卡切换为工作网卡,无需在网络切换后重新通过网卡与接入点建立通信连接,从而最大限度的确保终端的业务不因为网络切换而中断,从而提升用户的网络使用体验。The wireless access point switching device provided by the embodiment of the present invention can ensure that the terminal automatically connects or switches to the most suitable wireless access point, providing the best network access service for the user, and at the same time, during the network switching process, because only Switch the status of the network card. For example, if the working network card is switched to the standby network card, the backup network card is switched to the working network card. It is not necessary to establish a communication connection with the access point through the network card after the network is switched, so as to ensure that the service of the terminal is not caused by the network switching. And interrupt, thereby improving the user's network experience.
本发明实施例还提供了一种终端,该终端包括上述图5和图6所示任一实施例中的无线接入点切换装置。该终端可以是智能手机、平板电脑、笔记本电脑等能够进行WiFi连接的终端。终端中安装至少一个应用程序,每个应用程序都需要通过WiFi模块与无线接入点建立通信,从而实现业务传输。WiFi模块中创建至少两个虚拟网卡,实质上终端通过该虚拟网卡为各应用程序提供网络服务。The embodiment of the invention further provides a terminal, which comprises the wireless access point switching device in any of the embodiments shown in FIG. 5 and FIG. The terminal can be a terminal capable of WiFi connection, such as a smart phone, a tablet computer, or a notebook computer. At least one application is installed in the terminal, and each application needs to establish communication with the wireless access point through the WiFi module, thereby realizing service transmission. At least two virtual network cards are created in the WiFi module, and the terminal provides network services for each application through the virtual network card.
本发明的实施例还提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机可执行指令,该处理器执行计算机可执行指令时,进行如下操作,即S1~S3:An embodiment of the present invention further provides a computer readable storage medium having stored therein computer executable instructions, and when the processor executes the computer executable instructions, performing the following operations, namely, S1 to S3:
S1,通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建 立通信连接,其中,至少一个网卡设置为工作网卡,其余至少一个网卡设置为备用网卡。S1, configured by using at least two network cards and at least two wireless access points that meet the access conditions. A communication connection, wherein at least one network card is set as a working network card, and the remaining at least one network card is set as a standby network card.
可选地,本发明实施例中配置的至少两个网卡可以包括:配置的至少两个无线网卡;或,通过一个无线网卡创建的至少两个虚拟网卡。Optionally, the at least two network cards configured in the embodiment of the present invention may include: at least two configured wireless network cards; or at least two virtual network cards created by one wireless network card.
S2、每个网卡分别检测与本网卡对应的无线接入点的网络质量,网络质量为无线接入点与目标服务器之间的业务通信质量。S2: Each network card detects the network quality of the wireless access point corresponding to the network card, and the network quality is the quality of service communication between the wireless access point and the target server.
S3,将每个网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定待切换的工作网卡和备用网卡,根据判断结果完成切换。S3: The network quality detected by each network card is used as one of the determining factors, and the preset switching condition is determined, and the working network card and the standby network card to be switched are determined, and the switching is completed according to the judgment result.
可选地,本发明实施例中的预设切换条件包括:至少一个备用网卡检测的网络质量优于至少一个工作网卡检测的网络质量。Optionally, the preset switching condition in the embodiment of the present invention includes: the network quality detected by the at least one standby network card is better than the network quality detected by the at least one working network card.
可选地,在本发明实施例中,上述判断因子还包括信号质量,上述处理器执行计算机可执行指令时,在S1之后,还进行如下操作,即S4~S6:Optionally, in the embodiment of the present invention, the determining factor further includes a signal quality, and when the processor executes the computer executable instruction, after S1, performing the following operations, that is, S4 to S6:
S4、每个网卡分别检测与本网卡对应的无线接入点的信号质量;S4. Each network card separately detects a signal quality of a wireless access point corresponding to the network card;
S5、根据每个网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量;S5. Determine, according to the signal quality detected by each network card, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
S6、当判断出存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换。S6. When it is determined that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, determine the working network card and the standby network card to be switched, and complete the handover.
可选地,在本发明实施例中,上述处理器执行计算机可执行指令时,执行S2的实现方式,可以包括:Optionally, in the embodiment of the present invention, when the processor executes the computer executable instruction, performing the implementation of S2 may include:
每个网卡分别检测与本网卡对应的无线接入点的网络延时、丢包率、理论带宽和实际带宽中的一项或多项。Each network card detects one or more of a network delay, a packet loss rate, a theoretical bandwidth, and an actual bandwidth of the wireless access point corresponding to the network card.
可选地,在本发明实施例中,上述处理器执行计算机可执行指令时,且当满足接入条件的无线接入点包括未连接过的无线接入点时,还进行如下操作,即S7~S8:Optionally, in the embodiment of the present invention, when the processor executes the computer executable instruction, and when the wireless access point that satisfies the access condition includes the unconnected wireless access point, the following operation is performed, that is, the S7 ~S8:
S7,根据预先设定的使能条件确定未连接过的无线接入点是否能够与网卡建立通信连接;S7, determining, according to the preset enabling condition, whether the unconnected wireless access point can establish a communication connection with the network card;
S8,通过至少两个网卡与已经连接过的无线接入点以及满足使能条件的 无线接入点建立通信连接。S8, through at least two network cards and the wireless access point that has been connected, and the enabling condition The wireless access point establishes a communication connection.
以上内容是结合可选实施例和可选实施方式对本发明实施例所作的详细说明,不能认定本发明的实施只局限于这些说明。对于本发明所属技术领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干简单推演或替换,都应当视为属于本发明实施例的保护范围。The above is a detailed description of the embodiments of the present invention in conjunction with the alternative embodiments and alternative embodiments, and it is not considered that the implementation of the invention is limited only. It is to be understood by those skilled in the art that the present invention can be made in a manner that is not limited to the scope of the present invention.
本领域普通技术人员可以理解上述实施例的全部或部分步骤可以使用计算机程序流程来实现,所述计算机程序可以存储于一计算机可读存储介质中,所述计算机程序在相应的硬件平台上(根据系统、设备、装置、器件等)执行,在执行时,包括方法实施例的步骤之一或其组合。One of ordinary skill in the art will appreciate that all or a portion of the steps of the above-described embodiments can be implemented using a computer program flow, which can be stored in a computer readable storage medium on a corresponding hardware platform (according to The system, device, device, device, etc. are executed, and when executed, include one or a combination of the steps of the method embodiments.
可选地,上述实施例的全部或部分步骤也可以使用集成电路来实现,这些步骤可以被分别制作成一个个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。Alternatively, all or part of the steps of the above embodiments may also be implemented by using an integrated circuit. These steps may be separately fabricated into individual integrated circuit modules, or multiple modules or steps may be fabricated into a single integrated circuit module. achieve.
上述实施例中的装置/功能模块/功能单元可以采用通用的计算装置来实现,它们可以集中在单个的计算装置上,也可以分布在多个计算装置所组成的网络上。The devices/function modules/functional units in the above embodiments may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices.
上述实施例中的装置/功能模块/功能单元以软件功能模块的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。上述提到的计算机可读取存储介质可以是只读存储器,磁盘或光盘等。When the device/function module/functional unit in the above embodiment is implemented in the form of a software function module and sold or used as a stand-alone product, it can be stored in a computer readable storage medium. The above mentioned computer readable storage medium may be a read only memory, a magnetic disk or an optical disk or the like.
工业实用性Industrial applicability
本发明实施例通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中至少一个网卡设置为工作网卡,其余至少一个网卡设置为备用网卡;每个网卡分别检测与本网卡对应无线接入点的网络质量,将每个网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定待切换的工作网卡和备用网卡,从而根据判断结果完成切换;本发明实施例通过上述技术方案,使得终端能够在当前连接的接入点网络质量变差的情况下自动切换至网络质量更好的接入点进行业务传输,另外,在网络切换的过程中,由于每个网卡与接入点已建立通信连接,只需对网卡状态 进行切换,如工作网卡切换成备用网卡,备用网卡切换成工作网卡,无需重新建立通信连接,可以最大限度的确保终端的业务不会因为网络切换而中断,从而提升用户体验。 In the embodiment of the present invention, at least two network cards are configured to establish a communication connection with at least two wireless access points that meet the access conditions, wherein at least one network card is set as a working network card, and at least one other network card is set as a standby network card; each network card is separately configured. Detecting the network quality of the wireless access point corresponding to the network card, determining the network quality detected by each network card as one of the determining factors, determining the preset switching condition, and determining the working network card and the standby network card to be switched, thereby determining the result according to the judgment The handover is completed. In the embodiment of the present invention, the terminal can automatically switch to an access point with better network quality for service transmission when the network quality of the currently connected access point is deteriorated, and in addition, the network is switched. In the process, since each network card has established a communication connection with the access point, only the status of the network card is required. Switching, for example, the working network card is switched to the standby network card, and the standby network card is switched to the working network card. There is no need to re-establish the communication connection, which can ensure that the terminal's service is not interrupted due to network switching, thereby improving the user experience.

Claims (14)

  1. 一种无线接入点切换方法,包括:A wireless access point switching method includes:
    通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中,至少一个所述网卡设置为工作网卡,其余至少一个所述网卡设置为备用网卡;Establishing a communication connection with at least two wireless access points that meet the access conditions by using at least two network cards, wherein at least one of the network cards is configured as a working network card, and at least one of the remaining network cards is configured as a standby network card;
    每个所述网卡分别检测与本网卡对应的无线接入点的网络质量,所述网络质量为无线接入点与目标服务器之间的业务通信质量;Each of the network cards respectively detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality between the wireless access point and the target server;
    将每个所述网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定待切换的工作网卡和备用网卡,根据判断结果完成切换。The network quality detected by each of the network cards is used as one of the determining factors, and the preset switching condition is determined, and the working network card and the standby network card to be switched are determined, and the switching is completed according to the determination result.
  2. 根据权利要求1所述的无线接入点切换方法,其中,所述判断因子还包括信号质量,所述通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接之后,所述方法还包括:The wireless access point switching method according to claim 1, wherein the determining factor further comprises a signal quality, and the at least two network cards configured to establish a communication connection with at least two wireless access points satisfying an access condition Thereafter, the method further includes:
    每个所述网卡分别检测与本网卡对应的无线接入点的信号质量;Each of the network cards respectively detects a signal quality of a wireless access point corresponding to the network card;
    根据每个所述网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量;Determining, according to the signal quality detected by each of the network cards, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
    当判断出存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换。When it is determined that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, the working network card and the standby network card to be switched are determined and the handover is completed.
  3. 根据权利要求1所述的无线接入点切换方法,其中,所述预设切换条件包括:The wireless access point switching method according to claim 1, wherein the preset switching condition comprises:
    至少一个备用网卡检测的网络质量优于至少一个工作网卡检测的网络质量。The network quality detected by at least one standby network card is better than the network quality detected by at least one working network card.
  4. 根据权利要求1~3中任一项所述的无线接入点切换方法,其中,每个所述网卡分别检测与本网卡对应的无线接入点的网络质量,包括:The wireless access point switching method according to any one of claims 1 to 3, wherein each of the network cards respectively detects network quality of a wireless access point corresponding to the local network card, including:
    每个所述网卡分别检测与本网卡对应的无线接入点的网络延时、丢包率、理论带宽和实际带宽中的一项或多项。Each of the network cards respectively detects one or more of a network delay, a packet loss rate, a theoretical bandwidth, and an actual bandwidth of the wireless access point corresponding to the network card.
  5. 根据权利要求1~3中任一项所述的无线接入点切换方法,其中,所述配置的至少两个网卡包括: The wireless access point switching method according to any one of claims 1 to 3, wherein the configured at least two network cards comprise:
    配置的至少两个无线网卡;或,Configure at least two wireless network cards; or,
    通过一个无线网卡创建的至少两个虚拟网卡。At least two virtual NICs created by a wireless network card.
  6. 根据权利要求1~3中任一项所述的无线接入点切换方法,其中,当满足接入条件的无线接入点包括未连接过的无线接入点时,所述方法还包括:The wireless access point switching method according to any one of claims 1 to 3, wherein when the wireless access point that satisfies the access condition includes an unconnected wireless access point, the method further includes:
    根据预先设定的使能条件确定所述未连接过的无线接入点是否能够与所述网卡建立通信连接;Determining, according to a preset enabling condition, whether the unconnected wireless access point can establish a communication connection with the network card;
    所述通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,包括:Establishing, by the configured at least two network cards, a communication connection with at least two wireless access points that meet an access condition, including:
    通过所述至少两个网卡与已经连接过的无线接入点以及满足所述使能条件的无线接入点建立通信连接。Establishing a communication connection with the already connected wireless access point and the wireless access point satisfying the enabling condition by the at least two network cards.
  7. 一种无线接入点切换装置,包括:A wireless access point switching device includes:
    通信模块,设置为:通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中,至少一个所述网卡设置为工作网卡,其余至少一个所述网卡设置为备用网卡;a communication module, configured to: establish, by using at least two network cards configured, a communication connection with at least two wireless access points that meet an access condition, wherein at least one of the network cards is configured as a working network card, and at least one of the remaining network cards is set to Alternate network card;
    网络质量检测模块,设置为:每个所述网卡分别检测与本网卡对应的无线接入点的网络质量,所述网络质量为无线接入点与目标服务器之间的业务通信质量;The network quality detecting module is configured to: each of the network cards respectively detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality between the wireless access point and the target server;
    接入点切换模块,设置为:将每个所述网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定如需要切换时待切换的工作网卡和备用网卡,根据判断结果完成切换。The access point switching module is configured to: determine the network quality detected by each of the network cards as one of the determining factors, determine the preset switching condition, and determine the working network card and the standby network card to be switched when the switching is required, according to the judgment The result is completed.
  8. 根据权利要求7所述的无线接入点切换装置,其中,所述判断因子还包括信号质量,所述装置还包括:The wireless access point switching device of claim 7, wherein the determining factor further comprises a signal quality, the device further comprising:
    信号质量检测模块,设置为:在所述通信模块通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接之后,每个所述网卡分别检测与本网卡对应的无线接入点的信号质量;a signal quality detecting module, configured to: after the communication module establishes a communication connection with at least two wireless access points satisfying an access condition by using at least two network cards configured, each of the network cards respectively detects a network card corresponding to the network card Signal quality of the wireless access point;
    信号质量判断模块,设置为:根据每个所述网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量; The signal quality judging module is configured to: determine, according to the signal quality detected by each of the network cards, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
    所述接入点切换模块,还设置为:当信号质量判断模块判断出存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换。The access point switching module is further configured to: when the signal quality determining module determines that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, determine the working network card and the standby network card to be switched. Complete the switch.
  9. 根据权利要求7或8所述的无线接入点切换装置,其中,所述预设切换条件包括:The wireless access point switching device according to claim 7 or 8, wherein the preset switching condition comprises:
    至少一个备用网卡检测的网络质量优于至少一个工作网卡检测的网络质量。The network quality detected by at least one standby network card is better than the network quality detected by at least one working network card.
  10. 根据权利要求7或8所述的无线接入点切换装置,还包括:The wireless access point switching device according to claim 7 or 8, further comprising:
    网卡配置模块,设置为:配置所述至少两个网卡;The network card configuration module is configured to: configure the at least two network cards;
    其中,所述网卡配置模块配置所述至少两个网卡,包括:The network card configuration module configures the at least two network cards, including:
    配置至少两个无线网卡;或,Configure at least two wireless network cards; or,
    通过一个无线网卡创建至少两个虚拟网卡。Create at least two virtual NICs through a wireless network card.
  11. 一种终端,包括如权利要求7~10中任一项所述的无线接入点切换装置。A terminal comprising the wireless access point switching device according to any one of claims 7 to 10.
  12. 一种计算机可读存储介质,所述计算机可读存储介质中存储有计算机可执行指令,所述处理器执行所述计算机可执行指令时,进行如下操作:A computer readable storage medium having stored therein computer executable instructions, and when the processor executes the computer executable instructions, performing the following operations:
    通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,其中,至少一个所述网卡设置为工作网卡,其余至少一个所述网卡设置为备用网卡;Establishing a communication connection with at least two wireless access points that meet the access conditions by using at least two network cards, wherein at least one of the network cards is configured as a working network card, and at least one of the remaining network cards is configured as a standby network card;
    每个所述网卡分别检测与本网卡对应的无线接入点的网络质量,所述网络质量为无线接入点与目标服务器之间的业务通信质量;Each of the network cards respectively detects a network quality of a wireless access point corresponding to the network card, where the network quality is a service communication quality between the wireless access point and the target server;
    将每个所述网卡检测的网络质量作为判断因子之一,进行预设切换条件的判断,并确定待切换的工作网卡和备用网卡,根据判断结果完成切换。The network quality detected by each of the network cards is used as one of the determining factors, and the preset switching condition is determined, and the working network card and the standby network card to be switched are determined, and the switching is completed according to the determination result.
  13. 根据权利要求12所述的计算机可读存储介质,其中,所述判断因子还包括信号质量,所述处理器执行所述计算机可执行指令时,还进行如下操作:The computer readable storage medium of claim 12, wherein the determination factor further comprises signal quality, and when the processor executes the computer executable instructions, further performing the following operations:
    每个所述网卡分别检测与本网卡对应的无线接入点的信号质量; Each of the network cards respectively detects a signal quality of a wireless access point corresponding to the network card;
    根据每个所述网卡检测的信号质量判断是否存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量;Determining, according to the signal quality detected by each of the network cards, whether the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card;
    当判断出存在至少一个备用网卡检测的信号质量优于至少一个工作网卡检测的信号质量时,确定待切换的工作网卡和备用网卡并完成切换。When it is determined that the signal quality detected by the at least one standby network card is better than the signal quality detected by the at least one working network card, the working network card and the standby network card to be switched are determined and the handover is completed.
  14. 根据权利要求12或13所述的计算机可读存储介质,其中,所述处理器执行所述计算机可执行指令时,且当满足接入条件的无线接入点包括未连接过的无线接入点时,还进行如下操作:A computer readable storage medium according to claim 12 or claim 13, wherein said processor executes said computer executable instructions, and when a wireless access point meeting an access condition comprises an unconnected wireless access point At the same time, the following operations are also performed:
    根据预先设定的使能条件确定所述未连接过的无线接入点是否能够与所述网卡建立通信连接;Determining, according to a preset enabling condition, whether the unconnected wireless access point can establish a communication connection with the network card;
    所述通过配置的至少两个网卡与至少两个满足接入条件的无线接入点建立通信连接,包括:Establishing, by the configured at least two network cards, a communication connection with at least two wireless access points that meet an access condition, including:
    通过所述至少两个网卡与已经连接过的无线接入点以及满足所述使能条件的无线接入点建立通信连接。 Establishing a communication connection with the already connected wireless access point and the wireless access point satisfying the enabling condition by the at least two network cards.
PCT/CN2017/089373 2016-07-25 2017-06-21 Wireless access point switching method and apparatus, and terminal WO2018019058A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610592412.8A CN107659971A (en) 2016-07-25 2016-07-25 A kind of wireless access point switching method, device and terminal
CN201610592412.8 2016-07-25

Publications (1)

Publication Number Publication Date
WO2018019058A1 true WO2018019058A1 (en) 2018-02-01

Family

ID=61016994

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/089373 WO2018019058A1 (en) 2016-07-25 2017-06-21 Wireless access point switching method and apparatus, and terminal

Country Status (2)

Country Link
CN (1) CN107659971A (en)
WO (1) WO2018019058A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338457A (en) * 2021-12-23 2022-04-12 绿盟科技集团股份有限公司 System, method, device, equipment and medium for testing network card switching effectiveness
CN115118584A (en) * 2022-04-29 2022-09-27 上海辰锐信息科技公司 Self-adaptive mechanism for cross-domain network cooperative communication
US20230397050A1 (en) * 2022-06-07 2023-12-07 Comcast Cable Communications, Llc Gateway management

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100232389A1 (en) * 2006-03-29 2010-09-16 Kyungpook National University Industry-Academic Cooperation Foundation Method and system for high speed intra-domain mobility management using dual interfaces in wireless lan/man
CN104135747A (en) * 2014-07-04 2014-11-05 广州杰赛科技股份有限公司 Mobile IPv6 node handover method and mobile IPv6 node
CN105792290A (en) * 2014-12-23 2016-07-20 乐视移动智能信息技术(北京)有限公司 Method and device for controlling intelligent terminal to perform wireless roaming

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100232389A1 (en) * 2006-03-29 2010-09-16 Kyungpook National University Industry-Academic Cooperation Foundation Method and system for high speed intra-domain mobility management using dual interfaces in wireless lan/man
CN104135747A (en) * 2014-07-04 2014-11-05 广州杰赛科技股份有限公司 Mobile IPv6 node handover method and mobile IPv6 node
CN105792290A (en) * 2014-12-23 2016-07-20 乐视移动智能信息技术(北京)有限公司 Method and device for controlling intelligent terminal to perform wireless roaming

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BRIK, VLADIMIR ET AL.: "Eliminating Handoff Latencies in 802.11 WLANs Using Multiple Radios: Applications, Experiences, and Evaluation", ACM IMC '05, 31 October 2005 (2005-10-31), pages 1 - 6, XP055297365 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114338457A (en) * 2021-12-23 2022-04-12 绿盟科技集团股份有限公司 System, method, device, equipment and medium for testing network card switching effectiveness
CN114338457B (en) * 2021-12-23 2023-12-01 绿盟科技集团股份有限公司 Test system, method, device, equipment and medium for network card switching effectiveness
CN115118584A (en) * 2022-04-29 2022-09-27 上海辰锐信息科技公司 Self-adaptive mechanism for cross-domain network cooperative communication
US20230397050A1 (en) * 2022-06-07 2023-12-07 Comcast Cable Communications, Llc Gateway management

Also Published As

Publication number Publication date
CN107659971A (en) 2018-02-02

Similar Documents

Publication Publication Date Title
EP3322217B1 (en) Wireless hotspot switching method, mobile terminal and storage medium
US10791492B2 (en) Method and apparatus for monitoring internet connection status in wireless communication system
US10178051B2 (en) Data transmission method and apparatus for terminal
CN106162511B (en) D2D relay node determination and use method and device
EP2384061B1 (en) Apparatus and method for automatic SIM card selection according to network environment in dual mode terminal
CN104936240A (en) Network switching method and terminal
CN110537334A (en) Application method, device and the storage medium of aerial panel
EP3763164B1 (en) Electronic device supporting multiple wireless communication protocols and method therefor
EP2596436B1 (en) Switched application processor apparatus for cellular devices
US10588067B2 (en) Terminal apparatus, communication system, and connection-destination selection method
CN104066129A (en) Network switching method and system
WO2018019058A1 (en) Wireless access point switching method and apparatus, and terminal
EP3783957B1 (en) Transmission path switching method, computer-readable storage medium and device
KR20170043503A (en) Terminal-based communication method and terminal
US20140079014A1 (en) Method for managing selective access to a wireless network in a mobile terminal and an apparatus for same
CN102932863A (en) QOS (Quality of Service)-based method for selecting network connection mode by terminal equipment
CN109769275A (en) WIFI frequency band switching method, device, equipment and computer storage medium
EP3029995B1 (en) Communications processing device, control method and control program for this, communications processing system
CN109155927A (en) Method for handover control, controlling terminal and unmanned plane
WO2023011538A1 (en) Information reporting method, terminal and network side device
CN109587765B (en) Link aggregation implementation method and related product
US20150319683A1 (en) Communication system, communication device, and connection selection control method
CN112788658A (en) Data sharing method of communication equipment, communication equipment and storage medium
CN105979607B (en) Method for using the peer-data of WLAN radio to shift
WO2017054600A1 (en) Mobile communication network control method for mobile terminal, and mobile terminal

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17833362

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17833362

Country of ref document: EP

Kind code of ref document: A1