WIFI roaming method and system, terminal equipment and storage medium

By acquiring and analyzing the current link data, using the preferred algorithm to filter out the best quality link from the pre-connected hotspot device, the problem of long WiFi switching time in the prior art is solved, and the terminal device is always connected to the best quality signal effect.

CN119136271APending Publication Date: 2024-12-13深圳开鸿数字产业发展有限公司
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202411137107.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-19
Publication Date
2024-12-13

AI Technical Summary

Technical Problem

In the prior art, WiFi switching time is long, and it is impossible to effectively ensure that the terminal device is always connected to the best signal.

Method used

By obtaining the current link data, it is determined whether to obtain the pre-connected hotspot device information, and a preferred algorithm is used to filter out the target link with the best quality from the link data of the pre-connected hotspot device, and switch the terminal device to the corresponding link Pre-connect hotspot devices.

Benefits of technology

Fast WiFi roaming is realized, ensuring that the terminal device is always connected to the best signal, and improving WiFi switching efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119136271A_ABST
    Figure CN119136271A_ABST
Patent Text Reader

Abstract

The invention discloses a WIFI roaming method and system, terminal equipment and a storage medium, and the method comprises the steps: obtaining current link data, and determining whether to obtain pre-connection hotspot equipment information or not based on the current link data; the current link data is used for reflecting the signal quality of the current link; after the information of the pre-connected hotspot device is obtained, link data of the pre-connected hotspot device is obtained based on the information of the pre-connected hotspot device, and a target link is screened out from the link data of the pre-connected hotspot device by using an optimization algorithm; and switching the terminal equipment from the hotspot connection equipment corresponding to the current link to the pre-connection hotspot equipment corresponding to the target link. According to the method, the link with the optimal quality is selected from the pre-connection equipment through the optimization algorithm to serve as the target switching link, so that the terminal equipment is ensured to be always connected to the signal with the optimal quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of WiFi roaming, and in particular to a WiFi roaming method, system, terminal equipment and storage medium. Background Art

[0002] In wireless networks, in order to help devices switch between different WiFi signals to ensure that the devices are always connected to the best quality signal, existing technologies include: 1. Signal strength threshold switching, the device monitors the strength of the currently connected WiFi signal, and automatically switches to other WiFi networks with stronger signals when the signal strength is lower than the preset threshold. This method is simple and direct and is suitable for scenarios that do not require too much complex logic; 2. Quality benchmark (BSS Transition), based on the IEEE802.11k standard, the wireless access point can report the quality information of other access points to the device, including signal strength, signal-to-noise ratio, etc. The device can use this information to intelligently determine whether it needs to switch to a better access point. This method requires both the device and the access point to support the 802.11k standard; 3. Fast roaming, using the IEEE 802.11r standard, fast roaming allows devices to quickly switch between different access points without having to re-perform the complete authentication and connection process. This technology is suitable for scenarios where devices need to stay connected while moving, such as VoIP calls or video conferencing; 4. Network Selection Optimization (NSO), based on the IEEE 802.11v standard, NSO allows access points to provide more network selection information to help devices make smarter network switching decisions. This technology is often used in conjunction with other standards such as 802.11k and 802.11r to optimize the wireless network experience of devices; 5. Artificial intelligence and machine learning, some advanced WiFi management systems and devices use artificial intelligence (AI) and machine learning (ML) technologies to analyze and predict network quality, so as to more accurately decide when to switch signals. These systems can dynamically adjust the conditions and strategies for switching to adapt to different network environments and device behaviors. However, these technologies are all single switching judgment criteria or have certain scenario limitations.

[0003] Therefore, the prior art needs to be improved. Summary of the invention

[0004] The technical problem to be solved by the present invention is to provide a WIFI roaming method, system, terminal device and storage medium in view of the above-mentioned defects of the prior art, aiming to solve the problem of long WiFi switching time in the prior art.

[0005] The technical solution adopted by the present invention to solve the problem is as follows:

[0006] In a first aspect, an embodiment of the present invention provides a WIFI roaming method, wherein the method includes:

[0007] Acquire current link data, and determine whether to acquire pre-connected hotspot device information based on the current link data; the current link data is used to reflect the current link signal quality;

