CN111328120A - Network connection method, device, electronic equipment and storage medium - Google Patents

Network connection method, device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111328120A
CN111328120A CN202010131579.0A CN202010131579A CN111328120A CN 111328120 A CN111328120 A CN 111328120A CN 202010131579 A CN202010131579 A CN 202010131579A CN 111328120 A CN111328120 A CN 111328120A
Authority
CN
China
Prior art keywords
access point
wireless access
performance parameter
communication module
parameter
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
CN202010131579.0A
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.)
Oppo Chongqing Intelligent Technology Co Ltd
Original Assignee
Oppo Chongqing Intelligent Technology 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 Oppo Chongqing Intelligent Technology Co Ltd filed Critical Oppo Chongqing Intelligent Technology Co Ltd
Priority to CN202010131579.0A priority Critical patent/CN111328120A/en
Publication of CN111328120A publication Critical patent/CN111328120A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W36/00Hand-off or reselection arrangements
    • H04W36/0005Control or signalling for completing the hand-off
    • H04W36/0011Control or signalling for completing the hand-off for data sessions of end-to-end connection
    • 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

Abstract

The embodiment of the application discloses a network connection method, which comprises the following steps: when a communication module of the electronic equipment is connected with a first wireless access point at a first moment, obtaining a first performance parameter of a link between the communication module and the first wireless access point; when the communication module is switched from being connected with the first wireless access point to being connected with the second wireless access point at a second moment, obtaining a second performance parameter of a link between the communication module and the second wireless access point; under the condition that the communication module is connected with the second wireless access point, a target wireless access point is determined from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter. The embodiment of the application also discloses a network connection device, electronic equipment and a storage medium.

Description

