Wireless communication switching method, device, equipment and vehicle
By monitoring Wi-Fi communication parameters in real time and calculating communication quality index values, and automatically switching to backup wireless communication mode, the problem of unstable Wi-Fi communication quality is solved, the stability and reliability of communication is improved, and the user experience is improved.
Patent Information
- Application Number
- CN202510050347.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-04-29
AI Technical Summary
The unstable Wi-Fi communication quality leads to reduced data transmission rates, increased latency and communication interruptions, affecting the user experience and the reliability of data transmission.
By monitoring the Wi-Fi communication parameters between the data sending node and the data receiving node in real time, the first index value that represents the Wi-Fi communication quality is calculated, and whether the preset communication quality standard is met based on the index value. If not satisfied, automatically switch to a backup wireless communication method with higher communication performance.
Ensure that the optimal communication state is always maintained between the data sending node and the receiving node, significantly improve the stability and reliability of communication, reduce the risk of communication delay and packet loss, and improve the user experience.
Smart Images

Figure CN119907066A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to a wireless communication switching method, device, equipment and vehicle. Background Art
[0002] With the rapid development of wireless communication technology, Wi-Fi has become an indispensable wireless communication means in people's daily lives. However, the quality of Wi-Fi communication is not always stable and reliable. When the quality of Wi-Fi communication deteriorates, it may lead to reduced data transmission rate, increased latency, or even communication interruption, thus affecting the user's communication experience and the reliability of data transmission.
[0003] In order to deal with the problem of unstable Wi-Fi communication quality, the traditional approach is usually to rely on users to manually switch communication methods, or wait for the device to automatically reconnect to other Wi-Fi networks. However, manually switching communication methods requires users to have certain technical knowledge and operating experience, and may not be able to respond to changes in communication quality in a timely manner. Automatic device reconnection may have delays and uncertainties, and cannot guarantee immediate switching to a better communication method when needed. Summary of the invention
[0004] In view of this, the embodiments of the present application are committed to providing a wireless communication switching method, device, equipment and vehicle, which can evaluate the Wi-Fi communication quality in real time according to Wi-Fi communication parameters and automatically switch to the optimal communication mode to ensure communication stability and reliability.
[0005] According to a first aspect of an embodiment of the present application, a wireless communication switching method is provided, including:
[0006] Calculate a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node, where the first indicator value represents the Wi-Fi communication quality between the data sending node and the data receiving node, where the Wi-Fi communication parameter includes at least one of a signal strength, an actual bandwidth requirement, a wireless frequency, a preset weak signal strength threshold, and a preset minimum bandwidth threshold;
[0007] When it is determined according to the first indicator value that the Wi-Fi communication quality meets a preset communication quality standard, the Wi-Fi communication is determined as the target communication mode; and when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the preset communication quality standard, the backup wireless communication is determined as the target communication mode, wherein when the Wi-Fi communication quality does not meet the communication quality standard, the communication performance of the backup wireless communication is higher than the communication performance of the Wi-Fi communication;
[0008] The data sending node and the data receiving node are controlled to communicate according to the target communication mode.
[0009] Optionally, calculating the first indicator value according to a Wi-Fi communication parameter between the data sending node and the data receiving node includes:
[0010] determining a first influencing factor according to the signal strength, the actual bandwidth requirement, the minimum bandwidth threshold, and a first preset function, where the first influencing factor represents a comprehensive influence of the signal strength and the actual bandwidth requirement on the Wi-Fi communication quality, and the first preset function represents a mapping relationship between a first data set and the first influencing factor, where the first data set includes signal strength, the actual bandwidth requirement, and the minimum bandwidth threshold;
[0011] A first index value is calculated based on at least the first influencing factor.
[0012] Optionally, calculating a first indicator value at least according to the first influencing factor includes:
[0013] determining a second influencing factor according to the statistical characteristics of the signal strength and the degree of influence of the wireless frequency on signal propagation, wherein the statistical characteristics of the signal strength are determined based on the signal strength, the degree of influence of the wireless frequency on signal propagation is determined based on the wireless frequency, and the second influencing factor represents the influence of the complexity of the communication system on the Wi-Fi communication quality;
[0014] A first index value is calculated based on at least the first influencing factor and the second influencing factor.
[0015] Optionally, it is characterized in that the calculating the first index value at least according to the first influencing factor and the second influencing factor includes:
[0016] Determine a third influencing factor according to the signal strength and the weak signal strength threshold, where the third influencing factor represents the influence of a relative value of the signal strength and the weak signal strength threshold on the Wi-Fi communication quality;
[0017] The first index value is determined according to the first influencing factor, the second influencing factor, and the third influencing factor.
[0018] Optionally, the process of determining the first preset function includes:
[0019] According to a preset sampling strategy, multiple groups of sample data are obtained, each group of sample data includes a sample first data set and a first influencing factor corresponding to the sample first data set;
[0020] Data fitting is performed on the multiple groups of sample data to determine the first preset function.
[0021] Optionally, the backup wireless communication includes multiple wireless communication modes, and when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the communication quality standard, determining the backup wireless communication as the target communication mode includes:
[0022] When it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the communication quality standard, a first wireless communication method in the backup wireless communication is determined as a target communication method, and the first wireless communication method has the highest communication priority in the backup wireless communication.
[0023] Optionally, the method further includes:
[0024] When controlling the data sending node and the data receiving node to communicate in accordance with the first wireless communication mode, obtaining a first communication parameter, where the first communication parameter is used to characterize the communication quality of the first wireless communication mode;
[0025] When the first communication parameter does not meet the preset communication parameter standard, the second wireless communication mode in the backup wireless communication is determined as the target communication mode, and the communication priority of the second wireless communication mode in the backup wireless communication is only lower than the communication priority of the first wireless communication mode.
[0026] Optionally, the first wireless communication mode is BLE communication, and the first communication parameter includes at least one of the number of available channels and a channel stability index.
[0027] According to a second aspect of an embodiment of the present application, a wireless communication switching device is provided, including:
[0028] A first unit, configured to calculate a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node, wherein the first indicator value represents a Wi-Fi communication quality between the data sending node and the data receiving node, wherein the Wi-Fi communication parameter includes at least one of a signal strength, an actual bandwidth requirement, a wireless frequency, a preset weak signal strength threshold, and a preset minimum bandwidth threshold;
[0029] a second unit, configured to determine Wi-Fi communication as the target communication mode when it is determined according to the first indicator value that the Wi-Fi communication quality meets a preset communication quality standard, and to determine backup wireless communication as the target communication mode when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the preset communication quality standard, wherein when the Wi-Fi communication quality does not meet the communication quality standard, the communication performance of the backup wireless communication is higher than the communication performance of the Wi-Fi communication;
[0030] The third unit is used to control the data sending node and the data receiving node to communicate according to the target communication mode.
[0031] According to a third aspect of an embodiment of the present application, there is provided an electronic device, including a memory and a processor;
[0032] The memory is connected to the processor and is used to store programs;
[0033] The processor is used to implement the wireless communication switching method as described in any one of the first aspects of the embodiments of the present application by running the program in the memory.
[0034] According to a fourth aspect of an embodiment of the present application, a vehicle is provided, comprising a data sending node, a data receiving node and the electronic device as described in the third aspect of the embodiment of the present application, wherein the data sending node and the data receiving node both support Wi-Fi communication and backup wireless communication.
[0035] The wireless communication switching method provided in the embodiment of the present application can monitor the Wi-Fi communication parameters between the data sending node and the data receiving node in real time, and calculate the first index value characterizing the Wi-Fi communication quality based on the Wi-Fi communication parameters, and then judge whether the Wi-Fi communication quality meets the preset communication quality standard based on the first index value. If it does, continue to use Wi-Fi communication as the target communication method; if it does not, automatically switch to a backup wireless communication method with higher communication performance. On the one hand, the present application can ensure that the data sending node and the receiving node always maintain the best communication state, significantly improve the stability and reliability of communication, effectively reduce the risk of communication delay and data packet loss, and improve user experience; on the other hand, the first index value integrates multiple Wi-Fi communication parameters to provide a comprehensive and accurate quantitative standard for communication quality evaluation, so that the evaluation of Wi-Fi communication quality no longer relies on a single or qualitative judgment, but is based on a comprehensive score of multiple key parameters. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] In order to more clearly illustrate the embodiments of the present application 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 embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.
[0037] Figure 1 A flowchart of a wireless communication switching method provided in an embodiment of the present application.
[0038] Figure 2 A schematic diagram of a first process for determining a first indicator value provided in an embodiment of the present application.
[0039] Figure 3 A schematic diagram of a second process for determining a first indicator value provided in an embodiment of the present application.
[0040] Figure 4 A schematic diagram of a third process for determining a first indicator value provided in an embodiment of the present application.
[0041] Figure 5 A flowchart of another wireless communication switching method provided in an embodiment of the present application.
[0042] Figure 6 A schematic diagram of the structure of a wireless communication switching device provided in an embodiment of the present application.
[0043] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] The technical solution of the embodiment of the present application is suitable for use in various scenarios that require real-time monitoring and switching of wireless communication methods, and is suitable for various fields such as vehicles, smart homes, office environments, industrial control, etc. In the application scenario, a stable and efficient communication connection needs to be maintained between the data sending node and the data receiving node to ensure the accuracy and real-time nature of data transmission, and there are a variety of wireless communication methods including Wi-Fi to choose from between the data sending node and the data receiving node. The technical solution of the embodiment of the present application can monitor Wi-Fi communication parameters in real time, accurately evaluate the communication quality, and automatically switch to a backup wireless communication method with higher communication performance when the communication quality does not meet the preset standards, thereby ensuring that the data sending node and the receiving node always maintain the best communication state, improving the stability and reliability of communication, and meeting the needs of various application scenarios.
[0045] The technical solution provided in the embodiments of the present application can be exemplarily applied to hardware devices such as processors, electronic devices, servers (including cloud servers), or packaged into software programs to be run. When the hardware device executes the processing of the technical solution of the embodiments of the present application, or the above-mentioned software program is run, the automatic splitting of the target task and the automatic calling of the application program interface required for the task can be achieved to complete the purpose of the target task. The embodiments of the present application only exemplarily introduce the specific processing of the technical solution of the present application, and do not limit the specific implementation form of the technical solution of the present application. Any technical implementation form that can execute the processing of the technical solution of the present application can be adopted by the embodiments of the present application.
[0046] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0047] Before introducing this application solution, the relevant technologies are first introduced:
[0048] With the rapid development of wireless communication technology, Wi-Fi has become an indispensable wireless communication means in people's daily lives. However, the quality of Wi-Fi communication is not always stable and reliable. When the quality of Wi-Fi communication deteriorates, it may lead to reduced data transmission rate, increased latency, or even communication interruption, thus affecting the user's communication experience and the reliability of data transmission.
[0049] In order to deal with the problem of unstable Wi-Fi communication quality, the traditional approach is usually to rely on users to manually switch communication methods, or wait for the device to automatically reconnect to other Wi-Fi networks. However, manually switching communication methods requires users to have certain technical knowledge and operating experience, and may not be able to respond to changes in communication quality in a timely manner. Automatic device reconnection may have delays and uncertainties, and cannot guarantee immediate switching to a better communication method when needed.
[0050] In view of this, the embodiments of the present application are committed to providing a wireless communication switching method, device, equipment and vehicle, which can evaluate the Wi-Fi communication quality in real time according to Wi-Fi communication parameters and automatically switch to the optimal communication mode to ensure communication stability and reliability, which are described in detail one by one in the following embodiments.
[0051] Exemplary Methods
[0052] Figure 1 A flow chart of a wireless communication switching method provided in an embodiment of the present application. Figure 1 As shown, the method includes steps S101-S103:
[0053] S101. Calculate a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node, where the first indicator value represents a Wi-Fi communication quality between the data sending node and the data receiving node, where the Wi-Fi communication parameter includes at least one of a signal strength, an actual bandwidth requirement, a wireless frequency, a preset weak signal strength threshold, and a preset minimum bandwidth threshold.
[0054] The system first needs to collect Wi-Fi communication parameters between the data sending node and the data receiving node, wherein the Wi-Fi communication parameters include at least one of signal strength, actual bandwidth requirement, wireless frequency, preset weak signal strength threshold, and preset minimum bandwidth threshold.
[0055] The signal strength can be understood as the strength of the Wi-Fi signal. In Wi-Fi communication, the stronger the signal strength, the longer the signal transmission distance, the stronger the ability to penetrate obstacles, and thus the better the communication quality. Optionally, the signal strength can be monitored in real time through a wireless network card or a Wi-Fi chip.
[0056] The actual bandwidth requirement can be understood as the minimum bandwidth actually required for communication between the data sending node and the data receiving node. Optionally, the actual bandwidth requirement can be determined according to the type of current application or the user's operation behavior. For example, when transmitting video streams, a bandwidth of 50Mbps may be required; while when downloading files, a higher bandwidth may be required.
[0057] The wireless frequency can be understood as the frequency of electromagnetic waves between the data sending node and the data receiving node at the current moment. It determines the specific way in which the signal propagates in the air and directly affects the quality and efficiency of communication. The wireless frequency is usually expressed in Hertz (Hz). Common Wi-Fi frequency bands include 2.4GHz and 5GHz.
[0058] The preset signal strength threshold can be understood as a preset threshold related to signal strength, which is used to determine whether the Wi-Fi signal is too weak. When the signal strength is lower than the signal strength threshold, it can be considered that the Wi-Fi communication quality may be affected, so it may be necessary to consider switching to other communication methods or taking other measures to improve the communication quality.
[0059] The preset minimum bandwidth threshold can be understood as a preset value used to measure whether the actual bandwidth demand (ie, the minimum bandwidth demand) exceeds a "reasonable" range. It is a reference value, indicating the maximum bandwidth demand that the communication system can effectively handle under normal circumstances.
[0060] Optionally, step S101 is implemented based on a weighted summation processing idea, and the first index value is calculated according to the Wi-Fi communication parameter between the data sending node and the data receiving node, including: considering each Wi-Fi communication parameter as an independent evaluation index, assigning different weights according to the degree of influence of each Wi-Fi communication parameter on the communication quality, calculating the evaluation score (for example, a standardized score) of each Wi-Fi communication parameter, and then performing weighted summation on the evaluation scores of each Wi-Fi communication parameter to obtain the first index value.
[0061] Optionally, step S101 is implemented based on a processing idea of machine learning, and the first index value is calculated according to the Wi-Fi communication parameters between the data sending node and the data receiving node, including: inputting the Wi-Fi communication parameters between the data sending node and the data receiving node into a pre-trained prediction model, and the prediction model determines and outputs the first index value according to the input Wi-Fi communication parameters. In this implementation, a prediction model is pre-trained using a machine learning algorithm. During the training process, a large amount of Wi-Fi communication parameter data is used as input, and the corresponding correct first index value is used as output. By continuously adjusting the parameters and structure of the model, the model can accurately predict the Wi-Fi communication quality according to the input Wi-Fi communication parameters and output the first index value.
[0062] Optionally, step S101 can also be implemented based on fuzzy comprehensive evaluation, multi-criteria decision-making based on the analytic hierarchy process (AHP), comprehensive evaluation based on multi-objective optimization, etc., which is not limited in this application.
[0063] S102: when it is determined according to the first indicator value that the Wi-Fi communication quality meets a preset communication quality standard, determining the Wi-Fi communication as a target communication mode; and when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the preset communication quality standard, determining backup wireless communication as the target communication mode, wherein when the Wi-Fi communication quality does not meet the communication quality standard, a communication performance of the backup wireless communication is higher than a communication performance of the Wi-Fi communication.
[0064] The preset communication quality standard may be understood as a preset threshold or range, which is used to measure whether the Wi-Fi communication quality reaches an acceptable level.
[0065] The target communication mode can be understood as the communication mode selected as the best or most suitable one in the current communication environment for data transmission between the data sending node and the data receiving node. The target communication mode may be Wi-Fi communication or other backup wireless communication modes, depending on the evaluation result of the communication quality.
[0066] The backup wireless communication can be understood as an alternative communication method when the Wi-Fi communication quality does not meet the preset standards, and its communication performance (such as signal stability, bandwidth, delay, etc.) is better than the current Wi-Fi communication to ensure the continuity and reliability of data transmission, such as cellular networks, BLE connections, BLE broadcasts or other wireless communication technologies.
[0067] In step S102, the first indicator value needs to be compared with a preset communication quality standard. The comparison process may be a direct numerical comparison or may be achieved through a series of judgment conditions.
[0068] As an optional implementation manner, determining, according to the first indicator value, whether the Wi-Fi communication quality meets the preset communication quality standard includes: comparing the first indicator value with a preset indicator threshold, and if the first indicator value is greater than or equal to the preset indicator threshold, determining that the Wi-Fi communication quality meets the preset communication quality standard; if the first indicator value is less than the preset indicator threshold, determining that the Wi-Fi communication quality does not meet the preset communication quality standard.
[0069] The preset indicator threshold can be understood as a preset minimum threshold of the first indicator, which is used as a benchmark for judging whether the Wi-Fi communication quality meets the standard. If the first indicator is greater than or equal to the indicator threshold, it means that the Wi-Fi communication quality is good and can meet the application requirements; if it is less than the indicator threshold, it means that the Wi-Fi communication quality is poor and it may be necessary to switch to an alternative communication mode.
[0070] When it is determined that the Wi-Fi communication quality meets the preset communication quality standard, it can be determined that the current Wi-Fi communication environment is stable and reliable and can meet the data transmission requirements of the application. Therefore, Wi-Fi communication is determined as the target communication mode, and the data sending node and the data receiving node will continue to use Wi-Fi for communication; when it is determined that the Wi-Fi communication quality does not meet the preset communication quality standard, it means that there is a problem with the current Wi-Fi communication environment and may not be able to meet the data transmission requirements of the application. Therefore, it is necessary to determine the backup wireless communication as the target communication mode. The communication performance of the backup communication mode at the current moment is higher than that of the current Wi-Fi communication, which can ensure the continuation of data transmission and maintain a certain stability and reliability.
[0071] S103: Control the data sending node and the data receiving node to communicate according to the target communication mode.
[0072] After determining the target communication mode, the system will configure and control the data sending node and the data receiving node accordingly according to the target communication mode to ensure that data is transmitted between the data sending node and the data receiving node in accordance with the target communication mode.
[0073] Specifically, for the data sending node and the data receiving node, the system will perform necessary configurations on them according to the target communication method. After the node configuration is completed, the system will try to establish a communication link between the data sending node and the data receiving node. Once the communication link is successfully established, the system will begin to control the data sending node to transmit data to the data receiving node according to the target communication method.
[0074] The wireless communication switching method provided in the embodiment of the present application can monitor the Wi-Fi communication parameters between the data sending node and the data receiving node in real time, and calculate the first index value characterizing the Wi-Fi communication quality based on the Wi-Fi communication parameters, and then judge whether the Wi-Fi communication quality meets the preset communication quality standard based on the first index value. If it does, continue to use Wi-Fi communication as the target communication method; if it does not, automatically switch to a backup wireless communication method with higher communication performance. On the one hand, the present application can ensure that the data sending node and the receiving node always maintain the best communication state, significantly improve the stability and reliability of communication, effectively reduce the risk of communication delay and data packet loss, and improve user experience; on the other hand, the first index value integrates multiple Wi-Fi communication parameters to provide a comprehensive and accurate quantitative standard for communication quality evaluation, so that the evaluation of Wi-Fi communication quality no longer relies on a single or qualitative judgment, but is based on a comprehensive score of multiple key parameters.
[0075] As an optional implementation, Figure 2 As shown, step S101 "calculating a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node" includes steps S201-S202:
[0076] S201. Determine a first influencing factor according to the signal strength, the actual bandwidth requirement, the minimum bandwidth threshold, and a first preset function, where the first influencing factor represents a comprehensive impact of the signal strength and the actual bandwidth requirement on the Wi-Fi communication quality, and the first preset function represents a mapping relationship between a first data set and the first influencing factor, where the first data set includes signal strength, actual bandwidth requirement, and minimum bandwidth threshold.
[0077] S202. Calculate a first index value at least according to the first influencing factor.
[0078] In step S201, the first impact factor can be understood as a comprehensive evaluation index, which quantifies the combined impact of the current signal strength and the actual bandwidth requirement on the Wi-Fi communication quality.
[0079] The first preset function can be understood as a mathematical function that characterizes the first influencing factor, and characterizes the mapping relationship between the first data set consisting of signal strength, actual bandwidth requirement, and minimum bandwidth threshold and the first influencing factor. After determining the signal strength, actual bandwidth requirement, and preset minimum bandwidth threshold at the current moment, the signal strength, actual bandwidth requirement, and preset minimum bandwidth threshold at the current moment are substituted into the first preset function to determine the first influencing factor.
[0080] Optionally, the first preset function can be determined by designing an empirical formula based on a large amount of experimental data and engineering experience.
[0081] Optionally, the first preset function can be determined based on machine learning, using a machine learning algorithm to train a model based on historical data. The model can automatically learn and predict the relationship between signal strength, bandwidth requirements, minimum bandwidth threshold and the first influencing factor, that is, the first preset function.
[0082] Optionally, the first preset function is determined based on data fitting. In this implementation, the process of determining the first preset function includes steps A1-A2:
[0083] A1. Acquire multiple groups of sample data according to a preset sampling strategy, where each group of sample data includes a sample first data set and a first influencing factor corresponding to the sample first data set.
[0084] In order to ensure the representativeness and diversity of the sample data, the system will collect multiple groups of sample data according to the preset sampling strategy. Each group of sample data includes the sample first data set (i.e., signal strength n, actual bandwidth requirement m, minimum bandwidth threshold M) and the sample first influencing factor (i.e., the first influencing factor actually measured or evaluated under this group of sample data).
[0085] The sampling strategy includes one or more combinations of various sampling methods such as random sampling (randomly extracting sample data in a large number of actual communication scenarios), stratified sampling (stratified sampling according to different application scenarios (such as home, office, public places, etc.)), and time series sampling (collecting sample data in chronological order).
[0086] A2. Perform data fitting on the multiple groups of sample data to determine the first preset function.
[0087] The multiple sets of sample data acquired in step A1 are fitted to determine a fitting function, which is the first preset function. The data fitting of the multiple sets of sample data can be implemented with reference to the prior art, and this application does not limit this.
[0088] For example, select an open straight space without green belts and high-rise buildings on a certain unopened and closed road by the river, determine that the wireless interference in the surrounding 2.4G and 5G frequency bands is less than -96dbm, adjust the transmission power of the Wi-Fi hotspot, so that the experimental equipment measures the Wi-Fi signal strength from 3dbm to -90dbm, decreasing by 0.5dbm each time, and perform the following steps at each signal strength: send data from the device to the Wi-Fi hotspot, record the time from sending to receiving, and increase the data volume from 1 byte until the receiving delay is greater than 10ms, and record the data length that is closest and less than 10ms.
[0089] The data is plotted with signal strength as the horizontal axis and data length (i.e., actual bandwidth requirement) as the vertical axis to create a function graph. Substituting each set of sample data into the graph, it is found that all scattered points are approximately distributed around a certain curve, which conforms to the superposition model of natural logarithms.
[0090] Therefore, the data is fitted using the superposition model of natural logarithms. During the fitting process, the fitting functions obtained by fitting the data using the superposition model of multiple types of natural logarithms are substituted back into the original data for verification, and the fitting function with the best fit is selected as the final first preset function.
[0091] Specifically, through verification, the following fitting function has the highest consistency, and is determined as the first preset function:
[0092]
[0093] Among them, y1 is the first influencing factor, n is the signal strength, m is the actual bandwidth requirement, and M is the minimum bandwidth threshold.
[0094] In ln(|n|+1), n represents the received signal strength, which may be positive or negative, so its absolute value is taken and 1 is added to ensure that the logarithmic function is meaningful even when n=0 or is a negative number. The same is true for m (actual bandwidth requirement) in -ln(m+1).
[0095] ln(|n|+1) is a positive value, which means that as the signal strength increases, the total value will increase, and a higher signal strength will be more conducive to communication quality. However, the natural logarithm is a slowly growing function, which means that when the independent variable increases, the rate of increase of the natural logarithm will gradually slow down. For a smaller change in signal strength, the value of the expression changes more; for a larger change in signal strength, the value of the expression changes less. Therefore, when the signal strength is weak, a small enhancement can significantly improve the score; and when the signal is already strong, the additional enhancement will not significantly improve the value of the expression.
[0096] -ln(m+1) is a negative value, which means that as the actual bandwidth demand increases, the total value will decrease. It is used to punish high bandwidth demand. Higher bandwidth demand may cause network congestion, delay or other negative effects, which is not conducive to communication quality. is an exponential decay function, where e is a natural constant, m is the actual bandwidth demand, and M is the minimum bandwidth threshold, which is used to determine when the bandwidth demand is considered "excessive". This term is used to adjust the relationship between the actual bandwidth demand and the minimum bandwidth threshold, which provides a smooth way to mitigate the negative impact of high bandwidth demand on the communication score. In other words, if m is small relative to M, then this term will contribute a relatively large positive value to help offset the score drop caused by high bandwidth demand; conversely, if m is equal to or greater than M, then this term will approach 0 and no longer provide compensation. This adjustment mechanism ensures that the score will not be excessively reduced when the actual bandwidth demand is not particularly high and is within a reasonable range. At the same time, it also further increases the adverse impact of bandwidth on communication performance when the actual bandwidth demand is relatively large and exceeds the reasonable demand range (that is, greater than the minimum bandwidth threshold).
[0097] The goal of step S202 is to further calculate a first index value based on the first influencing factor. The first index value will comprehensively reflect the overall communication quality of the current Wi-Fi communication and provide a basis for subsequent communication switching decisions.
[0098] In step S202, the first impact factor may be used directly as the first index value. Alternatively, other impact factors may be introduced based on the first impact factor to perform a more comprehensive evaluation, which will be described in subsequent embodiments and will not be elaborated here.
[0099] As an optional implementation, step S101 "calculating a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node" includes steps S301-S303:
[0100] S301. Determine a first influencing factor according to the signal strength, the actual bandwidth requirement, the minimum bandwidth threshold, and a first preset function, where the first influencing factor represents a comprehensive influence of the signal strength and the actual bandwidth requirement on the Wi-Fi communication quality, and the first preset function represents a mapping relationship between a first data set and the first influencing factor, where the first data set includes signal strength, actual bandwidth requirement, and minimum bandwidth threshold.
[0101] S302. Determine a second influencing factor according to the statistical characteristics of the signal strength and the degree of influence of the wireless frequency on signal propagation, wherein the statistical characteristics of the signal strength are determined based on the signal strength, the degree of influence of the wireless frequency on signal propagation is determined based on the wireless frequency, and the second influencing factor characterizes the influence of the complexity of the communication system on the communication quality.
[0102] S303: Calculate a first index value at least according to the first influencing factor and the second influencing factor.
[0103] Step S301 corresponds to step S201 in the above embodiment. For the specific content of step S301, reference may be made to the description of step S201.
[0104] In step S302, the statistical characteristics of the signal strength refer to the change and distribution characteristics of the signal strength within a certain period of time. These statistical characteristics can help the system better understand the stability and complexity of the current communication environment.
[0105] The degree of influence of wireless frequency on signal propagation reflects the impact of frequency on signal propagation path loss, multipath effect, etc., and quantifies the impact of wireless frequency on communication performance.
[0106] By combining the statistical characteristics of signal strength and the influence of wireless frequency on signal propagation, the second influencing factor can more comprehensively evaluate the complexity of the communication system, thereby providing an important basis for the subsequent calculation of the first indicator value.
[0107] As an optional implementation method, the calculation formula of the second impact factor is:
[0108]
[0109] Among them, y2 is the second influencing factor, n is the signal strength, and f is the communication frequency.
[0110] In actual communication environments, signal strength does not change continuously, but changes in certain discrete steps. The gamma function Γ(x) is a generalization of the factorial function and can handle non-integer situations. Therefore, it can well describe the statistical characteristics of signal strength at different discrete levels. Further, through the analysis of a large amount of measured data, it is found that the gamma distribution can well fit the signal strength distribution in actual communication systems. Therefore, when determining the second influencing factor, the gamma function Γ(|n|+1) is used to quantify the statistical characteristics of signal strength, quantify the statistical complexity of signal strength, and reflect the volatility and cumulative effect of signal strength at different discrete levels. Signal strength complexity refers to a comprehensive measure of the volatility and cumulative effect of signal strength at a specific time point or time period, reflecting the randomness and uncertainty of signal strength.
[0111] In Γ(|n|+1), the absolute value of the signal strength n is first taken to ensure that a positive value is obtained even if the signal strength is negative (such as noise that may occur in some cases). Then the absolute value of n is added by 1 to avoid the input of the gamma function being 0 when n=0, which causes calculation problems. When the signal strength n is substituted into the gamma function Γ(|n|+1), a positive real number is obtained, which represents the statistical characteristics of the signal strength at the current level (i.e., statistical complexity).
[0112] Specifically, signal strength is not constant, but fluctuates over time and space. The gamma function, through its growth characteristics, is able to capture the volatility of signal strength, especially in low-value areas, where the volatility is more significant. As signal strength increases, the complexity or uncertainty of the system also increases. The gamma function, through its cumulative effect, is able to reflect the long-term trend of signal strength, especially in high-value areas, where the complexity of the system tends to stabilize.
[0113] In wireless communication, the effect of frequency on signal propagation is very important, especially for high-frequency signals, whose attenuation is more obvious, resulting in increased complexity of signal strength. However, in a physical sense, the complexity of signal propagation is not completely linear with frequency. In fact, the effect of frequency on signal propagation is gradual rather than linear. For example, although path loss is related to frequency, it does not grow strictly linearly. By introducing It can better capture the gradual effect of frequency on signal propagation, rather than simply treating it as a linear relationship, so as to more accurately evaluate the performance of the communication system. In addition, different frequencies have different effects on signal strength. Low-frequency signals are relatively stable, while high-frequency signals are more susceptible to environmental influences. It can more reasonably balance the complexity of signal strength at different frequencies and avoid overestimating the impact of high-frequency signals.
[0114] Γ(|n|+1) and They work together to form a comprehensive communication system complexity index, where Γ(|n|+1) reflects the statistical complexity of signal strength, quantifies the volatility and cumulative effect of signal strength, and focuses on the change of signal strength itself without directly considering the impact of frequency; It captures the impact of wireless frequency on signal propagation, especially high-frequency signals are more susceptible to environmental interference, resulting in increased complexity of signal strength. By adding the two together, it is possible to comprehensively consider the inherent complexity of signal strength and the external impact of wireless frequency on signal propagation, thereby more comprehensively evaluating the impact of the complexity of the communication system on communication quality.
[0115] In step S303, the goal of step S202 is to further calculate a first index value based on the first influencing factor and the second influencing factor. The first index value will comprehensively reflect the overall communication quality of the current Wi-Fi communication and provide a basis for subsequent communication switching decisions.
[0116] In step S303, optionally, the first influencing factor and the second influencing factor can be directly analyzed, and the analysis is used as the first index value. Exemplarily, the first index value is equal to the first influencing factor divided by the second influencing factor. Specifically, by dividing the first influencing factor (the impact of signal strength and actual bandwidth demand on communication quality) by the second influencing factor (the impact of the complexity of the communication system on communication quality), a relative degree of influence of the signal strength and actual bandwidth demand on communication quality after correction of the statistical characteristics of the frequency band and signal strength under different communication system complexities is obtained, thereby providing a more powerful basis for the communication quality evaluation of the communication system.
[0117] Optionally, other influencing factors may be introduced on the basis of the first influencing factor and the second influencing factor to perform a more comprehensive evaluation, which will be described in subsequent embodiments and will not be elaborated here.
[0118] As an optional implementation, step S101 "calculating a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node" includes steps S401-S404:
[0119] S401. Determine a first influencing factor according to the signal strength, the actual bandwidth requirement, the minimum bandwidth threshold, and a first preset function, where the first influencing factor represents a comprehensive influence of the signal strength and the actual bandwidth requirement on the Wi-Fi communication quality, and the first preset function represents a mapping relationship between a first data set and the first influencing factor, where the first data set includes signal strength, actual bandwidth requirement, and minimum bandwidth threshold.
[0120] S402. Determine a second influencing factor according to the statistical characteristics of the signal strength and the degree of influence of the wireless frequency on signal propagation, wherein the statistical characteristics of the signal strength are determined based on the signal strength, the degree of influence of the wireless frequency on signal propagation is determined based on the wireless frequency, and the second influencing factor characterizes the influence of the complexity of the communication system on the communication quality.
[0121] S403: Determine a third impact factor according to the signal strength and the weak signal strength threshold, where the third impact factor represents the impact of a relative value of the signal strength and the weak signal strength threshold on communication quality.
[0122] S404: Determine the first index value according to the first influencing factor, the second influencing factor, and the third influencing factor.
[0123] Step S401 corresponds to step S201 in the above embodiment, and the specific content of step S401 can refer to the description of step S201. Step S402 corresponds to step S302 in the above embodiment, and the specific content of step S402 can refer to the description of step S302.
[0124] In step S404, the weak signal strength threshold is the lowest signal strength that the communication system can accept. Signals below this threshold are considered "weak signals" and may cause a decrease in communication quality or even fail to establish a stable connection. The purpose of setting the weak signal threshold is to ensure that the communication system can take timely measures when the signal strength is too low.
[0125] The third influencing factor represents the influence of the relative value of the signal strength and the weak signal strength threshold on the communication quality, and reflects the sensitivity of the communication system to weak signals.
[0126] As an optional implementation method, the calculation formula of the third impact factor is:
[0127]
[0128] Among them, y3 is the third influencing factor, n is the signal strength, N min is the weak signal strength threshold.
[0129] Difference nN min Reflects the margin of the current signal strength relative to the weak signal strength threshold. min , it means that the signal strength is higher than the threshold and the communication quality is good; if n <N min , it means that the signal strength is lower than the threshold, the communication quality is poor, and measures may need to be taken to improve the signal quality.
[0130] nN min Divide by e 4The function of is to scale the difference between the signal strength and the weak signal threshold. In this way, the difference in signal strength can be mapped to a reasonable range to avoid the impact of excessively large or small values on subsequent calculations.
[0131] Through the above formula, the impact of the weak signal threshold is quantified as a nonlinear function, reflecting the relationship between signal strength and the weak signal threshold. When the signal strength is close to or lower than the weak signal threshold, the communication quality will be significantly affected; when the signal strength is much higher than the threshold, the communication quality is relatively stable, and the effect of further increasing the signal strength on improving the communication quality gradually decreases.
[0132] The impact of weak signal threshold is mainly used to evaluate whether the signal strength is strong enough to ensure the reliability and stability of the communication system. By introducing the weak signal threshold, timely measures can be taken when the signal strength is low to avoid communication interruption or performance degradation.
[0133] In step S404, the first influencing factor, the second influencing factor, and the third influencing factor are analyzed, and a first index value is determined based on the analysis result.
[0134] Optionally, the first indicator value = first impact factor / second impact factor+third impact factor
[0135] As an optional implementation, in step S102, “when the Wi-Fi communication quality does not meet the communication quality standard, determining the backup wireless communication as the target communication mode” includes:
[0136] When the Wi-Fi communication quality does not meet the communication quality standard, a first wireless communication method in the backup wireless communication is determined as a target communication method, and the first wireless communication method has the highest communication priority in the backup wireless communication.
[0137] In step S102, when faced with a situation where the Wi-Fi communication quality does not meet the preset communication quality standard, the system needs to adopt a strategy to determine a new target communication method. First, the system will compare the Wi-Fi communication quality data collected in real time or regularly with the preset communication quality standard. If the Wi-Fi communication quality is lower than this standard, the condition for switching the communication method is triggered. Among the backup wireless communication methods, the system will select the target communication method according to the preset communication priority. In particular, the first wireless communication method is set as the highest priority backup communication method because of its superior communication performance and high stability. Once it is determined that the Wi-Fi communication quality does not meet the standard, the system will immediately determine the first wireless communication method as the target communication method and prepare to switch the communication method.
[0138] Figure 5Another communication network switching method provided in an embodiment of the present application, in this implementation, the backup wireless communication includes multiple wireless communication modes, such as Figure 5 As shown, the method includes steps S501-S505:
[0139] S501. Calculate a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node, where the first indicator value represents a Wi-Fi communication quality between the data sending node and the data receiving node, where the Wi-Fi communication parameter includes at least one of a signal strength, an actual bandwidth requirement, a wireless frequency, a preset weak signal strength threshold, and a preset minimum bandwidth threshold.
[0140] S502: When it is determined according to the first indicator value that the Wi-Fi communication quality meets a preset communication quality standard, determine the Wi-Fi communication as a target communication mode.
[0141] S503. When it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the communication quality standard, determine a first wireless communication mode in the backup wireless communication as a target communication mode, wherein when the Wi-Fi communication quality does not meet the communication quality standard, a communication performance of the backup wireless communication is higher than a communication performance of the Wi-Fi communication, and the first wireless communication mode has the highest communication priority in the backup wireless communication.
[0142] In this implementation, the standby wireless communication includes multiple wireless communication modes, and different wireless communication modes have different communication priorities.
[0143] The communication priority can be understood as a relative importance or priority order assigned to each backup wireless communication method among multiple available backup wireless communication methods according to specific standards or conditions. When it is necessary to select a backup wireless communication method for data transmission, the system will first consider the backup wireless communication method with the highest priority. If the communication method with the highest priority is not available or does not meet the communication requirements, the system will consider the communication methods with lower priorities in turn.
[0144] The communication priority can be determined based on at least one of the factors such as the communication performance, coverage, usage cost, user preference, system strategy, etc. of each backup wireless communication method, and is specifically determined based on actual usage, which is not limited in this application.
[0145] Specifically, when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the communication quality standard, it is necessary to consider switching to the backup wireless communication. At this time, it is necessary to select the best (i.e., the one with the highest communication priority) from the backup wireless communication methods as the new target communication method, so that when Wi-Fi communication is not feasible or the quality is poor, it can be quickly switched to a more suitable communication method.
[0146] S504: When controlling the data sending node and the data receiving node to communicate according to the first wireless communication mode, obtain a first communication parameter, where the first communication parameter is used to characterize the communication quality of the first wireless communication mode.
[0147] In order to evaluate the performance of the first wireless communication method in real time, the system needs to obtain its communication parameters. When controlling the data sending node and the data receiving node to communicate according to the first wireless communication method, the system monitors the key indicators of the first wireless communication method during the communication process, such as signal strength, bit error rate, packet loss rate, delay, etc., and obtains these indicators as the first communication parameters. The first communication parameters can reflect the actual performance of the first wireless communication method in the current environment. By obtaining and analyzing the first communication parameters, the system can understand whether the communication quality of the first wireless communication method meets the preset standards or requirements, evaluate the performance of the first wireless communication method, and provide a basis for the subsequent decision on whether to switch the communication method.
[0148] As an optional implementation manner, the first wireless communication mode is BLE communication, and the first communication parameter includes at least one of the number of available channels and a channel stability index.
[0149] S505. When the first communication parameter does not meet the preset communication parameter standard, determine the second wireless communication mode in the backup wireless communication as the target communication mode, and the communication priority of the second wireless communication mode in the backup wireless communication is only lower than the communication priority of the first wireless communication mode.
[0150] When the system finds that the first communication parameter does not meet the preset communication parameter standard, it means that the performance of the first wireless communication method may have declined or become unstable. The system will select a second wireless communication method with a communication priority second only to the first wireless communication method from the backup wireless communication methods as the new target communication method. During the selection process, the system will comprehensively consider the communication performance, stability and current environmental requirements of the second wireless communication method. When the performance of the first wireless communication method declines or becomes unstable, timely switching to the suboptimal communication method in the backup can ensure the continuity and reliability of data transmission and avoid data transmission interruption or quality degradation.
[0151] As an optional implementation method, the second wireless communication method is BLE broadcast.
[0152] Exemplarily, when the first wireless communication mode is BLE communication, when any of the following conditions is met, it is determined that the first communication parameter does not meet the preset communication parameter standard, the BLE communication connection is weak, and the communication mode needs to be switched to BLE broadcast: Condition 1, the BLE communication connection is disconnected and the BLE broadcast signal strength is greater than -70dbm; Condition 2, the number of available channels in the BLE communication connection state is less than 16 (the value of the available channels can be set according to the actual usage scenario of the developer); Condition 3, the channel table that has been changed for 3 consecutive times is greater than 5 (the value can be set according to the actual usage scenario of the developer).
[0153] Furthermore, when the communication method is at a low priority, it is necessary to continuously detect and attempt to communicate using a high priority.
[0154] As an optional implementation manner, the first wireless communication mode is BLE communication, and the first communication parameter includes at least one of the number of available channels and a channel stability index.
[0155] Exemplary Devices
[0156] Corresponding to the above-mentioned wireless communication switching method, an embodiment of the present application also provides a wireless communication switching device. Figure 6 is a structural diagram of a wireless communication switching device provided in an embodiment of the present application, such as Figure 6 As shown, the wireless communication switching device provided in the embodiment of the present application includes:
[0157] A first unit 601 is configured to calculate a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node, where the first indicator value represents the Wi-Fi communication quality between the data sending node and the data receiving node, where the Wi-Fi communication parameter includes at least one of a signal strength, an actual bandwidth requirement, a wireless frequency, a preset weak signal strength threshold, and a preset minimum bandwidth threshold;
[0158] The second unit 602 is configured to determine the Wi-Fi communication as the target communication mode when it is determined according to the first indicator value that the Wi-Fi communication quality meets a preset communication quality standard, and determine the backup wireless communication as the target communication mode when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the preset communication quality standard, wherein when the Wi-Fi communication quality does not meet the communication quality standard, the communication performance of the backup wireless communication is higher than the communication performance of the Wi-Fi communication;
[0159] The third unit 603 is used to control the data sending node and the data receiving node to communicate according to the target communication mode.
[0160] The wireless communication switching device provided in the embodiment of the present application can monitor the Wi-Fi communication parameters between the data sending node and the data receiving node in real time, and calculate the first index value characterizing the Wi-Fi communication quality according to the Wi-Fi communication parameters, and then judge whether the Wi-Fi communication quality meets the preset communication quality standard according to the first index value. If it does, continue to use Wi-Fi communication as the target communication method; if it does not, automatically switch to a backup wireless communication method with higher communication performance. On the one hand, the present application can ensure that the data sending node and the receiving node always maintain the best communication state, significantly improve the stability and reliability of communication, effectively reduce the risk of communication delay and data packet loss, and improve user experience; on the other hand, the first index value integrates multiple Wi-Fi communication parameters to provide a comprehensive and accurate quantitative standard for communication quality evaluation, so that the evaluation of Wi-Fi communication quality no longer relies on a single or qualitative judgment, but is based on a comprehensive score of multiple key parameters.
[0161] Optionally, the first unit 601 may be specifically used for:
[0162] determining a first influencing factor according to the signal strength, the actual bandwidth requirement, the minimum bandwidth threshold, and a first preset function, where the first influencing factor represents a comprehensive influence of the signal strength and the actual bandwidth requirement on the Wi-Fi communication quality, and the first preset function represents a mapping relationship between a first data set and the first influencing factor, where the first data set includes signal strength, the actual bandwidth requirement, and the minimum bandwidth threshold;
[0163] A first index value is calculated based on at least the first influencing factor.
[0164] Optionally, the first unit 601 may be specifically used for:
[0165] Determine a second influencing factor according to the statistical characteristics of the signal strength and the degree of influence of the wireless frequency on signal propagation, wherein the statistical characteristics of the signal strength are determined based on the signal strength, the degree of influence of the wireless frequency on signal propagation is determined based on the wireless frequency, and the second influencing factor represents the influence of the complexity of the communication system on the communication quality;
[0166] A first index value is calculated based on at least the first influencing factor and the second influencing factor.
[0167] Optionally, the first unit 601 may be specifically used for:
[0168] Determine a third impact factor according to the signal strength and the weak signal strength threshold, wherein the third impact factor represents the impact of the relative value of the signal strength and the weak signal strength threshold on the communication quality;
[0169] The first index value is determined according to the first influencing factor, the second influencing factor, and the third influencing factor.
[0170] Optionally, the process of determining the first preset function includes:
[0171] According to a preset sampling strategy, multiple groups of sample data are obtained, each group of sample data includes a sample first data set and a first influencing factor corresponding to the sample first data set;
[0172] Data fitting is performed on the multiple groups of sample data to determine the first preset function.
[0173] Optionally, the backup wireless communication includes multiple wireless communication modes, and the third unit 603 can be specifically used for:
[0174] When the Wi-Fi communication quality does not meet the communication quality standard, a first wireless communication method in the backup wireless communication is determined as a target communication method, and the first wireless communication method has the highest communication priority in the backup wireless communication.
[0175] Optionally, the device further comprises:
[0176] A fourth unit is configured to obtain a first communication parameter when controlling the data sending node and the data receiving node to communicate in accordance with the first wireless communication mode, wherein the first communication parameter is used to characterize the communication quality of the first wireless communication mode;
[0177] The fifth unit is used to determine the second wireless communication mode in the backup wireless communication as the target communication mode when the first communication parameter does not meet the preset communication parameter standard, and the communication priority of the second wireless communication mode in the backup wireless communication is only lower than the communication priority of the first wireless communication mode.
[0178] Optionally, the first wireless communication mode is BLE communication, and the first communication parameter includes at least one of the number of available channels and a channel stability index.
[0179] The wireless communication switching device provided in this embodiment belongs to the same application concept as the wireless communication switching method provided in the above embodiments of this application, and can execute the wireless communication switching method provided in any of the above embodiments of this application, and has the corresponding functional modules and beneficial effects of executing the wireless communication switching method. For the technical details not fully described in this embodiment, please refer to the specific processing content of the wireless communication switching method provided in the above embodiments of this application, which will not be repeated here.
[0180] The functions implemented by the above first unit 601, the second unit 602 and the third unit 603 may be implemented by the same or different processors, respectively, and the embodiment of the present application is not limited thereto.
[0181] It should be understood that the units in the above devices can be implemented in the form of a processor calling software. For example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory. The processor calls the instructions stored in the memory to implement any of the above methods or realize the functions of each unit of the device, wherein the processor can be a general-purpose processor, such as a CPU or a microprocessor, etc., and the memory can be a memory in the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of hardware circuits, and the functions of some or all units can be realized by designing the hardware circuits. The hardware circuit can be understood as one or more processors; for example, in one implementation, the hardware circuit is an ASIC, and the functions of some or all of the above units are realized by designing the logical relationship of the components in the circuit; for another example, in another implementation, the hardware circuit can be implemented by PLD, taking FPGA as an example, which can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured by the configuration file, so as to realize the functions of some or all of the above units. All units of the above devices can be implemented in the form of a processor calling software, or in the form of hardware circuits, or in part by a processor calling software, and the remaining part is implemented in the form of hardware circuits.
[0182] In an embodiment of the present application, a processor is a circuit with the ability to process signals. In one implementation, the processor may be a circuit with the ability to read and run instructions, such as a CPU, a microprocessor, a GPU, or a DSP; in another implementation, the processor may implement certain functions through the logical relationship of a hardware circuit, and the logical relationship of the hardware circuit is fixed or reconfigurable, such as a hardware circuit implemented by an ASIC or PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document to implement the hardware circuit configuration can be understood as the process of the processor loading instructions to implement the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as an ASIC, such as an NPU, TPU, DPU, etc.
[0183] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method, such as: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0184] In addition, all or part of the units in the above device can be integrated together, or can be implemented independently. In one implementation, these units are integrated together and implemented in the form of a SOC. The SOC may include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device. The type of the at least one processor may be different, for example, including a CPU and an FPGA, a CPU and an artificial intelligence processor, a CPU and a GPU, etc.
[0185] Exemplary Electronic Devices
[0186] Another embodiment of the present application also provides an electronic device, see Figure 7 As shown, the device includes:
[0187] Memory 200 and processor 210;
[0188] The memory 200 is connected to the processor 210 and is used to store programs;
[0189] The processor 210 is configured to implement the wireless communication switching method disclosed in any of the above embodiments by running the program stored in the memory 200 .
[0190] Specifically, the electronic device may further include: a bus, a communication interface 220 , an input device 230 and an output device 240 .
[0191] The processor 210, the memory 200, the communication interface 220, the input device 230 and the output device 240 are connected to each other via a bus.
[0192] A bus may include a pathway that transfers information between components of a computer system.
[0193] The processor 210 may be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the scheme of the present invention. It may also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0194] The processor 210 may include a main processor, and may also include a baseband chip, a modem, and the like.
[0195] The memory 200 stores a program for executing the technical solution of the present invention, and may also store an operating system and other key services. Specifically, the program may include a program code, and the program code includes a computer operation instruction. More specifically, the memory 200 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk storage, a flash, and the like.
[0196] The input device 230 may include a device for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a light pen, a voice input device, a touch screen, a pedometer, or a gravity sensor.
[0197] Output device 240 may include devices that allow information to be output to a user, such as a display screen, printer, speaker, etc.
[0198] The communication interface 220 may include any transceiver or the like to communicate with other devices or communication networks, such as Ethernet, Radio Access Network (RAN), Wireless Local Area Network (WLAN), etc.
[0199] The processor 210 executes the program stored in the memory 200 and calls other devices, which can be used to implement each step of any wireless communication switching method provided in the above embodiments of the present application.
[0200] An embodiment of the present application also proposes a chip, which includes a processor and a data interface. The processor reads and runs a program stored in a memory through the data interface to execute the wireless communication switching method introduced in any of the above embodiments. The specific processing process and its beneficial effects can be found in the introduction to the embodiment of the above-mentioned wireless communication switching method.
[0201] Example Vehicles
[0202] Another embodiment of the present application further provides a vehicle, comprising a data sending node, a data receiving node and the electronic device as described in the above embodiment, wherein the data sending node and the data receiving node both support Wi-Fi communication and backup wireless communication.
[0203] Exemplary computer program products and storage media
[0204] In addition to the above-mentioned methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the wireless communication switching method according to various embodiments of the present application described in any of the above embodiments of this specification.
[0205] The computer program product may be written in any combination of one or more programming languages to write program codes for performing the operations of the embodiments of the present application, including object-oriented programming languages, such as Java, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0206] In addition, the embodiment of the present application may also be a storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps of the wireless communication switching method according to various embodiments of the present application described in any of the above embodiments of this specification, and specifically the following steps may be implemented:
[0207] S101. Calculate a first index value according to a Wi-Fi communication parameter between a data sending node and a data receiving node, where the first index value represents the Wi-Fi communication quality between the data sending node and the data receiving node, where the Wi-Fi communication parameter includes at least one of a signal strength, an actual bandwidth requirement, a wireless frequency, a preset weak signal strength threshold, and a preset minimum bandwidth threshold;
[0208] S102. When it is determined according to the first indicator value that the Wi-Fi communication quality meets a preset communication quality standard, the Wi-Fi communication is determined as a target communication mode; and when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the preset communication quality standard, a backup wireless communication is determined as the target communication mode, wherein when the Wi-Fi communication quality does not meet the communication quality standard, a communication performance of the backup wireless communication is higher than a communication performance of the Wi-Fi communication;
[0209] S103: Control the data sending node and the data receiving node to communicate according to the target communication mode.
[0210] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0211] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0212] The steps in the methods of each embodiment of the present application can be adjusted in order, combined and deleted according to actual needs, and the technical features recorded in each embodiment can be replaced or combined.
[0213] The modules and sub-modules in the devices and terminals of the various embodiments of the present application can be combined, divided and deleted according to actual needs.
[0214] In the several embodiments provided in the present application, it should be understood that the disclosed terminals, devices and methods can be implemented in other ways. For example, the terminal embodiments described above are only schematic, for example, the division of modules or submodules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple submodules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.
[0215] The modules or submodules described as separate components may or may not be physically separated, and the components of the modules or submodules may or may not be physical modules or submodules, that is, they may be located in one place, or they may be distributed on multiple network modules or submodules. Some or all of the modules or submodules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0216] In addition, each functional module or submodule in each embodiment of the present application may be integrated into one processing module, or each module or submodule may exist physically separately, or two or more modules or submodules may be integrated into one module. The above-mentioned integrated modules or submodules may be implemented in the form of hardware or in the form of software functional modules or submodules.
[0217] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may 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 this application.
[0218] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly by hardware, software units executed by a processor, or a combination of the two. The software units may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0219] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.
[0220] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A wireless communication switching method, characterized in that: include: Calculate a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node, where the first indicator value represents the Wi-Fi communication quality between the data sending node and the data receiving node, where the Wi-Fi communication parameter includes at least one of a signal strength, an actual bandwidth requirement, a wireless frequency, a preset weak signal strength threshold, and a preset minimum bandwidth threshold; When it is determined according to the first indicator value that the Wi-Fi communication quality meets a preset communication quality standard, the Wi-Fi communication is determined as the target communication mode; and when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the communication quality standard, the backup wireless communication is determined as the target communication mode, wherein when the Wi-Fi communication quality does not meet the communication quality standard, the communication performance of the backup wireless communication is higher than the communication performance of the Wi-Fi communication; The data sending node and the data receiving node are controlled to communicate according to the target communication mode.
2. The method according to claim 1, characterized in that: The calculating the first indicator value according to the Wi-Fi communication parameter between the data sending node and the data receiving node includes: determining a first influencing factor according to the signal strength, the actual bandwidth requirement, the minimum bandwidth threshold, and a first preset function, where the first influencing factor represents a comprehensive influence of the signal strength and the actual bandwidth requirement on the Wi-Fi communication quality, and the first preset function represents a mapping relationship between a first data set and the first influencing factor, where the first data set includes signal strength, the actual bandwidth requirement, and the minimum bandwidth threshold; A first index value is calculated based on at least the first influencing factor.
3. The method according to claim 2, characterized in that The calculating a first index value at least according to the first influencing factor includes: determining a second influencing factor according to the statistical characteristics of the signal strength and the degree of influence of the wireless frequency on signal propagation, wherein the statistical characteristics of the signal strength are determined based on the signal strength, the degree of influence of the wireless frequency on signal propagation is determined based on the wireless frequency, and the second influencing factor represents the influence of the complexity of the communication system on the Wi-Fi communication quality; A first index value is calculated based on at least the first influencing factor and the second influencing factor.
4. The method according to claim 3, characterized in that The calculating a first index value at least according to the first influencing factor and the second influencing factor includes: Determine a third influencing factor according to the signal strength and the weak signal strength threshold, where the third influencing factor represents the influence of a relative value of the signal strength and the weak signal strength threshold on the Wi-Fi communication quality; The first index value is determined according to the first influencing factor, the second influencing factor, and the third influencing factor.
5. The method according to claim 2, characterized in that: The process of determining the first preset function includes: According to a preset sampling strategy, multiple groups of sample data are obtained, each group of sample data includes a sample first data set and a first influencing factor corresponding to the sample first data set; Data fitting is performed on the multiple groups of sample data to determine the first preset function.
6. The method according to any one of claims 1 to 5, characterized in that: The backup wireless communication includes multiple wireless communication modes, and when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the communication quality standard, determining the backup wireless communication as the target communication mode includes: When it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the communication quality standard, a first wireless communication method in the backup wireless communication is determined as a target communication method, and the first wireless communication method has the highest communication priority in the backup wireless communication.
7. The method according to claim 6, characterized in that The method further comprises: When controlling the data sending node and the data receiving node to communicate in accordance with the first wireless communication mode, obtaining a first communication parameter, where the first communication parameter is used to characterize the communication quality of the first wireless communication mode; When the first communication parameter does not meet the preset communication parameter standard, the second wireless communication mode in the backup wireless communication is determined as the target communication mode, and the communication priority of the second wireless communication mode in the backup wireless communication is only lower than the communication priority of the first wireless communication mode.
8. The method according to claim 6, characterized in that The first wireless communication mode is BLE communication, and the first communication parameter includes at least one of the number of available channels and a channel stability index.
9. A wireless communication switching device, characterized in that: include: A first unit, configured to calculate a first indicator value according to a Wi-Fi communication parameter between a data sending node and a data receiving node, wherein the first indicator value represents a Wi-Fi communication quality between the data sending node and the data receiving node, wherein the Wi-Fi communication parameter includes at least one of a signal strength, an actual bandwidth requirement, a wireless frequency, a preset weak signal strength threshold, and a preset minimum bandwidth threshold; a second unit, configured to determine Wi-Fi communication as the target communication mode when it is determined according to the first indicator value that the Wi-Fi communication quality meets a preset communication quality standard, and to determine backup wireless communication as the target communication mode when it is determined according to the first indicator value that the Wi-Fi communication quality does not meet the communication quality standard, wherein when the Wi-Fi communication quality does not meet the communication quality standard, the communication performance of the backup wireless communication is higher than the communication performance of the Wi-Fi communication; The third unit is used to control the data sending node and the data receiving node to communicate according to the target communication mode.
10. An electronic device, characterized in that: including memory and processor; The memory is connected to the processor and is used to store programs; The processor is used to implement the wireless communication switching method according to any one of claims 1 to 8 by running the program in the memory.
11. A vehicle, characterized in that: It comprises a data sending node, a data receiving node and the electronic device as claimed in claim 10, wherein the data sending node and the data receiving node both support Wi-Fi communication and backup wireless communication.
Citation Information
Patent Citations
Method, system and device for switching between networks
CN101296481A
Network switching method, mobile terminal and computer readable storage medium
CN107318140A
Network switching method, storage medium and electronic equipment
CN113099497A
Wireless network switching method and electronic equipment
CN116709442A
Communication terminal apparatus and handover method thereof
KR101549035B1