CN111148170A - Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium - Google Patents

Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium Download PDF

Info

Publication number
CN111148170A
CN111148170A CN201911368793.1A CN201911368793A CN111148170A CN 111148170 A CN111148170 A CN 111148170A CN 201911368793 A CN201911368793 A CN 201911368793A CN 111148170 A CN111148170 A CN 111148170A
Authority
CN
China
Prior art keywords
network
hotspot
wifi
wifi hotspot
information
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN201911368793.1A
Other languages
Chinese (zh)
Inventor
向日锋
缪理宾
李凡
孙国勇
付丽红
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suning Intelligent Terminal Co ltd
Original Assignee
Suning Intelligent Terminal Co ltd
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 Suning Intelligent Terminal Co ltd filed Critical Suning Intelligent Terminal Co ltd
Priority to CN201911368793.1A priority Critical patent/CN111148170A/en
Publication of CN111148170A publication Critical patent/CN111148170A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/16Discovering, processing access restriction or access information
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0083Determination of parameters used for hand-off, e.g. generation or modification of neighbour cell lists
    • 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
    • H04W48/00Access restriction; Network selection; Access point selection
    • H04W48/20Selecting an access point

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application relates to a multi-hot-spot network distribution method, a multi-hot-spot network distribution device, a network card, computer equipment and a storage medium. The method comprises the following steps: when a first network card of the terminal equipment is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal equipment, detecting the network performance of each WIFI hotspot in the multi-hotspot set, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set; connecting a second network card of the terminal equipment with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the rest WIFI hotspots, and the rest WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot; and when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition, switching to network connection of the terminal equipment through the second network card. By adopting the method, the stability of data transmission of the terminal equipment can be improved.