Network connection method, device, electronic equipment and storage medium
Technical Field
The present application relates to, but not limited to, the field of computer technologies, and in particular, to a network connection method, apparatus, electronic device, and storage medium.
Background
Currently, dual wireless Access Point (AP) connection has become a wireless short-distance technology that various large terminal manufacturers strive to issue. The technology enables the terminal to be connected with two wireless networks simultaneously and can transmit data frames by using two antennas simultaneously.
However, the current dual-Wireless-Fidelity (Wi-Fi) schemes are all based on the technology that the device supports Multiple Input Multiple Output (MIMO), that is, the schemes are implemented when dual antennas need to be supported, and cannot be supported by the current device that only supports a single antenna. It can be seen that supporting dual wireless AP connection for single antenna devices has become an urgent problem to be solved.
Content of application
Embodiments of the present application are expected to provide a network connection method, an apparatus, an electronic device, and a storage medium, which solve the problem in the related art that an antenna device does not support dual wireless AP connection, and implement that a single communication module supports dual wireless AP connection on the basis of not increasing hardware cost, and implement that a single communication module dynamically selects a wireless access point, thereby improving the intelligent degree of an electronic device and the internet experience of a user.
The technical scheme of the application is realized as follows:
a network connection method, the method comprising:
when a communication module of an electronic device is connected with a first wireless access point at a first moment, obtaining a first performance parameter of a link between the communication module and the first wireless access point;
when the communication module is switched from being connected with the first wireless access point to being connected with a second wireless access point at a second moment, obtaining a second performance parameter of a link between the communication module and the second wireless access point;
under the condition that the communication module is connected with the second wireless access point, a target wireless access point is determined from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter.
Optionally, when the communication module is connected to the second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter includes:
obtaining an incidence relation among the first performance parameter, the second performance parameter and a performance threshold parameter;
and under the condition that the communication module is connected with the second wireless access point, determining the target wireless access point from the first wireless access point and the second wireless access point based on the association relation.
Optionally, when the communication module is connected to the second wireless access point, determining the target wireless access point from the first wireless access point and the second wireless access point based on the association relationship includes:
and under the condition that the communication module is connected with the second wireless access point, determining that the association relationship represents that the first performance parameter is smaller than the performance threshold parameter, and determining that the second wireless access point is the second wireless access point when the second performance parameter is larger than the first performance parameter.
Optionally, when determining that the association relationship indicates that the first performance parameter is smaller than the performance threshold parameter and the second performance parameter is larger than the first performance parameter and determining that the second wireless access point is the second wireless access point under the condition that the communication module is connected to the second wireless access point, the method further includes:
controlling the communication module to maintain connection with the second wireless access point;
under the condition that the communication module is connected with the second wireless access point, obtaining a third performance parameter of a link between the communication module and the second wireless access point;
detecting a fourth performance parameter of a link between the communication module and the first wireless access point when it is determined that the third performance parameter is less than the performance threshold parameter;
and when the fourth performance parameter is determined to be larger than the third performance parameter, controlling the communication module to connect with the first wireless access point.
Optionally, when it is determined that the third performance parameter is smaller than the performance threshold parameter, detecting a fourth performance parameter of a link between the communication module and the first wireless access point, further includes:
when the third performance parameter is determined to be smaller than the performance threshold parameter, obtaining a detection period; the detection period is determined by the absolute value of the difference of the performance threshold parameter and the third performance parameter;
and detecting the fourth performance parameter according to the detection period.
Optionally, the larger the absolute value of the difference is, the smaller the detection period is.
Optionally, the first performance parameter has an association relationship with at least one of the following parameters: the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting the first wireless access point at the first moment.
Optionally, the second performance parameter has an association relationship with at least one of the following parameters: and the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting the second wireless access point at the second moment.
Optionally, the third performance parameter has an association relationship with at least one of the following parameters: and controlling the strength indication parameter of the received signal, the round trip delay of the sent data and the network link speed under the condition that the communication module is connected with the second wireless access point.
Optionally, the fourth performance parameter has an association relationship with at least one of the following parameters: and the third performance parameter is smaller than the performance threshold parameter, and the communication module receives a strength indication parameter of a signal, round trip delay of data transmission and network link speed under the condition of being connected with the second wireless access point.
A network connection device, the network connection device comprising:
the method comprises the steps of obtaining a first performance parameter of a link between a communication module of an electronic device and a first wireless access point when the communication module is connected with the first wireless access point at a first moment;
the obtaining unit is further configured to obtain a second performance parameter of a link between the communication module and a second wireless access point when the communication module switches from being connected to the first wireless access point to being connected to the second wireless access point at a second time;
the processing unit is configured to determine a target wireless access point from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter when the communication module is connected to the second wireless access point.
An electronic device, the electronic device comprising: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute the network connection program stored in the memory to implement the steps of the network connection method as described above.
A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the network connection method as described above.
According to the network connection method, the network connection device, the electronic device and the storage medium provided by the embodiment of the application, when a communication module of the electronic device is connected with a first wireless access point at a first moment, a first performance parameter of a link between the communication module and the first wireless access point is obtained; when the communication module is switched from being connected with the first wireless access point to being connected with the second wireless access point at a second moment, obtaining a second performance parameter of a link between the communication module and the second wireless access point; under the condition that the communication module is connected with a second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter; the problem of antenna equipment do not support two wireless AP to connect among the correlation technique is solved, realize that single communication module supports two wireless access point to connect on the basis that does not increase the hardware cost, realize single communication module developments simultaneously and select wireless access point, promoted electronic equipment's intelligent degree and user's the experience of surfing the net.
Drawings
Fig. 1 is a schematic flowchart of a network connection method according to an embodiment of the present application;
fig. 2 is a schematic flowchart of another network connection method provided in an embodiment of the present application;
fig. 3 is a schematic flowchart of another network connection method provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a network connection device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
An embodiment of the present application provides a network connection method, which is applied to an electronic device, and as shown in fig. 1, the method includes the following steps:
step 101, when a communication module of an electronic device connects to a first wireless access point at a first time, obtaining a first performance parameter of a link between the communication module and the first wireless access point.
In the embodiment of the present application, the electronic device may include a mobile terminal device such as a mobile phone, a tablet computer, a notebook computer, a Personal Digital Assistant (PDA), a camera, a wearable device, and a fixed terminal device such as a desktop computer.
The electronic device includes a communication module, such as an antenna, which may support wireless communications, such as Wi-Fi communications, and the like. Here, the communication services supported by the antenna supporting Wi-Fi communication include, but are not limited to, first generation 802.11 communication services, second generation 802.11b communication services, third generation 802.11g/a communication services, fourth generation 802.11n communication services, and fifth generation 802.11ac communication services.
In practical applications, when an antenna of an electronic device connects to a first wireless access point, such as AP1, at a first time, a first performance parameter of a link between the antenna and AP1 is obtained. Here, the first performance parameter is used to characterize the communication performance for the link state between the antenna and the AP 1.
And 102, when the communication module is switched from being connected with the first wireless access point to being connected with the second wireless access point at the second moment, obtaining a second performance parameter of a link between the communication module and the second wireless access point.
Here, the switching of the second time instant communication module from connecting with the first wireless access point to connecting with the second wireless access point may be a response operation of the electronic device to a trigger event. For example, the electronic device receives a touch operation for the touch identifier, generates a trigger event, and controls the communication module to switch from the connection AP1 to the connection AP2 based on the trigger event. For another example, the electronic device determines that the performance parameter of the link between the communication module and the AP1 at the second time does not conform to the preset performance parameter range, generates a trigger event, and controls the communication module to switch from the AP1 to the AP2 based on the trigger event.
In practical applications, the second performance parameter of the link between the antenna and the AP2 is obtained when the antenna of the electronic device is switched from connecting the AP1 to connecting the second wireless access point AP2 at the second moment in time. Here, the second performance parameter is used to characterize the communication performance for the link state between the antenna and the AP 2.
And 103, under the condition that the communication module is connected with the second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter.
That is, the target wireless access point is either the first wireless access point or the second wireless access point.
In the embodiment of the application, when a communication module of an electronic device is connected with a first wireless access point and a second wireless access point, a target wireless access point is determined from the first wireless access point and the second wireless access point based on a first performance parameter and a second performance parameter, and the target wireless access point determines the best wireless access point to which the communication module is to be connected in real time when the communication module is connected with the second wireless access point, so that flexible switching among a plurality of wireless access points through the same communication module is realized, the electronic device is ensured to select the best wireless access point, and further powerful guarantee is provided for transmission of communication data of the electronic device.
According to the network connection method provided by the embodiment of the application, when a communication module of electronic equipment is connected with a first wireless access point at a first moment, a first performance parameter of a link between the communication module and the first wireless access point is obtained; when the communication module is switched from being connected with the first wireless access point to being connected with the second wireless access point at a second moment, obtaining a second performance parameter of a link between the communication module and the second wireless access point; under the condition that the communication module is connected with a second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter; the problem of antenna equipment do not support two wireless AP to connect among the correlation technique is solved, realize that single communication module supports two wireless access point to connect on the basis that does not increase the hardware cost, realize single communication module developments simultaneously and select wireless access point, promoted electronic equipment's intelligent degree and user's the experience of surfing the net.
An embodiment of the present application provides a network connection method, which is applied to an electronic device, and as shown in fig. 2, the method includes the following steps:
step 201, when a communication module of an electronic device connects to a first wireless access point at a first time, obtaining a first performance parameter of a link between the communication module and the first wireless access point.
In some embodiments of the present application, the first performance parameter has an association relationship with at least one of: the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting with the first wireless access point at the first moment.
Here, a Received Signal Strength Indicator (RSSI) of the Received Signal is used to determine the link quality and whether to increase the broadcast transmission Strength. Round-Trip Time (RTT) represents the total Time delay experienced from the Time when the transmitting end transmits data to the Time when the transmitting end receives an acknowledgement from the receiving end; the RTT is determined by three parts: i.e., the propagation time of the link, the processing time of the end system, and the queuing and processing time in the cache of the router. The network link Speed represents the Speed at which data can be transmitted per second. The first performance parameter may be a parameter determined by the electronic device based on RSSI, RTT and link Speed obtained at the first time.
Step 202, when the communication module is switched from being connected with the first wireless access point to being connected with the second wireless access point at the second moment, obtaining a second performance parameter of a link between the communication module and the second wireless access point.
In some embodiments of the present application, the second performance parameter has an association relationship with at least one of: and the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting the second wireless access point at the second moment.
Here, the second performance parameter may be a parameter determined by the electronic device based on the RSSI, the RTT, and the linkSpeed obtained at the second time.
Step 203, obtaining the association relationship among the first performance parameter, the second performance parameter and the performance threshold parameter.
In this embodiment of the application, the association relationship may represent a magnitude relationship between the first performance parameter, the second performance parameter, and the performance threshold parameter.
And 204, under the condition that the communication module is connected with the second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the association relationship.
The target wireless access point is a first wireless access point or a second wireless access point.
In this embodiment of the application, in step 204, when the communication module is connected to the second wireless access point, based on the association relationship, determining the target wireless access point from the first wireless access point and the second wireless access point, may include the following steps:
and 204a, under the condition that the communication module is connected with the second wireless access point, determining that the association relation represents that the first performance parameter is smaller than the performance threshold parameter, and determining that the second wireless access point is the target wireless access point when the second performance parameter is larger than the first performance parameter.
And step 205, controlling the communication module to keep connected with the second wireless access point.
And step 206, under the condition that the communication module is connected with the second wireless access point, obtaining a third performance parameter of the link between the communication module and the second wireless access point.
The third performance parameter may be a parameter determined based on the obtained RSSI, RTT, and link Speed when the electronic device controls the communication module to maintain connection with the second wireless access point.
In some embodiments of the present application, the third performance parameter has an association relationship with at least one of: and controlling the strength indication parameter of the received signal, the round trip delay of the transmitted data and the network link speed under the condition that the communication module is connected with the second wireless access point.
And step 207, detecting a fourth performance parameter of the link between the communication module and the first wireless access point when the third performance parameter is determined to be smaller than the performance threshold parameter.
The fourth performance parameter may be a parameter determined by the electronic device based on the obtained RSSI, RTT, and link Speed when the electronic device determines that the third performance parameter is smaller than the performance threshold parameter and controls the communication module to connect to the second wireless access point.
In some embodiments of the present application, the fourth performance parameter has an association relationship with at least one of: and the third performance parameter is smaller than the performance threshold parameter, and the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of being connected with the second wireless access point.
In this embodiment of the application, when it is determined in step 207 that the third performance parameter is smaller than the performance threshold parameter, detecting a fourth performance parameter of a link between the communication module and the first wireless access point may include the following steps:
and step 207a, when the third performance parameter is determined to be smaller than the performance threshold parameter, obtaining a detection period.
Wherein the detection period is determined by the absolute value of the difference between the performance threshold parameter and the third performance parameter.
In some embodiments of the present application, a larger absolute value of the difference corresponds to a smaller detection period.
Here, when the electronic device determines that the third performance parameter is less than the performance threshold parameter, the electronic device calculates an absolute value of a difference between the performance threshold parameter and the third performance parameter, and sets the detection period based on the absolute value of the difference. The larger the absolute value of the difference value is, the smaller the corresponding detection period is, and the higher the detection frequency is; and when the third performance parameter is smaller than the performance threshold parameter and the difference between the third performance parameter and the performance threshold parameter is larger, the detection times are increased, and the possibility of quickly determining a better link state is further increased.
And step 207b, detecting a fourth performance parameter according to the detection period.
And step 208, when the fourth performance parameter is determined to be greater than the third performance parameter, controlling the communication module to connect with the first wireless access point.
An embodiment of the present application provides a network connection method, which is shown in fig. 3 and includes the following steps:
step1, the communication module of the electronic device is connected with AP 1.
Step2, the electronic device detects the current internet state and calculates the link state to obtain the link performance parameters of the AP 1.
Step3, the communication module of the electronic device is connected with AP 2.
Step4, the electronic device detects the current internet state and calculates the link state to obtain the link performance parameters of the AP 2.
And Step5, the electronic equipment compares the link performance parameters of the AP2 with the link performance parameters of the AP1, and if the link performance parameters of the AP1 are lower than the performance threshold parameters, namely the threshold P, and the link performance parameters of the AP2 are higher than the link performance parameters of the AP1 at the moment, Step6 is executed, the communication module of the electronic equipment is connected with the AP2, and the AP2 is used for accessing the internet.
Step7, the electronic device determines that the link performance parameter of the AP2 is lower than the threshold P, and then starts the discontinuity detection AP 1.
Step8, if the electronic device detects that the link performance parameters of the AP1 are higher than those of the AP2, the communication module of the electronic device is connected with the AP1 and uses the link of the AP1 to access the Internet.
Step9, the electronic device detects that the link state of the AP1 reaches a threshold value, and detects the link state of the AP2 discontinuously; when the AP2 link state is detected to be better, the internet link is switched to the AP2 link, and dynamic detection is realized.
Therefore, according to the network connection method provided by the embodiment of the application, a better network is selected according to the dynamic detection result by detecting the link states of the two APs, so that the user experience is improved. From the side of the electronic equipment, a user is respectively connected with the wireless network A and the wireless network B from a setting interface of the electronic equipment; when the score of the network A is larger than that of the network B, the network defaults to use the network A and detects the network score of the network B discontinuously; and when the score of the network B is detected to be better, the internet link is switched to the network B, so that dynamic detection is realized. However, in the case where the related art device supports the MIMO technology, dual antennas are required, which inevitably increases hardware costs. The network connection method provided by the application can realize the connection of the double Wireless Local Area Networks (WLAN) on the basis of not increasing the hardware cost, and achieves the purpose of improving the internet experience of users.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
An embodiment of the present application provides a network connection device, which can be applied to a network connection method provided in the embodiment corresponding to fig. 1 to 2, and as shown in fig. 4, the network connection device 4 includes:
an obtaining unit 41, configured to obtain a first performance parameter of a link between a communication module of an electronic device and a first wireless access point when the communication module connects to the first wireless access point at a first time;
an obtaining unit 41, configured to obtain a second performance parameter of a link between the communication module and the second wireless access point when the communication module switches from connecting to the first wireless access point to connecting to the second wireless access point at the second time;
and the processing unit 42 is configured to determine, based on the first performance parameter and the second performance parameter, a target wireless access point from the first wireless access point and the second wireless access point when the communication module is connected to the second wireless access point.
In other embodiments of the present application, the processing unit 42 is further configured to obtain an association relationship between the first performance parameter, the second performance parameter, and the performance threshold parameter;
and under the condition that the communication module is connected with the second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the association relation.
In other embodiments of the present application, the processing unit 42 is further configured to determine that the association relationship indicates that the first performance parameter is smaller than the performance threshold parameter when the communication module is connected to the second wireless access point, and determine that the second wireless access point is the target wireless access point when the second performance parameter is larger than the first performance parameter.
In other embodiments of the present application, the processing unit 42 is further configured to control the communication module to maintain connection with the second wireless access point;
under the condition that the communication module is connected with the second wireless access point, obtaining a third performance parameter of a link between the communication module and the second wireless access point;
detecting a fourth performance parameter of a link between the communication module and the first wireless access point when it is determined that the third performance parameter is less than the performance threshold parameter;
and when the fourth performance parameter is determined to be larger than the third performance parameter, controlling the communication module to be connected with the first wireless access point.
In other embodiments of the present application, the processing unit 42 is further configured to obtain a detection period when it is determined that the third performance parameter is smaller than the performance threshold parameter; the detection period is determined by the absolute value of the difference value of the performance threshold parameter and the third performance parameter;
and detecting the fourth performance parameter according to the detection period.
In other embodiments of the present application, the larger the absolute value of the difference is, the smaller the corresponding detection period is.
In other embodiments of the present application, the first performance parameter has an association relationship with at least one of the following parameters: the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting with the first wireless access point at the first moment.
In other embodiments of the present application, the second performance parameter has an association relationship with at least one of the following parameters: and the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting the second wireless access point at the second moment.
In other embodiments of the present application, the third performance parameter has an association relationship with at least one of the following parameters: and controlling the strength indication parameter of the received signal, the round trip delay of the transmitted data and the network link speed under the condition that the communication module is connected with the second wireless access point.
In other embodiments of the present application, the fourth performance parameter has an association relationship with at least one of the following parameters: and the third performance parameter is smaller than the performance threshold parameter, and the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of being connected with the second wireless access point.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
Based on the foregoing embodiments, an embodiment of the present application provides an electronic device, which can be applied to a network connection method provided in the embodiments corresponding to fig. 1-2, and as shown in fig. 5, the electronic device 5 (the electronic device 5 in fig. 5 corresponds to the network connection device 4 in fig. 4) includes: a processor 51, a memory 52, and a communication bus 53, wherein:
the communication bus 53 is used to realize a communication connection between the processor 51 and the memory 52.
The processor 51 is configured to execute the network connection program stored in the memory 52 to implement the following steps:
when a communication module of the electronic equipment is connected with a first wireless access point at a first moment, obtaining a first performance parameter of a link between the communication module and the first wireless access point;
when the communication module is switched from being connected with the first wireless access point to being connected with the second wireless access point at a second moment, obtaining a second performance parameter of a link between the communication module and the second wireless access point;
and under the condition that the communication module is connected with the second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter.
In other embodiments of the present application, the processor 51 is configured to execute the network connection program stored in the memory 52 to implement the following steps:
obtaining an incidence relation among the first performance parameter, the second performance parameter and the performance threshold parameter;
and under the condition that the communication module is connected with the second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the association relation.
In other embodiments of the present application, the processor 51 is configured to execute the network connection program stored in the memory 52 to implement the following steps:
and under the condition that the communication module is connected with the second wireless access point, determining that the association relation represents that the first performance parameter is smaller than the performance threshold parameter, and determining that the second wireless access point is the target wireless access point when the second performance parameter is larger than the first performance parameter.
In other embodiments of the present application, the processor 51 is configured to execute the network connection program stored in the memory 52 to implement the following steps:
controlling the communication module to keep connected with the second wireless access point;
under the condition that the communication module is connected with the second wireless access point, obtaining a third performance parameter of a link between the communication module and the second wireless access point;
detecting a fourth performance parameter of a link between the communication module and the first wireless access point when it is determined that the third performance parameter is less than the performance threshold parameter;
and when the fourth performance parameter is determined to be larger than the third performance parameter, controlling the communication module to be connected with the first wireless access point.
In other embodiments of the present application, the processor 51 is configured to execute the network connection program stored in the memory 52 to implement the following steps:
when the third performance parameter is determined to be smaller than the performance threshold parameter, obtaining a detection period; the detection period is determined by the absolute value of the difference value of the performance threshold parameter and the third performance parameter;
and detecting the fourth performance parameter according to the detection period.
In other embodiments of the present application, the larger the absolute value of the difference is, the smaller the detection period is.
In other embodiments of the present application, the first performance parameter has an association relationship with at least one of: the communication module is used for receiving the strength indication parameters of the signals, the round trip delay of the transmitted data and the network link speed under the condition of connecting the first wireless access point at the first moment.
In other embodiments of the present application, the second performance parameter has an association relationship with at least one of the following parameters: and the communication module is used for receiving the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting the second wireless access point at the second moment.
In other embodiments of the present application, the third performance parameter has an association relationship with at least one of the following parameters: and controlling the strength indication parameter of the received signal, the round trip delay of the transmitted data and the network link speed under the condition that the communication module is connected with the second wireless access point.
In other embodiments of the present application, the fourth performance parameter has an association relationship with at least one of the following parameters: and the third performance parameter is smaller than the performance threshold parameter, and the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of being connected with the second wireless access point.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
Based on the foregoing embodiments, embodiments of the present application provide a computer storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of:
when a communication module of the electronic equipment is connected with a first wireless access point at a first moment, obtaining a first performance parameter of a link between the communication module and the first wireless access point;
when the communication module is switched from being connected with the first wireless access point to being connected with the second wireless access point at a second moment, obtaining a second performance parameter of a link between the communication module and the second wireless access point;
and under the condition that the communication module is connected with the second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
obtaining an incidence relation among the first performance parameter, the second performance parameter and the performance threshold parameter;
and under the condition that the communication module is connected with the second wireless access point, determining a target wireless access point from the first wireless access point and the second wireless access point based on the association relation.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
and under the condition that the communication module is connected with the second wireless access point, determining that the association relation represents that the first performance parameter is smaller than the performance threshold parameter, and determining that the second wireless access point is the target wireless access point when the second performance parameter is larger than the first performance parameter.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
controlling the communication module to keep connected with the second wireless access point;
under the condition that the communication module is connected with the second wireless access point, obtaining a third performance parameter of a link between the communication module and the second wireless access point;
detecting a fourth performance parameter of a link between the communication module and the first wireless access point when it is determined that the third performance parameter is less than the performance threshold parameter;
and when the fourth performance parameter is determined to be larger than the third performance parameter, controlling the communication module to be connected with the first wireless access point.
In other embodiments of the present application, the one or more programs are executable by the one or more processors and further implement the steps of:
when the third performance parameter is determined to be smaller than the performance threshold parameter, obtaining a detection period; the detection period is determined by the absolute value of the difference value of the performance threshold parameter and the third performance parameter;
and detecting the fourth performance parameter according to the detection period.
In other embodiments of the present application, a larger absolute value of the difference corresponds to a smaller detection period.
In other embodiments of the present application, the first performance parameter has an association relationship with at least one of: the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting with the first wireless access point at the first moment.
In other embodiments of the present application, the second performance parameter has an association relationship with at least one of the following parameters: and the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting the second wireless access point at the second moment.
In other embodiments of the present application, the third performance parameter has an association relationship with at least one of the following parameters: and controlling the strength indication parameter of the received signal, the round trip delay of the transmitted data and the network link speed under the condition that the communication module is connected with the second wireless access point.
In other embodiments of the present application, the fourth performance parameter has an association relationship with at least one of the following parameters: and the third performance parameter is smaller than the performance threshold parameter, and the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of being connected with the second wireless access point.
It should be noted that, for the descriptions of the same steps and the same contents in this embodiment as those in other embodiments, reference may be made to the descriptions in other embodiments, which are not described herein again.
The computer storage medium/Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM); but may also be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of a unit is only one logical function division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all functional units in the embodiments of the present application may be integrated into one processing module, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media capable of storing program codes, such as a removable Memory device, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, and an optical disk.
The methods disclosed in the several method embodiments provided in the present application may be combined arbitrarily without conflict to obtain new method embodiments.
Features disclosed in several of the product embodiments provided in the present application may be combined in any combination to yield new product embodiments without conflict.
The features disclosed in the several method or apparatus embodiments provided in the present application may be combined arbitrarily, without conflict, to arrive at new method embodiments or apparatus embodiments.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method of network connectivity, the method comprising:
when a communication module of an electronic device is connected with a first wireless access point at a first moment, obtaining a first performance parameter of a link between the communication module and the first wireless access point;
when the communication module is switched from being connected with the first wireless access point to being connected with a second wireless access point at a second moment, obtaining a second performance parameter of a link between the communication module and the second wireless access point;
under the condition that the communication module is connected with the second wireless access point, a target wireless access point is determined from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter.
2. The method according to claim 1, wherein the determining a target wireless access point from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter when the communication module is connected to the second wireless access point comprises:
obtaining an incidence relation among the first performance parameter, the second performance parameter and a performance threshold parameter;
and under the condition that the communication module is connected with the second wireless access point, determining the target wireless access point from the first wireless access point and the second wireless access point based on the association relation.
3. The method according to claim 2, wherein the determining the target wireless access point from the first wireless access point and the second wireless access point based on the association relationship when the communication module is connected to the second wireless access point comprises:
and under the condition that the communication module is connected with the second wireless access point, determining that the association relationship represents that the first performance parameter is smaller than the performance threshold parameter, and determining that the second wireless access point is the target wireless access point when the second performance parameter is larger than the first performance parameter.
4. The method of claim 3, wherein after determining that the association relationship characterizes the first performance parameter being less than the performance threshold parameter and the second performance parameter being greater than the first performance parameter when the communication module is connected to the second wireless access point, determining that the second wireless access point is the target wireless access point, further comprises:
controlling the communication module to maintain connection with the second wireless access point;
under the condition that the communication module is connected with the second wireless access point, obtaining a third performance parameter of a link between the communication module and the second wireless access point;
detecting a fourth performance parameter of a link between the communication module and the first wireless access point when it is determined that the third performance parameter is less than the performance threshold parameter;
and when the fourth performance parameter is determined to be larger than the third performance parameter, controlling the communication module to connect with the first wireless access point.
5. The method of claim 4, wherein detecting a fourth performance parameter of a link between the communication module and the first wireless access point upon determining that the third performance parameter is less than the performance threshold parameter further comprises:
when the third performance parameter is determined to be smaller than the performance threshold parameter, obtaining a detection period; the detection period is determined by the absolute value of the difference of the performance threshold parameter and the third performance parameter;
and detecting the fourth performance parameter according to the detection period.
6. The method of claim 5, wherein the larger the absolute value of the difference is, the smaller the detection period is.
7. The method according to any of claims 1 to 6, characterized in that the first performance parameter has an association with at least one of: the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting the first wireless access point at the first moment.
8. The method according to any of claims 1 to 6, characterized in that the second performance parameter has an association with at least one of: and the communication module receives the strength indication parameter of the signal, the round trip delay of the transmitted data and the network link speed under the condition of connecting the second wireless access point at the second moment.
9. A network connection device, the network connection device comprising:
the method comprises the steps of obtaining a first performance parameter of a link between a communication module of an electronic device and a first wireless access point when the communication module is connected with the first wireless access point at a first moment;
the obtaining unit is further configured to obtain a second performance parameter of a link between the communication module and a second wireless access point when the communication module switches from being connected to the first wireless access point to being connected to the second wireless access point at a second time;
the processing unit is configured to determine a target wireless access point from the first wireless access point and the second wireless access point based on the first performance parameter and the second performance parameter when the communication module is connected to the second wireless access point.
10. An electronic device, characterized in that the electronic device comprises: a processor, a memory, and a communication bus;
the communication bus is used for realizing communication connection between the processor and the memory;
the processor is configured to execute a network connection program stored in the memory to implement the steps of the network connection method according to any one of claims 1 to 8.
11. A storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps of the network connection method according to any one of claims 1 to 8.
CN202010131579.0A 2020-02-28 2020-02-28 Network connection method, device, electronic equipment and storage medium Pending CN111328120A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010131579.0A CN111328120A (en) 2020-02-28 2020-02-28 Network connection method, device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010131579.0A CN111328120A (en) 2020-02-28 2020-02-28 Network connection method, device, electronic equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111328120A true CN111328120A (en) 2020-06-23

