Roaming threshold determination method, device, equipment and storage medium
By calculating the signal reference value and offset value, the roaming threshold in wireless communication is determined, and the problem of poor roaming effect in the prior art is solved, and a better roaming experience and network connection stability is achieved.
Patent Information
- Application Number
- CN202411948238.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-26
- Publication Date
- 2025-04-08
AI Technical Summary
The prior art is difficult to determine the optimal roaming threshold, resulting in poor roaming results.
By calculating the uplink signal strength when the terminal is located at the target position as the signal reference value, and calculating the offset value in combination with the transmission power of the first access point and the second access point, the roaming threshold of the first access point is determined.
Combining the terminal perspective and AP perspective, determine the roaming threshold, improve the roaming experience, and ensure the quality and stability of network connections.
Smart Images

Figure CN119789162A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of wireless communication technology, and in particular to a method, device, equipment and storage medium for determining a roaming threshold. Background Art
[0002] In a wireless local area network, mobile terminal devices (such as mobile phones, laptops, etc.) automatically switch connections between different APs (Access Points) to maintain the continuity of network connections. When a user moves from the coverage area of one AP to the coverage area of another AP, the device automatically connects to the new AP without the user having to manually reconnect.
[0003] The AP will actively detect the uplink signal quality of the terminal and guide the terminal to roam when the signal is lower than the preset roaming threshold. However, from the perspective of the terminal, the roaming position is not necessarily the best roaming position. Using the signal strength of the terminal to see the AP as the roaming threshold or using the signal strength of the AP to see the terminal as the roaming threshold is biased and the roaming effect is not good. Summary of the invention
[0004] The embodiments of the present application provide a method, apparatus, device and storage medium for determining a roaming threshold, so as to at least solve the technical problem that it is difficult to determine an optimal roaming threshold in the related art.
[0005] According to one aspect of an embodiment of the present application, a method for determining a roaming threshold is provided, including:
[0006] Calculating a signal reference value based on an uplink signal strength transmitted when the terminal is located at a target location; the target location is a location where the distances from the terminal to a first access point and a second access point are equal, the first access point is an access point to which the terminal is currently connected, and a signal coverage range of the second access point intersects with a signal coverage range of the first access point;
[0007] Calculating an offset value based on transmit power of the first access point and the second access point;
[0008] A roaming threshold of the first access point is determined based on the signal reference value and the offset value.
[0009] In one implementation, when the number of the second access point is one, the calculating the signal reference value based on the uplink signal strength transmitted when the terminal is located at the target location includes:
[0010] The uplink signal strength transmitted when the terminal is located at the target location is determined as the signal reference value.
[0011] In one implementation, when the number of the second access point is one, calculating the offset value based on the transmit power of the first access point and the second access point includes:
[0012] Calculating a difference between a transmit power of the first access point and a transmit power of the second access point;
[0013] The offset value is determined according to the difference.
[0014] In one implementation, when the number of the second access point is more than one, calculating the signal reference value based on the uplink signal strength transmitted when the terminal is located at the target location includes:
[0015] Acquire the uplink signal strength transmitted when the terminal is located at the target position corresponding to each second access point as the first signal reference value; the target position corresponding to the second access point is that the distance from the terminal to the first access point and the distance from the second access point are equal;
[0016] An average of a plurality of the first signal reference values is calculated to obtain the signal reference value.
[0017] In one implementation, when the number of the second access point is more than one, calculating the offset value based on the transmit power of the first access point and the second access point includes:
[0018] Calculating a plurality of first offset values according to a difference in transmit power between the first access point and each second access point;
[0019] An average of the plurality of first offset values is calculated to obtain the offset value.
[0020] In one implementation, based on the uplink signal strength transmitted when the terminal is located at the target location, before calculating the signal reference value, the method further includes:
[0021] Get information about multiple access points connected to the same access controller;
[0022] Obtaining, according to the plurality of access point information, distances from the first access point to other access points on the same access controller;
[0023] The second access point is determined based on the distance from the first access point to other access points on the same access controller.
[0024] In one implementation, determining a roaming threshold of the first access point based on the signal reference value and the offset value includes:
[0025] The product of the offset value and the preset weight factor and the sum of the signal reference value are calculated to obtain the roaming threshold of the first access point.
[0026] According to another aspect of an embodiment of the present application, a roaming threshold determination device is provided, including:
[0027] a signal acquisition module, configured to calculate a signal reference value based on an uplink signal strength transmitted when the terminal is located at a target position; the target position is a position where the distances from the terminal to a first access point and a second access point are equal, the first access point is an access point to which the terminal is currently connected, and a signal coverage range of the second access point intersects with a signal coverage range of the first access point;
[0028] an offset calculation module, configured to calculate an offset value based on transmit power of the first access point and the second access point;
[0029] A roaming threshold determination module is used to determine a roaming threshold of the first access point based on the signal reference value and the offset value.
[0030] According to another aspect of the embodiments of the present application, an electronic device is provided, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the roaming threshold determination method through the computer program.
[0031] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the above-mentioned roaming threshold determination method when running.
[0032] The technical solution provided by the embodiments of the present application may have the following beneficial effects:
[0033] The embodiment of the present application provides a method for determining a roaming threshold. When viewed from the perspective of the AP, the distance between the terminal and the AP is the same. At this time, the uplink signal strength received by the AP is the same. It is the best time to roam. Therefore, based on the uplink signal strength transmitted when the terminal is at the target location, a signal reference value is obtained. However, if the transmit power of the AP is different, from the perspective of the terminal, when the terminal is at the target location, the received downlink signal strength is different, which is not the most suitable time to roam. The present application calculates an offset value based on the transmit power of the first access point and the surrounding second access points. Then, the roaming threshold of the first access point is determined based on the signal reference value and the offset value. Thus, the roaming threshold is determined by combining the terminal perspective and the AP perspective, and the roaming threshold is confirmed by the network-side collaboration, which can better guide the terminal roaming, improve the roaming experience, and ensure the quality and stability of the network connection. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0035] Figure 1 is a flow chart of a method for determining a roaming threshold according to an embodiment of the present application;
[0036] Figure 2 is an implementation scenario diagram according to an embodiment of the present application;
[0037] Figure 3 is another implementation scenario diagram according to an embodiment of the present application;
[0038] Figure 4 is a schematic diagram of a roaming threshold determination device according to an embodiment of the present application;
[0039] Figure 5 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0040] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0041] It should be noted that the terms "first", "second", etc. in the specification and claims of the present 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 of the present application described herein can be implemented in an order other than those illustrated or described herein. 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 comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0042] The following is combined with Figure 1-3 The roaming threshold determination method of the embodiment of the present application is described in detail. Figure 1 As shown, the method mainly includes the following steps:
[0043] S101 calculates a signal reference value based on the strength of the uplink signal transmitted when the terminal is located at the target position.
[0044] The target location is a location where the distances from the terminal to the first access point and the second access point are equal. The first access point is the access point to which the terminal is currently connected, and the signal coverage range of the second access point intersects with the signal coverage range of the first access point.
[0045] In one embodiment, based on the uplink signal strength transmitted when the terminal is located at the target location, before calculating the signal reference value, it also includes: obtaining information of multiple access points connected to the same access controller, wherein the access point information generally includes an access point hardware identifier, an IP address, location information such as longitude and latitude coordinates, the access point's transmission power, connection status, etc.
[0046] According to the information of the multiple access points, the distance from the first access point to other access points on the same access controller is obtained, and based on the distance from the first access point to other access points on the same access controller, the second access point is determined.
[0047] In one implementation, in a wireless local area network, a plurality of access points may be connected to the same access controller, wherein the first access point is the access point to which the current terminal is connected, and further, a second access point around the first access point is determined.
[0048] Optionally, when the distance between the access point and the first access point is less than a threshold, and the difference between the distance between the access point and the terminal and the distance between the first access point and the terminal is less than a threshold, the access point is determined to be the second access point. The number of the second access points is one or more. The threshold can be set according to actual needs.
[0049] In one implementation, when the access points are arranged in a straight line, the number of the second access point is one. At this time, the terminal moves to the vicinity of the first access point and the second access point. It may be necessary to switch the first access point to the second access point.
[0050] When the access points are arranged in a mesh-like manner, the number of the second access points may be two. At this time, when the terminal moves to a range between the first access point and two second access points, it may be necessary to switch the first access point to any one of the second access points.
[0051] In one implementation, when the number of the second access point is one, calculating the signal reference value based on the uplink signal strength transmitted when the terminal is at the target location includes: determining the uplink signal strength transmitted when the terminal is at the target location as the signal reference value.
[0052] The angle from which the roaming threshold is set by the uplink signal strength received from the access point, such as Figure 2As shown in the figure, when the terminal is located on the left side of the center line, the left AP1 is the best access AP for the terminal, and when the terminal is located on the right side of the center line, the right AP2 is the best access AP for the terminal. The best roaming position for the terminal should be the center line of the two APs. When the terminal is located on the center line of the two APs, the distance between the terminal and the two APs is equal. At this time, the uplink signal strength received by AP1 and AP2 is the same.
[0053] Therefore, the roaming threshold is set from the perspective of the uplink signal strength received from the access point, and the uplink signal strength sent when the terminal is at an equal distance from the first access point and the second access point is used as the signal reference value.
[0054] In one implementation, when the number of the second access points is more than one, calculating the signal reference value based on the uplink signal strength transmitted when the terminal is located at the target position includes: obtaining the uplink signal strength transmitted when the terminal is located at the target position corresponding to each second access point, as the first signal reference value; the target position corresponding to the second access point is that the distance from the terminal to the first access point is equal to the distance from the second access point; and calculating the average of multiple first signal reference values to obtain the signal reference value.
[0055] In an exemplary scenario, the second access point includes two access points, AP2 and AP3. First, when the distance between the terminal and AP1 and AP2 is equal, the uplink signal strength sent is used as the first signal reference value X1, and when the distance between the terminal and AP1 and AP3 is equal, the uplink signal strength sent is used as the first signal reference value X2. The average of multiple first signal reference values is calculated to obtain the signal reference value.
[0056] S102 calculates an offset value based on the transmit power of the first access point and the second access point.
[0057] It can be understood that when the transmit powers of the APs at both ends are not equal, from the perspective of the terminal, when the terminal is located at the midline, the downlink signal strength received by the terminal is not equal. Figure 3 As shown, the signal strength center line from the terminal perspective is different from the signal strength center line from the AP perspective.
[0058] The present application calculates an offset value based on the transmit power of the first access point and the second access point. The offset value refers to a compensation value set to adjust the roaming behavior, which can be used to fine-tune the triggering conditions of roaming.
[0059] In one implementation, when the number of the second access point is one, calculating the offset value based on the transmit power of the first access point and the second access point includes:
[0060] Based on the difference between the transmit power of the first access point and the transmit power of the second access point, the offset value is calculated by the following formula:
[0061] F=20lg(1+10^(maxpower1-maxpower2) / 20)-20lg2;
[0062] Wherein, F represents an offset value, maxpower1 represents the transmit power of the first access point, and maxpower2 represents the transmit power of the second access point.
[0063] In one implementation, when the number of the second access point is more than one, calculating the offset value based on the transmit power of the first access point and the second access point includes:
[0064] According to the transmit power of the first access point and each second access point and the offset value calculation formula, multiple first offset values are calculated; and the average of the multiple first offset values is calculated to obtain the offset value.
[0065] In an exemplary scenario, the second access point includes two access points, AP2 and AP3. The transmit powers of the first access point AP1 and the second access point AP2 are substituted into the formula to obtain a calculated first offset value F1. The transmit powers of the first access point AP1 and the second access point AP3 are substituted into the formula to obtain a calculated first offset value F2. The offset value F is obtained based on the calculated average of F1 and F2.
[0066] S103 determines a roaming threshold of the first access point based on the signal reference value and the offset value.
[0067] In one implementation, determining the roaming threshold of the first access point based on the signal reference value and the offset value includes: obtaining the roaming threshold of the first access point based on the sum of the product of the offset value and a preset weight factor and the signal reference value.
[0068] In one implementation, the roaming threshold of the first access point may be determined in the following manner:
[0069] Roaming threshold = signal reference value + offset value * preset weight factor;
[0070] The value of the preset weight factor may be 1, 1 / 2, 1 / 4, etc., which is not specifically limited in the embodiment of the present application. In actual use, the terminal roaming effect may be tested at 1 / 10 intervals to determine an optimal offset.
[0071] Further, when the uplink signal strength received by the first access point is lower than the roaming threshold, the terminal is guided to roam.
[0072] This application combines the network side to view the terminal signal strength and the terminal side to view the network side signal strength to better set the roaming threshold, guide the terminal roaming, and improve the roaming experience.
[0073] In the method of the embodiment of the present application, when viewed from the perspective of the AP, the distance between the terminal and the AP is the same, and at this time, the uplink signal strength received by the AP is the same. It is the best roaming opportunity. Therefore, based on the uplink signal strength transmitted when the terminal is located at the target location, the signal reference value is obtained. However, if the transmission power of the AP is different, from the perspective of the terminal, when the terminal is located at the target location, the downlink signal strength received is different, which is not the most suitable roaming opportunity.
[0074] The present application calculates the offset value based on the transmit power of the first access point and the surrounding second access points. Then, the roaming threshold of the first access point is determined based on the signal reference value and the offset value. Thus, the roaming threshold is determined by combining the terminal perspective and the AP perspective, and the roaming threshold is confirmed by the network-side collaboration, which can better guide the terminal roaming, improve the roaming experience, and ensure the quality and stability of the network connection.
[0075] According to another aspect of the embodiment of the present application, a roaming threshold determination device for implementing the above roaming threshold determination method is also provided. Figure 4 As shown, the device comprises:
[0076] The signal acquisition module 401 is used to calculate the signal reference value based on the uplink signal strength transmitted when the terminal is located at a target position; the target position is a position where the distances from the terminal to the first access point and the second access point are equal, the first access point is the access point currently connected to the terminal, and the signal coverage range of the second access point intersects with the signal coverage range of the first access point;
[0077] An offset calculation module 402, configured to calculate an offset value based on transmit power of the first access point and the second access point;
[0078] The roaming threshold determination module 403 is configured to determine a roaming threshold of the first access point based on the signal reference value and the offset value.
[0079] It should be noted that the roaming threshold determination device provided in the above embodiment only uses the division of the above functional modules as an example when executing the roaming threshold determination method. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the roaming threshold determination device provided in the above embodiment and the roaming threshold determination method embodiment belong to the same concept, and the implementation process thereof is detailed in the method embodiment, which will not be repeated here.
[0080] According to another aspect of the embodiments of the present application, an electronic device corresponding to the roaming threshold determination method provided in the above embodiments is also provided to execute the above roaming threshold determination method.
[0081] Please refer to Figure 5 , which shows a schematic diagram of an electronic device provided by some embodiments of the present application. Figure 5 As shown, the electronic device includes: a processor 500, a memory 501, a bus 502 and a communication interface 503, and the processor 500, the communication interface 503 and the memory 501 are connected through the bus 502; the memory 501 stores a computer program that can be run on the processor 500, and when the processor 500 runs the computer program, the roaming threshold determination method provided in any of the aforementioned embodiments of the present application is executed.
[0082] The memory 501 may include a high-speed random access memory (RAM), and may also include a non-volatile memory, such as at least one disk storage. The communication connection between the system network element and at least one other network element is realized through at least one communication interface 503 (which may be wired or wireless), and the Internet, wide area network, local area network, metropolitan area network, etc. may be used.
[0083] The bus 502 may be an ISA bus, a PCI bus, or an EISA bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. The memory 501 is used to store programs, and the processor 500 executes the program after receiving an execution instruction. The roaming threshold determination method disclosed in any implementation of the above-mentioned embodiment of the present application may be applied to the processor 500, or implemented by the processor 500.
[0084] The processor 500 may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method can be completed by the hardware integrated logic circuit or software instructions in the processor 500. The above processor 500 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor can be executed. The software module can be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in the memory 501, and the processor 500 reads the information in the memory 501 and completes the steps of the above method in combination with its hardware.
[0085] The electronic device provided in the embodiment of the present application and the roaming threshold determination method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the methods adopted, operated or implemented therein.
[0086] According to another aspect of an embodiment of the present application, a computer-readable storage medium corresponding to the roaming threshold determination method provided in the aforementioned embodiment is also provided, on which a computer program (i.e., a program product) is stored. When the computer program is executed by a processor, the roaming threshold determination method provided in any of the aforementioned embodiments is executed.
[0087] It should be noted that examples of computer-readable storage media may also include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other optical or magnetic storage media, which are not listed here one by one.
[0088] The computer-readable storage medium provided in the above-mentioned embodiment of the present application and the roaming threshold determination method provided in the embodiment of the present application are based on the same inventive concept and have the same beneficial effects as the method adopted, run or implemented by the application program stored therein.
[0089] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0090] The above embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present invention. It should be pointed out that, for a person of ordinary skill in the art, several modifications and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the present invention patent shall be subject to the attached claims.
Claims
1. A method for determining a roaming threshold, characterized in that: include: Calculating a signal reference value based on the uplink signal strength transmitted when the terminal is located at the target location; The target location is a location where the distances from the terminal to a first access point and a second access point are equal, the first access point is the access point to which the terminal is currently connected, and a signal coverage range of the second access point intersects with a signal coverage range of the first access point; Calculating an offset value based on transmit power of the first access point and the second access point; A roaming threshold of the first access point is determined based on the signal reference value and the offset value.
2. The method according to claim 1, characterized in that When the number of the second access point is one, the calculating the signal reference value based on the uplink signal strength transmitted when the terminal is located at the target location includes: The uplink signal strength transmitted when the terminal is located at the target location is determined as the signal reference value.
3. The method according to claim 1, characterized in that When the number of the second access point is one, the calculating the offset value based on the transmit power of the first access point and the second access point includes: Calculating a difference between a transmit power of the first access point and a transmit power of the second access point; The offset value is determined according to the difference.
4. The method according to claim 1, characterized in that: When the number of the second access point is more than one, the calculating the signal reference value based on the uplink signal strength transmitted when the terminal is located at the target location includes: Acquire the uplink signal strength transmitted when the terminal is located at the target position corresponding to each second access point as the first signal reference value; the target position corresponding to the second access point is that the distance from the terminal to the first access point and the distance from the second access point are equal; An average of a plurality of the first signal reference values is calculated to obtain the signal reference value.
5. The method according to claim 3, characterized in that: When the number of the second access point is more than one, the calculating the offset value based on the transmit power of the first access point and the second access point includes: Calculating a plurality of first offset values according to a difference in transmit power between the first access point and each second access point; An average of the plurality of first offset values is calculated to obtain the offset value.
6. The method according to claim 1, characterized in that Based on the uplink signal strength transmitted when the terminal is located at the target location, before calculating the signal reference value, it also includes: Get information about multiple access points connected to the same access controller; Obtaining, according to the multiple access point information, a distance from the first access point to other access points on the same access controller; The second access point is determined based on the distance from the first access point to other access points on the same access controller.
7. The method according to claim 1, characterized in that Determining a roaming threshold of the first access point based on the signal reference value and the offset value includes: The product of the offset value and the preset weight factor and the sum of the signal reference value are calculated to obtain the roaming threshold of the first access point.
8. A roaming threshold determination device, characterized in that: include: A signal acquisition module, used to calculate a signal reference value based on the uplink signal strength transmitted when the terminal is located at a target location; The target location is a location where the distances from the terminal to a first access point and a second access point are equal, the first access point is the access point to which the terminal is currently connected, and a signal coverage range of the second access point intersects with a signal coverage range of the first access point; an offset calculation module, configured to calculate an offset value based on transmit power of the first access point and the second access point; A roaming threshold determination module is used to determine a roaming threshold of the first access point based on the signal reference value and the offset value.
9. An electronic device, characterized in that: The system comprises a processor and a memory storing program instructions, wherein the processor is configured to execute the roaming threshold determination method according to any one of claims 1 to 7 when executing the program instructions.
10. A computer-readable medium, characterized in that Computer-readable instructions are stored thereon, and the computer-readable instructions are executed by a processor to implement a roaming threshold determination method as claimed in any one of claims 1 to 7.