Description

Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium
Technical Field
The present application relates to the field of multi-hot-spot distribution network technologies, and in particular, to a multi-hot-spot distribution network method, apparatus, network card, computer device, and storage medium.
Background
Today, how to make home products more intelligent is the primary objective of various traditional homes, household appliances and integrated manufacturers due to the rapid development of the internet of things technology. The household products are connected with the Internet, and the intelligent basis for realizing the household products is provided. The WIFI technology gradually becomes one of the mainstream technologies of the smart home networking technology due to its advantages of high flexibility, mobility, low cost, and the like.
At present, a terminal device is connected with a WIFI hotspot, when a network environment is unstable or changes, the device needs to be distributed again, otherwise, uploaded state data are lost or a control instruction issued by a user fails, and the problem of network instability can occur in the process of re-distributing the network.
Disclosure of Invention
Therefore, it is necessary to provide a multi-hot-spot network distribution method, device, network card, computer device and storage medium capable of improving network stability in view of the above technical problems.
A method for a network distribution with multiple hot spots comprises the following steps:
when a first network card of the terminal equipment is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal equipment, detecting the network performance of each WIFI hotspot in the multi-hotspot set, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
connecting a second network card of the terminal equipment with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the rest WIFI hotspots, and the rest WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition, switching to network connection of the terminal equipment through the second network card.
In one embodiment, the method further includes:
receiving hotspot information of a plurality of WIFI hotspots sent by the distribution network equipment, wherein the WIFI hotspots are used as each WIFI hotspot in a multi-hotspot set, and preferably, the hotspot information comprises WIFI hotspot identification and password information;
storing hotspot information of a plurality of WIFI hotspots;
screening a WIFI hotspot with the best current network performance from a plurality of WIFI hotspots, and taking the selected WIFI hotspot as a first WIFI hotspot;
and controlling the first network card to be connected with the first WIFI hotspot according to the hotspot information of the first WIFI hotspot.
In one embodiment, the detecting network performance of each WIFI hotspot in the multi-hotspot set includes:
detecting the network speed value, network delay information and signal strength information of each WIFI hotspot in the multi-hotspot set;
and respectively determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the network delay information and the signal strength information.
In one embodiment, the detecting network performance of each WIFI hotspot in the multi-hotspot set includes:
detecting the network speed value, the packet loss rate and the signal intensity information of each WIFI hotspot in the multi-hotspot set;
and respectively determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the packet loss rate and the signal strength information.
In one embodiment, the above-mentioned current network performance optimization refers to the maximum value of the network performance parameter
In one embodiment, the determining, according to the network speed value, the network delay information, and the signal strength information, the network performance parameters of each WIFI hotspot in the multi-hotspot set respectively includes:
determining a network speed value according to the network speed value, determining a network delay value according to network delay information, and determining a signal strength value according to signal strength information;
and carrying out weighted summation on the network speed score value, the network delay score value and the signal strength score value to obtain the network performance parameters.
In one embodiment, the determining, according to the network speed value, the packet loss rate, and the signal strength information, the network performance parameters of each WIFI hotspot in the multi-hotspot set respectively includes:
determining a network speed score value according to the network speed value, determining a packet loss score value according to the packet loss rate, and determining a signal strength score value according to the signal strength information;
and carrying out weighted summation on the network speed score value, the packet loss score value and the signal strength score value to obtain the network performance parameters.
In one embodiment, the method further includes: and when the WIFI hotspots meeting the preset second network connection condition exist in the remaining WIFI hotspots according to the last round of network performance detection results of the remaining WIFI hotspots, determining the WIFI hotspot with the best current network performance in the remaining WIFI hotspots according to the last round of network performance detection results.
In one embodiment, the method further includes: and when the network performance parameters of the WIFI hotspots with the best network performance in the current round in the multi-hotspot set are smaller than a preset threshold value, or when the network performance parameters of the WIFI hotspots with the best network performance in the continuous rounds in the multi-hotspot set are smaller than the preset threshold value, sending prompt information to the distribution network equipment.
In one embodiment, the method further includes: and when a hotspot information change request sent by the distribution network equipment is received, adding, deleting or updating the stored hotspot information according to the hotspot information change request. In one embodiment, the change information of the hotspot information is synchronized to the second network card.
In one embodiment, the terminal device is a mobile terminal device.
In one embodiment, the mobile terminal device includes a sweeping robot, a greeting robot or a mobile self-service shopping robot.
A multi-hot spot distribution network apparatus, the apparatus comprising:
the detection module is used for detecting the network performance of each WIFI hotspot in the multi-hotspot set when a first network card of the terminal equipment is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal equipment, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
the first connection module is used for connecting a second network card of the terminal device with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and the remaining WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and the switching module is used for switching to network connection of the terminal equipment through the second network card when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition.
A network card, the network card comprising:
the performance detection unit is used for detecting the network performance of each WIFI hotspot in the multi-hotspot set when a first network card of the terminal equipment is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal equipment, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
the first hotspot connection unit is used for connecting a second network card of the terminal device with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and the remaining WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and the network connection switching unit is used for switching to network connection of the terminal equipment through the second network card when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition.
A terminal device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
when a first network card of the terminal equipment is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal equipment, detecting the network performance of each WIFI hotspot in the multi-hotspot set, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
connecting a second network card of the terminal equipment with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the rest WIFI hotspots, and the rest WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition, switching to network connection of the terminal equipment through the second network card.
A computer-readable storage medium, on which a computer program is stored which, when executed by a processor, carries out the steps of:
when a first network card of the terminal equipment is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal equipment, detecting the network performance of each WIFI hotspot in the multi-hotspot set, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
connecting a second network card of the terminal equipment with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the rest WIFI hotspots, and the rest WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition, switching to network connection of the terminal equipment through the second network card.
In the multi-hotspot network distribution method, device, network card, computer equipment and storage medium in the embodiment of the application, when a first network card of the terminal equipment is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal equipment, the network performance of each WIFI hotspot in a multi-hotspot set is detected, a second network card of the terminal equipment is connected with a second WIFI hotspot, the second WIFI hotspot is a WIFI hotspot with the best current network performance in the rest WIFI hotspots, and when the network performance parameter of the first WIFI hotspot does not meet the preset first network connection condition, the network connection of the terminal equipment is switched to be performed through the second network card. Because the terminal device of this embodiment includes at least first network card and second network card, and when first network card connects first WIFI hotspot and first network card is used for terminal device's network connection, terminal device's second network card connects second WIFI hotspot, so, when the network performance of first WIFI hotspot does not satisfy the requirement, need not carry out the distribution network process again, can directly, switch over the WIFI hotspot fast, the efficiency and the smoothness of hotspot switch have been improved, the time delay is low, can promote network stability.
Drawings
FIG. 1 is a diagram of an application environment of a multi-hotspot network distribution method in one embodiment;
FIG. 2 is a schematic flow diagram illustrating a multi-hotspot network distribution method in one embodiment;
fig. 3 is a schematic flowchart of a multi-hotspot network distribution method in another embodiment;
FIG. 4 is a flow diagram illustrating the network performance detection step in one embodiment;
FIG. 5 is a schematic diagram illustrating hotspot selection for monitoring a network card in an embodiment;
FIG. 6 is a block diagram of a multi-hotspot distribution network device in one embodiment;
FIG. 7 is a block diagram illustrating the structure of the network card in one embodiment;
FIG. 8 is a diagram illustrating an internal structure of a computer device according to an embodiment.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more apparent, the present application is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application.
It is to be understood that the term "and/or", as used herein, describes an associative relationship of associated objects, meaning that three relationships may exist, e.g., a and/or B, may mean: a exists alone, A and B exist simultaneously, and B exists alone. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
The method for distributing the network by the multiple hot spots can be applied to the application environment shown in fig. 1. The distribution network device 102 may be a terminal, which may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices. The terminal device 104 is a WIFI terminal device, generally, the terminal device 104 is a mobile terminal device, and preferably, the mobile terminal device may be a WIFI terminal device that frequently moves and has a high requirement on network stability, such as a sweeping robot, a welcoming robot, or a mobile self-service shopping robot. The terminal device 104 at least includes two network cards, a first network card 1042 and a second network card 1044. The end devices 104 may communicate with the cloud server 106, which, although shown in fig. 1 as a cloud server, may be other types of servers. The distribution network device 102 may be configured to send hotspot information of a plurality of WIFI hotspots to the terminal device 104, the terminal device 104 may store the received hotspot information in a local memory 1044 thereof, detect network performance of each WIFI hotspot in the multi-hotspot set when a first network card 1042 of the terminal device is connected to a first WIFI hotspot and the first network card 1042 is used for network connection of the terminal device 104, connect a second network card 1046 of the terminal device 104 to a second WIFI hotspot, where the second WIFI hotspot is a WIFI hotspot with the best current network performance among the remaining WIFI hotspots, and switch to network connection of the terminal device through the second network card when a network performance parameter of the first WIFI hotspot does not satisfy a preset first network connection condition. The process has no network break, and the process of re-distributing the network is not needed, so that the stability of the network can be improved.
In an embodiment, as shown in fig. 2, a method for distributing a network with multiple hot spots is provided, which is described by taking the method as an example for being applied to the terminal device in fig. 1, and includes the following steps:
step 202, when a first network card of the terminal device is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal device, detecting network performance of each WIFI hotspot in the multi-hotspot set, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set.
Here, the terminal device is a WIFI terminal device, and the terminal device at least includes a first network card and a second network card, and the first network card and the second network card can realize different functions at different times. The function here may be a main network card function or a monitoring network card function. When the first network card is used for network connection of the terminal device, the first network card realizes the function of a main network card. Generally, when the first network card is used for network connection of the terminal device, the first network card is used for information interaction between the terminal device and a server (for example, a cloud) or other terminal devices.
Here, multiple WIFI hotspots may be included in the multi-hotspot set.
Specifically, the terminal device may detect the network performance of each WIFI hotspot in the multi-hotspot set on the second network card, or may detect the network performance of each WIFI hotspot in the multi-hotspot set on other modules or other devices of the terminal device. The network performance parameters can be determined according to actual needs. The network performance of each WIFI hotspot in the multi-hotspot set may be detected periodically (i.e., in a round).
And 204, connecting a second network card of the terminal device with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and the remaining WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot.
For example, there are 5 WIFI hotspots in the multi-hotspot set, such as F1, F2, F3, F4, and F5, and if the first WIFI hotspot is F2, the remaining WIFI hotspots are 4 WIFI hotspots, such as F1, F3, F4, and F5.
Specifically, the terminal device compares network performance parameters of each remaining WIFI hotspot in the network performance detection result, screens a WIFI hotspot with the best current network performance from the remaining WIFI hotspots, takes the screened WIFI hotspot as a second WIFI hotspot, and connects a second network card of the terminal device to the second WIFI hotspot. And the second network card can also execute the processes of comparing the network performance parameters of all the remaining WIFI hotspots, screening the WIFI hotspots, connecting with the second WIFI hotspot and the like.
And step 206, when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition, switching to network connection of the terminal equipment through the second network card.
Here, the first network connection condition refers to a condition that a corresponding WIFI hotspot is suitable for network connection, and may be set according to actual needs, for example, a value of the network performance parameter is greater than (or not less than) a first threshold, and a size of the first threshold may be set according to actual needs.
Specifically, when the network performance parameter of the first WIFI hotspot does not meet the preset first network connection condition, the terminal device switches to network connection of the terminal device through the second network card. When the network connection of the terminal device is switched to be performed through the second network card, the second network card is used for realizing the function of the main network card so as to be used for information interaction between the terminal device and a server (such as a cloud) or other terminal devices, and the first network card (the main network card before switching) plays a role in monitoring the network card. Or when the network performance parameter of the second network card at the first WIFI hotspot does not meet the preset first network connection condition, switching to network connection of the terminal device through the second network card.
In the multi-hotspot network distribution method, when a first network card of a terminal device is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal device, the network performance of each WIFI hotspot in a multi-hotspot set is detected, a second network card of the terminal device is connected with a second WIFI hotspot, the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and when the network performance parameter of the first WIFI hotspot does not meet a preset first network connection condition, network connection of the terminal device is switched to be performed through the second network card. Because the terminal device of this embodiment includes at least first network card and second network card, and when first network card connects first WIFI hotspot and first network card is used for terminal device's network connection, terminal device's second network card connects second WIFI hotspot, so, when the network performance of first WIFI hotspot does not satisfy the requirement, need not carry out the distribution network process again, can directly, switch over the WIFI hotspot fast, the efficiency and the smoothness of hotspot switch have been improved, the time delay is low, can promote network stability.
In an embodiment, as shown in fig. 3, a method for distributing a network with multiple hot spots is provided, which is described by taking the method as an example for being applied to the terminal device in fig. 1, and includes the following steps:
step 302, receiving hotspot information of a plurality of WIFI hotspots sent by the distribution network device, where the plurality of WIFI hotspots are used as each WIFI hotspot in the multi-hotspot set.
Here, the network distribution device may be a mobile terminal or a non-mobile terminal, the non-mobile terminal includes a desktop computer, and the mobile terminal may be, but is not limited to, a Smart Phone (Smart Phone), a tablet computer, a notebook computer, a personal digital assistant, and the like. The distribution network device serves as an STA (Station, wireless terminal mode), and is in communication connection with the terminal device through the WIFI network. The terminal device serves as an AP (Wireless Access Point).
And step 304, storing hotspot information of a plurality of WIFI hotspots.
Here, the hotspot information generally includes WIFI hotspot identification and password information of the corresponding WIFI hotspot. The WIFI hotspot Identifier generally refers to an SSID (Service Set Identifier).
Specifically, the terminal device may store the hotspot information of the multiple WIFI hotspots in a local memory. The hotspot information may be stored in the local memory in the form of a database (or a data table of the database).
And step 306, screening the WIFI hotspot with the best current network performance from the plurality of WIFI hotspots, and taking the selected WIFI hotspot as a first WIFI hotspot.
Here, the first WIFI hotspot is screened out of a plurality of WIFI hotspots in which hotspot information is stored.
Specifically, the terminal device may detect network performances of a plurality of WIFI hotspots in which hotspot information is stored, filter a plurality of WIFI hotspots with the best current network performance, and use the selected WIFI hotspots as first WIFI hotspots.
And 308, controlling the first network card to be connected with the first WIFI hotspot according to the hotspot information of the first WIFI hotspot.
Specifically, the terminal device controls the first network card to connect to the first WIFI hotspot according to hotspot information of the first WIFI hotspot, and the first network card is used as a main network card for communication between the terminal device and a server (such as a cloud) or other terminal devices.
The above steps 302-308 can be executed on the first network card, or can be executed on other modules or other devices (e.g. a processor) of the terminal device.
Step 310, when a first network card of the terminal device is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal device, detecting network performance of each WIFI hotspot in the multi-hotspot set, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set.
And step 312, connecting a second network card of the terminal device to a second WIFI hotspot, where the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and the remaining WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot.
The round of determining the network performance parameters according to the second WIFI hotspot may be the same as or different from the round of determining the network performance parameters according to the first WIFI hotspot. For example, in the first round of network performance detection, the WIFI hotspot with the best network performance is taken as a first WIFI hotspot, the WIFI hotspot with the second best network performance is taken as a second WIFI hotspot, in the second round of network performance detection, the WIFI hotspot with the best network performance in the remaining WIFI hotspots is taken as a second WIFI hotspot, in the third round of network performance detection, the WIFI hotspot with the best network performance in the remaining WIFI hotspots is taken as a second WIFI hotspot, and so on.
Specifically, the server controls the first network card to connect with the first WIFI hotspot according to hotspot information of the first WIFI hotspot
And step 314, when the network performance parameter of the first WIFI hotspot does not meet the preset first network connection condition, switching to network connection of the terminal device through the second network card.
The description of step 310, step 312 and step 314 in this embodiment may refer to the description in the previous embodiment, and is not repeated herein.
By adopting the scheme of the embodiment, the network performance of the WIFI hotspot connected with the network card with the main network card function can be optimal as much as possible, and meanwhile, the network does not need to be re-distributed when the router is switched to be connected, so that the network stability can be improved compared with the situation of a single network card.
In one embodiment, the method for distributing a network with multiple hot spots further includes the following steps: and when the WIFI hotspots meeting the preset second network connection condition exist in the remaining WIFI hotspots according to the last round of network performance detection results of the remaining WIFI hotspots, determining the WIFI hotspot with the best current network performance in the remaining WIFI hotspots according to the last round of network performance detection results.
Here, the previous round refers to a round that is closest in time to the current time and has traversed the network performance detection of each WIFI hotspot in the multi-hotspot set.
Here, the second network connection condition refers to a condition that the corresponding WIFI hotspot is suitable for network connection, and may be set according to actual needs, for example, a value of the network performance parameter is greater than (or not less than) a second threshold, and a size of the second threshold may be set according to actual needs. The second threshold may be equal to, greater than or less than the first threshold, preferably the second threshold is greater than or equal to the first threshold.
When the last round of network performance detection results determine that no WIFI hotspot meeting the preset second network connection condition exists in the remaining WIFI hotspots, waiting for the end of the current round of network performance detection, and determining the WIFI hotspot with the best current network performance and the network performance parameter meeting the preset second network connection condition in the remaining WIFI hotspots as the WIFI hotspot with the best current network performance in the remaining WIFI hotspots according to the current round of network performance detection results of the remaining WIFI hotspots. If it is determined that no WIFI hotspot meeting the preset second network connection condition still exists in the remaining WIFI hotspots according to the network performance detection result of the current round, continuing to wait for the network performance detection result of the next round, and so on until a WIFI hotspot meeting the preset second network connection condition exists in one round, and determining the WIFI hotspot with the best current network performance in the remaining WIFI hotspots.
In this embodiment, when there is a WIFI hotspot meeting the preset second network connection condition in the remaining WIFI hotspots, the WIFI hotspot with the best current network performance in the remaining WIFI hotspots is determined according to the network performance detection result of the previous round, so that it is avoided that the network performance of the switched WIFI hotspot still does not meet the networking condition.
In one embodiment, as shown in fig. 4, the detecting the network performance of each WIFI hotspot in the multi-hotspot set may include the following steps:
step 402, detecting the network speed value, the network delay information and the signal strength information of each WIFI hotspot in the multi-hotspot set.
The signal strength information can be acquired through a self-contained interface of the network card chip, for example, the interface of the application layer system software network card chip supporting the WIFI function terminal can acquire the signal strength information in real time. The request packet may be sent through the second network card, the network delay information may be determined by a time interval from sending the request packet to receiving the reply packet, and the network speed value may be obtained by a time taken to download a file of a specified size.
In addition, the network speed value, the packet loss rate and the signal strength information of each WIFI hotspot in the multi-hotspot set may also be detected.
And the packet loss rate is calculated according to the number ratio of the reply packets to the request packets.
And step 404, respectively determining network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the network delay information and the signal strength information.
In addition, network performance parameters of each WIFI hotspot in the multi-hotspot set may also be determined according to the network speed value, the packet loss rate, and the signal strength information.
Wherein, the network performance optimization generally means that the value of the network performance parameter is the maximum.
Specifically, the network speed score value can be determined according to the network speed value, the network delay score value is determined according to the network delay information, the signal strength score value is determined according to the signal strength information, and the network speed score value, the network delay score value and the signal strength score value are weighted and summed to obtain the network performance parameters of each WIFI hotspot in the hotspot set. Or, the network speed score value can be determined according to the network speed value, the packet loss score value is determined according to the packet loss rate, the signal strength score value is determined according to the signal strength information, and the network speed score value, the packet loss score value and the signal strength score value are subjected to weighted summation to obtain the network performance parameters.
The network speed, the network delay (or the packet loss rate), and the signal strength may be scored by comparing with corresponding reference values, for example, a ratio of the network speed value to the network speed reference value may be calculated, and then the network speed score value may be determined according to the ratio (for example, multiplied by 100).
For example, equation (1) may be used to calculate the WIFI hotspots in the multi-hotspot set.
Figure BDA0002339131840000111
Wherein, αi、βiAnd gammaiRespectively representing the network speed score value, the network delay score value (or the packet loss score value) and the signal strength score value, lambda of the ith WIFI hotspot1、λ2And λ3For the weighted value, the size of the weighted value can be set according to the actual network environment. In addition, network performance parameters of each WIFI hotspot in the multi-hotspot set can also be determined according to the network speed value, the packet loss rate and the signal strength information.
In this embodiment, different from a traditional WIFI switching mode based on only WIFI strength, information in multiple aspects such as network speed, network delay (or packet loss rate), signal strength and the like is comprehensively considered, so that a switched WIFI hotspot is more suitable for networking of terminal equipment.
In one embodiment, the method for distributing a network with multiple hot spots further includes the following steps: and when the network performance parameters of the WIFI hotspots with the best network performance in the current turn in the multi-hotspot set are smaller than a preset threshold value, or when the network performance parameters of the WIFI hotspots with the best network performance in the continuous turns in the multi-hotspot set are all smaller than the preset threshold value, sending prompt information to the distribution network equipment.
Here, specific values of the plurality of rounds may be set according to actual conditions, for example, 3 rounds.
The user can adjust the hotspot information of the WIFI hotspot stored by the terminal device in time based on the prompt information, and the stored hotspot information can be deleted, added or updated.
In one embodiment, the method for distributing a network with multiple hot spots further includes the following steps: and when a hotspot information change request sent by the distribution network equipment is received, adding, deleting or updating the stored hotspot information according to the hotspot information change request.
For the case that the second network card is used for detecting the network performance of each WIFI hotspot in the multi-hotspot set, the change information of the hotspot information is generally synchronized to the second network card, so that the monitored WIFI hotspot can be updated by the second network card in time.
In one embodiment, the terminal device for uploading may be a mobile terminal device, and particularly, the mobile terminal device may be a WIFI terminal device that is frequently moved and has a high requirement on network stability, such as a sweeping robot, a welcoming robot, or a mobile self-service shopping robot.
In order to facilitate understanding of the scheme of the present invention, the WIFI terminal device in fig. 1 is described below as having two network cards (a main network card and a monitoring network card). The multi-hot-spot network distribution method in the embodiment comprises the following steps:
1) a WIFI terminal device (i.e., the terminal device 104 in fig. 1) is used as an AP (Wireless Access Point), and a distribution network device is used as an STA (Station, Wireless terminal mode) to connect with the WIFI terminal device through WIFI.
2) And the distribution network equipment sends the WIFI hotspot SSID (namely the SSID) and the password of the multiple groups of routers in the environment to the WIFI end equipment in the distribution network.
3) And the WIFI terminal equipment stores the ssids and the passwords of the WIFI hotspots in a local memory, the ssids and the passwords are distributed to one network card, the network card tries to connect all hotspots in a traversing manner, influence factors in various aspects such as network speed, network delay and signal intensity are comprehensively considered, the WIFI hotspot with the highest calculation score is connected, and the network card is used as a main network card for communication between the WIFI terminal equipment and the cloud server at the moment.
4) And the other network card module is used as a monitoring network card at the moment, traverses and monitors the network conditions of all stored hot spots in the local memory at regular intervals, is connected to the WIFI hot spot with the highest score after traversing, and waits to be switched into the main network card at any time.
5) And when the score of the WIFI hotspot of the main network card is lower than the threshold value, the monitoring network card is used as the main network card for information interaction between the WIFI terminal equipment and the cloud server, and the original main network card plays a role in monitoring the network card.
6) During the use process, a user can add, delete or change the WIFI hotspot information through the distribution network equipment, the WIFI terminal equipment firstly updates the WIFI hotspot information stored in the local memory after receiving the modification instruction, and synchronizes the change of the WIFI hotspot information to the current monitoring network card.
The scores of the WIFI hotspots are affected by environmental factors such as network speed (α), network delay or packet loss rate (β), signal strength (γ), and the like, and the scores of the WIFI hotspots (i.e., the signal strength score values) can be specifically calculated according to the formula (1).
It should be understood that although the various steps in the flow charts of fig. 2-4 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-4 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
In one embodiment, as shown in fig. 6, there is provided a multi-hot-spot distribution network apparatus, including: a detection module 602, a first connection module 604, and a switching module 608, wherein:
the detection module 602 is configured to detect network performance of each WIFI hotspot in the multi-hotspot set when a first network card of the terminal device is connected to a first WIFI hotspot and the first network card is used for network connection of the terminal device, where the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
the first connection module 604 is configured to connect a second network card of the terminal device to a second WIFI hotspot, where the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and the remaining WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
the switching module 608 is configured to switch to network connection of the terminal device through the second network card when the network performance parameter of the first WIFI hotspot does not meet the preset first network connection condition.
In one embodiment, the above-mentioned multiple-hotspot network distribution device further includes a second connection module (not shown in the figure), where the second connection module is configured to receive hotspot information of multiple WIFI hotspots sent by the network distribution device, where the multiple WIFI hotspots are used as each WIFI hotspot in the multiple hotspot set, preferably, the hotspot information includes WIFI hotspot identification and password information, store hotspot information of the multiple WIFI hotspots, screen a WIFI hotspot with the best current network performance among the multiple WIFI hotspots, and use the selected WIFI hotspot as a first WIFI hotspot, and control the first network card to connect to the first WIFI hotspot according to the hotspot information of the first WIFI hotspot.
In one embodiment, the detection module 602 may detect a network speed value, network delay information, and signal strength information of each WIFI hotspot in the multi-hotspot set, and determine network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the network delay information, and the signal strength information, respectively.
In one embodiment, the detection module 602 may detect a network speed value, a packet loss rate, and signal strength information of each WIFI hotspot in the multi-hotspot set, and determine network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the packet loss rate, and the signal strength information.
In one embodiment, the current network performance optimization mentioned above refers to the maximum value of the network performance parameter.
In one embodiment, the detection module 602 may determine the network speed score value according to the network speed value, determine the network delay score value according to the network delay information, determine the signal strength score value according to the signal strength information, and perform weighted summation on the network speed score value, the network delay score value, and the signal strength score value to obtain the network performance parameter.
In one embodiment, the detection module 602 may determine the network speed score value according to the network speed value, determine the packet loss score value according to the packet loss score, determine the signal strength score value according to the signal strength information, and perform weighted summation on the network speed score value, the packet loss score value, and the signal strength score value to obtain the network performance parameter.
In one embodiment, the first connection module 604 may be further configured to determine, according to the network performance detection result of the previous round of the remaining WIFI hotspots, a WIFI hotspot with the best current network performance among the remaining WIFI hotspots according to the network performance detection result of the previous round when it is determined that a WIFI hotspot meeting the preset second network connection condition exists among the remaining WIFI hotspots.
In one embodiment, the multi-hotspot network distribution device may further include a prompt module (not shown in the figure), where the prompt module is configured to send prompt information to the network distribution device when the network performance parameter of the current round of the WIFI hotspot with the best network performance in the multi-hotspot set is smaller than a preset threshold, or when the network performance parameters of the consecutive rounds of the WIFI hotspot with the best network performance in the multi-hotspot set are both smaller than the preset threshold.
In one embodiment, the multi-hotspot distribution network apparatus may further include an updating module (not shown in the figure), where the updating module is configured to add, delete, or update the stored hotspot information according to the hotspot information change request when receiving the hotspot information change request sent by the distribution network device.
In one embodiment, the update module is further configured to synchronize the change information of the hotspot information to the second network card.
For specific definition of the multi-hot-spot distribution network device, reference may be made to the above definition of the multi-hot-spot distribution network method, which is not described herein again. All or part of the modules in the multi-hot-spot distribution network device can be realized by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent of a processor in the terminal device, and can also be stored in a memory in the terminal device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, as shown in fig. 7, there is provided a network card comprising: a performance detection unit 702, a first hot spot connection unit 704, and a network connection switching unit 706, where:
a performance detection unit 702, configured to detect network performance of each WIFI hotspot in the multi-hotspot set when a first network card of the terminal device is connected to a first WIFI hotspot and the first network card is used for network connection of the terminal device, where the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
the first hotspot connecting unit 704 is configured to connect a second network card of the terminal device to a second WIFI hotspot, where the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and the remaining WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and a network connection switching unit 706, configured to switch to perform network connection of the terminal device through the second network card when the network performance parameter of the first WIFI hotspot does not meet a preset first network connection condition.
In one embodiment, the network card may further include a second hotspot connecting unit (not shown in the figure), where the second hotspot connecting unit is configured to acquire hotspot information of multiple WIFI hotspots, the multiple WIFI hotspots are used as each WIFI hotspot in the multiple hotspot set, preferably, the hotspot information includes WIFI hotspot identification and password information, store hotspot information of the multiple WIFI hotspots, screen a WIFI hotspot with the best current network performance among the multiple WIFI hotspots, select the selected WIFI hotspot as a first WIFI hotspot, and control the first network card to connect to the first WIFI hotspot according to the hotspot information of the first WIFI hotspot.
In one embodiment, the performance detection unit 702 may detect a network speed value, network delay information, and signal strength information of each WIFI hotspot in the multi-hotspot set, and determine a network performance parameter of each WIFI hotspot in the multi-hotspot set according to the network speed value, the network delay information, and the signal strength information, where the current network performance best refers to a maximum value of the network performance parameter.
In one embodiment, the performance detection unit 702 may detect a network speed value, a packet loss rate, and signal strength information of each WIFI hotspot in the multi-hotspot set, and determine network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the packet loss rate, and the signal strength information.
In one embodiment, the performance detection unit 702 may determine the network speed score value according to the network speed value, determine the network delay score value according to the network delay information, determine the signal strength score value according to the signal strength information, and perform weighted summation on the network speed score value, the network delay score value, and the signal strength score value to obtain the network performance parameter.
In one embodiment, the performance detection unit 702 may determine the network speed score according to the network speed value, determine the packet loss score according to the packet loss score, determine the signal strength score according to the signal strength information, and perform weighted summation on the network speed score, the packet loss score, and the signal strength score to obtain the network performance parameter.
In one embodiment, the first hotspot connecting unit 704 may be further configured to determine, according to the network performance detection result of the previous round of the remaining WIFI hotspots, a WIFI hotspot with the best current network performance among the remaining WIFI hotspots according to the network performance detection result of the previous round, when it is determined that a WIFI hotspot meeting a preset second network connection condition exists among the remaining WIFI hotspots.
In one embodiment, the network card may further include an information prompting unit (not shown in the figure), where the information prompting unit is configured to send prompting information to the distribution network device when the network performance parameter of the current round of the WIFI hotspot with the best network performance in the multi-hotspot set is smaller than a preset threshold, or when the network performance parameters of the consecutive rounds of the WIFI hotspot with the best network performance in the multi-hotspot set are both smaller than the preset threshold.
In one embodiment, the second hotspot connection unit may be further configured to synchronize change information of the hotspot information, where the change information of the hotspot information adds, deletes, or updates the stored hotspot information according to a hotspot information change request sent by the distribution network device.
The network card in the above embodiment may call one or more different units among the detection unit 702, the first hot spot connection unit 704, the network connection switching unit 706, the second hot spot connection unit, and the information prompt unit when the functions implemented at different time periods are different. For example, when the network card in the above embodiment implements the function of a main network card (i.e., a first network card), the second hot-spot connection unit and/or the information prompting unit are called, and when the network card in the above embodiment implements the function of monitoring the network card (i.e., a second network card), the detection unit 702, the first hot-spot connection unit 704, and the network connection switching unit 706 are called.
In one embodiment, a computer device is provided, which may be a terminal, and its internal structure diagram may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a multi-hot-spot distribution network method. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 8 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided, comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the following steps when executing the computer program:
when a first network card of the terminal equipment is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal equipment, detecting the network performance of each WIFI hotspot in the multi-hotspot set, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
connecting a second network card of the terminal equipment with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the rest WIFI hotspots, and the rest WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition, switching to network connection of the terminal equipment through the second network card.
In one embodiment, the processor, when executing the computer program, further performs the steps of:
receiving hotspot information of a plurality of WIFI hotspots sent by the distribution network equipment, wherein the WIFI hotspots are used as each WIFI hotspot in a multi-hotspot set, and preferably, the hotspot information comprises WIFI hotspot identification and password information;
storing hotspot information of a plurality of WIFI hotspots;
screening a WIFI hotspot with the best current network performance from a plurality of WIFI hotspots, and taking the selected WIFI hotspot as a first WIFI hotspot;
and controlling the first network card to be connected with the first WIFI hotspot according to the hotspot information of the first WIFI hotspot.
In one embodiment, when the processor executes the computer program to implement the step of detecting the network performance of each WIFI hotspot in the multi-hotspot set, the following steps are specifically implemented: detecting the network speed value, network delay information and signal strength information of each WIFI hotspot in the multi-hotspot set; and respectively determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the network delay information and the signal strength information.
In one embodiment, when the processor executes the computer program to implement the step of detecting the network performance of each WIFI hotspot in the multi-hotspot set, the following steps are specifically implemented: detecting the network speed value, the packet loss rate and the signal intensity information of each WIFI hotspot in the multi-hotspot set; and respectively determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the packet loss rate and the signal strength information.
In one embodiment, the current network performance optimization mentioned above refers to the maximum value of the network performance parameter.
In one embodiment, when the processor executes the computer program to implement the step of determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the network delay information, and the signal strength information, the following steps are specifically implemented: determining a network speed value according to the network speed value, determining a network delay value according to network delay information, and determining a signal strength value according to signal strength information; and carrying out weighted summation on the network speed score value, the network delay score value and the signal strength score value to obtain the network performance parameters.
In one embodiment, when the processor executes the computer program to implement the step of determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the packet loss rate, and the signal strength information, the following steps are specifically implemented: determining a network speed score value according to the network speed value, determining a packet loss score value according to the packet loss rate, and determining a signal strength score value according to the signal strength information; and carrying out weighted summation on the network speed score value, the packet loss score value and the signal strength score value to obtain the network performance parameters.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and when the WIFI hotspots meeting the preset second network connection condition exist in the remaining WIFI hotspots according to the last round of network performance detection results of the remaining WIFI hotspots, determining the WIFI hotspot with the best current network performance in the remaining WIFI hotspots according to the last round of network performance detection results.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and when the network performance parameters of the WIFI hotspots with the best network performance in the current round in the multi-hotspot set are smaller than a preset threshold value, or when the network performance parameters of the WIFI hotspots with the best network performance in the continuous rounds in the multi-hotspot set are smaller than the preset threshold value, sending prompt information to the distribution network equipment.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and when a hotspot information change request sent by the distribution network equipment is received, adding, deleting or updating the stored hotspot information according to the hotspot information change request. In one embodiment, the change information of the hotspot information is synchronized to the second network card.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
when a first network card of the terminal equipment is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal equipment, detecting the network performance of each WIFI hotspot in the multi-hotspot set, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
connecting a second network card of the terminal equipment with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the rest WIFI hotspots, and the rest WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition, switching to network connection of the terminal equipment through the second network card.
In one embodiment, the computer program when executed by the processor further performs the steps of:
receiving hotspot information of a plurality of WIFI hotspots sent by the distribution network equipment, wherein the WIFI hotspots are used as each WIFI hotspot in a multi-hotspot set, and preferably, the hotspot information comprises WIFI hotspot identification and password information;
storing hotspot information of a plurality of WIFI hotspots;
screening a WIFI hotspot with the best current network performance from a plurality of WIFI hotspots, and taking the selected WIFI hotspot as a first WIFI hotspot;
and controlling the first network card to be connected with the first WIFI hotspot according to the hotspot information of the first WIFI hotspot.
In one embodiment, when the computer program is executed by the processor to implement the above step of detecting the network performance of each WIFI hotspot in the multi-hotspot set, the following steps are specifically implemented: detecting the network speed value, network delay information and signal strength information of each WIFI hotspot in the multi-hotspot set; and respectively determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the network delay information and the signal strength information.
In one embodiment, when the computer program is executed by the processor to implement the above step of detecting the network performance of each WIFI hotspot in the multi-hotspot set, the following steps are specifically implemented: detecting the network speed value, the packet loss rate and the signal intensity information of each WIFI hotspot in the multi-hotspot set; and respectively determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the packet loss rate and the signal strength information.
In one embodiment, the current network performance optimization mentioned above refers to the maximum value of the network performance parameter.
In one embodiment, when the computer program is executed by the processor to implement the step of determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the network delay information, and the signal strength information, the following steps are specifically implemented: determining a network speed value according to the network speed value, determining a network delay value according to network delay information, and determining a signal strength value according to signal strength information; and carrying out weighted summation on the network speed score value, the network delay score value and the signal strength score value to obtain the network performance parameters.
In one embodiment, when the computer program is executed by the processor to implement the step of determining the network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the packet loss rate, and the signal strength information, the following steps are specifically implemented: determining a network speed score value according to the network speed value, determining a packet loss score value according to the packet loss rate, and determining a signal strength score value according to the signal strength information; and carrying out weighted summation on the network speed score value, the packet loss score value and the signal strength score value to obtain the network performance parameters.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the WIFI hotspots meeting the preset second network connection condition exist in the remaining WIFI hotspots according to the last round of network performance detection results of the remaining WIFI hotspots, determining the WIFI hotspot with the best current network performance in the remaining WIFI hotspots according to the last round of network performance detection results.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when the network performance parameters of the WIFI hotspots with the best network performance in the current round in the multi-hotspot set are smaller than a preset threshold value, or when the network performance parameters of the WIFI hotspots with the best network performance in the continuous rounds in the multi-hotspot set are smaller than the preset threshold value, sending prompt information to the distribution network equipment.
In one embodiment, the computer program when executed by the processor further performs the steps of: and when a hotspot information change request sent by the distribution network equipment is received, adding, deleting or updating the stored hotspot information according to the hotspot information change request. In one embodiment, the change information of the hotspot information is synchronized to the second network card.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.