[0008] After obtaining the pre-connected hotspot device information, obtaining link data of the pre-connected hotspot device based on the pre-connected hotspot device information, and filtering out a target link from the link data of the pre-connected hotspot device using an optimization algorithm;

[0009] Switch the terminal device from the hotspot connection device corresponding to the current link to the pre-connected hotspot device corresponding to the target link.

[0010] In one implementation, the current link data includes current link signal strength, current channel load, current channel interference strength, current channel network speed, and current channel network service quality; the obtaining of the current link data and determining whether to obtain the pre-connected hotspot device information based on the current link data includes:

[0011] Obtain the current link signal strength, current channel load, current channel interference strength, current channel network speed and current channel network service quality;

[0012] The current link quality is calculated by taking a weighted average of the current link signal strength, the current channel load, the current channel interference strength, the current channel network speed and the current channel network service quality;

[0013] If the current link quality is lower than the preset link quality, the pre-connected hotspot device information is obtained.

[0014] In one implementation, after obtaining the pre-connection hotspot device information, obtaining the link data of the pre-connection hotspot device based on the pre-connection hotspot device information includes:

[0015] Parsing the pre-connection hotspot device information to obtain a pre-connection hotspot link corresponding to each pre-connection hotspot device;

[0016] Obtain link data for each pre-connected hotspot link; the link data includes link signal strength, channel load, channel interference strength, channel network speed, and channel network service quality.

[0017] In one implementation, the step of using a preferred algorithm to filter out a target link from the link data of the pre-connected hotspot device includes:

[0018] Obtain a preset weight ratio, and perform weighted averaging on the link data corresponding to each pre-connected hotspot device based on the preset weight ratio to calculate a quality index of each pre-connected hotspot link;

[0019] The quality indexes of all pre-connected hotspot links are sorted from large to small, and the pre-connected hotspot link with the largest quality index is selected as the target link.

[0020] In one implementation, the method further includes:

[0021] Get the network coverage of the hotspot connection device corresponding to the current link;

[0022] If the network coverage of the hotspot connection device corresponding to the current link is smaller than the preset coverage, obtaining the network coverage of each pre-connected hotspot device;

[0023] Sort the network coverage of all pre-connected hotspot devices;

[0024] Select the pre-connected hotspot device with the largest network coverage as the target hotspot connection device;

[0025] Switch the terminal device from the current hotspot connection device to the target hotspot connection device.

[0026] In one implementation, the method further includes:

[0027] Acquire user preference information, and filter out a target hotspot connection device from the pre-connected hotspot device information based on the user preference information; the user preference information is used to reflect the user's trust in all pre-connected hotspot devices;

[0028] Switch the terminal device from the current hotspot connection device to the target hotspot connection device.

[0029] In one implementation, the method further includes:

[0030] If the terminal device is in a mobile state, obtaining the spatial distance between all pre-connected hotspot devices and the terminal device;

[0031] Sort the spatial distances between all pre-connected hotspot devices and the terminal device;

[0032] Selecting the pre-connected hotspot device with the smallest spatial distance as the target hotspot connection device;

[0033] Switch the terminal device from the current hotspot connection device to the target hotspot connection device.

[0034] In a second aspect, an embodiment of the present invention further provides a WIFI roaming system, wherein the system includes:

[0035] A pre-connection information acquisition module, used to acquire current link data, and determine whether to acquire pre-connection hotspot device information based on the current link data; the current link data is used to reflect the current link signal quality;

[0036] A target link determination module is used to obtain the link data of the pre-connected hotspot device based on the pre-connected hotspot device information after obtaining the pre-connected hotspot device information, and filter out the target link from the link data of the pre-connected hotspot device using an optimization algorithm;

[0037] The link switching module is used to switch the terminal device from the hotspot connection device corresponding to the current link to the pre-connected hotspot device corresponding to the target link.

[0038] In one implementation, the pre-connection information acquisition module includes:

[0039] A current link information acquisition unit, used to acquire current link signal strength, current channel load, current channel interference strength, current channel network speed and current channel network service quality;

