Method and device for selecting wireless access point (AP), electronic equipment and storage medium
By calculating the performance score of the wireless access point AP and selecting the AP based on the score, the problem of not being able to adapt to complex network environments in the prior art is solved, and the connection performance and user experience of the wireless LAN are improved.
Patent Information
- Application Number
- CN202411906107.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-23
- Publication Date
- 2025-03-28
AI Technical Summary
The prior art cannot adapt to complex network environments when selecting wireless access point AP, which may affect data security and lead to poor user experience.
By obtaining the performance detection data and historical connection data of the AP, calculate the values of relevant parameters, calculate the performance score, and select the appropriate AP to connect based on the score and current application conditions.
Improves the connection performance of wireless LAN, enhances data security, and thus improves user experience.
Smart Images

Figure CN119729707A_ABST
Abstract
Description
Technical Field
[0001] The present application mainly relates to the field of communication technology, and in particular to a method, device, electronic device and storage medium for selecting a wireless access point AP. Background Art
[0002] In a wireless local area network (WLAN), a wireless access point (AP) provides wireless signal coverage and is responsible for managing network traffic and connections. Electronic devices that use network services act as clients (Stations, STAs) and establish communication links with APs. When an electronic device is within the wireless signal coverage of multiple APs, the AP with the highest signal strength is usually selected, and then a communication link is established between the electronic device and the AP with the highest signal strength. However, this method cannot adapt to complex network environments. For example, if the security of the AP with the highest signal strength is poor, then connecting the electronic device to this AP may affect the user's data security, resulting in a poor user experience. Summary of the invention
[0003] The purpose of this application is to provide a method, device, electronic device and storage medium for selecting a wireless access point AP, which can more reasonably and accurately select the AP required to connect to the electronic device in the current network environment, thereby improving the connection performance of the wireless local area network and improving the user experience.
[0004] In a first aspect, the present application provides a method for selecting a wireless access point AP, which is applied to an electronic device, including:
[0005] Obtain key information of each AP in one or more wireless access points (APs), including AP performance detection data and historical connection data;
[0006] Calculate the value of one or more parameters related to the performance indicator of each AP according to the key information;
[0007] For each AP, a corresponding performance score is calculated according to the value of one or more parameters, and the AP with the highest performance score is selected as a candidate AP;
[0008] According to the number of candidate APs and current application conditions, a target AP for the electronic device to connect to is selected from the candidate APs.
[0009] In some embodiments, the one or more parameters include: a signal strength factor; wherein the expression of the signal strength factor is:
[0010]
[0011] N SignalStrengthis the signal strength factor of one of the one or more APs, S value is the signal strength currently received by the electronic device from an AP, S min S is the minimum threshold of signal strength that can be detected by electronic equipment. max It is the maximum threshold of signal strength that can be detected by electronic devices.
[0012] In some embodiments, the one or more parameters include: a safety factor; wherein the expression of the safety factor is:
[0013]
[0014] N Security It is the security factor of one AP among one or more APs, STD is the security standard protocol adopted by an AP, WPA3 is the third-generation Wi-Fi encryption protocol, WPA2 is the second-generation Wi-Fi encryption protocol, WPA is the Wi-Fi encryption protocol, WEP is the Wired Equivalent Privacy Protocol, and OPEN is the non-encrypted protocol.
[0015] In some embodiments, the one or more parameters include: a stability factor; wherein the expression of the stability factor is:
[0016] N Stability =(W R ×R s +W T ×T a +W F ×F d )
[0017] N Stability is the stability factor of one AP among one or more APs, R s is the connection success rate factor of an AP, which is used to characterize the probability that an electronic device can successfully connect to an AP. a is the connection duration factor of an AP, which is used to characterize the probability that the connection between an electronic device and an AP can last. d is the offline frequency factor of an AP, which is used to characterize the probability that the connection between an electronic device and an AP will be offline. R is the weight corresponding to the connection success rate factor, W T is the weight corresponding to the connection duration factor, W F is the weight corresponding to the offline frequency factor.
[0018] In some embodiments, the expression of the connection success rate factor is:
[0019]
[0020] Rs is the connection success rate factor of an AP, N succsess N is the number of successful connections between an electronic device and an AP. attempt The total number of times the electronic device attempts to connect to an AP;
[0021] The expression for the connection duration factor is:
[0022]
[0023] T a is the connection duration factor of an AP, T duration is the duration of connection between an electronic device and an AP, T max The maximum connection time set for an electronic device to an AP;
[0024] The expression of the drop frequency factor is:
[0025]
[0026] F d is the offline frequency factor of an AP, N drop N is the number of disconnections between an electronic device and an AP within a set period of time. max The maximum number of possible disconnections allowed between an electronic device and an AP within a set period of time.
[0027] In some embodiments, the one or more parameters include: a throughput factor; wherein the expression of the throughput factor is:
[0028]
[0029] N Throughput is the throughput factor of one AP among one or more APs, R is the actual throughput measured by an AP, and R max is the peak throughput of an AP.
[0030] In some embodiments, the corresponding performance score is calculated based on the value of one or more parameters, including:
[0031] Get the weight corresponding to each parameter of one or more parameters;
[0032] The values of one or more parameters are weighted and summed according to the weight corresponding to each parameter to obtain the corresponding performance score.
[0033] In some embodiments, according to the number of candidate APs and current application conditions, selecting a target AP for the electronic device to connect to from the candidate APs includes any of the following:
[0034] In response to the number of candidate APs being one, taking the candidate AP as a target AP;
[0035] In response to the number of candidate APs being greater than one, one of the candidate APs whose frequency band meets the current application condition is selected as the target AP, where the frequency band is a frequency range used by a candidate AP, and the current application condition includes: the priority of at least one parameter among one or more parameters.
[0036] In a second aspect, the present application provides a device for selecting a wireless access point AP, which is applied to an electronic device, including:
[0037] An information acquisition module is used to acquire key information of each AP in one or more wireless access points AP, wherein the key information includes performance detection data and historical connection data of the current AP;
[0038] An indicator calculation module, used to calculate the value of one or more parameters related to the performance indicator of each AP according to the key information;
[0039] A performance scoring module is used to calculate a corresponding performance score for each AP according to the value of one or more parameters, and select an AP with the highest performance score as a candidate AP;
[0040] The AP selection module is used to select a target AP for the electronic device to connect to from the candidate APs according to the number of candidate APs and current application conditions.
[0041] In a third aspect, the present application provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is called by the processor, the processor executes the method of the first aspect as described above.
[0042] In a fourth aspect, the present application provides a storage medium comprising computer program instructions. When the computer program instructions are called by a computer, the computer executes any method of the first aspect described above.
[0043] Compared with the prior art, this application has the following advantages:
[0044] The present application provides a method, device, electronic device and storage medium for selecting a wireless access point AP, which calculates the value of one or more parameters related to performance indicators through key information of the AP, and then calculates the performance score of the AP according to the value of the one or more parameters, and then selects the target AP for connecting the electronic device through the performance score of each AP and the current application conditions. Since the one or more parameters related to the performance indicator may include signal strength and other parameters (such as throughput, etc.), the above method can effectively use more parameters to comprehensively consider the performance of the AP. At the same time, the above method takes into account the current application conditions to select a more suitable AP, which improves the flexibility and accuracy of AP selection, thereby improving the connection performance of the wireless local area network and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] The accompanying drawings are included to provide a further understanding of the present application. They are included and constitute a part of the present application. The accompanying drawings illustrate embodiments of the present application and together with the present specification serve to explain the principles of the present application. In the accompanying drawings:
[0046] Figure 1 is a schematic diagram of an electronic device 100 exemplarily provided in the present application;
[0047] Figure 2 is a schematic diagram of a process 200 of a method for selecting a wireless access point AP exemplarily provided by the present application;
[0048] Figure 3 is a schematic diagram of a process 300 of selecting a target AP for connecting an electronic device from candidate APs provided by the present application as an example;
[0049] Figure 4 is a schematic diagram of an apparatus 400 for selecting a wireless access point AP exemplarily provided by the present application;
[0050] Figure 5 Schematic diagram of an electronic device 500 exemplarily provided in the present application. DETAILED DESCRIPTION
[0051] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following is a brief introduction to the drawings required for the description of the embodiments. Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. Unless it is obvious from the language environment or otherwise explained, the same reference numerals in the figures represent the same structure or operation.
[0052] As shown in this application and claims, unless the context clearly indicates an exception, the words "a", "an", "an" and / or "the" do not refer to the singular and may also include the plural. Generally speaking, the terms "include" and "comprise" only indicate the inclusion of the steps and elements that have been clearly identified, and these steps and elements do not constitute an exclusive list. The method or device may also include other steps or elements.
[0053] In addition, it should be noted that the use of words such as "first" and "second" to define components is only for the convenience of distinguishing the corresponding components. If not otherwise stated, the above words have no special meaning and cannot be understood as limiting the scope of protection of this application. In addition, although the terms used in this application are selected from well-known and commonly used terms, some terms mentioned in the specification of this application may be selected by the applicant at his or her discretion, and their detailed meanings are explained in the relevant parts of the description of this article. In addition, it is required to understand this application not only by the actual terms used, but also by the meaning implied by each term.
[0054] The term "electronic device" used herein refers to any terminal device that can use network services in a wireless local area network. As an example and not a limitation, the terminal device may also be referred to as a communication device, a user equipment (UE), etc. "Electronic device" may include, but is not limited to, a mobile phone, a cellular phone, a smart phone, a voice over IP (VoIP) phone, a wireless local loop phone, a tablet computer, a wearable terminal device, a personal digital assistant (PDA), a portable computer, a desktop computer, an image capture terminal device such as a digital camera, a game terminal device, a music storage and playback device, a vehicle-mounted wireless terminal device, a wireless endpoint, a mobile station, a notebook embedded device (LEE), a laptop computer installation device (LME), a USB dongle, a smart device, a wireless user equipment (CPE), an Internet of Things (Lot) device, a watch or other wearable device, a head mounted display (HMD), a vehicle, a drone, medical equipment and applications (e.g., remote surgery), industrial equipment and applications (e.g., robots and / or other wireless devices operating in the context of industrial and / or automated processing chains), consumer electronic devices, relay nodes, devices operating on commercial and / or industrial wireless networks, etc. In the following description, the terms "electronic device", "terminal device", "communication device", "terminal", "user equipment" and "UE" may be used interchangeably.
[0055] In the following embodiments, a method for selecting a wireless access point AP is provided and can be applied to any of the above-mentioned electronic devices.
[0056] Figure 11 is a schematic diagram of an electronic device 100 provided by the present application. The electronic device 100 includes: a control processor 101, a memory 102 and a wireless module 103. The control processor 101 and the memory 102 are connected by hardware, and the control processor 101 and the wireless module 103 are connected by hardware.
[0057] The control processor 101 is responsible for executing computing tasks and control instructions, including running an operating system and a network protocol stack.
[0058] The memory 102 is used to store the operating system, application programs and related data.
[0059] The wireless module 103 integrates an antenna 1031, a modem 1032 and other circuits ( Figure 1 ), for processing wireless communication functions.
[0060] In the electronic device 100, a computer program written according to a method for selecting a wireless access point AP provided can be stored in the memory 102, and the control processor 101 can access and run the computer program in the memory 102. The wireless module 103 can convert wireless signals from surrounding APs into digital signals for use by the processor, so that the electronic device 100 can exchange data with surrounding APs, and then execute the steps in the following method for selecting a wireless access point AP.
[0061] In conjunction with the accompanying drawings, the steps in a method for selecting a wireless access point AP are described in detail below by taking the electronic device 100 as an example of the “electronic device” described below.
[0062] Figure 2 2 is a schematic diagram of a process 200 of a method for selecting a wireless access point AP provided by the present application. The process 200 of the method includes:
[0063] S201: Acquire key information of each of one or more wireless access points AP.
[0064] Key information includes AP performance detection data and historical connection data.
[0065] Exemplarily, the performance detection data of the AP may include the current signal strength and throughput of the AP.
[0066] The historical connection data may be performance detection data of the AP collected during a user-defined historical period, for example, the signal strength and throughput of the AP one day ago, or the duration of the AP's connection with the electronic device one day ago, the number of successful connections, the number of disconnections, etc., without limitation.
[0067] S202: Calculate values of one or more parameters related to the performance indicator of each AP according to the key information.
[0068] It will be understood that the user may customize one or more parameters related to the performance indicator, which may make the performance scoring rule of the AP more flexible and ensure that the performance scoring of the AP meets the expected requirements.
[0069] In some embodiments, one or more parameters related to performance may include any one or a combination of the following:
[0070] Signal strength factor, security factor, stability factor, throughput factor.
[0071] Among them, the signal strength factor is used to reflect the strength of the wireless signal under the network conditions of the AP. The security factor is used to reflect the security of the network conditions provided by the AP. The stability factor is used to reflect the connection stability between the AP and the electronic device. The throughput factor is used to reflect the throughput performance of the AP.
[0072] Exemplarily, the one or more parameters related to the performance indicator include: a signal strength factor, a security factor, a stability factor, and a throughput factor.
[0073] In some embodiments, the expression of the signal strength factor is as shown in formula (1):
[0074]
[0075] N SignalStrength is the signal strength factor of one of the one or more APs, S value is the signal strength currently received by the electronic device from an AP, S min S is the minimum threshold of signal strength that can be detected by electronic equipment. max It is the maximum threshold of signal strength that can be detected by electronic devices.
[0076] For example, the minimum threshold of the signal strength that the electronic device can detect can be the minimum strength recognized by the electronic device as a valid signal, such as -100dBm. The maximum threshold of the signal strength that the electronic device can detect can be the best signal strength that the electronic device can receive under ideal conditions, such as 500dBm.
[0077] In some embodiments, the safety factor is expressed as follows:
[0078]
[0079] N SecurityIt is the security factor of one AP among one or more APs, STD is the security standard protocol adopted by an AP, WPA3 is the third-generation Wi-Fi encryption protocol, WPA2 is the second-generation Wi-Fi encryption protocol, WPA is the Wi-Fi encryption protocol, WEP is the Wired Equivalent Privacy Protocol, and OPEN is the non-encrypted protocol.
[0080] Taking into account the differences in known vulnerabilities, cracking difficulties and industry standards of different security standard protocols, the corresponding security factor value can be set for each security standard protocol. As shown in formula (2), when the security standard protocol adopted by an AP is the third-generation Wi-Fi encryption protocol (WPA3), the corresponding security factor value is 1, reflecting that the security of an AP is relatively high. Similarly, when the security standard protocol adopted by an AP is the second-generation Wi-Fi encryption protocol (WPA2), the corresponding security factor value is 0.8. When the security standard protocol adopted by an AP is the Wi-Fi encryption protocol (WPA), the corresponding security factor value is 0.5. When the security standard protocol adopted by an AP is the Wired Equivalent Privacy Protocol (WEP), the corresponding security factor value is 0.2. When the security standard protocol adopted by an AP is the non-encrypted protocol (OPEN), the corresponding security factor value is 0.
[0081] It will be understood that the user can customize the value of the security factor corresponding to each security standard protocol. For example, the security factor value corresponding to WPA2 can be adjusted to 0.7, or the security factor value corresponding to WPA can be adjusted to 0.6, etc., without limitation.
[0082] In some embodiments, the stability factor is expressed as shown in formula (3):
[0083] N Stability = (W R ×R s +W T ×T a +W F ×f d ) (3)
[0084] N Stability is the stability factor of one AP among one or more APs, R s is the connection success rate factor of an AP, T a is the connection duration factor of an AP, F d is the offline frequency factor of an AP, W R is the weight corresponding to the connection success rate factor, W T is the weight corresponding to the connection duration factor, W Fis the weight corresponding to the disconnection frequency factor. The connection success rate factor is used to characterize the probability that the electronic device can successfully connect to an AP. The connection duration factor is used to characterize the probability that the connection between an electronic device and an AP can last. The disconnection frequency factor is used to characterize the probability that the connection between an electronic device and an AP will be disconnected.
[0085] Exemplarily, the connection success rate factor W R for Connection duration factor W T for Drop frequency factor W F for
[0086] In some embodiments, the expression of the connection success rate factor is as shown in formula (4):
[0087]
[0088] R s is the connection success rate factor of an AP, N success N is the number of successful connections between an electronic device and an AP. attempt The total number of times the electronic device attempts to connect to an AP;
[0089] The expression of the connection duration factor is shown in formula (5):
[0090]
[0091] T a is the connection duration factor of an AP, T duration is the duration of connection between an electronic device and an AP, T max The maximum connection time set for an electronic device to an AP;
[0092] The expression of the disconnection frequency factor is shown in formula (6):
[0093]
[0094] F d is the offline frequency factor of an AP, N drop N is the number of disconnections between an electronic device and an AP within a set period of time. max The maximum number of possible disconnections allowed between an electronic device and an AP within a set period of time.
[0095] In some embodiments, the expression of the throughput factor is as shown in equation (7):
[0096]
[0097] NThroughput is the throughput factor of one AP among one or more APs, R is the actual throughput measured by an AP, and R max is the peak throughput of an AP.
[0098] Exemplarily, the peak throughput may be determined by the wireless network standard supported by the electronic device. For example, for an electronic device supporting the 802.11n standard, R max It can be set to 600Mbps, and for electronic devices that support the 802.11ac standard, R max Can be set to 1300Mbps.
[0099] S203: For each AP, calculate a corresponding performance score according to the value of one or more parameters, and select an AP with the highest performance score as a candidate AP.
[0100] In some embodiments, the corresponding performance score is calculated based on the value of one or more parameters, including:
[0101] Gets the weight corresponding to each of one or more parameters.
[0102] The values of one or more parameters are weighted and summed according to the weight corresponding to each parameter to obtain the corresponding performance score.
[0103] Exemplarily, the weights of the signal strength factor, the security factor, the stability factor, and the throughput factor may all be set to 25%.
[0104] It will be understood that the user can customize the weight of each parameter related to the performance indicator. For example, if the user pays more attention to the signal strength and security when using the network, the weight of the signal strength factor and the security factor can be increased, which can better meet the specific needs of the user.
[0105] S204: Select a target AP for the electronic device to connect to from the candidate APs according to the number of candidate APs and current application conditions.
[0106] In some embodiments, according to the number of candidate APs and current application conditions, selecting a target AP for the electronic device to connect to from the candidate APs includes any of the following:
[0107] 1) In response to the number of candidate APs being one, the candidate AP is used as a target AP.
[0108] Exemplarily, assuming that the candidate AP is unique, the candidate AP can be directly selected as the target AP, which can increase the speed at which the electronic device selects the target AP and avoid unnecessary complex calculations.
[0109] 2) In response to the number of candidate APs being greater than one, a candidate AP whose frequency band meets the current application condition is selected from the candidate APs as a target AP.
[0110] The frequency band is a frequency range used by a candidate AP, and the current application condition includes: a priority of at least one parameter among the one or more parameters.
[0111] Exemplarily, it is assumed that there are two candidate APs, using the 2.4 GHz frequency band and the 5 GHz frequency band respectively. The candidate AP of the 2.4 GHz frequency band has stronger penetration ability and wider coverage, and can provide higher stability in the network environment. The candidate AP of the 5 GHz frequency band supports higher data rate and bandwidth, and can have better throughput performance. In step S204, a more suitable target AP can be selected by considering the current application conditions and the advantages of the candidate APs of the two different frequency bands.
[0112] In some embodiments, the weight corresponding to each parameter related to the performance indicator may be sorted to determine the priority of each parameter.
[0113] For example, when the weight corresponding to the stability factor is the highest, it can be determined that the stability factor has the highest priority, so that the electronic device can select the candidate AP in the 2.4 GHz frequency band as the target AP. For another example, when the weight corresponding to the throughput factor is the highest, it can be determined that the throughput factor has the highest priority, so that the electronic device can select the candidate AP in the 5 GHz frequency band as the target AP.
[0114] It will be understood that since the signal strength factor and the safety factor are usually not highly correlated with the frequency band, in some embodiments, the one with the largest value of the highest priority parameter can be selected from the candidate APs as the target AP based on the determined highest priority parameter.
[0115] For example, when the weight corresponding to the signal strength factor is the highest, it can be determined that the signal strength factor has the highest priority, and the electronic device can also directly select a candidate with the highest signal strength factor value from the candidate APs as the target AP without considering the frequency band. For another example, when the weight corresponding to the safety factor is the highest, it can be determined that the safety factor has the highest priority, and the electronic device can also directly select a candidate with the highest safety factor value from the candidate APs as the target AP without considering the frequency band.
[0116] Figure 3 3 is a schematic diagram of a process 300 of selecting a target AP for connecting an electronic device from candidate APs provided by the present application. The process 300 includes:
[0117] S301, determine whether the number of candidate APs is one, if so, execute S308, otherwise, execute S302.
[0118] S302: Determine a parameter with the highest priority among one or more parameters, and sort the candidate APs in descending order according to the parameter with the highest priority.
[0119] S303, determining whether the number of the top candidate AP in the sorting result is one, if so, executing S307, otherwise, executing S304.
[0120] S304, determining whether there is an AP whose frequency band meets the current application condition among the candidate APs at the top of the sorting results, if so, executing S306, otherwise, executing S305.
[0121] S305: Select one of the candidate APs that are ranked the highest in the ranking results as the target AP.
[0122] S306: An AP whose frequency band meets the current application condition is selected as a target AP.
[0123] S307: The candidate AP that ranks the highest in the ranking result is used as the target AP.
[0124] S308: Use the candidate AP as the target AP.
[0125] Based on the above process 300, the electronic device can always connect to the most suitable AP in different network environments and usage scenarios, thereby improving the connection performance of the wireless local area network and enhancing the user experience.
[0126] Figure 4 4 is a schematic diagram of an apparatus 400 for selecting a wireless access point AP provided by the present application. The apparatus 400 can be applied to an electronic device 100, comprising: an information acquisition module 401, an indicator calculation module 402, a performance scoring module 403 and an AP selection module 404; wherein:
[0127] The information acquisition module 401 is used to acquire key information of each AP in one or more wireless access points AP, where the key information includes performance detection data and historical connection data of the current AP;
[0128] An indicator calculation module 402, configured to calculate the value of one or more parameters related to the performance indicator of each AP according to the key information;
[0129] The performance scoring module 403 is used to calculate the corresponding performance score for each AP according to the value of one or more parameters, and select the AP with the highest performance score as the candidate AP;
[0130] The AP selection module 404 is used to select a target AP for the electronic device to connect to from the candidate APs according to the number of candidate APs and current application conditions.
[0131] In some embodiments, the one or more parameters include: a signal strength factor; wherein the expression of the signal strength factor is:
[0132]
[0133] N SignalStrength is the signal strength factor of one of the one or more APs, S value is the signal strength currently received by the electronic device from an AP, S min S is the minimum threshold of signal strength that can be detected by electronic equipment. max It is the maximum threshold of signal strength that can be detected by electronic devices.
[0134] In some embodiments, the one or more parameters include: a safety factor; wherein the expression of the safety factor is:
[0135]
[0136] N Security It is the security factor of one AP among one or more APs, STD is the security standard protocol adopted by an AP, WPA3 is the third-generation Wi-Fi encryption protocol, WPA2 is the second-generation Wi-Fi encryption protocol, WPA is the Wi-Fi encryption protocol, WEP is the Wired Equivalent Privacy Protocol, and OPEN is the non-encrypted protocol.
[0137] In some embodiments, the one or more parameters include: a stability factor; wherein the expression of the stability factor is:
[0138] N Stability =(W R ×R s +W T ×T a +W F ×F d )
[0139] N Stability is the stability factor of one AP among one or more APs, R s is the connection success rate factor of an AP, which is used to characterize the probability that an electronic device can successfully connect to an AP. a is the connection duration factor of an AP, which is used to characterize the probability that the connection between an electronic device and an AP can last. d is the offline frequency factor of an AP, which is used to characterize the probability that the connection between an electronic device and an AP will be offline.R is the weight corresponding to the connection success rate factor, W T is the weight corresponding to the connection duration factor, W F is the weight corresponding to the offline frequency factor.
[0140] In some embodiments, the expression of the connection success rate factor is:
[0141]
[0142] R s is the connection success rate factor of an AP, N succsess N is the number of successful connections between an electronic device and an AP. attempt The total number of times the electronic device attempts to connect to an AP;
[0143] The expression for the connection duration factor is:
[0144]
[0145] T a is the connection duration factor of an AP, T duration is the duration of connection between an electronic device and an AP, T max The maximum connection time set for an electronic device to an AP;
[0146] The expression of the drop frequency factor is:
[0147]
[0148] F d is the offline frequency factor of an AP, N drop N is the number of disconnections between an electronic device and an AP within a set period of time. max The maximum number of possible disconnections allowed between an electronic device and an AP within a set period of time.
[0149] In some embodiments, the one or more parameters include: a throughput factor; wherein the expression of the throughput factor is:
[0150]
[0151] N Throughput is the throughput factor of one AP among one or more APs, R is the actual throughput measured by an AP, and R max is the peak throughput of an AP.
[0152] In some embodiments, the performance score module 403 calculates the corresponding performance score based on the value of one or more parameters to:
[0153] Get the weight corresponding to each parameter of one or more parameters;
[0154] The values of one or more parameters are weighted and summed according to the weight corresponding to each parameter to obtain the corresponding performance score.
[0155] In some embodiments, according to the number of candidate APs and current application conditions, a target AP for connecting the electronic device is selected from the candidate APs, and the AP selection module is used to perform any of the following:
[0156] In response to the number of candidate APs being one, taking the candidate AP as a target AP;
[0157] In response to the number of candidate APs being greater than one, a candidate AP whose frequency band meets current application conditions is selected from the candidate APs as a target AP, where the frequency band is a frequency range used by a candidate AP, and the current application conditions include: a priority of at least one parameter among one or more parameters.
[0158] Further, if Figure 5 An exemplary embodiment of the present application further provides an electronic device 500, comprising a memory 501 and a processor 502, wherein the memory 501 stores a computer program, and when the computer program is executed by the processor 502, the processor 502 executes any method of the first aspect.
[0159] It should be understood that the processor mentioned in the embodiments of the present application may be a CPU, or other general-purpose processors, DSPs, ASICs, FPGAs or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0160] It should also be understood that the memory mentioned in the embodiments of the present application may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory, an erasable programmable read-only memory, an electrically erasable programmable read-only memory, or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory, dynamic random access memory, synchronous dynamic random access memory, double data rate synchronous dynamic random access memory, enhanced synchronous dynamic random access memory, synchronously connected dynamic random access memory, and direct memory bus random access memory.
[0161] The present application also provides a storage medium storing computer program instructions, which, when executed by a processor of a computer, enables the computer to execute the steps of any of the methods mentioned above.
[0162] A computer-readable medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer-readable medium may be propagated via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0163] The basic concepts have been described above. Obviously, for those skilled in the art, the above invention disclosure is only used as an example and does not constitute a limitation of the present application. Although not explicitly stated herein, those skilled in the art may make various modifications, improvements and amendments to the present application. Such modifications, improvements and amendments are suggested in the present application, so such modifications, improvements and amendments still belong to the spirit and scope of the exemplary embodiments of the present application.
[0164] At the same time, the present application uses specific words to describe the embodiments of the present application. For example, "one embodiment", "an embodiment", and / or "some embodiments" refer to a certain feature, structure or characteristic related to at least one embodiment of the present application. Therefore, it should be emphasized and noted that "one embodiment" or "an embodiment" or "an alternative embodiment" mentioned twice or more in different positions in this specification does not necessarily refer to the same embodiment. In addition, some features, structures or characteristics in one or more embodiments of the present application can be appropriately combined.
[0165] Some aspects of the present application may be performed entirely by hardware, entirely by software (including firmware, resident software, microcode, etc.), or by a combination of hardware and software. The above hardware or software may be referred to as "data blocks", "modules", "engines", "units", "components" or "systems". The processor may be one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DAPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, microcontrollers, microprocessors, or combinations thereof. In addition, various aspects of the present application may be expressed as computer products located in one or more computer-readable media, which include computer-readable program codes. For example, computer-readable media may include, but are not limited to, magnetic storage devices (e.g., hard disks, floppy disks, tapes ...), optical disks (e.g., compact disks CDs, digital versatile disks DVDs ...), smart cards, and flash memory devices (e.g., cards, sticks, key drives ...).
[0166] A computer-readable medium may include a propagated data signal containing computer program code, such as in baseband or as part of a carrier wave. The propagated signal may have a variety of manifestations, including electromagnetic, optical, etc., or a suitable combination. A computer-readable medium may be any computer-readable medium other than a computer-readable storage medium, which may be connected to an instruction execution system, device or apparatus to communicate, propagate or transmit a program for use. The program code on the computer-readable medium may be propagated via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0167] Similarly, it should be noted that in order to simplify the description of the disclosure of this application and thus help understand one or more embodiments of the invention, in the above description of the embodiments of this application, multiple features are sometimes combined into one embodiment, figure or description thereof. However, this disclosure method does not mean that the features required by the object of this application are more than the features mentioned in the claims. In fact, the features of the embodiments are less than all the features of the single embodiment disclosed above.
[0168] In some embodiments, numbers describing the number of components and attributes are used. It should be understood that such numbers used in the description of the embodiments are modified by the modifiers "about", "approximately" or "substantially" in some examples. Unless otherwise specified, "about", "approximately" or "substantially" indicate that the numbers are allowed to vary by ±20%. Accordingly, in some embodiments, the numerical parameters used in the specification and claims are approximate values, which may change according to the required features of individual embodiments. In some embodiments, the numerical parameters should take into account the specified significant digits and adopt the general method of retaining digits. Although the numerical domains and parameters used to confirm the breadth of their range in some embodiments of the present application are approximate values, in specific embodiments, the setting of such numerical values is as accurate as possible within the feasible range.
[0169] Although the present application has been described with reference to the current specific embodiments, ordinary technicians in this technical field should recognize that the above embodiments are only used to illustrate the present application, and various equivalent changes or substitutions may be made without departing from the spirit of the present application. Therefore, as long as the changes and modifications to the above embodiments are within the essential spirit of the present application, they will fall within the scope of the claims of the present application.
Claims
1. A method for selecting a wireless access point AP, characterized in that: Used in electronic equipment, including: Acquire key information of each AP in one or more wireless access points AP, wherein the key information includes performance detection data and historical connection data of the AP; Calculate the value of one or more parameters related to the performance indicator of each AP according to the key information; For each AP, calculate a corresponding performance score according to the value of the one or more parameters, and select the AP with the highest performance score as a candidate AP; A target AP for connecting the electronic device is selected from the candidate APs according to the number of the candidate APs and current application conditions.
2. The method according to claim 1, characterized in that The one or more parameters include: a signal strength factor; wherein the expression of the signal strength factor is: N SignalStrength is the signal strength factor of one of the one or more APs, S value is the signal strength currently received by the electronic device from the AP, S min is the minimum threshold of the signal strength that can be detected by the electronic device, S max is the maximum threshold of the signal strength that can be detected by the electronic device.
3. The method according to claim 1, characterized in that The one or more parameters include: a safety factor; wherein the expression of the safety factor is: N Security is the security factor of one of the one or more APs, STD is the security standard protocol adopted by the AP, WPA3 is the third-generation Wi-Fi encryption protocol, WPA2 is the second-generation Wi-Fi encryption protocol, WPA is the Wi-Fi encryption protocol, WEP is the Wired Equivalent Privacy Protocol, and OPEN is the unencrypted protocol.
4. The method according to claim 1, characterized in that The one or more parameters include: a stability factor; wherein the expression of the stability factor is: N Stability =(W R ×R s +W T ×T a +W F ×F d ) N Stability is the stability factor of one of the one or more APs, R s is the connection success rate factor of the AP, which is used to characterize the probability that the electronic device can successfully connect to the AP. a is the connection duration factor of the AP, which is used to characterize the probability that the connection between the electronic device and the AP can be sustained. d is the offline frequency factor of the AP, which is used to characterize the probability that the connection between the electronic device and the AP will be offline. R is the weight corresponding to the connection success rate factor, W T is the weight corresponding to the connection duration factor, W F is the weight corresponding to the offline frequency factor.
5. The method according to claim 4, characterized in that The expression of the connection success rate factor is: R s is the connection success rate factor of the AP, N success is the number of successful connections between the electronic device and the AP, N attempt The total number of times the electronic device attempts to connect to the one AP; The expression of the connection duration factor is: T a is the connection duration factor of the AP, T duration is the duration of connection between the electronic device and the AP, T max a maximum connection time set for the electronic device and the one AP; The expression of the offline frequency factor is: F d is the offline frequency factor of the AP, N drop is the number of disconnections between the electronic device and the AP within a set period of time, N max It is the maximum possible number of disconnections allowed between the electronic device and the AP within the set time period.
6. The method according to claim 1, characterized in that The one or more parameters include: a throughput factor; wherein the expression of the throughput factor is: N Throughput is the throughput factor of one of the one or more APs, R is the actual currently measured throughput of the one AP, and R max is the peak throughput of the AP.
7. The method according to any one of claims 1 to 6, characterized in that: The calculating the corresponding performance score according to the value of the one or more parameters comprises: Obtaining a weight corresponding to each parameter of the one or more parameters; The values of the one or more parameters are weighted and summed according to the weight corresponding to each parameter to obtain a corresponding performance score.
8. The method according to any one of claims 1 to 6, characterized in that: The selecting, according to the number of the candidate APs and the current application condition, a target AP for connecting the electronic device from the candidate APs includes any one of the following: In response to the number of the candidate APs being one, taking the candidate AP as the target AP; In response to the number of the candidate APs being greater than one, one whose frequency band satisfies the current application condition is selected from the candidate APs as the target AP, wherein the frequency band is a frequency range used by the candidate APs, and the current application condition includes: the priority of at least one parameter among the one or more parameters.
9. A device for selecting a wireless access point AP, characterized in that: Used in electronic equipment, including: An information acquisition module, used to acquire key information of each AP in one or more wireless access points AP, wherein the key information includes performance detection data and historical connection data of the current AP; An indicator calculation module, used to calculate the value of one or more parameters related to the performance indicator of each AP according to the key information; A performance scoring module, configured to calculate a corresponding performance score for each AP according to the value of the one or more parameters, and select the AP with the highest performance score as a candidate AP; The AP selection module is used to select a target AP for the electronic device to connect to from the candidate APs according to the number of the candidate APs and current application conditions.
10. An electronic device, characterized in that: The method comprises a processor and a memory, wherein a computer program is stored in the memory, and when the computer program is called by the processor, the processor executes the method according to any one of claims 1 to 8.
11. A storage medium, characterized in that: The storage medium stores computer program instructions, and when the computer program instructions are called by a computer, the computer executes the method according to any one of claims 1 to 8.