Roaming control method and device, terminal equipment and storage medium
By monitoring the mobile status and signal status in real time, roaming is automatically triggered and access points with better network performance is selected, which solves the problem of poor intelligence in switching between different Wi-Fi networks, and achieves stable and fast network connections and seamless roaming experience.
Patent Information
- Application Number
- CN202510332899.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-20
- Publication Date
- 2025-05-13
AI Technical Summary
In the prior art, the switching intelligence of devices between different Wi-Fi networks is poor, resulting in poor roaming quality and users may encounter problems such as unstable connections or delayed switching.
By monitoring its own mobile status and signal status in various frequency bands in real time, roaming will be automatically triggered, and target access points with better network performance will be selected to achieve fast and intelligent roaming.
Ensure stable and fast network connections, reduce delays caused by network switching during mobile, improve the intelligence of roaming control, and provide a more seamless network experience.
Smart Images

Figure CN119997126A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of roaming technology, and in particular to a roaming control method, apparatus, terminal equipment and storage medium. Background Art
[0002] Roaming refers to the technology that enables smart devices to maintain communication continuity when moving between different geographical areas. During this process, the device needs to frequently connect to different access points (APs) to ensure signal quality and communication efficiency.
[0003] In the prior art, roaming mainly relies on the support of Wi-Fi networks. In a Wi-Fi environment, devices usually need to manually select an available Wi-Fi network to connect to, or automatically connect to a preset Wi-Fi network through a pre-set profile. However, in actual applications, the switching of devices between different Wi-Fi networks is not always fast and intelligent. When the device detects that the quality of the currently connected Wi-Fi signal has deteriorated, it cannot quickly discover and connect to a new Wi-Fi network with better signal quality, which may cause users to encounter problems such as unstable connection or switching delays during use. Summary of the invention
[0004] In view of this, in order to solve the technical problem in the prior art that poor roaming quality is caused by poor intelligence in switching between different Wi-Fi networks, the present application provides a roaming control method, apparatus, terminal device and storage medium.
[0005] In a first aspect, the present application provides a roaming control method, applied to a client, comprising:
[0006] Acquire its own movement data in real time, and determine the movement status according to the movement data;
[0007] Respectively acquiring signal data of a plurality of frequency bands within a first time range, and analyzing the signal data to determine a signal state of each frequency band; the frequency bands include a currently connected frequency band and a to-be-connected frequency band;
[0008] Based on the mobility state and the signal state of the currently connected frequency band, if it is determined to trigger the roaming process, determining a target frequency band to be roamed to from each of the frequency bands to be connected according to the signal state of each of the frequency bands to be connected;
[0009] The system obtains status information of all wireless access points in the target frequency band, analyzes the status information of each wireless access point, determines a load status of each wireless access point, and determines a roamable target access point from each wireless access point based on the load status, so as to roam to the target access point.
[0010] In an optional implementation manner, the acquiring of the own movement data in real time and determining the movement state according to the movement data includes:
[0011] Collecting acceleration data and gyroscope data of the device within a first time range, performing integration operations on the acceleration data and the gyroscope data, respectively, and determining movement data according to the operation results, wherein the movement data includes a movement speed and a movement direction;
[0012] The mobile state of the mobile device is determined according to the mobile data; the mobile state includes stationary, slow moving or fast moving.
[0013] In an optional implementation manner, the signal data includes signal strength and signal-to-noise ratio, and the analyzing the signal data to determine the signal status of each frequency band includes:
[0014] Analyze the signal strength of each frequency band within the first time range respectively to obtain the signal strength fluctuation result corresponding to each frequency band;
[0015] Analyze the signal-to-noise ratio of each frequency band within the first time range respectively to obtain the interference level corresponding to each frequency band; wherein the interference level includes the interference level of adjacent frequencies and the same frequency;
[0016] The signal status of each frequency band is determined according to the signal strength fluctuation result and the interference level.
[0017] In an optional implementation manner, the state information includes the current number of user connections and the current bandwidth usage rate, and the analyzing the state information of each of the wireless access points to determine the load state of each of the wireless access points includes:
[0018] Compare the maximum number of simultaneous connections supported by each of the wireless access points and the current number of user connections to determine the current connection status of each of the wireless access points;
[0019] Compare the maximum bandwidth usage rate supported by each of the wireless access points with the current bandwidth usage rate to determine the bandwidth usage of each of the wireless access points;
[0020] The current load state of each of the wireless access points is determined according to the current connection status and the bandwidth usage status.
[0021] In an optional implementation manner, the determining, based on the load status, a roamable target access point from each of the wireless access points includes:
[0022] Inputting the current connection status and the bandwidth usage status into a preset load prediction model, and outputting a load status prediction result of each wireless access point within a target time period;
[0023] Determine a load fluctuation result of each of the wireless access points by combining the load state prediction result and the load state;
[0024] Based on the load fluctuation result and the load status, a roamable target access point is determined from the wireless access points.
[0025] In an optional implementation manner, before the determining to trigger the roaming process, the process includes:
[0026] If it is determined that the mobility state and / or the signal state of the currently connected frequency band meets the target condition, determining to trigger the roaming process;
[0027] The target conditions include:
[0028] The moving state is a target state;
[0029] And / or, the signal strength of the currently connected frequency band is less than a first preset value;
[0030] And / or, the signal-to-noise ratio of the currently connected frequency band is greater than a second preset value.
[0031] In an optional implementation manner, determining the target frequency band to be roamed to from each of the frequency bands to be connected includes:
[0032] According to the signal strength and interference level of each of the to-be-connected frequency bands and the currently connected frequency band, a frequency band with high signal strength and low interference level is used as a target frequency band.
[0033] In a second aspect, the present application provides a roaming control device, including:
[0034] A first determination module, used to obtain its own movement data in real time and determine the movement state according to the movement data;
[0035] A second determination module is used to respectively obtain signal data of multiple frequency bands within the first time range, and analyze the signal data to determine the signal status of each frequency band; the frequency bands include currently connected frequency bands and to-be-connected frequency bands;
[0036] A trigger module, configured to determine, based on the mobility state and the signal state of the currently connected frequency band, a target frequency band to be roamed to from each of the frequency bands to be connected according to the signal state of each of the frequency bands to be connected if a roaming process is determined to be triggered;
[0037] The roaming module is used to obtain the status information of all wireless access points in the target frequency band, analyze the status information of each wireless access point, determine the load status of each wireless access point, and determine a roamable target access point from each wireless access point based on the load status, so as to roam itself to the target access point.
[0038] In a third aspect, the present application provides a terminal device, including a memory and a processor, wherein the memory stores a computer program, and the processor is used to execute the computer program to implement the aforementioned roaming control method.
[0039] In a fourth aspect, the present application provides a computer storage medium storing a computer program, which, when executed, implements the aforementioned roaming control method.
[0040] This application has the following beneficial effects:
[0041] The present application provides a roaming control method, which automatically triggers roaming by real-time monitoring of its own mobility status and the signal status of each frequency band, and selects a target access point with better network performance, so as to quickly and intelligently roam to the target access point, ensure that its own network connection is stable and fast, improve the intelligence of roaming control, reduce the delay caused by network switching during movement, and ensure that users hardly feel any interruption during Internet access; thereby greatly improving the stability and fluency of the device under changes in the network environment, allowing users to enjoy a more seamless network experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0042] In order to more clearly illustrate the technical solution of the present application, the following is a brief introduction to the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present application and should not be regarded as limiting the scope of protection of the present application. In each of the drawings, similar components are numbered similarly.
[0043] Figure 1 A first flow chart of the roaming control method in an embodiment of the present application is shown;
[0044] Figure 2 A second flow chart of the roaming control method in an embodiment of the present application is shown;
[0045] Figure 3 A third flow chart of the roaming control method in an embodiment of the present application is shown;
[0046] Figure 4 A structural schematic diagram of a roaming control device in an embodiment of the present application is shown. DETAILED DESCRIPTION
[0047] The technical solutions in the embodiments of the present application will be described clearly and completely 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, rather than all of the embodiments.
[0048] The components of the embodiments of the present application generally described and shown in the drawings herein may be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work belong to the scope of protection of the present application.
[0049] Hereinafter, the terms "including", "having" and their cognates, which may be used in various embodiments of the present application, are intended only to indicate specific features, numbers, steps, operations, elements, components, or combinations of the foregoing items, and should not be understood as first excluding the existence of one or more other features, numbers, steps, operations, elements, components, or combinations of the foregoing items or adding the possibility of one or more features, numbers, steps, operations, elements, components, or combinations of the foregoing items.
[0050] Furthermore, the terms “first”, “second”, “third”, etc. are merely used for distinguishing descriptions and are not to be understood as indicating or implying relative importance.
[0051] Unless otherwise defined, all terms (including technical terms and scientific terms) used herein have the same meanings as those generally understood by those skilled in the art to which the various embodiments of the present application belong. The terms (such as those defined in generally used dictionaries) will be interpreted as having the same meanings as the contextual meanings in the relevant technical field and will not be interpreted as having idealized meanings or overly formal meanings unless clearly defined in the various embodiments of the present application.
[0052] Access Point (AP) is a device used in the computer field to connect wireless networks and wired networks, similar to a hub in a wired network.
[0053] Assume that in a large enterprise campus, multiple wireless access points (APs) supporting dual bands (such as 2.4GHz and 5GHz) are installed to achieve seamless Wi-Fi coverage. User A carries a smart device (such as a mobile phone, laptop, etc.) and moves around the campus. Due to different user locations and environments, the signal strength, network interference, and congestion of the AP are constantly changing. Therefore, user A's device needs to switch between different APs quickly and intelligently to ensure the stability and high speed of the network connection to ensure a smooth working experience; and in the process of switching between multiple APs, how to ensure that the connected wireless network is automatically adjusted during the movement to obtain the best network experience, and at the same time continuously monitor the signal strength and network performance of the smart device to dynamically switch APs is the current problem that needs to be solved.
[0054] Based on this, the embodiment of the present application provides a roaming control method, which automatically triggers roaming by real-time monitoring of its own mobility status and the signal status of each frequency band, and selects a target access point with better network performance to quickly and intelligently roam to the target access point, ensuring that its own network connection is stable and fast, reducing the delay caused by network switching during the movement process, and ensuring that users hardly feel any interruption during Internet access; thereby greatly improving the stability and smoothness of the device under changes in the network environment, allowing users to enjoy a more seamless network experience. Among them, this embodiment can be applied to various complex wireless network scenarios, especially in places with large traffic and complex Wi-Fi coverage, such as large office areas, shopping malls, etc.
[0055] For example, Figure 1 As shown, when the method is applied to the client, it specifically includes the following steps:
[0056] S110, acquiring its own movement data in real time, and determining the movement status according to the movement data.
[0057] In this embodiment, the client includes but is not limited to mobile devices or smart devices such as mobile phones and laptops; during the movement of the client after accessing a wireless network or a shared network in the application scenario, the position changes in real time, and the environmental conditions corresponding to each position may be different, and the network environment also changes with the change of movement. Therefore, the client may need to switch between different wireless access points in different network frequency bands to ensure the stability and high speed of the network connection, thereby ensuring the smooth operation of the client during movement.
[0058] For reference, firstly, the acceleration data and gyroscope data of the client itself within the first time range are collected, and the acceleration data and gyroscope data are integrated respectively, and the movement data is determined according to the operation results; and the movement state of the client to be roamed is determined according to the movement data. Among them, the movement data includes the movement speed and the movement direction; the movement state includes stationary, slow movement or fast movement.
[0059] In this embodiment, the movement data includes acceleration and gyroscope data, and specifically, the acceleration data of the client within the first time range can be collected by the built-in accelerometer of the client, and the gyroscope data of the client within the first time range can be collected by the built-in gyroscope of the client. That is, the movement data of the client itself can be monitored by the sensor set inside the client, and then the movement state can be determined.
[0060] Among them, the measurement value of the accelerometer is the linear acceleration of the client. According to the relationship between speed and acceleration in physics, speed is the integral of acceleration over time. Furthermore, this embodiment can obtain the moving speed of the client by integrating the acceleration data. It should be noted that if the acceleration data is collected discretely, the moving speed can be approximately calculated using the numerical integration method. Furthermore, this embodiment can calculate the moving speed in real time based on the acceleration data collected by the device, so as to accurately determine the speed change of the client in different moving states such as still, slow movement or fast movement. In other words, if the acceleration data of the client is collected, the moving speed of the client and its change can be determined.
[0061] Furthermore, the gyroscope is used to measure angular velocity. This embodiment can calculate the direction change of the client by integrating the gyroscope data. In practical applications, if the angular velocity data is also collected discretely, a numerical integration method can be used to approximate the direction change. In other words, by continuously integrating the gyroscope data, the direction change of the client at different time points can be calculated, thereby determining the direction change of its movement. In other words, the gyroscope data collected from the client can determine the direction change of the client, and then the direction change can be combined with the change in the moving speed to determine the moving state of the client in the target time period. The determination of the moving state helps to determine the reliability of the subsequent roaming timing.
[0062] S120, respectively acquiring signal data of a plurality of frequency bands within a first time range, and analyzing the signal data to determine a signal state of each frequency band.
[0063] In an actual application scenario, there may be two or more frequency bands, such as a 2.4 GHz band, a 5 GHz band, etc. Furthermore, the client may collect signal data of each frequency band in the scenario, wherein the signal data is the signal data of the frequency band to which the client is currently connected or to which it is to be connected.
[0064] In this embodiment, signal data of each frequency band in the current scene within the first time range is obtained respectively, wherein the signal data includes but is not limited to parameters such as signal strength, signal-to-noise ratio of each channel and number of interference sources; the specific parameter types contained in the signal data are not limited here. Then, the signal data is analyzed to determine the current signal status of each frequency band according to the signal data of each frequency band.
[0065] That is, in this embodiment, the signal data of multiple wireless access points of the frequency band to which the client is currently connected can be analyzed to determine the currently optimal roamable access point; or, the signal data of multiple wireless access points corresponding to multiple frequency bands to which the client is currently connected and to be connected can be analyzed to determine the currently optimal roamable access point. In other words, this embodiment can be applied to a multi-band network environment or a single-band network environment, and the currently optimal roamable target access point can be selected in real time to roam the client to the target access point, that is, to adaptively switch to a wireless access point with better signal conditions in real time, to achieve seamless roaming, and to ensure the network quality during the client operation.
[0066] For reference, Figure 2 As shown, when analyzing the signal data, the following steps are specifically included:
[0067] S210, analyzing the signal strength of each frequency band within the first time range respectively to obtain a signal strength fluctuation result corresponding to each frequency band.
[0068] S220, analyzing the signal-to-noise ratio of each frequency band within the first time range respectively to obtain an interference level corresponding to each frequency band.
[0069] S230: Determine the signal status of each frequency band according to the signal strength fluctuation result and the interference level.
[0070] Among them, the signal strength indicates the current proximity of the client to the wireless access point of the corresponding frequency band (ie, the distance); the interference level includes the interference level of the adjacent frequency and the same frequency; the upper and lower limits of the first time range are not limited here.
[0071] In this embodiment, for each frequency band, the signal strength fluctuation within the entire first time range can be calculated by calculating the standard deviation (Standard Deviation) or variance (Variance) of the signal strength time series; wherein, the larger the value of the calculated standard deviation or variance is, the more drastic the signal strength fluctuation within the frequency band is, that is, the larger the amplitude of the signal strength fluctuation is.
[0072] Then, the signal-to-noise ratio in the signal data is analyzed. The signal-to-noise ratio (SNR) is an indicator that measures the signal strength relative to the noise level and is directly related to the reliability of wireless communication. The value of the signal-to-noise ratio is usually used to determine the interference level of the wireless signal.
[0073] In some examples, the signal data only includes environmental noise, and the signal-to-noise ratio can be calculated based on the environmental noise and the signal strength.
[0074] In this embodiment, different interference levels can be determined according to the numerical range of the signal-to-noise ratio. For example, the interference level can be divided into a high interference level, a medium interference level and a low interference level; wherein the signal-to-noise ratio range corresponding to the high interference level is: SNR<10dB; the signal-to-noise ratio range corresponding to the medium interference is: 10dB≤SNR<20dB; the signal-to-noise ratio range corresponding to the low interference is: SNR≥20dB. Among them, different interference levels correspond to different communication reliabilities, and high interference means poor signal quality, and the current channel or frequency band needs to be avoided.
[0075] In one example, when analyzing the signal-to-noise ratio, a moving average or weighted average method may be used to smooth the continuous signal-to-noise ratio to eliminate fluctuations in a short period of time, thereby improving the reliability of subsequent signal-to-noise ratio analysis.
[0076] Furthermore, combined with the aforementioned analysis results of signal strength, signal-to-noise ratio and interference level, the signal status of each frequency band is evaluated, such as whether it is stable, whether there is interference, etc.
[0077] Exemplarily, the signal state benchmarks (such as good, medium, and poor) can be divided in advance according to the amplitude of signal strength fluctuation, signal-to-noise ratio, and / or interference level; then, the signal strength fluctuation results and interference levels obtained by analysis are combined for comprehensive evaluation to determine the signal state of each frequency band. In other words, the pre-divided signal state benchmarks are matched according to the current signal strength fluctuation results and interference levels of each frequency band, so that the matched signal state is used as the current signal state of the corresponding frequency band. For example, if the signal strength fluctuation of the frequency band is small and the signal-to-noise ratio is low, the signal state of the frequency band can be considered to be good; conversely, if the signal strength fluctuation of the frequency band is large and the interference level is high, the signal state of the frequency band is determined to be poor.
[0078] In a feasible implementation, after determining the movement state based on the movement data collected by the accelerometer and the gyroscope, this embodiment can dynamically adjust the signal data collection frequency of each frequency band in the current network environment and the signal state monitoring frequency according to the real-time movement state.
[0079] Exemplarily, when it is determined that the current mobile state of the client is fast movement, the signal data collection frequency of each frequency band in the current network environment and the monitoring frequency of the signal state are increased, that is, when the client is currently in a fast movement state, the signal state of each frequency band currently connected and to be connected is checked more frequently. In general scenarios, due to the rapid movement process, the network environment in which the client is located will also change rapidly, so that the network may be frequently disconnected and reconnected. This embodiment increases the monitoring frequency of the signal state of each frequency band to facilitate timely and smooth roaming to a better wireless access point during real-time fast movement, so as to ensure the network stability of the client during the fast movement process.
[0080] If it is determined that the current moving state of the client is stationary or moving slowly, the acquisition frequency of signal data of each frequency band in the current network environment and the monitoring frequency of the signal state are reduced or maintained to reduce the memory consumption of the processor.
[0081] S130, based on the mobility state and the signal state of the currently connected frequency band, if it is determined that the roaming process is triggered, a target frequency band to be roamed to is determined from among the frequency bands according to the signal state of each frequency band to be connected.
[0082] In this embodiment, whether to trigger roaming and the timing of roaming are determined according to the mobility state of the client. For reference, if the mobility state of the client and / or the signal state of the currently connected frequency band meets the target condition, it is determined to trigger the roaming process, that is, it is determined to trigger roaming. Among them, the target condition is that the current mobility state of the client is the target state, and / or the signal strength of the currently connected frequency band is less than the first preset value, and / or the signal-to-noise ratio of the currently connected frequency band is greater than the second preset value. Among them, the setting of the target state, as well as the specific values of the first preset value and the second preset value can be set according to actual needs, and this embodiment does not limit this.
[0083] In other words, if the client meets one or more of the following conditions, the roaming process is triggered: a. the client's current mobility state is the target state; b. the signal strength of the currently connected frequency band is less than the first preset value; c. the signal-to-noise ratio of the currently connected frequency band is greater than the second preset value; d. the interference level of the currently connected frequency band is the target interference level.
[0084] Exemplarily, the target state for triggering the roaming process can be set to a fast moving state (such as a moving speed greater than 1.5m / s), the target interference level can be set to a high interference level or a medium interference level, the first preset value can be -70dB to -50dB, and the second preset value can be set to 10dB to 15dB.
[0085] In some examples, for example, if the client's current moving speed is 1.6m / s, the signal strength of the currently connected frequency band drops to -70dB, and the SNR is less than 10dB, it indicates that the signal strength of the currently connected frequency band is low and the interference is high, which can trigger the client to enter the roaming process, and then select a target frequency band from the various frequency bands to be connected in the client's current moving direction for roaming.
[0086] It can be understood that this embodiment can evaluate whether the client is currently moving to an area with poor signal strength or moving to another wireless access point coverage area through the client's moving speed, moving direction and signal status of each frequency band, and make a roaming decision accordingly. In one embodiment, the process can be implemented in combination with a preset model or an AI algorithm.
[0087] Furthermore, if the roaming process is determined to be triggered, the target frequency band to be roamed to is determined from the frequency bands to be connected according to the signal status of each frequency band to be connected. Specifically, the signal strength and interference level of each frequency band to be connected and the currently connected frequency band are compared, and the frequency band with high signal strength and low interference level is selected as the target frequency band.
[0088] It should be noted that, usually in a dense network environment, there are multiple wireless access points available in each frequency band. Then, the client collects the status information of each wireless access point in each frequency band through communication protocols such as the 802.11k protocol. The signal status and load information of each wireless access point can be evaluated based on the status information, and the best wireless access point can be selected to perform roaming operations.
[0089] Furthermore, if the target frequency band is the currently connected frequency band, the client does not perform the frequency band switching operation and maintains the connection to the currently connected frequency band. In addition, the status information of all wireless access points in the currently connected frequency band can be further obtained, and the best access point can be selected and the roaming timing can be determined to connect the client to the best access point in the currently connected frequency band.
[0090] If the target frequency band is one of the frequency bands to be connected, the status information of all wireless access points in the target frequency band is obtained, the optimal access point is selected and the roaming timing is determined to roam the client to the optimal access point in the target frequency band to complete the frequency band switching and roaming operations.
[0091] In one example, the future signal strength of each frequency band can also be predicted by a pre-trained signal strength prediction model to analyze the signal strength fluctuation in the future time period, and then the signal strength change trend of each frequency band can be analyzed by combining the current signal strength fluctuation result and the signal strength fluctuation result in the future time period. In addition, the upper and lower limits of the future time period can be set according to actual needs and are not limited here.
[0092] Further, when predicting the signal strength change trend of each frequency band in the future time period, the interference level change trend in the future time period can be predicted based on the predicted signal strength change trend, or the signal-to-noise ratio change trend in the future time period can be predicted based on the pre-trained signal-to-noise ratio prediction model, thereby obtaining the interference level change trend in the future time period. Then, the signal state and signal state change trend of each frequency band are determined in combination with the predicted signal strength change trend, interference level change trend, current signal strength fluctuation result, and interference level in the future time period, thereby facilitating the subsequent determination of the target frequency band that can be used for roaming based on the current signal state and signal state change trend of each frequency band. For example, if the current signal strength fluctuation of the frequency band is large and the interference level is high, and the signal strength change in the future time period is large and the interference level is high, then it can be determined that the signal state change of the frequency band is small and the signal state is poor, and it cannot be used as a target frequency band; on the contrary, if the current signal strength fluctuation of the frequency band is small and the interference level is low, the signal strength change in the future time period is also small and the interference level is low, then it can be determined that the signal state change of the frequency band is also small and the signal state is good, and it can be used as a target frequency band. The specific selection criteria of the target frequency band may be set according to actual needs, and this embodiment does not limit this.
[0093] In another example, this embodiment can determine whether to roam and the target frequency band that can be roamed according to the current mobility state of the client and the current signal strength fluctuation results and interference levels of each frequency band, so as to perform the roaming process when determining to trigger roaming; it can also predict the roaming triggering time of the client in the future time period and the target frequency band that can be roamed according to the signal strength change trend and interference level change trend predicted for each frequency band in the future time period, and then trigger the client to roam to the corresponding target frequency band when the time point corresponding to the predicted roaming triggering time in the future time period is reached. That is, this embodiment can trigger the current roaming according to the signal state of each frequency band and the mobility state of the client, set the roaming time of the client in the future time period in advance according to the predicted signal state of the future time period, and select the target frequency band that can be roamed in the future time period from the frequency band to be connected in the moving direction of the client according to the signal strength change trend and interference level change trend predicted for each frequency band in the future time period, so as to make good preparations for roaming in the future time period and ensure that the communication and network of the client are normal for a long period of time.
[0094] Exemplarily, the signal strength of each frequency band in the future time period is predicted by a pre-trained signal strength prediction model. The prediction of the signal-to-noise ratio and interference level change trend is similar, and the model training process is also similar, so it will not be described here.
[0095] In some examples, a time series analysis algorithm is used to obtain the prediction results of the signal strength of each frequency band in the future time period based on the signal strength fluctuation results. That is, the fluctuation trend of the signal strength can be predicted by the time series analysis algorithm. Among them, the time series analysis algorithm is a statistical method for analyzing data sequences that change over time, and is often used to predict future trends or patterns.
[0096] Furthermore, after collecting the signal strength value (i.e., RSSI) of each frequency band within the same time range, the signal strength fluctuation results of each frequency band within the same time range are analyzed based on the pre-trained signal strength prediction model, and then the signal strength prediction results of each frequency band in the future time period are predicted based on the signal strength fluctuation results. For example, a sudden change in accelerometer readings can indicate that the client is moving, while a stable signal strength from a wireless access point indicates that the client is stationary.
[0097] In some examples, the training process of the signal strength prediction model can be to obtain the historical signal strength of each frequency band, and then use the historical signal strength to train the model using time series prediction algorithms such as the ARIMA model (i.e., autoregressive integrated moving average model) or LSTM (i.e., long short-term memory network). For the ARIMA model, the historical signal strength is fitted by the least squares method based on the autoregressive and moving average terms to predict the signal strength; for deep learning models such as LSTM, the prediction results are generated by capturing the long-term dependence of the signal strength.
[0098] Furthermore, to ensure the accuracy of the model output results, during the model training process, the historical signal strength data is divided into a training set, a test set, and a validation set, wherein the training set is used for model training, the validation set is used to verify the accuracy of the model parameters to continuously adjust the values of the model parameters, and the test set is used to ultimately evaluate the performance of the model. Specifically, the historical signal strength data in the training set is preprocessed by data smoothing, denoising, and normalization to reduce the impact of noise on the model and ensure the accuracy of the model parameters; and the validation set is used to verify the model's predictive ability and continuously adjust the model parameters to improve accuracy.
[0099] In addition, before the signal strength values of each frequency band in the same time range currently collected are input into the trained signal strength prediction model, these signal strength values can also be preprocessed to ensure the quality of the signal data and the reliability of the model prediction results; wherein the preprocessing operation includes smoothing, denoising, normalization and other preprocessing operations. Furthermore, the signal strength prediction model can predict the signal strength fluctuation in the future period of time based on the current and historical signal strength data. For example, the signal strength prediction model can output the signal strength value in the second time range based on the input signal strength value in the first time range, and then analyze the signal strength fluctuation in the second time range based on the signal strength value in the second time range. The upper and lower limits of the second time range can be set according to actual needs. For example, the second time range can be within the next day, the next three days, or the next week, etc.
[0100] S140, obtaining status information of all wireless access points in the target frequency band, analyzing the status information of each wireless access point, determining a load status of each wireless access point, and determining a roamable target access point from each wireless access point based on the load status, so as to roam itself to the target access point.
[0101] In this embodiment, if it is determined that roaming is required (i.e., it is determined to trigger the roaming process), all available wireless access points in the target frequency band are periodically scanned through the wireless module inside the client or dedicated wireless scanning hardware or network management software, such as SNMP (Simple Network Management Protocol) monitoring software, and the status information of each wireless access point is obtained, wherein the status information includes but is not limited to service set identifier, basic service set identifier, signal strength, current number of user connections, bandwidth usage, response time, throughput, maximum number of simultaneous connections allowed to be supported, and other parameter information. The service set identifier is used to identify different wireless networks, and the service set identifier (i.e., MAC address) is used to uniquely identify each access point.
[0102] In some examples, the client may collect status information of each wireless access point in the target frequency band according to a communication protocol such as the 802.11k protocol, and analyze the information to determine the current load status of each wireless access point.
[0103] Furthermore, the client analyzes the status information of each wireless access point to determine the load status, signal quality and other factors of each wireless access point, so as to select the best wireless access point as the target access point for roaming. The load status generally refers to the busyness of the current processing capacity of the wireless access point.
[0104] For reference, Figure 3 As shown, the process of analyzing the status information of each wireless access point may include the following steps:
[0105] S310: Compare the maximum number of simultaneous connections supported by each wireless access point with the current number of user connections to determine the current connection status of each wireless access point.
[0106] S320: Compare the maximum bandwidth usage rate supported by each wireless access point with the current bandwidth usage rate to determine the bandwidth usage of each wireless access point.
[0107] S330: Determine the current load status of each wireless access point according to the current connection status and bandwidth usage status.
[0108] According to the status information of each wireless access point, the maximum number of simultaneous connections that each wireless access point can support and the current number of user connections are compared to determine the current connection status of each wireless access point, such as idle, lightly loaded, fully loaded, etc. The determination criteria for the specific connection status can be set according to actual needs, and this embodiment does not limit this. For example, if the current number of user connections is close to or exceeds the maximum number of simultaneous connections, it indicates that the wireless access point has approached or reached the upper limit of its connection capacity and is in a fully loaded state.
[0109] Furthermore, the maximum bandwidth usage rate that each wireless access point can support and the current bandwidth usage rate are compared to determine the bandwidth usage of each wireless access point, such as sufficient, tight, overloaded, etc. The specific bandwidth usage judgment standard can be set according to actual needs, and this embodiment does not limit this. For example, if the current bandwidth usage rate is close to or exceeds the maximum bandwidth usage rate, it means that the wireless access point has approached or exceeded the upper limit of its bandwidth capacity and is in an overloaded state.
[0110] Furthermore, according to the current connection status and bandwidth usage of each wireless access point, each wireless access point is divided into different load status categories, such as low load, medium load and high load. For example, if the connection capability of the wireless access point is in a full load state and the bandwidth capability is in an overload state, it can be determined that the current load state of the wireless access point is a high load state; if the connection capability is in an idle or light load state and the bandwidth capability is in a sufficient state, it can be determined that its load state is a low load state; if only one of the connection capability and the bandwidth capability is in a full load or overload state, it is determined that its load state is a medium load state. Among them, the specific load state determination standard can be set according to actual needs, and this embodiment does not limit this.
[0111] In this embodiment, each wireless access point is evaluated according to its load status to determine a target access point that can be roamed. For example, wireless access points with medium load status and low load status are used as target access points, and wireless access points with low load status are preferentially used as target access points. The specific selection criteria of the target access point can be set according to actual needs, and this embodiment does not limit this.
[0112] In some examples, this embodiment may also evaluate the wireless access point in combination with the load state prediction result in the future time period to select a better target access point.
[0113] For reference, the current connection status and bandwidth usage of each wireless access point are respectively input into the preset load prediction model, and the load state prediction results of each wireless access point in the target time period are output; the load state prediction results and the load state are combined to determine the load fluctuation results of each wireless access point; based on the load fluctuation results and the load state, the roamable target access point is determined from each wireless access point. Among them, the training process of the load prediction model is the same as the training process of the aforementioned signal strength prediction model, so it will not be repeated here. In addition, the upper and lower limits of the future time period can be set according to actual needs and are not limited here.
[0114] For example, if the current load state of the wireless access point is a low load state, and the load state predicted in the future time period is also a low load state, then the wireless access point can be used as a target access point; and if the current load state of the wireless access point is a high load state, and the load state in the future time period is a high load state or a medium load state, then the wireless access point cannot be used as a target access point. The specific selection criteria of the target wireless point can be set according to actual needs, and this embodiment does not limit this.
[0115] In another example, this embodiment can select a target access point from each wireless access point based on the load status of each wireless access point and the predicted results of the load status in the future time period; and can also select a target access point at the time point corresponding to the predicted roaming triggering opportunity in the future time period based on the predicted results of the load status of each frequency band in the future time period, and then trigger the client to roam to the target access point of the corresponding target frequency band when the time point corresponding to the predicted roaming triggering opportunity in the future time period is reached. That is, this embodiment can trigger the current roaming based on the signal status of each frequency band and the mobility status of the client, and set the roaming opportunity, target frequency band and target access point of the client in the future time period in advance based on the predicted signal status of the future time period, so as to make good preparations for roaming in the future time period and ensure that the client's communication and network are normal for a long period of time.
[0116] In this embodiment, after the client triggers the roaming process and selects a target access point, the client can directly switch from the currently connected wireless access point to the target access point to achieve roaming.
[0117] It is worth noting that during the client roaming process, the 802.11r protocol can also be used to achieve fast authentication and roaming, reduce delays during roaming, and ensure that users hardly feel any interruptions during Internet access, so as to ensure that it can work effectively in a multi-wireless access point environment or a single router, and is applicable to various complex wireless network scenarios. This improves the stability and fluency of the client under changes in the network environment, especially in large office areas, shopping malls and other places with large traffic and complex Wi-Fi coverage. Furthermore, this embodiment not only improves the user experience, but also reduces the cost of network management and maintenance.
[0118] This embodiment evaluates the connected frequency bands and the frequency bands to be connected in the current application scenario by analyzing its own mobile data and signal data of each frequency band to determine the roaming time; and after triggering roaming, selects the target access point with the best network performance according to the status information of each wireless access point in each frequency band, so as to roam to the target access point quickly and intelligently, thereby realizing seamless roaming; thereby ensuring that when it is detected that the quality of the currently connected Wi-Fi signal has deteriorated, a new Wi-Fi network with better signal quality can be quickly discovered and connected; and dynamically switches the access point with better signal strength and network performance according to the actual situation to obtain the best network experience, avoid the problem of unstable connection or switching delay that the user may encounter during use, and ensure that the user always obtains the best network connection quality in a large-scale mobile scenario.
[0119] Please refer to Figure 4 The present application also provides a roaming control device. Exemplarily, the device includes:
[0120] A first determination module 410 is used to obtain its own movement data in real time and determine the movement state according to the movement data;
[0121] The second determination module 420 is used to respectively obtain signal data of multiple frequency bands within the first time range, and analyze the signal data to determine the signal status of each frequency band; the frequency bands include currently connected frequency bands and to-be-connected frequency bands;
[0122] A trigger module 430 is configured to determine, based on the mobility state and the signal state of the currently connected frequency band, a target frequency band to be roamed to from each of the frequency bands to be connected according to the signal state of each of the frequency bands to be connected if a roaming process is determined to be triggered;
[0123] The roaming module 440 is used to obtain the status information of all wireless access points in the target frequency band, analyze the status information of each wireless access point, determine the load status of each wireless access point, and determine a roamable target access point from each wireless access point based on the load status, so as to roam itself to the target access point.
[0124] It can be understood that the roaming control device of this embodiment corresponds to the roaming control method of the above embodiment, and the options in the above embodiment are also applicable to this embodiment, so they will not be described repeatedly here.
[0125] The embodiment of the present application also provides a computer device, which can be, but is not limited to, a desktop computer, a notebook, a smart phone, a tablet, etc. Its existence form is not limited, mainly depending on whether it needs to support the interface display function of a browser web page, etc. Exemplarily, the computer device includes a processor and a memory, wherein the memory stores a computer program, and the processor runs the computer program to enable the computer device to execute the roaming control method of the present application.
[0126] Among them, the processor can be an integrated circuit chip with signal processing capabilities. The processor can be a general-purpose processor, including a central processing unit (CPU), a graphics processing unit (GPU) and a network processor (NP), 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. At least one of the general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc., which can implement or execute the disclosed methods, steps and logic block diagrams in the embodiments of the present application.
[0127] The memory may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable read-only memory (EEPROM), etc. The memory is used to store a computer program, and the processor may execute the computer program accordingly after receiving an execution instruction.
[0128] The present application also provides a computer storage medium for storing the computer program used in the above-mentioned computer device. The computer storage medium may be a readable storage medium, or a non-volatile storage medium or a volatile storage medium. For example, the computer storage medium may include, but is not limited to, 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 magnetic disk or an optical disk.
[0129] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can also be implemented in other ways. The device embodiments described above are merely schematic. For example, the flowcharts and structure diagrams in the accompanying drawings show the possible architecture, functions and operations of the devices, methods and computer program products according to multiple embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in an alternative implementation, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the structure diagram and / or the flow diagram, and the combination of boxes in the structure diagram and / or the flow diagram, can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0130] In addition, the functional modules or units in the various embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
[0131] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a smart phone, a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods described in the various embodiments of the present application.
[0132] The above description is only a specific implementation manner of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application.
Claims
1. A roaming control method, characterized in that: Applied to the client, including: Acquire its own movement data in real time, and determine the movement status according to the movement data; Respectively acquiring signal data of a plurality of frequency bands within a first time range, and analyzing the signal data to determine a signal state of each frequency band; the frequency bands include a currently connected frequency band and a to-be-connected frequency band; Based on the mobility state and the signal state of the currently connected frequency band, if it is determined to trigger the roaming process, determining a target frequency band to be roamed to from each of the frequency bands to be connected according to the signal state of each of the frequency bands to be connected; The system obtains status information of all wireless access points in the target frequency band, analyzes the status information of each wireless access point, determines a load status of each wireless access point, and determines a roamable target access point from each wireless access point based on the load status, so as to roam to the target access point.
2. The roaming control method according to claim 1, characterized in that: The real-time acquisition of the own movement data and determination of the movement state according to the movement data include: Collecting acceleration data and gyroscope data of the device within a first time range, performing integration operations on the acceleration data and the gyroscope data, respectively, and determining movement data according to the operation results, wherein the movement data includes a movement speed and a movement direction; The mobile state of the mobile device is determined according to the mobile data; the mobile state includes stationary, slow moving or fast moving.
3. The roaming control method according to claim 1, characterized in that: The signal data includes signal strength and signal-to-noise ratio, and the analyzing the signal data to determine the signal status of each frequency band includes: Analyze the signal strength of each frequency band within the first time range respectively to obtain the signal strength fluctuation result corresponding to each frequency band; Analyze the signal-to-noise ratio of each frequency band within the first time range respectively to obtain the interference level corresponding to each frequency band; wherein the interference level includes the interference level of adjacent frequencies and the same frequency; The signal status of each frequency band is determined according to the signal strength fluctuation result and the interference level.
4. The roaming control method according to claim 1, characterized in that: The state information includes the current number of user connections and the current bandwidth usage rate. The analyzing the state information of each wireless access point to determine the load state of each wireless access point includes: Compare the maximum number of simultaneous connections supported by each of the wireless access points with the current number of user connections to determine the current connection status of each of the wireless access points; Compare the maximum bandwidth usage rate supported by each of the wireless access points with the current bandwidth usage rate to determine the bandwidth usage of each of the wireless access points; The current load state of each of the wireless access points is determined according to the current connection status and the bandwidth usage status.
5. The roaming control method according to claim 4, characterized in that: The step of determining a roamable target access point from each of the wireless access points based on the load status includes: Inputting the current connection status and the bandwidth usage status into a preset load prediction model, and outputting a load status prediction result of each wireless access point within a target time period; Determine the load fluctuation result of each of the wireless access points by combining the load state prediction result and the load state; Based on the load fluctuation result and the load status, a roamable target access point is determined from the wireless access points.
6. The roaming control method according to claim 1, characterized in that: Before the determining to trigger the roaming process, the method includes: If it is determined that the mobility state and / or the signal state of the currently connected frequency band meets the target condition, determining to trigger the roaming process; The target conditions include: The moving state is a target state; And / or, the signal strength of the currently connected frequency band is less than a first preset value; And / or, the signal-to-noise ratio of the currently connected frequency band is greater than a second preset value.
7. The roaming control method according to claim 1, characterized in that: The step of determining a target frequency band to be roamed to from each of the frequency bands to be connected comprises: According to the signal strength and interference level of each of the to-be-connected frequency bands and the currently connected frequency band, a frequency band with high signal strength and low interference level is used as a target frequency band.
8. A roaming control device, characterized in that: include: A first determination module, used to obtain its own movement data in real time and determine the movement state according to the movement data; A second determination module is used to respectively obtain signal data of multiple frequency bands within the first time range, and analyze the signal data to determine the signal status of each frequency band; the frequency bands include currently connected frequency bands and to-be-connected frequency bands; A trigger module, configured to determine, based on the mobility state and the signal state of the currently connected frequency band, a target frequency band to be roamed to from each of the frequency bands to be connected according to the signal state of each of the frequency bands to be connected if a roaming process is determined to be triggered; The roaming module is used to obtain the status information of all wireless access points in the target frequency band, analyze the status information of each wireless access point, determine the load status of each wireless access point, and determine a roamable target access point from each wireless access point based on the load status, so as to roam itself to the target access point.
9. A terminal device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to implement the roaming control method according to any one of claims 1 to 7.
10. A computer storage medium, characterized in that: The device stores a computer program, which, when executed, implements the roaming control method according to any one of claims 1 to 7.