[0040] A current link quality calculation unit, used to calculate the current link quality by taking a weighted average of the current link signal strength, the current channel load, the current channel interference strength, the current channel network speed and the current channel network service quality;

[0041] The pre-connection information acquisition unit is used to acquire pre-connection hotspot device information if the current link quality is lower than the preset link quality.

[0042] In one implementation, the target link determination module includes:

[0043] A pre-connection information parsing unit, used to parse the pre-connection hotspot device information to obtain a pre-connection hotspot link corresponding to each pre-connection hotspot device;

[0044] The pre-connection link information acquisition unit is used to obtain the link data of each pre-connection hotspot link; the link data includes link signal strength, channel load, channel interference strength, channel network speed and channel network service quality.

[0045] In one implementation, the target link determination module further includes:

[0046] A weight acquisition unit, used to acquire a preset weight ratio, and perform weighted averaging on the link data corresponding to each pre-connected hotspot device based on the preset weight ratio to calculate a quality index of each pre-connected hotspot link;

[0047] The target link determination unit is used to sort the quality indexes of all pre-connected hotspot links from large to small, and select the pre-connected hotspot link with the largest quality index as the target link.

[0048] In one implementation, the system further includes:

[0049] The current link signal coverage range acquisition module is used to obtain the network coverage range of the hotspot connection device corresponding to the current link;

[0050] A pre-connected hotspot device signal coverage range acquisition module, used to acquire the network coverage range of each pre-connected hotspot device if the network coverage range of the hotspot connection device corresponding to the current link is smaller than the preset coverage range;

[0051] A signal coverage sorting module is used to sort the network coverage of all pre-connected hotspot devices;

[0052] A first target hotspot connection device determination module, used to select a pre-connected hotspot device with the largest network coverage as a target hotspot connection device;

[0053] The first device switching module is used to switch the terminal device from the current hotspot connection device to the target hotspot connection device.

[0054] A user preference acquisition module, used to acquire user preference information, and filter out a target hotspot connection device from the pre-connected hotspot device information based on the user preference information; the user preference information is used to reflect the user's trust in all pre-connected hotspot devices;

[0055] The second device switching module is used to switch the terminal device from the current hotspot connection device to the target hotspot connection device.

[0056] A spatial distance acquisition module, used for acquiring the spatial distances between all pre-connected hotspot devices and the terminal device if the terminal device is in a mobile state;

[0057] A spatial distance sorting module is used to sort the spatial distances between all pre-connected hotspot devices and terminal devices;

[0058] A second target hotspot connection device determination module, used to select the pre-connected hotspot device with the smallest spatial distance as the target hotspot connection device;

[0059] The third device switching module is used to switch the terminal device from the current hotspot connection device to the target hotspot connection device.

[0060] In a third aspect, an embodiment of the present invention further provides a terminal device, wherein the terminal device is a commercial display terminal, the terminal device includes a memory, a processor, and a program of a WIFI roaming method stored in the memory and executable on the processor, and when the processor executes the program of the WIFI roaming method, the steps of the WIFI roaming method of any one of the above-mentioned schemes are implemented.

[0061] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein a program of a WIFI roaming method is stored on the computer-readable storage medium, and when the program of the WIFI roaming method is executed by a processor, the steps of the WIFI roaming method described in any one of the above schemes are implemented.

[0062] Beneficial effects of the present invention: Compared with the prior art, the present invention provides a WIFI roaming method, system, terminal device and storage medium. Specifically, the present invention first obtains the current link data, and determines whether to obtain the pre-connected hotspot device information based on the current link data; the current link data is used to reflect the current link signal quality; then, after obtaining the pre-connected hotspot device information, the link data of the pre-connected hotspot device is obtained based on the pre-connected hotspot device information, and the target link is filtered out from the link data of the pre-connected hotspot device using an optimization algorithm; finally, the terminal device is switched from the hotspot connection device corresponding to the current link to the pre-connected hotspot device corresponding to the target link. In the present application, the link with the best quality is selected from the pre-connected device through an optimization algorithm as the target switching link to ensure that the terminal device is always connected to the best quality signal. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0064] Figure 1 It is a flowchart of a WIFI roaming method provided by an embodiment of the present invention.

