Network selection method and device for ACAP networking, terminal and storage medium
By detecting the AP parameters of alternative APs in the ACAP network and determining whether the terminal can access the AP based on the abnormal AP list and the deduction rules, the problem that the terminal cannot use AP to forward data in some network environments is solved, avoiding signal blind spots and improving user experience.
Patent Information
- Application Number
- CN202411593019.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-08
- Publication Date
- 2025-03-18
AI Technical Summary
In some network environments, terminals cannot use AP to forward data, resulting in signal blind spots and affecting user experience.
By detecting the AP parameters of the alternative AP in the ACAP network, it is determined whether it is in the preset abnormal AP list. If, modify the service score according to the preset score deduction rules, determine whether the terminal's AP association conditions are met, and the terminal is connected to the alternative AP.
It avoids the problem of terminal AP-free use caused by all APs on the blacklist, avoids signal blind spots, and improves the user's experience.
Smart Images

Figure CN119653387A_ABST
Abstract
Description
Technical Field
[0001] The present invention mainly relates to the field of ACAP communication technology, and in particular to a network selection method, device, terminal and storage medium for ACAP networking. Background Art
[0002] At present, the Android system mainly uses a blacklist mechanism for ACAP (Access Controller + Access Point, a wireless LAN architecture based on centralized management) networking, that is, the terminal will add APs (wireless access points) that do not allocate IP or are disconnected for many times to the blacklist, and these APs in the blacklist cannot be selected and associated by the terminal after a certain period of time. In actual situations, this may cause the terminal to be unable to use APs to forward data in certain network environments, resulting in signal blind spots and poor user experience. Summary of the invention
[0003] The purpose of this application is to provide a network selection method, device, terminal and storage medium for ACAP networking, which helps to solve the problem of no AP usage in certain network environments, avoid signal blind spots, and thus improve the user experience.
[0004] Based on the above purpose, in a first aspect, a network selection method for ACAP networking is provided, which is applied to a terminal, including:
[0005] Detect AP parameters of candidate APs in ACAP networking;
[0006] Determine whether the candidate AP is in the preset abnormal AP list based on AP parameters; where:
[0007] If the candidate AP is in the abnormal AP list, the service score of the candidate AP is modified according to the preset score reduction rule to obtain a modified target score, and whether the candidate AP meets the AP association condition of the terminal is determined according to the target score; and,
[0008] If the candidate AP meets the AP association condition of the terminal, the terminal is enabled to access the candidate AP.
[0009] In some embodiments, the AP parameters include: an IP address or a MAC address of the candidate AP.
[0010] In some embodiments, the service score of the candidate AP is modified according to a preset deduction rule, including:
[0011] Subtracting a preset adjustment value from the service score of the candidate AP, and determining whether the service score after subtracting the adjustment value is greater than a preset minimum value;
[0012] If the service score after deducting the adjustment value is greater than the preset minimum value, the target score is set to the service score after deducting the adjustment value;
[0013] If the service score after deducting the adjustment value is not greater than the preset minimum value, the target score is set to the default value.
[0014] In some embodiments, the AP association condition includes any of the following:
[0015] There are no other APs in the subnet corresponding to the candidate AP;
[0016] The target score is the maximum value of the service scores of all APs corresponding to the sub-network.
[0017] In some embodiments, after the terminal accesses the candidate AP, the method further includes:
[0018] Polling detection of received signal strength RSSI;
[0019] When the polling times meet the preset triggering condition, an Address Resolution Protocol ARP request message is sent to the candidate AP to detect the reachability of the candidate AP.
[0020] In some embodiments, during each polling detection process, the following steps are also included:
[0021] Get the network interface information of the terminal;
[0022] Determine whether the terminal successfully receives the packet within the preset detection time according to the network interface information;
[0023] If the terminal fails to successfully receive the packet within the detection time, it immediately sends an ARP request message to the candidate AP to detect the reachability of the candidate AP.
[0024] In some embodiments, after sending the ARP request message to the candidate AP, the method further includes:
[0025] Obtain the reachability test results of the candidate APs;
[0026] Determine whether the terminal needs to roam or reconnect based on the reachability test result;
[0027] If the terminal does not need to roam or reconnect, it continues to detect the RSSI of the candidate AP.
[0028] In a second aspect, the present application provides a network selection device for ACAP networking, which is applied to a terminal. The network selection device for ACAP networking includes a parameter detection module and an AP selection module, wherein:
[0029] The parameter detection module is used to detect AP parameters of candidate APs in the ACAP network;
[0030] The AP selection module is used to determine whether the candidate AP is in a preset abnormal AP list according to AP parameters; and
[0031] The AP selection module is also used to modify the service score of the candidate AP according to a preset score reduction rule if the candidate AP is in the abnormal AP list, obtain a modified target score, and determine whether the candidate AP meets the AP association condition of the terminal according to the target score;
[0032] The AP selection module is also used to enable the terminal to access the candidate AP if the candidate AP meets the AP association condition of the terminal.
[0033] In a third aspect, the present application provides a terminal, comprising a processor and a memory, wherein the memory stores a computer program, and when the computer program is called by the processor, the processor executes any method described in the first aspect.
[0034] In a fourth aspect, the present application provides a storage medium having computer program instructions stored thereon, wherein when the computer program instructions are called by a computer, the computer executes any of the methods described in the first aspect above.
[0035] Compared with the prior art, the present invention has the following advantages:
[0036] The present application provides a network selection method, device, terminal and storage medium for ACAP networking. When selecting a candidate AP, a target score of the candidate AP is determined through an abnormal AP list and a deduction mechanism, and then whether the candidate AP meets the AP association condition of the terminal is judged according to the target score. In this way, the problem of the terminal having no AP to use due to all APs being in the blacklist can be avoided, signal blind spots can be avoided, and user experience is improved. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] 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:
[0038] Figure 1 is a schematic diagram of an application scenario provided by an exemplary embodiment of the present application;
[0039] Figure 2 is a flow chart of a network selection method for ACAP networking provided by an exemplary embodiment of the present application;
[0040] Figure 3 is a logical diagram of an example of accelerating reachability detection provided by an exemplary embodiment of the present application;
[0041] Figure 4is a result schematic diagram of a test example provided by an exemplary embodiment of the present application;
[0042] Figure 5 is a schematic diagram of a network selection device for ACAP networking provided by an exemplary embodiment of the present application;
[0043] Figure 6 It is a schematic diagram of a terminal provided by an exemplary embodiment of the present application. DETAILED DESCRIPTION
[0044] 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.
[0045] 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.
[0046] 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.
[0047] In a first aspect of the exemplary embodiments of the present application, a network selection method for ACAP networking is provided. Figure 1 to Figure 2Describe. The network selection method of the ACAP networking provided in the embodiment of the present application can be applied to terminals of various communication systems, such as: third-generation mobile communication (3-Generation, 3G) system, fourth-generation mobile communication (4-Generation, 4G) system, fifth-generation mobile communication (5th Generation, 5G) system or subsequent evolved communication system. Among them, the terminal includes but is not limited to: user equipment (UE), user unit, user station, mobile station, mobile station, remote station, remote terminal equipment, mobile terminal equipment, user terminal equipment, terminal equipment, wireless communication equipment, user agent, user device, cellular phone, handheld device with wireless communication function, computing device, processing equipment connected to a wireless modem, vehicle-mounted equipment, wearable device, terminal equipment in the Internet of Things, household appliances, virtual reality equipment, etc. In each embodiment of the present application, the terminal is used as an example, and sometimes it is used interchangeably with terminal equipment, user equipment, communication equipment, etc.
[0048] Some terms used in the embodiments of the present application are explained below.
[0049] AP: wireless access point.
[0050] ACAP: The full name is Access Controller + Access Point networking, a wireless local area network (WLAN) architecture based on centralized management.
[0051] SSID: Service Set Identifier, which indicates each subnetwork in a wireless LAN that requires independent authentication.
[0052] RSSI: received signal strength.
[0053] ARP: Address Resolution Protocol.
[0054] Figure 1 is a schematic diagram of an application scenario provided by an exemplary embodiment of the present application. Figure 1 , the application scenario at least includes a terminal, AP1, AP2 and a gateway server. Among them, the terminal, AP1, AP2 and the gateway server communicate through ACAP networking. Specifically, AP1 and AP2 can use the same frequency band, such as the 5G frequency band. In addition, AP1 and AP2 can be configured with the same SSID and Password. When AP1 and AP2 are powered on to provide services in the same time period, the terminal can be associated with AP1 or AP2 through the steps of the ACAP networking method provided in this application.
[0055] Figure 21 is a flow chart of a network selection method for ACAP networking provided by an exemplary embodiment of the present application. The execution subject of the flow chart may be a terminal, for example Figure 1 The terminal shown. The method may include the following steps:
[0056] S201: Detect AP parameters of candidate APs in the ACAP network.
[0057] The candidate AP refers to any one or more APs in the current network that can be selected by the terminal, such as AP1 and AP2. Taking AP1 as an example, when the terminal selects a network, the terminal can detect the AP parameters of the first AP to determine whether the candidate AP is in the preset abnormal AP list.
[0058] In some embodiments, the AP parameters include: an IP address or a MAC address of the candidate AP.
[0059] For example, the terminal may detect the MAC address of the first AP, and thereby determine whether the first AP is in the abnormal AP list according to the MAC address.
[0060] S202: Determine whether the candidate AP is in a preset abnormal AP list according to the AP parameters.
[0061] The abnormal AP list is updated by polling or real-time update, and is used to record the IP addresses or MAC addresses of APs that have serious abnormalities in the network (for example, IP cannot be allocated or the connection is disconnected for a long time).
[0062] S203: If the candidate AP is in the abnormal AP list, the service score of the candidate AP is modified according to a preset score reduction rule to obtain a modified target score, and whether the candidate AP meets the AP association condition of the terminal is determined according to the target score.
[0063] Specifically, when the terminal selects a network, the terminal first obtains the service score of the candidate AP. The service score can be estimated based on factors such as the signal, bandwidth, encryption status, etc. of the candidate AP. This application does not limit the score calculation method.
[0064] For example, the terminal first obtains the service score of the first AP, and then processes the service score according to the preset deduction rule. The purpose of the deduction rule is to reduce the possibility of the terminal selecting the first AP when the first AP has a serious abnormality (for example, unable to allocate an IP or disconnected for a long time), so that the terminal can select a suitable AP as much as possible to ensure the service quality of the network.
[0065] In some embodiments, modifying the service score of the candidate AP according to a preset deduction rule includes the following steps:
[0066] Subtract a preset adjustment value from the service score of the candidate AP, and determine whether the service score after subtracting the adjustment value is greater than the preset minimum value; if the service score after subtracting the adjustment value is greater than the preset minimum value, the target score is the service score after subtracting the adjustment value. If the service score after subtracting the adjustment value is not greater than the preset minimum value, the target score is set to the default value.
[0067] For example, the terminal subtracts a preset adjustment value from the service score of the first AP, and the adjustment value may be 200. It is understandable that the adjustment value may also be flexibly adjusted according to actual conditions, and there is no restriction on this. Further, it is determined whether the service score after subtracting 200 is greater than the preset minimum value. If the service score after subtracting 200 is still greater than the minimum value, the target score is set to the service score after subtracting 200. Conversely, if the service score after subtracting 200 is not greater than the minimum value, the target score is set to the default value. Among them, the minimum value can usually be set to 0, and the default value can be a positive number slightly greater than 0, so that even after the score is reduced, the first AP can still be selected by the terminal, which helps to solve the problem of the terminal having no AP to use in certain network environments.
[0068] In some embodiments, the AP association condition includes any one of the following: there is no other AP in the subnet corresponding to the candidate AP; the target score is the maximum value of the service scores of all APs corresponding to the subnet.
[0069] For example, if the second AP is not powered on and there are no other APs available in the subnet corresponding to the first AP, the first AP satisfies the AP association condition. For another example, if the target score of the first AP is greater than the current service score of the second AP, the target score is the maximum value of the service scores of all APs corresponding to the subnet, then the first AP satisfies the AP association condition.
[0070] If the candidate AP is not in the abnormal AP list, it is directly determined whether the candidate AP meets the AP association condition according to the service score of the candidate AP.
[0071] S204: If the candidate AP meets the AP association condition of the terminal, the terminal is enabled to access the candidate AP.
[0072] When the first AP meets the AP association condition, the terminal accesses the first AP. It can be seen that based on the above steps, when there are multiple APs to choose from in the same SSID, the terminal can avoid abnormal APs as much as possible, and when there is only one AP in the same SSID, the terminal can associate with the AP, thereby solving the problem of the terminal having no AP to use in certain network environments, avoiding signal blind spots, and improving the user experience.
[0073] If the candidate AP does not meet the terminal's AP association conditions, no processing is performed.
[0074] Furthermore, in some embodiments, after the terminal is enabled to access the candidate AP, the method further includes:
[0075] Polling detection of received signal strength RSSI;
[0076] When the polling times meet the preset triggering condition, an Address Resolution Protocol ARP request message is sent to the candidate AP to detect the reachability of the candidate AP.
[0077] Specifically, the terminal may send an Address Resolution Protocol ARP request message to a candidate AP (ie, a neighbor AP) by polling RSSI, thereby triggering a reachability detection to the candidate AP.
[0078] Preferably, in each polling detection process, the following steps are further performed:
[0079] Get the network interface information of the terminal;
[0080] Determine whether the terminal successfully receives the packet within the preset detection time according to the network interface information;
[0081] If the terminal fails to successfully receive the packet within the detection time, it immediately sends an ARP request message to the candidate AP to detect the reachability of the candidate AP.
[0082] The purpose of the above steps is to use the RSSI polling time to detect whether the candidate AP has the risk of not forwarding data. If the candidate AP does not forward data within the detection time, it means that the terminal is likely to be unable to access the network, and the reachability detection is immediately triggered.
[0083] In some embodiments, after sending the ARP request message to the candidate AP, the method further includes:
[0084] Obtain the reachability test results of the candidate APs;
[0085] Determine whether the terminal needs to roam or reconnect based on the reachability test result;
[0086] If the terminal does not need to roam or reconnect, it continues to detect the RSSI of the candidate AP.
[0087] Figure 3 FIG. 1 is a logic diagram of an example of accelerating reachability detection provided by an exemplary embodiment of the present application. Figure 3 , an example of speeding up reachability detection is as follows:
[0088] S301, polling to detect RSSI;
[0089] S302, determine whether the polling times meet the trigger condition, if yes, execute step S303, otherwise, execute step S301;
[0090] An example of a trigger condition is as follows:
[0091] RxSuccessCheckCount++>=3.
[0092] S303, determining whether the terminal successfully receives the packet within the detection time, if so, executing step S301, otherwise, executing step S304;
[0093] S304, determine whether the backup AP is reachable; if so, execute step S301, otherwise, execute step S305;
[0094] S305, roaming or reconnecting to the network.
[0095] Based on the above method, after the terminal selects the network, this application can also detect whether the alternative AP has the risk of not forwarding data by using the RSSI polling time, thereby speeding up the triggering logic of reachability detection, shortening the time that the terminal cannot access the network, and improving the user experience.
[0096] In order to better illustrate the technical effect of the present application, a test example of the ACAP network selection method is given. The scenario of the test example is roughly as follows Figure 1 As shown in the figure, the total duration is 4.5 hours. By controlling the power on and off time of AP1 and AP2 and the packet loss time, the power off anomaly and denial of service anomaly that may occur in AP1 and AP2 in actual scenarios are simulated.
[0097] The control behavior for AP1 specifically includes: first powering on AP1, setting a timer of 5 minutes, powering on AP2 at the 3rd minute of the countdown, randomly causing AP1 to drop packets to the terminal during the coexistence time of the Wi-Fi signals of AP1 and AP2, and preventing AP1 from dropping packets after the coexistence time.
[0098] The control behavior for AP2 specifically includes: first powering on AP2, setting a timer of 5 minutes, powering on AP1 at the 3rd minute of the countdown, randomly causing AP2 to drop packets to the terminal during the coexistence time of the Wi-Fi signals of AP1 and AP2, and preventing AP2 from dropping packets after the coexistence time.
[0099] Then, a cyclic test is performed based on the above control behavior.
[0100] Figure 4 is a result diagram of a test example provided by an exemplary embodiment of the present application. Figure 4, the horizontal axis is the timestamp, and the vertical axis is the average ping time. In the entire test example, the terminal's ping data packet loss rate was measured to be 9%, the average ping time was 33ms, and the probability of switching to a normal AP in the test was 76.4%. Compared with the existing technology, the terminal's packet loss rate is reduced and it is more likely to switch to a normal AP, which solves the problem of the terminal having no AP to use in certain network environments and avoids signal blind spots.
[0101] Figure 5 Schematic diagram of a network selection device for ACAP networking provided by an exemplary embodiment of the present application. The network selection device 50 for ACAP networking includes a parameter detection module 501 and an AP selection module 502, wherein:
[0102] The parameter detection module 501 is used to detect AP parameters of candidate APs in the ACAP network;
[0103] The AP selection module 502 is used to determine whether the candidate AP is in a preset abnormal AP list according to the AP parameters; and
[0104] The AP selection module 502 is also used to modify the service score of the candidate AP according to a preset deduction rule if the candidate AP is in the abnormal AP list, obtain a modified target score, and determine whether the candidate AP meets the AP association condition of the terminal according to the target score;
[0105] The AP selection module 502 is further configured to enable the terminal to access the candidate AP if the candidate AP meets the AP association condition of the terminal.
[0106] The network selection device 50 for ACAP networking provided in the embodiment of the present application can execute the above method embodiment, and its implementation principle and technical effect are similar, which will not be repeated here.
[0107] It should be noted that the network selection device 50 of the ACAP networking is embodied in the form of a functional module. The term "module" here can be implemented in the form of software and / or hardware, and is not specifically limited to this.
[0108] For example, a "module" may be a software program, a hardware circuit, or a combination of the two that implements the above functions. The hardware circuit may include an application specific integrated circuit (ASIC), an electronic circuit, a processor (such as a shared processor, a dedicated processor, or a group processor, etc.) and a memory for executing one or more software or firmware programs, a combined logic circuit, and / or other suitable components that support the described functions.
[0109] Therefore, the modules of each example described in the embodiments of the present application can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present application.
[0110] further, Figure 6 60 is a schematic diagram of a terminal provided by an exemplary embodiment of the present application. The terminal 60 includes a processor 601 and a memory 602, wherein a computer program is stored in the memory, and when the computer program is called by the processor 601, the processor 601 executes the steps described in the above method embodiment.
[0111] 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.
[0112] 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.
[0113] The present application also provides a storage medium storing computer program instructions. When the computer program instructions are executed by a processor of a computer, the computer executes the steps of the above method embodiment.
[0114] The storage 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 be in a variety of forms, including electromagnetic, optical, etc., or a suitable combination. The storage medium may be any computer-readable medium other than a computer-readable storage medium, which can be connected to an instruction execution system, device or equipment to communicate, propagate or transmit the program for use. The program code located on the computer-readable medium can be transmitted via any suitable medium, including radio, cable, fiber optic cable, radio frequency signal, or similar medium, or any combination of the above mediums.
[0115] 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.
[0116] 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.
[0117] 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 ...).
[0118] 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.
[0119] 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.
[0120] 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.
[0121] 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 network selection method for ACAP networking, applied to a terminal, characterized in that: include: Detecting AP parameters of candidate APs in the ACAP network; Determine whether the candidate AP is in a preset abnormal AP list according to the AP parameters; wherein, If the candidate AP is in the abnormal AP list, modify the service score of the candidate AP according to a preset deduction rule to obtain a modified target score, and determine whether the candidate AP meets the AP association condition of the terminal according to the target score; as well as If the candidate AP meets the AP association condition of the terminal, the terminal is enabled to access the candidate AP.
2. The method according to claim 1, characterized in that The AP parameters include: the IP address or MAC address of the candidate AP.
3. The method according to claim 1, characterized in that The modifying the service score of the candidate AP according to the preset deduction rule includes: Subtracting a preset adjustment value from the service score of the candidate AP, and determining whether the service score after subtracting the adjustment value is greater than a preset minimum value; If the service score after deducting the adjustment value is greater than a preset minimum value, the target score is set to be the service score after deducting the adjustment value; If the service score after deducting the adjustment value is not greater than the preset minimum value, the target score is set to a default value.
4. The method according to claim 1, characterized in that The AP association condition includes any of the following: There are no other APs in the subnet corresponding to the candidate AP; The target score is the maximum value of the service scores of all APs corresponding to the sub-network.
5. The method according to claim 1, characterized in that After enabling the terminal to access the candidate AP, the method further includes: Polling detection of received signal strength RSSI; When the polling times meet the preset triggering condition, an Address Resolution Protocol ARP request message is sent to the candidate AP to detect the reachability of the candidate AP.
6. The method according to claim 5, characterized in that During each polling detection process, the following steps are also included: Acquire network interface information of the terminal; Determining whether the terminal successfully receives the packet within a preset detection time according to the network interface information; If the terminal fails to successfully receive the packet within the detection time, the terminal immediately sends the ARP request message to the candidate AP to detect the reachability of the candidate AP.
7. The method according to claim 5 or 6, characterized in that After sending the ARP request message to the candidate AP, the method further includes: Obtaining a reachability detection result of the candidate AP; Determining whether the terminal needs to roam or reconnect according to the reachability detection result; If the terminal does not need to roam or reconnect, the terminal continues to detect the RSSI of the candidate AP.
8. A network selection device for ACAP networking, applied to a terminal, characterized in that: The network selection device of the ACAP network includes a parameter detection module and an AP selection module, wherein: The parameter detection module is used to detect AP parameters of the candidate AP in the ACAP network; The AP selection module is used to determine whether the candidate AP is in a preset abnormal AP list according to the AP parameters; and The AP selection module is further configured to modify the service score of the candidate AP according to a preset deduction rule if the candidate AP is in the abnormal AP list to obtain a modified target score, and determine whether the candidate AP meets the AP association condition of the terminal according to the target score; The AP selection module is also used to enable the terminal to access the candidate AP if the candidate AP meets the AP association condition of the terminal.
9. A terminal, 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 7.
10. 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 7.