Claims (10)

1. A multi-hot spot network distribution method, the method comprising:
when a first network card of a terminal device is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal device, detecting the network performance of each WIFI hotspot in a multi-hotspot set, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
connecting a second network card of the terminal device with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and the remaining WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition, switching to network connection of the terminal equipment through the second network card.
2. The method of claim 1, further comprising:
receiving hotspot information of a plurality of WIFI hotspots sent by the distribution network equipment, wherein the WIFI hotspots are used as each WIFI hotspot in the multi-hotspot set, and preferably, the hotspot information comprises WIFI hotspot identification and password information;
storing hotspot information of the plurality of WIFI hotspots;
screening a WIFI hotspot with the best current network performance from the plurality of WIFI hotspots, and taking the selected WIFI hotspot as a first WIFI hotspot;
and controlling the first network card to be connected with the first WIFI hotspot according to the hotspot information of the first WIFI hotspot.
3. The method of claim 1 or 2, wherein the detecting network performance of each WIFI hotspot in the multi-hotspot set comprises:
detecting the network speed value, network delay information and signal strength information of each WIFI hotspot in the multi-hotspot set, or detecting the network speed value, packet loss rate and signal strength information of each WIFI hotspot in the multi-hotspot set;
respectively determining network performance parameters of each WIFI hotspot in the multi-hotspot set according to the network speed value, the network delay information and the signal strength information, or according to the network speed value, the packet loss rate and the signal strength information, preferably, the current network performance best means that the value of the network performance parameters is the largest;
preferably, the determining, according to the network speed value, the network delay information, and the signal strength information, the network performance parameters of each WIFI hotspot in the multi-hotspot set respectively includes:
determining a network speed score value according to the network speed value, determining a network delay score value according to the network delay information, and determining a signal strength score value according to the signal strength information;
carrying out weighted summation on the network speed score value, the network delay score value and the signal strength score value to obtain the network performance parameter;
preferably, the determining, according to the network speed value, the packet loss rate, and the signal strength information, network performance parameters of each WIFI hotspot in the multi-hotspot set respectively includes:
determining a network speed score value according to the network speed value, determining a packet loss score value according to the packet loss ratio, and determining a signal strength score value according to the signal strength information;
and carrying out weighted summation on the network speed score value, the packet loss score value and the signal strength score value to obtain the network performance parameters.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
and when the WIFI hotspots meeting the preset second network connection condition exist in the remaining WIFI hotspots according to the last round of network performance detection results of the remaining WIFI hotspots, determining the WIFI hotspot with the best current network performance in the remaining WIFI hotspots according to the last round of network performance detection results.
5. The method of claim 2, further comprising:
when the network performance parameters of the WIFI hotspots with the best network performance in the current round in the multi-hotspot set are smaller than a preset threshold value, or when the network performance parameters of the WIFI hotspots with the best network performance in the continuous rounds in the multi-hotspot set are all smaller than the preset threshold value, sending prompt information to the distribution network equipment;
and/or
And when a hotspot information change request sent by the distribution network equipment is received, adding, deleting or updating the stored hotspot information according to the hotspot information change request, and preferably, synchronizing the hotspot information change request to the second network card.
6. The method according to claim 1 or 2, wherein the terminal device is a mobile terminal device, preferably wherein the mobile terminal device comprises a sweeping robot, a greeting robot or a mobile self-service shopping robot.
7. A multi-hot spot distribution network apparatus, the apparatus comprising:
the detection module is used for detecting the network performance of each WIFI hotspot in a multi-hotspot set when a first network card of a terminal device is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal device, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
the first connection module is used for connecting a second network card of the terminal device with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and the remaining WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and the switching module is used for switching to the network connection of the terminal equipment through the second network card when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition.
8. A network card, comprising:
the performance detection unit is used for detecting the network performance of each WIFI hotspot in a multi-hotspot set when a first network card of a terminal device is connected with a first WIFI hotspot and the first network card is used for network connection of the terminal device, wherein the first WIFI hotspot is a WIFI hotspot in the multi-hotspot set;
the hotspot connection unit is used for connecting a second network card of the terminal device with a second WIFI hotspot, wherein the second WIFI hotspot is a WIFI hotspot with the best current network performance in the remaining WIFI hotspots, and the remaining WIFI hotspots are WIFI hotspots in the multi-hotspot set except the first WIFI hotspot;
and the network connection switching unit is used for switching to network connection of the terminal equipment through the second network card when the network performance parameters of the first WIFI hotspot do not meet the preset first network connection condition.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the steps of the method of any of claims 1 to 7 are implemented when the computer program is executed by the processor.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 7.
CN201911368793.1A 2019-12-26 2019-12-26 Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium Pending CN111148170A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911368793.1A CN111148170A (en) 2019-12-26 2019-12-26 Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911368793.1A CN111148170A (en) 2019-12-26 2019-12-26 Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111148170A true CN111148170A (en) 2020-05-12