[0065] Figure 2 It is a functional block diagram of a WIFI roaming system provided by an embodiment of the present invention.

[0066] Figure 3It is a block diagram of the internal structure principle of the WIFI roaming device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0067] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present invention. However, it should be clear to those skilled in the art that the present invention may be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present invention.

[0068] It should be understood that when used in this specification and the appended claims, the term "comprising" indicates the presence of described features, integers, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or groups thereof.

[0069] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.

[0070] It should be further understood that the term "and / or" used in the present description and the appended claims refers to and includes any and all possible combinations of one or more of the associated listed items.

[0071] As used in this specification and the appended claims, the term "if" may be interpreted as "when" or "upon" or "in response to determining" or "in response to detecting," depending on the context. Similarly, the phrases "if it is determined" or "if [described condition or event] is detected" may be interpreted as meaning "upon determination" or "in response to determining" or "upon detection of [described condition or event]" or "in response to detecting [described condition or event]," depending on the context.

[0072] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0073] In the following description, many specific details are set forth to facilitate a full understanding of the present invention, but the present invention may also be implemented in other ways different from those described herein, and those skilled in the art may make similar generalizations without violating the connotation of the present invention. Therefore, the present invention is not limited to the specific embodiments disclosed below.

[0074] In the prior art, WiFi switching takes a long time.

[0075] In order to solve the problems in the prior art, this embodiment provides a WIFI roaming method, through which WiFi roaming can be quickly realized. In specific implementation, first, the current link data is obtained, and based on the current link data, it is determined whether to obtain the pre-connected hotspot device information; the current link data is used to reflect the current link signal quality; then, after obtaining the pre-connected hotspot device information, the link data of the pre-connected hotspot device is obtained based on the pre-connected hotspot device information, and the target link is filtered out from the link data of the pre-connected hotspot device using the optimization algorithm; finally, the terminal device is switched from the hotspot connection device corresponding to the current link to the pre-connected hotspot device corresponding to the target link. In this application, the link with the best quality is selected from the pre-connected device through the optimization algorithm as the target switching link to ensure that the terminal device is always connected to the best quality signal.

[0076] For example, the current link data is obtained, and based on the current link data, it is determined whether to obtain the pre-connected hotspot device information; the current link data is used to reflect the signal quality of the current link; then, after obtaining the pre-connected hotspot device information, the link data of the pre-connected hotspot device is obtained based on the pre-connected hotspot device information, and the target link is filtered out from the link data of the pre-connected hotspot device using the optimization algorithm; finally, the terminal device is switched from the hotspot connection device corresponding to the current link to the pre-connected hotspot device corresponding to the target link. In this application, the link with the best quality is selected from the pre-connected device through the optimization algorithm as the target switching link to ensure that the terminal device is always connected to the best quality signal.

[0077] Exemplary Methods

[0078] This embodiment provides a WIFI roaming method, which can be applied to a terminal device connected to a hotspot. Figure 1 As shown, the method includes:

[0079] Step S100, obtaining current link data, and determining whether to obtain pre-connected hotspot device information based on the current link data; the current link data is used to reflect the current link signal quality.

[0080] In this embodiment, the current link data is obtained to comprehensively determine whether it is necessary to switch the WiFi network to ensure the communication quality. In the specific implementation, the current link data includes the current link signal strength, the current channel load, the current channel interference strength, the current channel network speed, and the current channel network service quality; the current link data is obtained, and based on the current link data, it is determined whether to obtain the pre-connected hotspot device information, including: obtaining the current link signal strength, the current channel load, the current channel interference strength, the current channel network speed, and the current channel network service quality; the current link signal strength, the current channel load, the current channel interference strength, the current channel network speed, and the current channel network service quality are weighted averaged to calculate the current link quality; if the current link quality is lower than the preset link quality, the pre-connected hotspot device information is obtained. After obtaining the current link data, the current link data is normalized, and after normalization, the current link quality is calculated based on the preset weight ratio; after obtaining the current link quality, it can be determined whether WiFi switching is required. If the current link quality is lower than the preset link quality, it means that WiFi switching is required. At this time, it is necessary to start searching for a signal with a stronger signal and better quality and try to switch. In this application, the information of the hotspot device that has been pre-connected is obtained. The pre-connected hotspot device is a WiFi hotspot device that has been pre-connected and matched. After obtaining the pre-connected hotspot device information, the link data of each pre-connected hotspot device can be obtained for quality judgment, so as to select the link with the best quality for switching. By pre-connecting the terminal device with the hotspot device in advance, the efficiency of WiFi switching can be effectively improved.

