Data communication method and device, intelligent equipment and storage medium
By acquiring the indicator data of the communication channel to calculate the quality score and dynamically selecting the target main channel, the problem of the inability to respond to performance degradation in a timely manner in the existing technology is solved, and more stable and reliable data transmission is achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2025-12-25
- Publication Date
- 2026-05-01
AI Technical Summary
Existing data communication solutions cannot respond in a timely manner when the bandwidth of the main channel drops sharply and the latency soars due to signal interference, network congestion, or other reasons, resulting in the loss or delay of control commands and a poor user experience.
By acquiring communication indicator data from multiple communication channels during the monitoring period, calculating the communication quality score for each channel, and dynamically selecting the channel with the best communication quality as the target primary channel for data transmission, disaster prediction and switching can be achieved.
It reduces the probability of data packet loss and transmission delay, improves the stability and reliability of the communication system, and ensures the quality of control command transmission at critical moments.
Smart Images

Figure CN121968241A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of data communication technology, and in particular to a data communication method, apparatus, smart device, and storage medium. Background Technology
[0002] Currently, remote control of smart devices (such as smart home appliances, smart security sensors, and industrial controllers) heavily relies on network connectivity. To improve connection reliability, existing technologies commonly employ dual-network channel backup solutions, specifically by configuring different antennas and WiFi enhancement devices to expand signal coverage and ensure compatibility with a large number of devices. However, these existing solutions suffer from rigid switching mechanisms and cannot prevent performance degradation. Most solutions only switch when the main channel is completely disconnected (e.g., link interruption), essentially a "post-disaster" remedy. When the main channel experiences performance degradation due to signal interference, network congestion, or other reasons leading to a sudden drop in bandwidth and a spike in latency, but without complete disconnection, the system cannot respond, resulting in lost or delayed control commands at critical moments and a poor user experience. Summary of the Invention
[0003] This application provides a data communication method, apparatus, smart device, and storage medium to address the shortcomings of existing data communication solutions, which are post-disaster remedies and cannot prevent performance degradation.
[0004] In a first aspect, this application provides a data communication method, the method comprising: Acquire communication indicator data of multiple different communication channels during the monitoring period, wherein the start / stop status of the multiple communication channels is different; Based on the communication indicator data corresponding to each communication channel, determine the communication quality score of each communication channel; The target main communication channel is determined based on the communication quality scores of each of the aforementioned communication channels; The target data packet is transmitted using the target main communication channel.
[0005] Optionally, acquiring communication indicator data for multiple different communication channels within the monitoring period includes: Get the communication latency, jitter, and packet loss rate of the current primary communication channel that is enabled and the current backup communication channel that is disabled during the monitoring period; The communication delay, jitter, and packet loss rate of the current primary communication channel and the current backup communication channel during the monitoring period are normalized to obtain the communication delay parameter, jitter parameter, and packet loss rate parameter corresponding to the current primary communication channel and the current backup communication channel, respectively. The communication indicator data includes the communication delay parameter, jitter parameter, and packet loss rate parameter.
[0006] Optionally, determining the communication quality score for each communication channel based on the communication indicator data corresponding to each communication channel includes at least one of the following: The communication quality score of each communication channel is determined by multiplying the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel. The communication quality score of each communication channel is determined based on the sum of the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel. The communication quality score of each communication channel is determined by weighted sum of the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel.
[0007] Optionally, determining the communication quality score for each communication channel based on the communication indicator data corresponding to each communication channel includes: The delay ratio is determined based on the ratio between the communication delay parameter corresponding to the communication channel and the delay threshold. The jitter ratio is determined based on the ratio between the communication jitter parameter corresponding to the communication channel and the jitter threshold. The packet loss ratio is determined based on the ratio between the communication packet loss rate parameter corresponding to the communication channel and the packet loss rate threshold. Based on the weighting coefficients corresponding to the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter, the delay ratio, jitter ratio, and packet loss rate ratio are weighted and summed to obtain the communication quality score of the communication channel.
[0008] Optionally, determining the target primary communication channel based on the communication quality scores of each of the communication channels includes at least one of the following: When the communication quality score of the current primary communication channel is less than the preset score, and the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel is less than or equal to the preset difference, the current primary communication channel is determined as the target primary communication channel. When the communication quality score of the current main communication channel is greater than or equal to the preset score, or when at least one parameter in the communication indicator data corresponding to the current main communication channel is greater than or equal to the corresponding parameter threshold, the current backup communication channel is determined as the target main communication channel. When the communication quality score of the current primary communication channel is less than a preset score, and the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel is greater than a preset difference, the current backup communication channel is determined as the target primary communication channel.
[0009] Optionally, after determining the current backup communication channel as the target primary communication channel when the communication quality score of the current primary communication channel is greater than or equal to a preset score, or when at least one parameter in the communication indicator data is greater than or equal to a corresponding parameter threshold, the method further includes: When the communication quality score of the current backup communication channel is greater than the preset score, or when at least one parameter in the communication indicator data corresponding to the current backup communication channel is greater than or equal to the corresponding parameter threshold, the communication service level of the target main communication channel is reduced, and a channel abnormality alarm message is output.
[0010] Optionally, after reducing the communication service level of the target primary communication channel and outputting channel anomaly alarm information when the communication quality score of the current backup communication channel is greater than a preset score, or when at least one parameter in the communication indicator data corresponding to the current backup communication channel is greater than or equal to the corresponding parameter threshold, the method further includes: When the communication quality score of the target primary communication channel is detected to be less than a preset score, and the difference between the communication quality score of the backup communication channel and the communication quality score of the target primary communication channel is less than or equal to a preset difference, the communication service level of the target primary communication channel is restored.
[0011] Secondly, this application provides a data communication device, the device comprising: The acquisition module is used to acquire communication indicator data of multiple different communication channels during the monitoring period, wherein the start / stop status of the multiple communication channels is different; The scoring module is used to determine the communication quality score of each communication channel based on the communication indicator data corresponding to each communication channel. The determination module is used to determine the target main communication channel based on the communication quality scores of each of the communication channels; The transmission module is used to transmit target data packets using the target main communication channel.
[0012] Thirdly, this application provides an intelligent device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the above-described data communication method.
[0013] Fourthly, this application also provides a computer storage medium storing computer-executable instructions for executing the above-described data communication method.
[0014] Compared with the prior art, the technical solution provided in this application has the following advantages: The method provided in this application acquires communication indicator data of multiple different communication channels within a monitoring period, wherein the start / stop states of the multiple communication channels are different; determines the communication quality score of each communication channel based on the communication indicator data corresponding to each communication channel; determines the target main communication channel based on the communication quality score of each communication channel; and transmits the target data packet using the target main communication channel.
[0015] Based on the above method, by acquiring communication index data of each communication channel during the monitoring period, the communication quality score of each communication channel is calculated. The communication quality score is used to achieve pre-disaster prediction, thereby judging the performance degradation of the communication channel, and then selecting the communication channel with better communication quality as the target main communication channel. The target data packet is transmitted using the target main communication channel with the best communication quality, which greatly reduces the probability of data packet loss and transmission delay. Attached Figure Description
[0016] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, for those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0018] One or more embodiments are illustrated by way of example with reference numerals in the accompanying drawings. These illustrations do not constitute a limitation on the embodiments. Elements with the same reference numerals in the drawings are denoted as similar elements. Unless otherwise stated, the figures in the drawings are not to be limited by scale.
[0019] Figure 1 A flowchart illustrating a data communication method provided in an embodiment of this application; Figure 2 A flowchart illustrating a data communication method provided in an embodiment of this application; Figure 3 A structural block diagram of a data communication device provided in an embodiment of this application; Figure 4 This is a schematic diagram of the internal structure of a smart device provided in an embodiment of this application. Detailed Implementation
[0020] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0021] The following disclosure provides numerous different embodiments or examples for implementing various structures of the invention. To simplify the disclosure, specific examples of components and arrangements are described below. These are merely examples and are not intended to limit the scope of the invention. Furthermore, reference numerals and / or letters may be repeated in different examples. Such repetition is for simplification and clarity and does not in itself indicate a relationship between the various embodiments and / or arrangements discussed.
[0022] In one embodiment, Figure 1 This is a flowchart illustrating a data communication method in one embodiment, with reference to... Figure 1 This paper provides a data communication method. This embodiment primarily illustrates the application of this method to smart devices, such as smart home appliances, smart security sensors, and industrial controllers. The data communication method specifically includes the following steps: Step S210: Obtain communication indicator data of multiple different communication channels during the monitoring period, wherein the start / stop status of the multiple communication channels is different.
[0023] Specifically, communication metrics data are used to represent the communication performance of communication channels during the monitoring period, thereby reflecting the communication quality of the channels and enabling preventative prediction of performance degradation for each channel. Multiple communication channels have different start / stop states; that is, only one communication channel is in an enabled state, while the others are in a disabled state. The enabled channel serves as the primary communication channel, and the disabled channels serve as backup channels. Each communication channel corresponds to a communication interface of a specific communication type; for example, the first communication channel corresponds to a WiFi wireless interface, and the second communication channel corresponds to an Ethernet wired interface.
[0024] Step S220: Determine the communication quality score of each communication channel based on the communication index data corresponding to each communication channel.
[0025] Specifically, communication indicator data includes multiple different communication indicator parameters, and a communication quality score for the communication channel is calculated based on these parameters. This multi-parameter-based approach to calculating communication quality scores provides a more comprehensive and accurate reflection of the actual condition of the communication channel. A single communication indicator parameter often only reflects one aspect of the communication channel's characteristics, while considering multiple different parameters together is like performing a three-dimensional scan of the communication channel from multiple dimensions, avoiding misjudgments caused by incomplete information. For example, when calculating the score, parameters such as signal strength, signal interference rate, and packet loss rate are considered simultaneously. When the signal strength is high but the packet loss rate is also high, it can be determined that although the communication channel appears to have a strong signal, there are actual communication stability issues, thus yielding a communication quality score that more accurately reflects the actual situation. This helps communication systems to promptly identify potential communication faults and hidden dangers, take proactive measures for optimization and repair, improve communication reliability and stability, and provide users with better communication services.
[0026] The method of calculating communication quality scores using multiple parameters can be combined with artificial intelligence algorithms. Machine learning models can be used to learn and analyze large amounts of communication indicator data and corresponding communication quality scores, thereby establishing a more accurate communication quality prediction model. This model can not only calculate the communication quality score of communication channels in real time, but also predict communication quality over a future period, providing a basis for the rational allocation and scheduling of communication resources.
[0027] Step S230: Determine the target main communication channel based on the communication quality score of each of the communication channels.
[0028] In practical implementation, the first step is to construct a communication quality score database to store the communication quality scores of each communication channel, ensuring data integrity and accuracy. Next, a data filtering algorithm is developed. This algorithm iterates through all communication channel score data in the database, sorting the scores from highest to lowest. Efficient sorting algorithms such as quicksort or mergesort can be used to improve sorting efficiency. After sorting, a score threshold is set, which can be dynamically adjusted according to actual business needs and network environment. Communication channels with scores higher than this threshold are selected as candidate primary communication channels. To further ensure the stability and reliability of the target primary communication channels, real-time monitoring of the candidate primary communication channels is also required. A real-time monitoring module is developed, which continuously collects real-time communication data of the candidate primary communication channels, such as signal strength, packet loss rate, and latency, and dynamically evaluates the communication quality of the candidate primary communication channels based on this real-time data.
[0029] Simultaneously, a communication quality assessment model is established. This model can employ machine learning algorithms, such as neural networks and decision trees, to predict and evaluate the communication quality of candidate primary communication channels based on historical communication data and real-time monitoring data. Based on the real-time monitoring and assessment results, the channel with the most stable communication quality and the highest score is selected as the target primary communication channel.
[0030] Step S240: Transmit the target data packet using the target main communication channel.
[0031] Specifically, by acquiring communication index data of each communication channel during the monitoring period, the communication quality score of each communication channel is calculated. The communication quality score is used to achieve pre-disaster prediction, thereby judging the performance degradation of the communication channel, and then selecting the communication channel with better communication quality as the target main communication channel. The target data packet is transmitted using the target main communication channel with the best communication quality, which greatly reduces the probability of data packet loss and transmission delay.
[0032] In one embodiment, acquiring communication indicator data for multiple different communication channels within a monitoring period includes: Get the communication latency, jitter, and packet loss rate of the current primary communication channel that is enabled and the current backup communication channel that is disabled during the monitoring period; The communication delay, jitter, and packet loss rate of the current primary communication channel and the current backup communication channel during the monitoring period are normalized to obtain the communication delay parameter, jitter parameter, and packet loss rate parameter corresponding to the current primary communication channel and the current backup communication channel, respectively. The communication indicator data includes the communication delay parameter, jitter parameter, and packet loss rate parameter.
[0033] Specifically, communication latency refers to the time it takes for data to travel from the sender to the receiver. The monitoring device sends a specific test data packet at the sender and records the sending time; when the receiver receives the packet, it records the receiving time. The difference between these two times is the communication latency. During the monitoring period, test data packets are sent multiple times, and the latency is recorded. The average value is then taken as the communication latency for that monitoring period.
[0034] Communication jitter refers to the variation in latency between adjacent data packets. Monitoring equipment records the latency of each test data packet and calculates the difference in latency between adjacent data packets. Within a monitoring period, the standard deviation of these differences is calculated as the communication jitter for that monitoring period.
[0035] The packet loss rate refers to the ratio of the number of data packets lost to the total number of data packets sent during a monitoring period. Monitoring equipment records the total number of data packets sent and the number of data packets received; the difference between these two is the number of lost data packets. By calculating the ratio of lost data packets to the total number of sent data packets, the packet loss rate for that monitoring period is obtained.
[0036] After obtaining the communication delay, jitter, and packet loss rate of the primary and backup communication channels, these data need to be normalized for subsequent analysis and comparison. The purpose of normalization is to map communication metrics data from different ranges to a unified range, typically [0,1]. The normalized communication delay, jitter, and packet loss rate parameters can be directly compared and analyzed, providing a strong basis for subsequent communication channel switching decisions. For example, if the normalized packet loss rate of the primary communication channel is significantly higher than that of the backup communication channel, and other metrics are also poor, then switching to the backup communication channel can be considered to improve communication stability and reliability.
[0037] In one embodiment, determining the communication quality score of each communication channel based on the communication indicator data corresponding to each communication channel includes at least one of the following: The communication quality score of each communication channel is determined by multiplying the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel. The communication quality score of each communication channel is determined based on the sum of the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel. The communication quality score of each communication channel is determined by weighted sum of the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel.
[0038] Specifically, the communication quality score is determined by multiplying the communication index parameters, which involves multiplying the communication delay parameter, jitter parameter, and packet loss rate parameter for each communication channel. Assuming a communication channel has a communication delay parameter of 10 milliseconds, a jitter parameter of 2 milliseconds, and a packet loss rate of 0.01 (i.e., 1%), then multiplying these three parameters yields 10 × 2 × 0.01 = 0.2. This 0.2 is the communication quality score for that communication channel. By performing this calculation on all communication channels, the communication quality score for each channel can be obtained. Based on these scores, the communication quality of different communication channels can be directly compared. The lower the score, the better the communication quality of the channel, because the communication delay, jitter, and packet loss rate are relatively low; conversely, the higher the score, the worse the communication quality.
[0039] The communication quality score is determined by summing the communication indicator parameters, namely, the communication delay parameter, the communication jitter parameter, and the communication packet loss rate parameter. For example, if a communication channel has a communication delay parameter of 8 milliseconds, a communication jitter parameter of 1.5 milliseconds, and a packet loss rate parameter converted to a percentage (0.8% corresponds to 0.008), then adding these three parameters together: 8 + 1.5 + 0.008 = 9.508. This 9.508 is the communication quality score for that communication channel. After calculating the communication quality scores for all communication channels in this way, the communication quality of each channel can be compared. The lower the score, the higher the communication quality; conversely, the higher the score, the lower the communication quality. Compared to the product method, this method places more emphasis on the comprehensive consideration of each parameter, with each parameter having an equal weight in the score.
[0040] A weighted sum of communication metrics parameters is used to determine the communication quality score. In some cases, different communication metrics parameters may have varying degrees of impact on communication quality. For example, for applications with high real-time requirements, such as video conferencing and online games, the communication latency parameter may have a greater impact; while for applications with high data transmission reliability requirements, the packet loss rate parameter is more critical. Therefore, different weights can be assigned to the communication latency parameter, communication jitter parameter, and communication packet loss rate parameter according to the actual application scenario. Assume that in a specific application scenario, the weight of the communication latency parameter is 0.6, the weight of the communication jitter parameter is 0.2, and the weight of the communication packet loss rate parameter is 0.2. First, collect these three parameters for each communication channel, then multiply each parameter by its corresponding weight, and finally sum the results. For example, the communication latency parameter for a certain communication channel is 12 milliseconds, the communication jitter parameter is 2.5 milliseconds, and the communication packet loss rate parameter is 0.015 (i.e., 1.5%). The calculation process is as follows: the weighted value of the communication delay parameter is 12 × 0.6 = 7.2, the weighted value of the communication jitter parameter is 2.5 × 0.2 = 0.5, and the weighted value of the communication packet loss rate parameter is 0.015 × 0.2 = 0.003. Adding these three weighted values together: 7.2 + 0.5 + 0.003 = 7.703. This 7.703 is the communication quality score of the communication channel. This weighted summation method more accurately reflects the impact of different communication indicators on communication quality in different application scenarios. Similarly, the lower the score, the better the communication quality of the communication channel.
[0041] These three methods for determining communication quality scores each have their unique advantages and applicable scenarios. The product method is simple and direct in calculation, and can highlight communication quality problems when multiple indicators are poor simultaneously. When any one of the parameters—communication latency, jitter, and packet loss rate—is large, the final score will increase significantly, thus clearly reflecting that the communication channel may have serious communication problems, making it easier to quickly locate channels that perform poorly in multiple aspects.
[0042] The parameter summation method comprehensively considers all parameters, avoiding the excessive influence of a single parameter on the score. It can more comprehensively evaluate the overall performance of the communication channel and is particularly suitable for scenarios where the importance of each parameter is relatively balanced. This method can provide a relatively fair evaluation of communication quality, ensuring that the performance of each communication channel on different indicators is reflected in the score, which helps to select the channel with better overall performance from multiple communication channels.
[0043] The weighted sum method is the most effective, as it fully considers the varying degrees of influence of different communication metrics under different application scenarios. By assigning appropriate weights to different parameters, it can accurately reflect the key factors of communication quality in practical applications. In applications with high real-time requirements, increasing the weight of the communication latency parameter allows the score to more accurately reflect the impact of latency on communication quality, thereby helping users choose a more suitable channel for real-time communication. In scenarios with high data transmission reliability requirements, increasing the weight of the packet loss rate parameter ensures that the score focuses more on the stability of data transmission, providing users with more reliable communication options.
[0044] Furthermore, the weighted sum method offers high flexibility and customizability. As application scenarios change or communication needs adjust, the weights of each parameter can be adjusted at any time to adapt to different technical requirements. This allows communication quality scores to be better integrated with practical applications, improving the performance of communication systems and user experience. Simultaneously, the communication quality scores obtained through these three methods can also be used for the optimization and adjustment of communication systems. For example, communication channels can be optimized based on the score results, or more suitable communication protocols and technologies can be selected to improve the overall communication quality and stability of the communication network.
[0045] In one embodiment, determining the communication quality score of each communication channel based on the communication indicator data corresponding to each communication channel includes: The delay ratio is determined based on the ratio between the communication delay parameter corresponding to the communication channel and the delay threshold. The jitter ratio is determined based on the ratio between the communication jitter parameter corresponding to the communication channel and the jitter threshold. The packet loss ratio is determined based on the ratio between the communication packet loss rate parameter corresponding to the communication channel and the packet loss rate threshold. Based on the weighting coefficients corresponding to the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter, the delay ratio, jitter ratio, and packet loss rate ratio are weighted and summed to obtain the communication quality score of the communication channel.
[0046] Specifically, the communication delay parameter of each collected communication channel is divided by a pre-set delay threshold to obtain the delay ratio of that communication channel, which is L / L_max. For example, if the communication delay parameter of a communication channel is 50ms and the delay threshold is 100ms, then the delay ratio is 50 / 100 = 0.5. Similarly, the communication jitter parameter of the communication channel is divided by the jitter threshold to obtain the jitter ratio, which is J / J_max. Assuming the communication jitter parameter of the communication channel is 20ms and the jitter threshold is 30ms, then the jitter ratio is 20 / 30 ≈ 0.67. The packet loss rate parameter of the communication channel is divided by the packet loss rate threshold to obtain the packet loss rate ratio, which is P / P_max. If the communication packet loss rate parameter is 5% and the packet loss rate threshold is 10%, then the packet loss rate ratio is 5% / 10% = 0.5.
[0047] Based on the pre-set weighting coefficients corresponding to the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter, the calculated delay ratio, jitter ratio, and packet loss rate ratio are weighted and summed to obtain the communication quality score, Q_score = w_L*(L / L_max) + w_J*(J / J_max) + w_P*(P / P_max), where w_L, w_J, and w_P are the weighting coefficients for delay, jitter, and packet loss rate, respectively, and satisfy w_L + w_J + w_P = 1. Assuming the weighting coefficient for the communication delay parameter is 0.5, the weighting coefficient for the communication jitter parameter is 0.3, and the weighting coefficient for the communication packet loss rate parameter is 0.2, then the communication quality score for this communication channel = delay ratio × 0.5 + jitter ratio × 0.3 + packet loss rate ratio × 0.2. Substituting the previously calculated ratio into the formula, we get the communication quality score = 0.5 × 0.5 + 0.67 × 0.3 + 0.5 × 0.2 = 0.25 + 0.201 + 0.1 = 0.551. Repeat the above steps to calculate the communication quality score for all communication channels, obtaining the score for each channel.
[0048] This technical solution comprehensively and accurately assesses communication channel quality by considering multiple communication metrics, such as communication latency, jitter, and packet loss rate, and then weighting and summing them. Compared to evaluation methods that consider only a single metric, this solution more realistically reflects the performance of the communication channel in actual use. Representing the quality of the communication channel with a specific numerical value (communication quality score) provides a quantitative basis for the management and optimization of the communication system. System administrators can quickly identify channels with poor communication quality based on these scores and take corresponding optimization measures, such as adjusting network configuration or replacing communication equipment.
[0049] By setting different weighting coefficients, the importance of various communication indicators can be flexibly adjusted according to the different communication quality requirements of different application scenarios. For example, for voice and video communication applications with high real-time requirements, the weighting coefficient of the communication latency parameter can be increased; for file transfer applications with high data transmission stability requirements, the weighting coefficient of the packet loss rate parameter can be increased. This makes the evaluation results more consistent with the needs of actual applications, improving the adaptability and reliability of the communication system.
[0050] Because this solution can collect communication indicator data and calculate communication quality scores in real time, it can monitor the quality of communication channels in real time. Once a decline in the communication quality score is detected, the system can issue an alarm in a timely manner and automatically take optimization measures to ensure the stable operation of the communication system and reduce service interruptions and losses caused by communication failures.
[0051] In one embodiment, refer to Figure 2 The determination of the target primary communication channel based on the communication quality scores of each of the communication channels includes at least one of the following: When the communication quality score of the current primary communication channel is less than the preset score, and the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel is less than or equal to the preset difference, the current primary communication channel is determined as the target primary communication channel. When the communication quality score of the current main communication channel is greater than or equal to the preset score, or when at least one parameter in the communication indicator data corresponding to the current main communication channel is greater than or equal to the corresponding parameter threshold, the current backup communication channel is determined as the target main communication channel. When the communication quality score of the current primary communication channel is less than a preset score, and the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel is greater than a preset difference, the current backup communication channel is determined as the target primary communication channel.
[0052] Specifically, the preset score can be 1, 1.5, 2, etc. In this embodiment, the preset score is set to 1. When the communication quality score of the current primary communication channel is detected to be lower than the preset score, the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel will be further calculated. If the difference is less than or equal to the preset difference, it indicates that the communication quality of the current primary communication channel is better, and the backup communication channel does not have a significant quality advantage over the primary communication channel. In this case, the current primary communication channel will continue to be identified as the target primary communication channel, and the primary communication channel will continue to be used for data transmission.
[0053] If the communication quality score of the current main communication channel is greater than or equal to the preset score, or if at least one parameter in the communication indicator data of the current main communication channel is greater than or equal to the corresponding parameter threshold, such as the communication delay parameter, communication jitter parameter, or communication packet loss rate parameter being greater than or equal to the corresponding parameter threshold (i.e., L≥L_max or J≥J_max or P≥P_max), then it is considered that the current main communication channel may have an abnormal situation or poor communication quality. In this case, the current backup communication channel will be identified as the target main communication channel, and the main communication channel will be switched over, with the backup channel taking over the main data transmission task.
[0054] If the communication quality score of the current primary communication channel is lower than the preset score, and the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel is greater than the preset difference, it indicates that the communication quality of the current primary communication channel is poor, while the communication quality of the backup communication channel is significantly better than that of the primary communication channel. In this case, the system will identify the current backup communication channel as the target primary communication channel and complete the switch of the primary communication channel to ensure the quality and stability of data transmission.
[0055] By monitoring communication quality scores and metrics in real time, and intelligently determining the primary communication channel based on various conditions, the system can promptly select a more suitable channel for data transmission when the primary channel experiences communication quality issues or anomalies. This avoids data transmission interruptions or instability caused by communication channel failures, thereby improving the overall stability of the communication system. The system dynamically switches between primary and backup communication channels based on their actual conditions. When the backup channel's communication quality is significantly better than the primary channel, it can be promptly switched to the primary channel, ensuring more efficient use of communication resources and improving the overall performance of the communication system. By comprehensively considering communication quality scores and metrics, the system can more comprehensively and accurately evaluate the performance of communication channels. When the communication quality of a channel does not meet requirements, adjustments are made promptly to ensure data transmission through a high-quality channel, reducing transmission errors and delays, and guaranteeing communication quality.
[0056] In one embodiment, refer to Figure 2 After determining the current backup communication channel as the target primary communication channel when the communication quality score of the current primary communication channel is greater than or equal to a preset score, or when at least one parameter in the communication indicator data is greater than or equal to the corresponding parameter threshold, the method further includes: When the communication quality score of the current backup communication channel is greater than the preset score, or when at least one parameter in the communication indicator data corresponding to the current backup communication channel is greater than or equal to the corresponding parameter threshold, the communication service level of the target main communication channel is reduced, and a channel abnormality alarm message is output.
[0057] Specifically, when the communication quality score of the current primary communication channel is greater than or equal to a preset score, or when at least one parameter in the communication metrics data is greater than or equal to the corresponding threshold, the current backup communication channel will be designated as the target primary communication channel. This means that in the event of a failure or anomaly in the current primary communication channel, a forced switch will be performed, changing the currently used channel from the primary to the backup channel. Subsequently, the communication quality of the current backup communication channel (which has now become the target primary communication channel) will be continuously evaluated, its communication quality score will be calculated, and its corresponding communication metrics data will be monitored in real time. If the communication quality score of the current backup communication channel is greater than the preset score, or if at least one parameter in its corresponding communication indicator data is greater than or equal to the corresponding parameter threshold, it indicates that the communication quality of the current backup communication channel is also poor. In this case, the communication service level of the target primary communication channel will be reduced. For example, the service level of the original high-level channel will be adjusted to a lower-level channel, and the resource allocation to the channel will be reduced. Reducing the communication service level involves lowering the service quality parameters, reducing resource quotas, or simplifying functions of the communication channel to maintain the overall network availability of smart devices. Specific ways to reduce the communication service level include: reducing communication bandwidth, reducing communication rate, relaxing the latency threshold for non-real-time services, reducing the error rate of data loss, lowering the scheduling priority of ordinary users, and downgrading the channel type (such as downgrading from a 5G NR channel to an LTE channel; switching from a dedicated link to a shared link). At the same time, the system will trigger an alarm mechanism and output channel abnormality alarm information. This alarm information can be output in various ways, such as popping up a prompt box on the monitoring interface, sending SMS or email to relevant maintenance personnel, etc.
[0058] By monitoring and evaluating the communication quality score and communication indicator data of communication channels in real time, potential anomalies can be detected promptly. When an anomaly is detected in the target primary communication channel after channel switching, reducing its communication service level can prevent excessive allocation of critical communication services to potentially problematic channels, thereby ensuring the reliability and stability of the overall communication system. Simultaneously, outputting channel anomaly alarm information can promptly notify relevant personnel to inspect and handle the abnormal channel, reducing the impact of faults on the communication system and improving its operational efficiency.
[0059] In one embodiment, after reducing the communication service level of the target primary communication channel and outputting a channel anomaly alarm information when the communication quality score of the current backup communication channel is greater than a preset score, or when at least one parameter in the communication indicator data corresponding to the current backup communication channel is greater than or equal to the corresponding parameter threshold, the method further includes: When the communication quality score of the target primary communication channel is detected to be less than a preset score, and the difference between the communication quality score of the backup communication channel and the communication quality score of the target primary communication channel is less than or equal to a preset difference, the communication service level of the target primary communication channel is restored.
[0060] Specifically, the primary communication channel is used to transmit critical business data, while multiple backup communication channels are used for emergency purposes. The communication quality of both the primary and backup communication channels is monitored and scored in real time. The communication quality score is derived by comprehensively considering multiple parameters in the communication metrics data, such as bandwidth utilization, packet loss rate, and latency.
[0061] When the communication quality score of the current backup communication channel is detected to be greater than 1, or at least one parameter in the communication indicator data corresponding to the current backup communication channel is greater than or equal to the corresponding parameter threshold, the communication service level of the target primary communication channel will be automatically reduced. For example, services that were originally of the highest priority will be adjusted to the second highest priority, and the amount of critical business data transmitted through the target primary communication channel will be reduced. At the same time, a channel anomaly alarm message will be output to notify the network administrator that there may be an anomaly in the target primary communication channel and that it needs to be monitored.
[0062] During subsequent monitoring, when the communication quality score of the target primary communication channel is less than 1, and the difference between the communication quality score of the backup communication channel and the communication quality score of the target primary communication channel is less than or equal to the preset difference, it indicates that the communication quality of the target primary communication channel has been restored to an excellent state. The communication service level of the target primary communication channel will be automatically restored to its original highest priority, and the amount of critical business data transmitted through the target primary communication channel will be increased again.
[0063] By monitoring the communication quality and performance data of the communication channels in real time, the service level of the primary communication channel is promptly reduced when the backup communication channel quality is good, avoiding service interruptions caused by primary channel anomalies. When the primary channel communication quality recovers to a certain level, its service level is promptly restored, ensuring that critical business data can be transmitted in the most suitable channel and improving the stability of the entire communication network. Output channel anomaly alarm information can promptly notify network administrators, allowing them to promptly check and maintain the primary communication channel, preventing potential communication failures from worsening. Dynamically adjusting the service level based on the actual quality of the communication channels enables more rational allocation and utilization of communication resources, improving resource utilization efficiency.
[0064] The aforementioned primary / backup communication channel switching logic explicitly specifies that data packets for a specific target will be routed to the newly selected optimal physical port, such as switching from a WiFi module to an Ethernet network card, thereby achieving a hard switch of the communication path at the underlying level. The entire switching process is completely transparent to users and upper-layer applications, achieving a seamless experience that is imperceptible to the business. After the path switching is completed, the timer is immediately reset and the periodic data acquisition and evaluation phase is restarted.
[0065] Figure 1 and Figure 2 This is a flowchart illustrating a data communication method in one embodiment. It should be understood that, although... Figure 1 and Figure 2 The steps in the flowchart are shown sequentially as indicated by the arrows, but these steps are not necessarily executed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order in which these steps are executed, and they can be performed in other orders. Figure 1 and Figure 2 At least some of the steps in the process may include multiple sub-steps or multiple stages. These sub-steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these sub-steps or stages is not necessarily sequential, but can be executed in turn or alternately with other steps or at least some of the sub-steps or stages of other steps.
[0066] In one embodiment, such as Figure 3 As shown, a data communication device is provided, comprising: The acquisition module 310 is used to acquire communication indicator data of multiple different communication channels during the monitoring period, wherein the start and stop states of the multiple communication channels are different; The scoring module 320 is used to determine the communication quality score of each communication channel based on the communication indicator data corresponding to each communication channel. The determining module 330 is used to determine the target main communication channel based on the communication quality scores of each of the communication channels; The transmission module 340 is used to transmit target data packets using the target main communication channel.
[0067] In one embodiment, the acquisition module 310 is further configured to: Get the communication latency, jitter, and packet loss rate of the current primary communication channel that is enabled and the current backup communication channel that is disabled during the monitoring period; The communication delay, jitter, and packet loss rate of the current primary communication channel and the current backup communication channel during the monitoring period are normalized to obtain the communication delay parameter, jitter parameter, and packet loss rate parameter corresponding to the current primary communication channel and the current backup communication channel, respectively. The communication indicator data includes the communication delay parameter, jitter parameter, and packet loss rate parameter.
[0068] In one embodiment, the scoring module 320 is further configured to perform at least one of the following: The communication quality score of each communication channel is determined by multiplying the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel. The communication quality score of each communication channel is determined based on the sum of the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel. The communication quality score of each communication channel is determined by weighted sum of the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel.
[0069] In one embodiment, the scoring module 320 is further configured to: The delay ratio is determined based on the ratio between the communication delay parameter corresponding to the communication channel and the delay threshold. The jitter ratio is determined based on the ratio between the communication jitter parameter corresponding to the communication channel and the jitter threshold. The packet loss ratio is determined based on the ratio between the communication packet loss rate parameter corresponding to the communication channel and the packet loss rate threshold. Based on the weighting coefficients corresponding to the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter, the delay ratio, jitter ratio, and packet loss rate ratio are weighted and summed to obtain the communication quality score of the communication channel.
[0070] In one embodiment, the determining module 330 is further configured to perform at least one of the following: When the communication quality score of the current primary communication channel is less than the preset score, and the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel is less than or equal to the preset difference, the current primary communication channel is determined as the target primary communication channel. When the communication quality score of the current main communication channel is greater than or equal to the preset score, or when at least one parameter in the communication indicator data corresponding to the current main communication channel is greater than or equal to the corresponding parameter threshold, the current backup communication channel is determined as the target main communication channel. When the communication quality score of the current primary communication channel is less than a preset score, and the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel is greater than a preset difference, the current backup communication channel is determined as the target primary communication channel.
[0071] In one embodiment, the determining module 330 is further configured to: When the communication quality score of the current backup communication channel is greater than the preset score, or when at least one parameter in the communication indicator data corresponding to the current backup communication channel is greater than or equal to the corresponding parameter threshold, the communication service level of the target main communication channel is reduced, and a channel abnormality alarm message is output.
[0072] In one embodiment, the determining module 330 is further configured to: When the communication quality score of the target primary communication channel is detected to be less than a preset score, and the difference between the communication quality score of the backup communication channel and the communication quality score of the target primary communication channel is less than or equal to a preset difference, the communication service level of the target primary communication channel is restored.
[0073] It should be noted that the examples and application scenarios implemented by the above modules and corresponding steps are the same, but are not limited to the content disclosed in the above embodiments. It should also be noted that the above modules, as part of a device, can operate in environments such as... Figure 1 The hardware environment shown can be implemented either through software or through hardware.
[0074] like Figure 4 As shown, this application embodiment provides an intelligent device, including a processor 711, a communication interface 712, a memory 713, and a communication bus 714. The processor 711, the communication interface 712, and the memory 713 communicate with each other through the communication bus 714. The memory 713 is used to store computer programs. When the processor 711 executes the program stored in the memory 713, it implements the data communication method provided in any of the aforementioned method embodiments.
[0075] The memory and processor in the aforementioned electronic devices communicate with each other via a communication bus and a communication interface. The communication bus can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. This communication bus can be divided into an address bus, a data bus, a control bus, etc.
[0076] The memory may include random access memory (RAM) or non-volatile memory, such as at least one disk storage device. Optionally, the memory may also be at least one storage device located remotely from the aforementioned processor.
[0077] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0078] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the solution of this application and does not constitute a limitation on the smart device to which the solution of this application is applied. A specific smart device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0079] According to another aspect of the embodiments of this application, a computer program product or computer program is also provided, which includes computer instructions stored in a computer-readable storage medium. A processor of a smart device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the smart device to perform the steps of any of the above embodiments.
[0080] In one embodiment, the data communication device provided in this application can be implemented as a computer program, and the computer program can be implemented in such a way as... Figure 4 It runs on the smart device shown. The smart device's memory can store the various program modules that make up the data communication device, for example, Figure 3 The diagram shows an acquisition module 310, a scoring module 320, a determination module 330, and a transmission module 340. The computer program comprised of these modules causes the processor to execute the data communication methods described in the various embodiments of this application.
[0081] Figure 4 The smart devices shown can be used as follows Figure 3The acquisition module 310 in the data communication device shown acquires communication indicator data of multiple different communication channels during the monitoring period, wherein the start / stop states of the multiple communication channels are different. The intelligent device can use the scoring module 320 to determine the communication quality score of each communication channel based on the corresponding communication indicator data. The intelligent device can use the determination module 330 to determine the target primary communication channel based on the communication quality scores of each communication channel. The intelligent device can use the transmission module 340 to transmit target data packets using the target primary communication channel.
[0082] This application also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the data communication method provided in any of the foregoing method embodiments.
[0083] Optionally, in embodiments of this application, the computer-readable medium is configured to store program code for the processor to perform the following steps: Acquire communication indicator data of multiple different communication channels during the monitoring period, wherein the start / stop status of the multiple communication channels is different; Based on the communication indicator data corresponding to each communication channel, determine the communication quality score of each communication channel; The target main communication channel is determined based on the communication quality scores of each of the aforementioned communication channels; The target data packet is transmitted using the target main communication channel.
[0084] Optionally, specific examples in this embodiment can refer to the examples described in the above embodiments, and will not be repeated here.
[0085] It is understood that the embodiments described herein can be implemented in hardware, software, firmware, middleware, microcode, or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), general-purpose processors, controllers, microcontrollers, microprocessors, other electronic units for performing the functions described herein, or combinations thereof.
[0086] For software implementation, the techniques described herein can be implemented by units that perform the functions described herein. The software code can be stored in memory and executed by a processor. The memory can be implemented in the processor or external to the processor.
[0087] Those skilled in the art will recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0088] Those skilled in the art will understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0089] In the embodiments provided in this application, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative. For instance, the division of modules is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple modules or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0090] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0091] In addition, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit.
[0092] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented using software plus a general-purpose hardware platform, or of course, using hardware. Based on this understanding, the above technical solutions, in essence or the parts that contribute to the related technology, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as a USB flash drive, external hard drive, ROM, RAM, magnetic disk, or optical disk, or other media capable of storing program code, including several instructions to cause a smart device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0093] It should be understood that the terminology used herein is for the purpose of describing particular exemplary embodiments only and is not intended to be limiting. Unless the context clearly indicates otherwise, the singular forms “a,” “an,” and “described” as used herein may also mean including the plural forms. The terms “comprising,” “including,” “containing,” and “having” are inclusive and therefore indicate the presence of the stated features, steps, operations, elements, and / or components, but do not exclude the presence or addition of one or more other features, steps, operations, elements, components, and / or combinations thereof. The method steps, processes, and operations described herein are not construed as requiring them to be performed in a particular order described or illustrated unless the order of performance is explicitly indicated. It should also be understood that alternatives or substitutions may be used.
[0094] The above description is merely a specific embodiment of the present invention, enabling those skilled in the art to understand or implement the invention. Various modifications to these embodiments will be readily 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 invention. Therefore, the present invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A data communication method, characterized in that, The method includes: Acquire communication indicator data of multiple different communication channels during the monitoring period, wherein the start / stop status of the multiple communication channels is different; Based on the communication indicator data corresponding to each communication channel, determine the communication quality score of each communication channel; The target main communication channel is determined based on the communication quality scores of each of the aforementioned communication channels; The target data packet is transmitted using the target main communication channel.
2. The method according to claim 1, characterized in that, The acquisition of communication indicator data for multiple different communication channels within the monitoring period includes: Get the communication latency, jitter, and packet loss rate of the current primary communication channel that is enabled and the current backup communication channel that is disabled during the monitoring period; The communication delay, jitter, and packet loss rate of the current primary communication channel and the current backup communication channel during the monitoring period are normalized to obtain the communication delay parameter, jitter parameter, and packet loss rate parameter corresponding to the current primary communication channel and the current backup communication channel, respectively. The communication indicator data includes the communication delay parameter, jitter parameter, and packet loss rate parameter.
3. The method according to claim 2, characterized in that, The step of determining the communication quality score of each communication channel based on the communication indicator data corresponding to each communication channel includes at least one of the following: The communication quality score of each communication channel is determined by multiplying the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel. The communication quality score of each communication channel is determined based on the sum of the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel. The communication quality score of each communication channel is determined by weighted sum of the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter corresponding to each communication channel.
4. The method according to claim 2, characterized in that, The step of determining the communication quality score of each communication channel based on the communication indicator data corresponding to each communication channel includes: The delay ratio is determined based on the ratio between the communication delay parameter corresponding to the communication channel and the delay threshold. The jitter ratio is determined based on the ratio between the communication jitter parameter corresponding to the communication channel and the jitter threshold. The packet loss ratio is determined based on the ratio between the communication packet loss rate parameter corresponding to the communication channel and the packet loss rate threshold. Based on the weighting coefficients corresponding to the communication delay parameter, communication jitter parameter, and communication packet loss rate parameter, the delay ratio, jitter ratio, and packet loss rate ratio are weighted and summed to obtain the communication quality score of the communication channel.
5. The method according to claim 2, characterized in that, The determination of the target primary communication channel based on the communication quality scores of each of the communication channels includes at least one of the following: When the communication quality score of the current primary communication channel is less than the preset score, and the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel is less than or equal to the preset difference, the current primary communication channel is determined as the target primary communication channel. When the communication quality score of the current main communication channel is greater than or equal to the preset score, or when at least one parameter in the communication indicator data corresponding to the current main communication channel is greater than or equal to the corresponding parameter threshold, the current backup communication channel is determined as the target main communication channel. When the communication quality score of the current primary communication channel is less than a preset score, and the difference between the communication quality score of the current backup communication channel and the communication quality score of the current primary communication channel is greater than a preset difference, the current backup communication channel is determined as the target primary communication channel.
6. The method according to claim 5, characterized in that, After determining the current backup communication channel as the target primary communication channel when the communication quality score of the current primary communication channel is greater than or equal to a preset score, or when at least one parameter in the communication indicator data is greater than or equal to a corresponding parameter threshold, the method further includes: When the communication quality score of the current backup communication channel is greater than the preset score, or when at least one parameter in the communication indicator data corresponding to the current backup communication channel is greater than or equal to the corresponding parameter threshold, the communication service level of the target main communication channel is reduced, and a channel abnormality alarm message is output.
7. The method according to claim 6, characterized in that, After reducing the communication service level of the target primary communication channel and outputting a channel anomaly alarm information when the communication quality score of the current backup communication channel is greater than a preset score, or when at least one parameter in the communication indicator data corresponding to the current backup communication channel is greater than or equal to the corresponding parameter threshold, the method further includes: When the communication quality score of the target primary communication channel is detected to be less than a preset score, and the difference between the communication quality score of the backup communication channel and the communication quality score of the target primary communication channel is less than or equal to a preset difference, the communication service level of the target primary communication channel is restored.
8. A data communication device, characterized in that, The device includes: The acquisition module is used to acquire communication indicator data of multiple different communication channels during the monitoring period, wherein the start / stop status of the multiple communication channels is different; The scoring module is used to determine the communication quality score of each communication channel based on the communication indicator data corresponding to each communication channel. The determination module is used to determine the target main communication channel based on the communication quality scores of each of the communication channels; The transmission module is used to transmit target data packets using the target main communication channel.
9. A smart device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the method of any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the method of any one of claims 1 to 7.