A method for switching access points and related equipment
Through STA real-time acquisition and analysis of wireless signal strength and transmission power, and estimated path loss and uplink signal strength, the problem of difficulty in obtaining appropriate values in the existing wifi roaming mechanism is solved, and more stable wifi roaming is achieved, providing a better Internet access experience.
Patent Information
- Application Number
- CN202011279361.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-11-16
- Publication Date
- 2025-05-09
- Estimated Expiration
- 2040-11-16
AI Technical Summary
The existing wifi roaming mechanism only relies on the current wireless signal strength of the AP to STA for judgment, which makes it difficult to obtain the appropriate value of the preset threshold and cannot provide a better Internet access experience.
The STA obtains the wireless signal strength of the current AP to the STA and the transmission power of the current AP in real time, determines the path loss of the current AP to the STA, and estimates the wireless signal strength of the STA to the current AP based on the path loss and its own transmission power. If it is less than the preset threshold, it switches to the target AP.
By comprehensively considering the downlink signal strength and uplink signal strength, clarify the value of the preset threshold, avoid roaming failure or frequent roaming, and provide a better Internet experience.
Smart Images

Figure CN114513820B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a method for switching an access point and related equipment. Background Art
[0002] When a station (STA) moves in a wireless local area network (WLAN), the STA can switch from the AP to which it is currently connected (hereinafter referred to as the current AP) to another AP to maintain an uninterrupted Wi-Fi network connection. This process is called Wi-Fi roaming.
[0003] At present, the Wi-Fi roaming mechanism used by STA mainly obtains the wireless signal strength from the current AP to the STA (that is, the strength of the downlink signal received by the STA), and then compares the wireless signal strength with a preset threshold. If the wireless signal strength is lower than the preset threshold, Wi-Fi roaming is triggered, that is, the STA switches from the current AP to another AP.
[0004] However, in the above wifi roaming mechanism, STA only determines whether to trigger wifi roaming by the wireless signal strength from the current AP to STA. If the preset threshold value is too low, the wireless signal between STA and the current AP may be very weak, resulting in disconnection and roaming failure. If the preset threshold value is too high, STA will roam frequently. Therefore, the current wifi roaming mechanism takes into account relatively single factors, making it difficult to obtain a suitable value for the preset threshold, and thus failing to provide users with a good Internet experience. Therefore, providing a new wifi roaming mechanism has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The embodiments of the present application provide a method for switching access points and related devices, which can provide users with a better Internet access experience.
[0006] The first aspect of the embodiment of the present application provides a method for switching access points, the method comprising: STA can obtain the wireless signal strength from the current AP to the STA and the transmission power of the current AP in real time. Then, the STA determines the path loss from the current AP to the STA based on the wireless signal strength from the current AP to the STA and the transmission power of the current AP. Next, the STA determines the wireless signal strength from the STA to the current AP based on the path loss from the current AP to the STA and the transmission power of the STA. Finally, if the STA determines that the wireless signal strength from the STA to the current AP is less than a preset threshold, it switches to the target AP.
[0007] It can be seen from the above method that after STA obtains the wireless signal strength from the current AP to STA (i.e., the strength of the downlink signal sent by the current AP), it can estimate the wireless signal strength from STA to the current AP (i.e., the strength of the uplink signal sent by the STA) based on the strength of the downlink signal, thereby determining whether to trigger wifi roaming based on the strength of the uplink signal. It can be seen that the embodiment of the present application provides a new wifi roaming mechanism, in which STA determines whether to trigger wifi roaming based on the strength of the uplink signal it sends. Since the strength of the downlink signal sent by the current AP is generally greater than the strength of the uplink signal sent by the STA, the value of the preset threshold can be further clarified by comprehensively considering the impact of the strength of the downlink signal and the strength of the uplink signal, thereby avoiding roaming failures or frequent roaming, and providing users with a better Internet experience.
[0008] In a possible implementation, STA switching to the target AP specifically includes: STA obtaining the wireless signal strength from other APs to STA and the transmission power of other APs; STA determines the path loss from other APs to STA based on the wireless signal strength from other APs to STA and the transmission power of other APs; STA determines the wireless signal strength from STA to other APs based on the path loss from other APs to STA and the transmission power of STA; STA determines the target AP among other APs based on the wireless signal strength from other APs to STA and the wireless signal strength from STA to other APs; STA switches from the current AP to the target AP.
[0009] In a possible implementation, the method also includes: STA obtains channels of other APs, wifi protocols of other APs, security types of other APs, and noise floors of channels of other APs; STA determines the target AP among other APs based on wireless signal strength from other APs to STA and wireless signal strength from STA to other APs. Specifically, it includes: STA determines the target AP among other APs based on wireless signal strength from other APs to STA, wireless signal strength from STA to other APs, channels of other APs, wifi protocols of other APs, security types of other APs, and noise floors of channels of other APs.
[0010] In one possible implementation, the path loss from the current AP to the STA is the difference between the transmit power of the current AP and the wireless signal strength from the current AP to the STA; the wireless signal strength from the STA to the current AP is the difference between the transmit power of the STA and the path loss from the current AP to the STA; the path loss from other APs to the STA is the difference between the transmit power of other APs and the wireless signal strength from other APs to the STA; the wireless signal strength from the STA to other APs is the difference between the transmit power of the STA and the path loss from other APs to the STA.
[0011] A second aspect of an embodiment of the present application provides a STA, which includes: an acquisition module, used to acquire the wireless signal strength from the current access point AP to the STA and the transmission power of the current AP; a first determination module, used to determine the path loss from the current AP to the STA based on the wireless signal strength from the current AP to the STA and the transmission power of the current AP; a second determination module, used to determine the wireless signal strength from the STA to the current AP based on the path loss from the current AP to the STA and the transmission power of the STA; a switching module, used to switch to the target AP if it is determined that the wireless signal strength from the STA to the current AP is less than a preset threshold.
[0012] It can be seen from the above STA that after the STA obtains the wireless signal strength from the current AP to the STA (i.e., the strength of the downlink signal sent by the current AP), the STA can estimate the wireless signal strength from the STA to the current AP (i.e., the strength of the uplink signal sent by the STA) based on the strength of the downlink signal, thereby determining whether to trigger wifi roaming based on the strength of the uplink signal. It can be seen that the embodiment of the present application provides a new wifi roaming mechanism, in which the STA determines whether to trigger wifi roaming based on the strength of the uplink signal it sends. Since the strength of the downlink signal sent by the current AP is generally greater than the strength of the uplink signal sent by the STA, the value of the preset threshold can be further clarified by comprehensively considering the impact of the strength of the downlink signal and the strength of the uplink signal, thereby avoiding roaming failures or frequent roaming, and providing users with a better Internet experience.
[0013] In one possible implementation, the switching module is specifically used to: if it is determined that the wireless signal strength from the STA to the current AP is less than a preset threshold, obtain the wireless signal strength from other APs to the STA and the transmission power of other APs; determine the path loss from other APs to the STA based on the wireless signal strength from other APs to the STA and the transmission power of other APs; determine the wireless signal strength from the STA to other APs based on the path loss from other APs to the STA and the transmission power of the STA; determine the target AP among other APs based on the wireless signal strength from other APs to the STA and the wireless signal strength from the STA to other APs; and switch from the current AP to the target AP.
[0014] In one possible implementation, the switching module is also used to obtain channels of other APs, wifi protocols of other APs, security types of other APs, and noise floors of channels of other APs; the switching module is specifically used to determine the target AP among other APs based on the wireless signal strength from other APs to STA, the wireless signal strength from STA to other APs, channels of other APs, wifi protocols of other APs, security types of other APs, and noise floors of channels of other APs.
[0015] In one possible implementation, the path loss from the current AP to the STA is the difference between the transmit power of the current AP and the wireless signal strength from the current AP to the STA; the wireless signal strength from the STA to the current AP is the difference between the transmit power of the STA and the path loss from the current AP to the STA; the path loss from other APs to the STA is the difference between the transmit power of other APs and the wireless signal strength from other APs to the STA; the wireless signal strength from the STA to other APs is the difference between the transmit power of the STA and the path loss from other APs to the STA.
[0016] A third aspect of an embodiment of the present application provides a communication device, which includes: a processor and a memory; the memory is used to store computer-executable instructions; the processor is used to execute the computer-executable instructions stored in the memory, so that the communication device implements the method described in the first aspect or any possible implementation method of the first aspect.
[0017] A fourth aspect of an embodiment of the present application provides a computer storage medium, characterized in that it includes computer-readable instructions, and when the computer-readable instructions are executed, the method described in the first aspect or any possible implementation method of the first aspect is implemented.
[0018] A fifth aspect of the embodiments of the present application provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the method described in the first aspect or any possible implementation manner of the first aspect.
[0019] The embodiment of the present application provides a new Wi-Fi roaming mechanism, in which the STA determines whether to trigger Wi-Fi roaming by the strength of the uplink signal sent by itself. Since the strength of the downlink signal sent by the current AP is generally greater than the strength of the uplink signal sent by the STA, the value of the preset threshold can be further clarified by comprehensively considering the impact of the downlink signal strength and the uplink signal strength, thereby avoiding roaming failure or frequent roaming, and providing users with a better Internet experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] Figure 1 A schematic diagram of a flow chart of a method for switching access points provided in an embodiment of the present application;
[0021] Figure 2 A schematic diagram of an application example of the method for switching access points provided in an embodiment of the present application;
[0022] Figure 3 A schematic diagram of the structure of a STA provided in an embodiment of the present application;
[0023] Figure 4A schematic diagram of the structure of a communication device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] The embodiments of the present application provide a method for switching access points and related devices, which can provide users with a better Internet access experience.
[0025] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described here can be implemented in an order other than that illustrated or described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or modules is not necessarily limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The naming or numbering of steps in this application does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The process steps that have been named or numbered can change the execution order according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved. The division of modules in this application is a logical division. There may be other division methods when it is implemented in actual applications. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed can be through some ports, and the indirect coupling or communication connection between modules can be electrical or other similar forms, which are not limited in this application. In addition, the modules or submodules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.
[0026] Figure 1 A flow chart of a method for switching access points provided in an embodiment of the present application is shown as follows: Figure 1 As shown, the method includes:
[0027] 101. The STA obtains the wireless signal strength from the current AP to the STA and the transmission power of the current AP.
[0028] In this embodiment, the STA can receive the wireless signal sent by the current AP (i.e., the AP to which the STA is currently connected) in real time. The wireless signal can be a beacon frame or a probe response frame, etc. Generally, the wireless signal sent by the current AP includes the transmit power of the current AP. Therefore, after the STA receives the wireless signal from the current AP, it can parse the wireless signal to obtain the transmit power of the current AP, and measure the signal strength of the wireless signal to obtain the wireless signal strength from the current AP to the STA (i.e., the strength of the downlink signal sent by the current AP).
[0029] It should be noted that the AP in this embodiment includes but is not limited to WiFi routers, smart phones, tablet computers, large screens, smart speakers and other devices that support WiFi functions and can be configured as AP mode.
[0030] 102. The STA determines a path loss from the current AP to the STA based on the wireless signal strength from the current AP to the STA and the transmit power of the current AP.
[0031] After STA obtains the wireless signal strength from the current AP to STA and the current AP's transmit power, it can calculate the path loss from the current AP to STA based on the wireless signal strength from the current AP to STA and the current AP's transmit power, where the path loss from the current AP to STA is the difference between the current AP's transmit power and the wireless signal strength from the current AP to STA.
[0032] 103. The STA determines the wireless signal strength from the STA to the current AP based on the path loss from the current AP to the STA and the transmit power of the STA.
[0033] After the STA obtains the path loss from the current AP to the STA, it can obtain its own transmit power. Then, the STA calculates (estimates) the wireless signal strength from the STA to the current AP (i.e., the strength of the uplink signal sent by the STA to the current AP) based on the path loss from the current AP to the STA and the STA's transmit power. The wireless signal strength from the STA to the current AP is the difference between the STA's transmit power and the path loss from the current AP to the STA.
[0034] 104. If the STA determines that the wireless signal strength from the STA to the current AP is less than a preset threshold, the STA obtains the wireless signal strength from other APs to the STA, the transmit power of other APs, the channels of other APs, the Wi-Fi protocols of other APs, the security types of other APs, and the noise floor of the channels of other APs.
[0035] If the STA determines that the wireless signal strength from the STA to the current AP is less than a preset threshold, the STA can determine to trigger roaming. When the STA needs to roam, it can first obtain the wireless signal strength from other APs to the STA, the transmit power of other APs, the channels of other APs, the Wi-Fi protocols of other APs, the security types of other APs, and the noise floor of the channels of other APs. It can be understood that other APs usually refer to multiple APs that can cover the STA in addition to the current AP.
[0036] Specifically, STA can also receive wireless signals from other APs in real time, and the wireless signals can be beacon frames or detection response frames, etc. Generally, the wireless signals include the transmit power of other APs, the channels of other APs (i.e., the working frequencies of other APs), the wifi protocols of other APs (e.g., 802.11a, 802.11b, 802.11g, and 802.11n, etc.), and the security types of other APs (data encryption methods, encryption modes, etc.). Therefore, after STA receives wireless signals from other APs, it can parse the wireless signals to obtain the transmit power of other APs, the channels of other APs, the wifi protocols of other APs, and the security types of other APs, and measure the signal strength of the wireless signals to obtain the wireless signal strength from other APs to STA (i.e., the strength of the downlink signals sent by other APs). In addition, STA can also perform noise measurements on the channels of other APs to obtain the noise floor of the channels of other APs.
[0037] 105. The STA determines the path loss from other APs to the STA based on the wireless signal strength from other APs to the STA and the transmission power of other APs.
[0038] After STA obtains the wireless signal strength from other APs to STA and the transmit power of other APs, it can calculate the path loss from other APs to STA based on the wireless signal strength from other APs to STA and the transmit power of other APs, where the path loss from other APs to STA is the difference between the transmit power of other APs and the wireless signal strength from other APs to STA.
[0039] 106. The STA determines the wireless signal strength from the STA to other APs based on the path loss from other APs to the STA and the transmit power of the STA;
[0040] After obtaining the path loss from other APs to STA, STA can obtain its own transmit power. Then, STA calculates (estimates) the wireless signal strength from STA to other APs (i.e., the strength of the uplink signal sent by STA to other APs) based on the path loss from other APs to STA and the transmit power of STA. The wireless signal strength from STA to other APs is the difference between the transmit power of STA and the path loss from other APs to STA.
[0041] 107. The STA determines a target AP among other APs based on wireless signal strengths from other APs to the STA, wireless signal strengths from the STA to other APs, channels of other APs, Wi-Fi protocols of other APs, security types of other APs, and noise floors of channels of other APs.
[0042] After STA obtains the wireless signal strength from TA to other APs, it can calculate the wireless signal strength from other APs to STA, the wireless signal strength from STA to other APs, the channels of other APs, the wifi protocols of other APs, the security types of other APs, and the noise floor of the channels of other APs according to preset rules (for example, weighted calculation, etc.), thereby obtaining the scores of other APs. It should be noted that in this embodiment, other APs include multiple APs, so in the aforementioned calculation process, if you want to obtain the score of a certain AP, you can calculate the score of the AP by the wireless signal strength from the AP to STA, the wireless signal strength from the STA to the AP, the channel of the AP, the wifi protocol of the AP, the security type of the AP, and the noise floor of the channel of the AP. Finally, after obtaining the score of each AP, you can select the AP with the highest score as the target AP.
[0043] 108. The STA switches from the current AP to the target AP.
[0044] After determining the target AP, the STA can disconnect from the current AP and connect to the target AP, thereby completing Wi-Fi roaming.
[0045] In this embodiment, the STA determines whether to trigger Wi-Fi roaming by the strength of the uplink signal it sends. Since the strength of the downlink signal sent by the current AP is generally greater than the strength of the uplink signal sent by the STA, the value of the preset threshold can be further clarified by comprehensively considering the impact of the downlink signal strength and the uplink signal strength, thereby avoiding roaming failures or frequent roaming, and providing users with a better Internet experience.
[0046] Furthermore, when selecting a target AP, the STA not only considers the strength of the downlink signal, but also comprehensively considers multiple factors such as the strength of the uplink signal, so that the STA can select the best target AP for roaming.
[0047] In order to further understand the method for switching access points provided in the embodiment of the present application, Figure 2 A specific application example is then given to further introduce the method. Figure 2 A schematic diagram of an application example of the method for switching access points provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the application examples include:
[0048] In a certain WLAN, there are AP1, AP2, AP3 and AP4. A STA in a mobile state is currently connected to AP1 and is within the coverage of AP2, AP3 and AP4. STA can calculate the signal strength from itself to AP1 in real time. Specifically, STA obtains the signal strength R1 from AP1 to STA and the transmit power P1 of AP1, and subtracts R1 from P1 to obtain L1 (path loss from AP1 to STA). Then, STA obtains its own transmit power P5, subtracts L1 from P5 to obtain the signal strength R5 from STA to AP1. If R5 is less than the preset threshold, roaming is triggered.
[0049] After triggering roaming, STA can calculate the signal strength R6 from STA to AP2, the signal strength R7 from STA to AP3, and the signal strength R8 from STA to AP4 (the calculation process of R6, R7 and R8 is the same as R5, which will not be repeated here). Then, STA can perform weighted calculation based on the signal strength R2, R6 from AP2 to STA, the channel of AP2, the wifi protocol of AP2, the security type of AP2, and the noise floor of the channel of AP2 to obtain the score of AP2. Similarly, the score of AP3 and the score of AP4 can also be obtained (the calculation process of the score of AP3 and the calculation process of the score of AP4 are the same as the calculation process of the score of AP2, which will not be repeated here). Then STA compares the score of AP2, the score of AP3 and the score of AP4, selects the AP with the highest score as the target AP, and switches from AP1 to the target AP.
[0050] The above is a specific description of the method for switching access points provided in an embodiment of the present application. The following will introduce the STA provided in an embodiment of the present application. Figure 3 A schematic diagram of the structure of a STA provided in an embodiment of the present application is shown in FIG. Figure 2 As shown, the STA includes:
[0051] The acquisition module 301 is used to obtain the wireless signal strength from the current access point AP to the STA and the transmission power of the current AP;
[0052] A first determination module 302 is used to determine the path loss from the current AP to the STA based on the wireless signal strength from the current AP to the STA and the transmit power of the current AP;
[0053] A second determination module 303 is used to determine the wireless signal strength from the STA to the current AP based on the path loss from the current AP to the STA and the transmit power of the STA;
[0054] The switching module 304 is configured to switch to a target AP if it is determined that the wireless signal strength from the STA to the current AP is less than a preset threshold.
[0055] In one possible implementation, the switching module 304 is specifically used to: if it is determined that the wireless signal strength from the STA to the current AP is less than a preset threshold, obtain the wireless signal strength from other APs to the STA and the transmission power of other APs; determine the path loss from other APs to the STA based on the wireless signal strength from other APs to the STA and the transmission power of other APs; determine the wireless signal strength from the STA to other APs based on the path loss from other APs to the STA and the transmission power of the STA; determine the target AP among other APs based on the wireless signal strength from other APs to the STA and the wireless signal strength from the STA to other APs; and switch from the current AP to the target AP.
[0056] In one possible implementation, the switching module 304 is also used to obtain channels of other APs, wifi protocols of other APs, security types of other APs, and noise floors of channels of other APs; the switching module is specifically used to determine the target AP among other APs based on the wireless signal strength from other APs to STA, the wireless signal strength from STA to other APs, channels of other APs, wifi protocols of other APs, security types of other APs, and noise floors of channels of other APs.
[0057] In one possible implementation, the path loss from the current AP to the STA is the difference between the transmit power of the current AP and the wireless signal strength from the current AP to the STA; the wireless signal strength from the STA to the current AP is the difference between the transmit power of the STA and the path loss from the current AP to the STA; the path loss from other APs to the STA is the difference between the transmit power of other APs and the wireless signal strength from other APs to the STA; the wireless signal strength from the STA to other APs is the difference between the transmit power of the STA and the path loss from other APs to the STA.
[0058] It should be noted that the information interaction, execution process, etc. between the modules / units of the above-mentioned device are based on the same concept as the method embodiment of the present application, and the technical effects they bring are the same as those of the method embodiment of the present application. For specific contents, please refer to the description in the method embodiment shown above in the embodiment of the present application, and will not be repeated here.
[0059] Figure 4 A schematic diagram of the structure of a communication device provided in an embodiment of the present application. Figure 4 As shown, an embodiment of the communication device in the embodiment of the present application may include one or more central processors 401, a memory 402, an input and output interface 403, a wired or wireless network interface 404, and a power supply 405.
[0060] The memory 402 may be a temporary storage or a permanent storage. Furthermore, the CPU 401 may be configured to communicate with the memory 402 and execute a series of instruction operations in the memory 402 on the communication device.
[0061] In this embodiment, the CPU 401 may execute the aforementioned Figure 1 The operations performed by the STA in the illustrated embodiment will not be described in detail here.
[0062] In this embodiment, the specific functional module division in the central processing unit 401 can be the same as the above Figure 3 The division method of the acquisition module, the first determination module, the second determination module and the switching module described in is similar and will not be repeated here.
[0063] The embodiment of the present application also relates to a computer storage medium, characterized in that it includes computer-readable instructions, and when the computer-readable instructions are executed, the following is implemented: Figure 1 The method steps performed by STA.
[0064] The present application also relates to a computer program product comprising instructions, which, when executed on a computer, causes the computer to execute Figure 1 The method steps performed by STA.
[0065] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0066] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0067] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0068] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0069] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
Claims
1. A method for switching an access point, characterized in that: The method comprises: The station STA obtains the wireless signal strength from the current access point AP to the STA and the transmission power of the current AP; the current AP is the AP to which the STA is currently connected, the wireless signal strength is obtained by measuring the wireless signal sent by the current AP received by the STA, the wireless signal includes the transmission power of the current AP, and the wireless signal is a beacon frame or a probe response frame; The STA determines, based on the wireless signal strength from the current AP to the STA and the transmit power of the current AP, a path loss from the current AP to the STA; The STA determines, based on a path loss from the current AP to the STA and a transmit power of the STA, a wireless signal strength from the STA to the current AP; If the STA determines that the wireless signal strength from the STA to the current AP is less than a preset threshold, switching to the target AP; The STA switching to the target AP specifically includes: The STA obtains the wireless signal strength from other APs to the STA and the transmission power of the other APs; The STA determines, based on the wireless signal strength from the other APs to the STA and the transmit power of the other APs, a path loss from the other APs to the STA; The STA determines, based on a path loss from the other AP to the STA and a transmit power of the STA, a wireless signal strength from the STA to the other AP; The STA determines a target AP among the other APs based on wireless signal strengths from the other APs to the STA and wireless signal strengths from the STA to the other APs; The STA switches from the current AP to the target AP.
2. The method according to claim 1, characterized in that: The method further comprises: The STA obtains the channel of the other AP, the Wi-Fi protocol of the other AP, the security type of the other AP, and the noise floor of the channel of the other AP; The STA determining the target AP among the other APs based on the wireless signal strength from the other APs to the STA and the wireless signal strength from the STA to the other APs specifically includes: The STA determines a target AP among the other APs based on wireless signal strength from the other APs to the STA, wireless signal strength from the STA to the other APs, channels of the other APs, Wi-Fi protocols of the other APs, security types of the other APs, and noise floors of the channels of the other APs.
3. The method according to claim 2, characterized in that The path loss from the current AP to the STA is the difference between the transmit power of the current AP and the wireless signal strength from the current AP to the STA; The wireless signal strength from the STA to the current AP is the difference between the transmit power of the STA and the path loss from the current AP to the STA; The path loss from the other APs to the STA is the difference between the transmit power of the other APs and the wireless signal strength from the other APs to the STA; The wireless signal strength from the STA to the other APs is a difference between the transmission power of the STA and the path loss from the other APs to the STA.
4. A STA, characterized in that: The STA includes: an acquisition module, configured to acquire the wireless signal strength from the current access point AP to the STA and the transmission power of the current AP; the current AP is the AP to which the STA is currently connected, the wireless signal strength is obtained by measuring the wireless signal received by the STA from the current AP, the wireless signal includes the transmission power of the current AP, and the wireless signal is a beacon frame or a probe response frame; A first determination module, configured to determine a path loss from the current AP to the STA based on a wireless signal strength from the current AP to the STA and a transmit power of the current AP; A second determination module, configured to determine the wireless signal strength from the STA to the current AP based on the path loss from the current AP to the STA and the transmit power of the STA; A switching module, configured to switch to a target AP if it is determined that the wireless signal strength from the STA to the current AP is less than a preset threshold; The switching module is specifically used for: If it is determined that the wireless signal strength from the STA to the current AP is less than a preset threshold, obtaining the wireless signal strength from other APs to the STA and the transmission power of the other APs; Determine a path loss from the other AP to the STA based on the wireless signal strength from the other AP to the STA and the transmit power of the other AP; Determine the wireless signal strength from the STA to the other APs based on the path loss from the other APs to the STA and the transmit power of the STA; Determine a target AP among the other APs based on wireless signal strengths from the other APs to the STA and wireless signal strengths from the STA to the other APs; Switch from the current AP to the target AP.
5. The STA according to claim 4, characterized in that: The switching module is further used to obtain the channel of the other AP, the Wi-Fi protocol of the other AP, the security type of the other AP and the noise floor of the channel of the other AP; The switching module is specifically used to determine the target AP among the other APs based on the wireless signal strength from the other APs to the STA, the wireless signal strength from the STA to the other APs, the channels of the other APs, the Wi-Fi protocols of the other APs, the security types of the other APs, and the noise floor of the channels of the other APs.
6. The STA according to claim 5, characterized in that: The path loss from the current AP to the STA is the difference between the transmit power of the current AP and the wireless signal strength from the current AP to the STA; The wireless signal strength from the STA to the current AP is the difference between the transmit power of the STA and the path loss from the current AP to the STA; The path loss from the other APs to the STA is the difference between the transmit power of the other APs and the wireless signal strength from the other APs to the STA; The wireless signal strength from the STA to the other APs is a difference between the transmission power of the STA and the path loss from the other APs to the STA.
7. A communication device, characterized in that: The communication device comprises: a processor and a memory; The memory is used to store computer-executable instructions; The processor is used to execute the computer-executable instructions stored in the memory, so that the communication device implements the method as described in any one of claims 1 to 3.
8. A computer storage medium, characterized in that The method comprises computer readable instructions, and when the computer readable instructions are executed, the method according to any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Network switching method and terminal equipment
CN102724724A
Methods and apparatus for determining communication link quality
US20090257361A1