[0081] Step S200: After obtaining the pre-connected hotspot device information, obtain the link data of the pre-connected hotspot device based on the pre-connected hotspot device information, and use an optimal algorithm to filter out the target link from the link data of the pre-connected hotspot device.

[0082] In this embodiment, when it is determined that WiFi hotspot switching is required, the link data of the pre-connected hotspot device is obtained so as to select the hotspot device with the best quality for WiFi switching. In specific implementation, the link data of the pre-connected hotspot device is obtained based on the pre-connected hotspot device information, including: parsing the pre-connected hotspot device information to obtain the pre-connected hotspot link corresponding to each pre-connected hotspot device; obtaining the link data of each pre-connected hotspot link; the link data includes link signal strength, channel load, channel interference strength, channel network speed and channel network service quality. The pre-connected hotspot device information includes the name and access address of the pre-connected hotspot device. By parsing it, the link data of each pre-connected hotspot device is obtained. The specific device obtains the signal strength, channel load, channel interference strength, channel network speed and channel network service quality of the corresponding link of all pre-connected hotspot devices through monitoring. Since the WiFi channel is a limited resource, different access points may use different channels. By considering the channel load of the access point, it is possible to avoid connecting to a crowded or high-load channel. Electromagnetic interference around the channel (such as microwave ovens, Bluetooth devices, etc.) may affect the performance of WiFi. Incorporating it into the consideration of link quality makes it easier to choose a channel with less interference for connection. Measuring the actual access network speed makes it easier to choose a faster access point as the preferred connection. Quality of service (QoS) requirements are also one of the factors that need to be considered. Based on the application's requirements for service quality (such as VoIP, video streaming, etc.), priority is given to access points that can provide higher QoS. By comprehensively evaluating the quality of each link from multiple dimensions, the link with the best quality can be better selected as the target link for switching.

[0083] In one implementation, the use of a preferred algorithm to filter out a target link from the link data of the pre-connected hotspot device includes: obtaining a preset weight ratio, and performing weighted averaging on the link data corresponding to each pre-connected hotspot device based on the preset weight ratio to calculate the quality index of each pre-connected hotspot link; sorting the quality indexes of all pre-connected hotspot links from large to small, and selecting the pre-connected hotspot link with the largest quality index as the target link. Pre-set the weight of each consideration factor, such as a weight ratio of link signal strength: channel load: channel interference intensity: channel network speed: channel network service quality of 4:2:2:1:1; after obtaining the link data corresponding to each hotspot device, perform normalization processing, and then perform weighted averaging calculation based on the preset weight ratio to obtain the quality index of each link; the link quality index indicates the quality of each link, and the link quality indexes of all pre-connected hotspot devices are sorted from large to small, and the link with the largest quality index is selected as the target link. By weighting the data of each link, a better quality line can be better selected for switching.

[0084] In one implementation, the preset weight ratio can be changed according to user needs.

[0085] Step S300: Switch the terminal device from the hotspot connection device corresponding to the current link to the pre-connected hotspot device corresponding to the target link.

[0086] In this embodiment, after the target link is determined, the terminal device can be switched from the hotspot device corresponding to the current link to the pre-connected hotspot device corresponding to the target link. The pre-connected hotspot device can improve the switching efficiency, and the link quality of the pre-connected hotspot device can be comprehensively evaluated to select the pre-connected hotspot device with the best quality for switching.

[0087] In one implementation, the method further includes: obtaining the network coverage of the hotspot connection device corresponding to the current link; if the network coverage of the hotspot connection device corresponding to the current link is less than the preset coverage, obtaining the network coverage of each pre-connected hotspot device; sorting the network coverage of all pre-connected hotspot devices; selecting the pre-connected hotspot device with the largest network coverage as the target hotspot connection device; switching the terminal device from the current hotspot connection device to the target hotspot connection device. By selecting a device with a wider coverage and better signal quality as an access point.