Family

ID=70520639

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911368793.1A Pending CN111148170A (en) 2019-12-26 2019-12-26 Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111148170A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333800A (en) * 2020-11-13 2021-02-05 Oppo广东移动通信有限公司 Network switching method and device, storage medium and electronic equipment
CN113163462A (en) * 2021-02-23 2021-07-23 深圳市优克联新技术有限公司 Cellular network switching method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668322A (en) * 2009-09-17 2010-03-10 深圳华为通信技术有限公司 Network switching method of terminal and terminal equipment
CN106982442A (en) * 2016-01-15 2017-07-25 深圳市朗驰欣创科技股份有限公司 A kind of method that radio communication is carried out in tunnel, apparatus and system
CN108156044A (en) * 2018-02-27 2018-06-12 顺德职业技术学院 A kind of robot workstation's network topology structure
CN110572859A (en) * 2019-09-29 2019-12-13 珠海格力电器股份有限公司 AP switching method, device, equipment and medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101668322A (en) * 2009-09-17 2010-03-10 深圳华为通信技术有限公司 Network switching method of terminal and terminal equipment
CN106982442A (en) * 2016-01-15 2017-07-25 深圳市朗驰欣创科技股份有限公司 A kind of method that radio communication is carried out in tunnel, apparatus and system
CN108156044A (en) * 2018-02-27 2018-06-12 顺德职业技术学院 A kind of robot workstation's network topology structure
CN110572859A (en) * 2019-09-29 2019-12-13 珠海格力电器股份有限公司 AP switching method, device, equipment and medium

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112333800A (en) * 2020-11-13 2021-02-05 Oppo广东移动通信有限公司 Network switching method and device, storage medium and electronic equipment
CN113163462A (en) * 2021-02-23 2021-07-23 深圳市优克联新技术有限公司 Cellular network switching method and device