Family

ID=71168920

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010131579.0A Pending CN111328120A (en) 2020-02-28 2020-02-28 Network connection method, device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111328120A (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826291A (en) * 2012-11-16 2014-05-28 三星电子株式会社 Method and apparatus for connecting to access point in portable terminal
US20160112944A1 (en) * 2014-10-17 2016-04-21 Qualcomm Incorporated Access point selection based on association performance
CN105828397A (en) * 2016-03-28 2016-08-03 维沃移动通信有限公司 Wireless access point switching method and mobile terminal
CN107113669A (en) * 2014-12-18 2017-08-29 高通股份有限公司 Scanning channel reduces to improve WI FI system powers
CN107113641A (en) * 2014-12-17 2017-08-29 汤姆逊许可公司 WLAN user Quality of experience is controlled in multi-access point environment
CN107484212A (en) * 2017-08-10 2017-12-15 深圳益创信息科技有限公司 Router side WiFi switching methods and router
CN108024198A (en) * 2016-10-31 2018-05-11 华为技术有限公司 A kind of localization method, positioner and access point AP
CN108307462A (en) * 2018-01-30 2018-07-20 努比亚技术有限公司 A kind of method for connecting network, terminal and computer readable storage medium
CN108476451A (en) * 2016-12-01 2018-08-31 华为技术有限公司 The method and terminal of wireless local network connecting point switching
US20180338278A1 (en) * 2017-05-19 2018-11-22 7Signal Solutions, Inc. Wi-fi roaming management

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103826291A (en) * 2012-11-16 2014-05-28 三星电子株式会社 Method and apparatus for connecting to access point in portable terminal
US20160112944A1 (en) * 2014-10-17 2016-04-21 Qualcomm Incorporated Access point selection based on association performance
CN107113641A (en) * 2014-12-17 2017-08-29 汤姆逊许可公司 WLAN user Quality of experience is controlled in multi-access point environment
CN107113669A (en) * 2014-12-18 2017-08-29 高通股份有限公司 Scanning channel reduces to improve WI FI system powers
CN105828397A (en) * 2016-03-28 2016-08-03 维沃移动通信有限公司 Wireless access point switching method and mobile terminal
CN108024198A (en) * 2016-10-31 2018-05-11 华为技术有限公司 A kind of localization method, positioner and access point AP
CN108476451A (en) * 2016-12-01 2018-08-31 华为技术有限公司 The method and terminal of wireless local network connecting point switching
US20180338278A1 (en) * 2017-05-19 2018-11-22 7Signal Solutions, Inc. Wi-fi roaming management
CN107484212A (en) * 2017-08-10 2017-12-15 深圳益创信息科技有限公司 Router side WiFi switching methods and router
CN108307462A (en) * 2018-01-30 2018-07-20 努比亚技术有限公司 A kind of method for connecting network, terminal and computer readable storage medium

Similar Documents

Publication Publication Date Title
WO2020164475A1 (en) Data distribution method and apparatus, mobile terminal, and storage medium
CN108494462B (en) Antenna function control method and device, readable storage medium and intelligent terminal
US20180301804A1 (en) Beam tracking method, apparatus, and system
US11974168B2 (en) Method for data transmission through communication link, electronic device, and storage medium
CN110650492B (en) Measurement method, terminal and network side equipment
WO2019137337A1 (en) Cell selection method, terminal, and network device
US11476571B2 (en) Antenna routing method and related devices
WO2021147516A1 (en) Antenna routing method and related devices
EP4002780A1 (en) Wireless high-fidelity wi-fi connection control method and related product
JP2021519030A (en) Beam failure detection method, information placement method, terminals and network equipment
CN112840695B (en) Method and device for determining BFD (bidirectional Forwarding detection) resources for beam failure detection and communication equipment
CN109819489B (en) Terminal calling method and terminal
CA2568328A1 (en) Method and system for determining a power level for communication in a wireless network
US11617177B2 (en) Beam failure recovery method and terminal
CN109640379B (en) Link aggregation implementation method and related product
CN112040475A (en) Communication connection method, system, terminal equipment and network equipment
JP5259322B2 (en) Wireless communication terminal and wireless communication method
WO2017049933A1 (en) Direct mode operation communication method and terminal
CN111918351B (en) Method and device for adjusting network parameters
EP1937023A2 (en) Wireless communication connection destination selecting method and device
CN111328120A (en) Network connection method, device, electronic equipment and storage medium
CN108990171A (en) A kind of mobile terminal communication method, mobile terminal, medium and equipment
US20210258083A1 (en) Method for Electromagnetic Interference Control and Related Devices
CN112399515B (en) Communication processing method and device
KR20130004668A (en) Mobile communication terminal and operating method thereof

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