[0088] In one implementation, the method further includes: obtaining user preference information, filtering a target hotspot connection device from the pre-connected hotspot device information based on the user preference information; the user preference information is used to reflect the user's trust in all pre-connected hotspot devices; and switching the terminal device from the current hotspot connection device to the target hotspot connection device. The user's personalized preferences and settings may be considered, such as a manually set priority network list or a priority of a specific access point.

[0089] In one implementation, the method further includes: if the terminal device is in a mobile state, obtaining the spatial distances between all pre-connected hotspot devices and the terminal device; sorting the spatial distances between all pre-connected hotspot devices and the terminal device; selecting the pre-connected hotspot device with the smallest spatial distance as the target hotspot connection device; switching the terminal device from the current hotspot connection device to the target hotspot connection device. If the device is in a mobile state, the algorithm may consider the current location of the device and predict the next moving path to ensure connection to the most appropriate access point.

[0090] Exemplary Systems

[0091] Based on the above embodiments, the present invention also provides a WIFI roaming system, such as Figure 2 As shown, the system in this embodiment includes a pre-connection information acquisition module 10, a target link determination module 20 and a link switching module 30. Specifically, the pre-connection information acquisition module 10 is used to obtain the current link data, and determine whether to obtain the pre-connection hotspot device information based on the current link data; the current link data is used to reflect the current link signal quality; the target link determination module 20 is used to obtain the link data of the pre-connection hotspot device based on the pre-connection hotspot device information after obtaining the pre-connection hotspot device information, and use the optimization algorithm to filter out the target link from the link data of the pre-connection hotspot device; the link switching module 30 is used to switch the terminal device from the hotspot connection device corresponding to the current link to the pre-connection hotspot device corresponding to the target link.

[0092] In one implementation, the pre-connection information acquisition module includes:

[0093] A current link information acquisition unit, used to acquire current link signal strength, current channel load, current channel interference strength, current channel network speed and current channel network service quality;

[0094] A current link quality calculation unit, used to calculate the current link quality by taking a weighted average of the current link signal strength, the current channel load, the current channel interference strength, the current channel network speed and the current channel network service quality;

[0095] The pre-connection information acquisition unit is used to acquire pre-connection hotspot device information if the current link quality is lower than the preset link quality.

[0096] In one implementation, the target link determination module includes:

[0097] A pre-connection information parsing unit, used to parse the pre-connection hotspot device information to obtain a pre-connection hotspot link corresponding to each pre-connection hotspot device;

[0098] The pre-connection link information acquisition unit is used to obtain the link data of each pre-connection hotspot link; the link data includes link signal strength, channel load, channel interference strength, channel network speed and channel network service quality.

[0099] In one implementation, the target link determination module further includes:

[0100] A weight acquisition unit, used to acquire a preset weight ratio, and perform weighted averaging on the link data corresponding to each pre-connected hotspot device based on the preset weight ratio to calculate a quality index of each pre-connected hotspot link;

[0101] The target link determination unit is used to sort the quality indexes of all pre-connected hotspot links from large to small, and select the pre-connected hotspot link with the largest quality index as the target link.

[0102] In one implementation, the system further includes:

[0103] The current link signal coverage range acquisition module is used to obtain the network coverage range of the hotspot connection device corresponding to the current link;

[0104] A pre-connected hotspot device signal coverage range acquisition module, used to acquire the network coverage range of each pre-connected hotspot device if the network coverage range of the hotspot connection device corresponding to the current link is smaller than the preset coverage range;

[0105] A signal coverage sorting module is used to sort the network coverage of all pre-connected hotspot devices;

[0106] A first target hotspot connection device determination module, used to select a pre-connected hotspot device with the largest network coverage as a target hotspot connection device;

[0107] The first device switching module is used to switch the terminal device from the current hotspot connection device to the target hotspot connection device.

[0108] A user preference acquisition module, used to acquire user preference information, and filter out a target hotspot connection device from the pre-connected hotspot device information based on the user preference information; the user preference information is used to reflect the user's trust in all pre-connected hotspot devices;