Similar Documents

Publication Publication Date Title
US10135923B2 (en) Data transfer method and system
CN111447660B (en) Network roaming control method and device of terminal equipment and cloud control equipment
CN111148170A (en) Multi-hot-spot network distribution method and device, network card, computer equipment and storage medium
CN113574842A (en) Method and system for optimizing processing of application requests
WO2016139938A1 (en) Thin client system, connection management device, virtual machine operating device, method, and storage medium
CN111107176A (en) Data transmission method and device, computer equipment and storage medium
CN110247951A (en) A kind of file transfer control method, device, equipment and storage medium
CN114980034A (en) Method and device for realizing raw computing power service, network equipment and terminal
CN105100150A (en) Cloud desktop migration method and apparatus, and distributed cloud desktop system
CN113810433A (en) File uploading method and device and computer equipment
EP3306858B1 (en) Network management system deployment method and device, and network management system
CN108900441B (en) Network switching method, first electronic device and readable storage medium
CN113163008B (en) Connection intelligent management method and device of network service system and related equipment thereof
US9769265B2 (en) Communication system, management computer, and session information migration method
EP4040731A1 (en) Network traffic migration method and apparatus
CN106792843B (en) Equipment management method and device
CN110784414A (en) Data interaction method and device and electronic equipment
CN111148102B (en) Network authentication method, device, computer equipment and storage medium
CN114423007A (en) Terminal access point determining method, terminal access point determining device, electronic equipment and storage medium
CN113840313B (en) Network mode control method and device of mobile terminal and computer equipment
JP5059555B2 (en) Mobile communication system, radio network controller, mobile station, exchange, and radio network control method
CN112799849A (en) Data processing method, device, equipment and storage medium
WO2015117447A1 (en) Methods and apparatus for dialing and disabling dialing
CN111294979B (en) Communication method and related equipment
CN109327517A (en) Obtain the method and apparatus of wireless access point network state

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200512