[0109] The second device switching module is used to switch the terminal device from the current hotspot connection device to the target hotspot connection device.

[0110] A spatial distance acquisition module, used for acquiring the spatial distances between all pre-connected hotspot devices and the terminal device if the terminal device is in a mobile state;

[0111] A spatial distance sorting module is used to sort the spatial distances between all pre-connected hotspot devices and terminal devices;

[0112] A second target hotspot connection device determination module, used to select the pre-connected hotspot device with the smallest spatial distance as the target hotspot connection device;

[0113] The third device switching module is used to switch the terminal device from the current hotspot connection device to the target hotspot connection device.

[0114] The working principles of each module in the WIFI roaming system of this embodiment are the same as the principles of each step in the above method embodiment, and will not be repeated here.

[0115] Based on the above embodiments, the present invention further provides a terminal device, the principle block diagram of the terminal device can be as follows: Figure 3 The terminal device may include one or more processors 100 ( Figure 3 Only one is shown in the figure), a memory 101 and a computer program 102 stored in the memory 101 and executable on one or more processors 100, for example, a program of a WIFI roaming method. When one or more processors 100 execute the computer program 102, the various steps in the method embodiment of the WIFI roaming method can be implemented. Alternatively, when one or more processors 100 execute the computer program 102, the functions of the various modules / units in the device embodiment of the WIFI roaming method can be implemented, which is not limited here.

[0116] In one embodiment, the processor 100 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0117] In one embodiment, the memory 101 may be an internal storage unit of an electronic device, such as a hard disk or memory of the electronic device. The memory 101 may also be an external storage device of the electronic device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device. Further, the memory 101 may also include both an internal storage unit of the electronic device and an external storage device. The memory 101 is used to store computer programs and other programs and data required by the terminal device. The memory 101 may also be used to temporarily store data that has been output or is to be output.

[0118] Those skilled in the art will understand that Figure 3 The principle block diagram shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the terminal device to which the solution of the present invention is applied. The specific terminal device includes Figure 3 More or fewer components may be shown, or certain components may be combined, or may have a different arrangement of components.

[0119] An embodiment of the present invention further provides a computer-readable storage medium, on which a WIFI roaming program is stored. When the WIFI roaming program is executed by a processor, the steps of any one of the WIFI roaming methods provided in the embodiments of the present invention are implemented.

[0120] It should be understood that the serial numbers of the steps in the above embodiments do not imply a sequence of execution, and the execution sequence of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention.

[0121] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the above-mentioned device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0122] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0123] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in 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 invention.

[0124] In the embodiments provided by the present invention, it should be understood that the disclosed apparatus / terminal equipment and method can be implemented in other ways. For example, the apparatus / terminal equipment embodiments described above are only illustrative, for example, the division of the above modules or units is only a logical function division, and in actual implementation, other division methods can be used, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0125] If the above-mentioned integrated module / 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 such an understanding, the present invention implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The above-mentioned computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the above-mentioned computer program includes computer program code, and the above-mentioned computer program code can be in source code form, object code form, executable file or some intermediate form. The above-mentioned computer-readable medium may include: any entity or device capable of carrying the above-mentioned computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the above-mentioned computer-readable storage medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction.

[0126] In summary, the present invention discloses a WIFI roaming method, system, terminal device and storage medium, the method comprising: first, obtaining current link data, and determining whether to obtain pre-connection hotspot device information based on the current link data; the current link data is used to reflect the current link signal quality; then, after obtaining the pre-connection hotspot device information, obtaining the link data of the pre-connection hotspot device based on the pre-connection hotspot device information, and using an optimization algorithm to filter out a target link from the link data of the pre-connection hotspot device; finally, switching the terminal device from the hotspot connection device corresponding to the current link to the pre-connection hotspot device corresponding to the target link. In this application, the link with the best quality is selected from the pre-connection device through an optimization algorithm as the target switching link to ensure that the terminal device is always connected to the best quality signal.

[0127] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims

1. A WIFI roaming method, It is characterized in that The method comprises: Acquire current link data, and determine whether to acquire pre-connected hotspot device information based on the current link data; the current link data is used to reflect the current link signal quality; After obtaining the pre-connected hotspot device information, obtaining link data of the pre-connected hotspot device based on the pre-connected hotspot device information, and filtering out a target link from the link data of the pre-connected hotspot device using an optimization algorithm; Switch the terminal device from the hotspot connection device corresponding to the current link to the pre-connected hotspot device corresponding to the target link.

2. According to the WIFI roaming method of claim 1, It is characterized in that The current link data includes current link signal strength, current channel load, current channel interference strength, current channel network speed, and current channel network service quality; The obtaining of current link data, and determining whether to obtain pre-connection hotspot device information based on the current link data, includes: Obtain the current link signal strength, current channel load, current channel interference strength, current channel network speed and current channel network service quality; The current link quality is calculated by taking a weighted average of the current link signal strength, the current channel load, the current channel interference strength, the current channel network speed and the current channel network service quality; If the current link quality is lower than the preset link quality, the pre-connected hotspot device information is obtained.

3. According to the WIFI roaming method of claim 1, It is characterized in that The acquiring the link data of the pre-connected hotspot device based on the pre-connected hotspot device information includes: Parsing the pre-connection hotspot device information to obtain a pre-connection hotspot link corresponding to each pre-connection hotspot device; Obtain link data for each pre-connected hotspot link; the link data includes link signal strength, channel load, channel interference strength, channel network speed, and channel network service quality.

4. According to the WIFI roaming method of claim 3, It is characterized in that The using of the optimization algorithm to filter out the target link from the link data of the pre-connected hotspot device includes: Obtain a preset weight ratio, and perform weighted averaging on the link data corresponding to each pre-connected hotspot device based on the preset weight ratio to calculate a quality index of each pre-connected hotspot link; The quality indexes of all pre-connected hotspot links are sorted from large to small, and the pre-connected hotspot link with the largest quality index is selected as the target link.

5. The WIFI roaming method according to claim 1, It is characterized in that The method further comprises: Get the network coverage of the hotspot connection device corresponding to the current link; If the network coverage of the hotspot connection device corresponding to the current link is smaller than the preset coverage, obtaining the network coverage of each pre-connected hotspot device; Sort the network coverage of all pre-connected hotspot devices; Select the pre-connected hotspot device with the largest network coverage as the target hotspot connection device; Switch the terminal device from the current hotspot connection device to the target hotspot connection device.

6. The WIFI roaming method according to claim 5, It is characterized in that The method further comprises: Acquire user preference information, and filter out a target hotspot connection device from the pre-connected hotspot device information based on the user preference information; the user preference information is used to reflect the user's trust in all pre-connected hotspot devices; Switch the terminal device from the current hotspot connection device to the target hotspot connection device.

7. The WIFI roaming method according to claim 1, It is characterized in that The method further comprises: If the terminal device is in a mobile state, obtaining the spatial distance between all pre-connected hotspot devices and the terminal device; Sort the spatial distances between all pre-connected hotspot devices and the terminal device; Selecting the pre-connected hotspot device with the smallest spatial distance as the target hotspot connection device; Switch the terminal device from the current hotspot connection device to the target hotspot connection device.

8. A WIFI roaming system, It is characterized in that The system comprises: A pre-connection information acquisition module, used to acquire current link data, and determine whether to acquire pre-connection hotspot device information based on the current link data; the current link data is used to reflect the current link signal quality; A target link determination module is used to obtain the link data of the pre-connected hotspot device based on the pre-connected hotspot device information after obtaining the pre-connected hotspot device information, and filter out the target link from the link data of the pre-connected hotspot device using an optimization algorithm; The link switching module is used to switch the terminal device from the hotspot connection device corresponding to the current link to the pre-connected hotspot device corresponding to the target link.

9. A terminal device, It is characterized in that The terminal device includes a memory, a processor, and a WIFI roaming method program stored in the memory and executable on the processor. When the processor executes the WIFI roaming method program, the steps of the WIFI roaming method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a WIFI roaming method program, and when the WIFI roaming method program is executed by the processor, the steps of the WIFI roaming method according to any one of claims 1 to 7 are implemented.

Citation Information

Cited By

  • Rapid switching method and system for indoor Wi-Fi communication

    CN120075920A