Communication link control method and device, equipment and medium

The dynamic communication link control method in smart home networks addresses network delays and packet loss by establishing initial connections, configuring protocols, and switching links based on real-time performance monitoring, enhancing stability and efficiency.

CN120321060APending Publication Date: 2025-07-15GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510305931.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-03-14
Publication Date
2025-07-15

AI Technical Summary

Technical Problem

In the prior art, the home network environment is complex, and the increase in the number of devices leads to an increase in network load pressure, network delay and packet loss rate increase, lack of dynamic adjustment capabilities, affecting user experience.

Method used

The home host monitors network performance parameters in real time, switches communication links dynamically, uses the preset link pressure analysis model to determine whether to switch links, and uses hybrid algorithms and machine learning to predict link pressure to optimize communication efficiency and stability.

Benefits of technology

Reduce communication interruptions and data transmission delays, improve network resource utilization, and improve the stability and user experience of smart home systems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120321060A_ABST
    Figure CN120321060A_ABST
Patent Text Reader

Abstract

The invention relates to a communication link control method and device, equipment and a medium, and the method comprises the steps: a home host establishes initial communication connection with home equipment, and configures an initial communication protocol of the home equipment, so that the home equipment can join a communication link in a home network based on the protocol. Next, the home host acquires network performance parameters for a plurality of communication links in the home network. According to the network performance parameter of the communication link, whether the first communication link meeting the communication link switching condition exists or not is determined, and the communication link with poor performance can be quickly identified; and switching the home equipment accessed to the first communication link to the second communication link of another communication protocol, thereby flexibly switching the communication links of the home equipment, reducing communication interruption and data transmission delay, and improving the utilization rate of network resources.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of smart home network communication, and in particular to a communication link control method, device, equipment and medium applied to a home host. Background Art

[0002] With the wide application of smart home devices, the home network environment has become increasingly complex, the number of devices in the home network has increased significantly, the communication requirements between devices have increased continuously, and the network load pressure has increased continuously, resulting in an increase in network latency and packet loss rate, affecting the user experience. In the prior art, network optimization methods mostly rely on static configuration and lack the ability of dynamic adjustment, making it difficult to cope with the complex home network environment. Summary of the Invention

[0003] In view of the above problems, embodiments of the present invention are proposed to provide a control method for a communication link and a corresponding control device, equipment and medium for the communication link that overcome the above problems or at least partially solve the above problems.

[0004] To solve the above problems, embodiments of the present invention disclose a control method for a communication link, which is applied to a home host and includes:

[0005] The home host establishes an initial communication connection with a home device and configures an initial communication protocol for the home device so that the home device joins a communication link in the home network based on the initial communication protocol;

[0006] Obtain network performance parameters of multiple communication links in the home network;

[0007] According to the network performance parameters of the multiple communication links, determine whether there is a first communication link that meets the communication link switching condition;

[0008] Perform link switching processing on the home device accessing the first communication link to connect the home device to a second communication link; the communication protocol of the second communication link is different from that of the first communication link.

[0009] Optionally, the determining whether there is a first communication link that meets the communication link switching condition according to the network performance parameters of multiple communication links includes:

[0010] Determine whether the network performance parameters of the multiple communication links exceed the corresponding thresholds:

[0011] If there are network performance parameters of the communication link that exceed the corresponding thresholds, determine the communication link as the first communication link that meets the communication link switching condition.

[0012] Optionally, determining whether the network performance parameters of the multiple communication links exceed corresponding thresholds includes:

[0013] Inputting the network performance parameters of the multiple communication links into a preset link stress analysis model, determining, through the preset link stress analysis model, eigenvectors corresponding to the network performance parameters of the multiple communication links, and determining whether the network performance parameters of the multiple communication links exceed corresponding thresholds according to the eigenvectors corresponding to the network performance parameters.

[0014] Optionally, the network performance parameters include at least one of latency, packet loss rate, and bandwidth utilization rate.

[0015] Optionally, configuring the initial communication protocol of the home device includes:

[0016] Obtaining the device type and data transmission requirements of the home device;

[0017] Configuring the initial communication protocol of the home device according to the device type and data transmission requirements of the home device.

[0018] Optionally, performing link switching processing on the home device accessing the first communication link includes:

[0019] Determining a second communication link and a switching time;

[0020] When the switching time is reached, controlling the home device to access the second communication link, transmitting first-type data of the home device through the second communication link, and transmitting second-type data through the first communication link; the transmission priority of the first-type data is lower than the transmission priority of the second-type data;

[0021] After the second communication link is stable, controlling the home device to disconnect the first communication link and transmitting the second-type data through the second communication link.

[0022] Optionally, determining the switching time includes:

[0023] Obtaining the task priority, remaining communication time of the current transmission task of the home device, and signal strength of the second communication link;

[0024] Determining the switching time according to the task priority, remaining communication time of the current transmission task of the home device, and signal strength of the second communication link.

[0025] Optionally, the method further includes:

[0026] Predict link pressure prediction information of multiple communication links in the home network according to network performance parameters of the multiple communication links in the home network;

[0027] When it is determined according to the link pressure prediction information of the communication link that the link pressure of the communication link is about to exceed the link pressure threshold, perform link switching processing on the home devices accessing the communication link.

[0028] Optionally, the method further includes:

[0029] Obtain the communication priority of the home device and the pressure condition of the communication link;

[0030] Allocate bandwidth for the home device according to the communication priority of the home device and the pressure condition of the communication link.

[0031] Correspondingly, an embodiment of the present invention also discloses a control device for a communication link, and the device includes:

[0032] A communication connection module, configured to establish an initial communication connection with a home device and configure an initial communication protocol of the home device, so that the home device joins a communication link in the home network based on the initial communication protocol;

[0033] A parameter acquisition module, configured to acquire network performance parameters of multiple communication links in the home network;

[0034] A link determination module, configured to determine whether there is a first communication link that meets the communication link switching condition according to the network performance parameters of the multiple communication links;

[0035] A link switching module, configured to perform link switching processing on the home devices accessing the first communication link to connect the home devices to a second communication link; the communication protocol of the second communication link is different from the communication protocol of the first communication link.

[0036] Correspondingly, an embodiment of the present invention discloses an electronic device, including: a processor, a memory, and a computer program stored on the memory and capable of running on the processor, and when the computer program is executed by the processor, each step of the above-mentioned embodiment of the control method for a communication link is implemented.

[0037] Correspondingly, an embodiment of the present invention discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, each step of the above-mentioned embodiment of the control method for a communication link is implemented.

[0038] Embodiments of the present invention have the following advantages:

[0039] In the embodiments of the present invention, an initial communication connection is established between a home host and home devices, and an initial communication protocol is configured to enable the home devices to join the communication link in the home network. The network performance parameters of multiple communication links are obtained in real time. According to the network performance parameters of the communication links, it is determined whether there is a first communication link that meets the communication link switching condition, and a communication link with poor performance can be quickly identified. The home devices connected to the first communication link are switched to a second communication link with another communication protocol, so as to flexibly switch the communication links of the home devices, reduce communication interruptions and data transmission delays, and improve the utilization rate of network resources. This intelligent link control method not only optimizes the overall performance of the home network, but also provides a reliable guarantee for the efficient operation of the smart home system, significantly improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments of the present invention will be briefly introduced below. Obviously, the drawings in the following description are only some embodiments of the present invention, and those of ordinary skill in the art can also obtain other drawings based on these drawings without creative efforts.

[0041] Figure 1 is a flowchart of the steps of a method for controlling a communication link provided by an embodiment of the present invention;

[0042] Figure 2 is a flowchart of the steps of another method for controlling a communication link provided by an embodiment of the present invention;

[0043] Figure 3 is a block diagram of the structure of a device for controlling a communication link provided by an embodiment of the present invention. DETAILED DESCRIPTION OF THE EMBODIMENTS

[0044] In order to make the above objects, features, and advantages of the present invention more obvious and understandable, the present invention will be further described in detail below with reference to the drawings and specific embodiments. Obviously, the described embodiments are some, but not all, of the embodiments of the present invention. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.

[0045] With the wide application of smart home devices, the home network environment has become increasingly complex. The number of devices in the home network has increased significantly, the communication requirements between devices have continuously increased, and the network load pressure has continuously increased, resulting in an increase in network latency and packet loss rate, affecting the user experience. In the prior art, network optimization methods mostly rely on static configuration and lack the ability of dynamic adjustment, making it difficult to cope with the complex home network environment.

[0046] One of the core concepts of the embodiments of the present invention is to dynamically monitor and intelligently switch the communication links of home devices by the home host, obtain network performance parameters in real time, and determine whether to switch the links according to preset conditions, so as to optimize communication efficiency, improve stability, enhance network adaptability at the same time, and provide efficient and stable communication guarantee for the smart home system.

[0047] The present invention provides a control method for a communication link. The present invention will be described in detail below with reference to the accompanying drawings:

[0048] Refer to Figure 1 , which shows a flowchart of steps of a control method for a central control device provided by an embodiment of the present invention. The method may specifically include the following steps:

[0049] Step 101, the home host establishes an initial communication connection with the home device and configures the initial communication protocol of the home device, so that the home device joins the communication link in the home network based on the initial communication protocol;

[0050] It should be noted that in actual application scenarios, the smart home system is a system based on the Internet of Things technology, which connects various home devices in the home through a network to achieve intelligent control and management.

[0051] Home devices, home hosts, and communication networks are three core components. Home devices send their own status information to the home host through the communication network; the home host receives the device status information through the communication network and generates control instructions according to preset rules or user instructions; the home host sends the control instructions to the home devices through the communication network, and the devices execute the instructions and feedback the execution results; the home host can also be connected to external devices (such as mobile phones, cloud) through the communication network to achieve remote control and data synchronization.

[0052] In the method of the embodiments of the present invention, home devices can be various intelligent household appliances, security devices, environmental control devices, and other electronic devices related to home life, and can be compatible with and access multiple different communication protocols or technologies, allowing them to flexibly switch or use multiple communication links simultaneously in different network environments. The home host can be a dedicated smart home gateway, smart router, personal computer, server, embedded device, etc.

[0053] It should be noted that the present invention does not impose any restrictions on the specific types of home devices and home hosts.

[0054] Among them, the role of the initial communication protocol is to ensure that home devices can communicate and interact with the home host effectively. The initial communication protocol provides the basic rules for new devices to access the home network, enabling them to join the communication link smoothly. The protocol defines the format and rules of data transmission, ensuring that devices and the home host can correctly understand and process data. After the device is successfully connected, the home host can dynamically adjust the communication protocol or link according to the network status and device requirements to further optimize the performance.

[0055] The home host establishes a connection with home devices via wireless or wired means and configures a suitable communication protocol for them according to the device type. As an example, the Wi-Fi protocol is suitable for devices with high bandwidth requirements, such as smart cameras and smart TVs. In some other embodiments, the Zigbee protocol is suitable for devices with low power consumption and small data volume, such as sensors and smart switches.

[0056] After the configuration is completed, the device joins the communication link of the home network based on the allocated protocol to achieve data transmission and control functions.

[0057] In some embodiments, step 101 may include the following sub-steps:

[0058] Sub-step S11, obtaining the device type and data transmission requirements of the home device;

[0059] In some embodiments, the device types of home devices may include smart lighting devices, smart security devices, sensors, smart home appliances, smart speakers, and entertainment devices. In other embodiments, other types of home devices may also be used, and the present invention does not limit this.

[0060] In a smart home system, different types of home devices have different requirements for the communication link. In some embodiments, the data transmission requirements refer to the performance requirements of the communication link for home devices during operation, including aspects such as bandwidth, latency, data transmission frequency, and power consumption. These requirements vary depending on the device type and function, directly affecting the communication efficiency of the device and the user experience.

[0061] Sub-step S12, configuring the initial communication protocol of the home device according to the device type and data transmission requirements of the home device.

[0062] In some embodiments, the communication protocol of a smart home system refers to the rules and standards for data transmission and communication between devices. These protocols define how devices connect to the network, how to transmit data, how to authenticate, and how to handle errors, etc. Different communication protocols are suitable for different types and requirements of devices. Therefore, a smart home system can usually support multiple communication protocols to ensure compatibility and efficient communication between devices.

[0063] In the method of the embodiment of the present invention, when configuring the initial communication protocol of home appliances, the device type and data transmission requirements of home appliances need to be fully considered. In one example, high-bandwidth devices (such as cameras) are suitable for Wi-Fi, and low-power devices (such as sensors) are suitable for Zigbee or Z-Wave. In another example, the communication protocol needs to be selected according to the bandwidth, latency, and power consumption requirements of home appliances.

[0064] The communication protocol is the basis for communication between devices in a smart home system. Different protocols are applicable to different devices and scenarios. Therefore, a smart home system usually supports multiple protocols to meet diverse device requirements. By reasonably selecting and configuring the communication protocol, the communication performance of devices can be optimized, and the stability and user experience of the system can be improved.

[0065] Step 102, obtain the network performance parameters of multiple communication links in the home network;

[0066] In a smart home system, multiple communication links in the home network refer to various connection methods for data transmission and communication between a home host and different types of home appliances. These communication links can be based on different communication protocols and technologies to meet the requirements of different types of devices.

[0067] Common types of communication links in a smart home system include Wi-Fi links, Zigbee links, Z-Wave links, Bluetooth links, etc. In other embodiments, other types can also be used as communication links, and the present invention does not limit this.

[0068] The performance of each communication link may be affected by various factors, such as signal strength, bandwidth, latency, packet loss rate, etc. Network performance parameters are indicators for measuring the performance of these links. By obtaining the network performance parameters, the home host can understand the current network status and thus make corresponding optimization decisions.

[0069] In the embodiment of the present invention, the network performance parameters include at least one of latency, packet loss rate, and bandwidth utilization rate. As an example, latency refers to the time required for data to be transmitted from the sender to the receiver, packet loss rate refers to the proportion of lost data packets during network transmission, and bandwidth utilization rate refers to the proportion of the used bandwidth in the total available bandwidth of the current link. By monitoring and analyzing these network performance parameters, the home host can intelligently optimize the communication link to ensure the stable operation of the smart home system in a complex and changing network environment, thereby improving the user experience and the overall performance of the system.

[0070] Step 103, determine whether there is a first communication link that meets the communication link switching condition according to the network performance parameters of the multiple communication links;

[0071] In a smart home system, the home network may include multiple communication links, and the performance of each link is affected by various factors. By obtaining the network performance parameters of these links in real time, the home host can evaluate the current state of each link and determine whether there is a link that needs to be switched according to preset switching conditions. If there is a link that meets the conditions, it is marked as the "first communication link" and subsequent link switching operations are performed.

[0072] Step 104: Perform link switching processing on the home appliances connected to the first communication link to connect the home appliances to the second communication link; the communication protocol of the second communication link is different from that of the first communication link.

[0073] In an embodiment of the present invention, this process involves switching the device from the current communication link to a link with better performance or more suitability to ensure that the device can operate stably and efficiently.

[0074] In an embodiment of the present invention, the second communication link can be used as a backup or auxiliary communication link in the home network to provide support when the main communication link, such as the first communication link, has degraded performance or does not meet the communication requirements.

[0075] Refer to Figure 2 , which shows a flowchart of the steps of another communication link control method of the present invention, specifically including the following steps:

[0076] Step 201: The home host establishes an initial communication connection with the home appliance and configures the initial communication protocol of the home appliance so that the home appliance joins the communication link in the home network based on the initial communication protocol;

[0077] In an embodiment of the present invention, the home host is the core device of the smart home system, and it is responsible for managing and coordinating all smart home devices in the home network. The home host realizes data transmission between home appliances, distribution of control instructions, and monitoring of device status by connecting to different communication links.

[0078] In an embodiment of the present invention, smart home devices refer to various home appliances that achieve intelligent control and management through Internet of Things technology. These devices can be connected to the home network through wireless or wired communication protocols and perform data interaction with the home host or other control terminals to achieve automation, remote control, and intelligent management.

[0079] When a new home appliance is first connected to the home network, the home host establishes a communication connection with the device, enabling the smart home device to access the home network and start data interaction with the home host. The home host can select and set the most suitable communication protocol for it according to the type of the device and data transmission requirements, thereby realizing the smooth access and communication of the device.

[0080] Step 202, obtain the network performance parameters of multiple communication links in the home network;

[0081] In the embodiments of the present invention, the network performance parameters include at least one of delay, packet loss rate, and bandwidth utilization rate. In other embodiments, other relevant network performance parameters may also be used, and the present invention places no restrictions thereon.

[0082] By obtaining the network performance parameters of multiple communication links in the home network, the home host can intelligently optimize the communication links, ensure the stable operation of the smart home system in a complex and changeable network environment, and thus improve the user experience and the overall performance of the system.

[0083] Step 203, determine whether the network performance parameters of the multiple communication links exceed the corresponding thresholds;

[0084] In the embodiments of the present invention, by comparing the real-time monitored network performance parameters (such as delay, packet loss rate, bandwidth utilization rate, etc.) with the preset thresholds, the home host can determine whether the current link meets the communication requirements of the device and take corresponding measures accordingly.

[0085] In some embodiments, step 203 may include the following sub-steps:

[0086] Sub-step S21, input the network performance parameters of the multiple communication links into a preset link stress analysis model;

[0087] In the embodiments of the present invention, in order to achieve accurate evaluation and dynamic optimization of the communication link performance, the present invention proposes a link stress analysis method based on artificial intelligence. Specifically, the collected network performance parameters are input into a preset link stress analysis model. In the embodiments of the present invention, the link stress analysis model adopts a hybrid algorithm, combining the convolutional neural network (CNN) in deep learning and the traditional support vector machine (SVM) classification algorithm to comprehensively judge the link stress state.

[0088] Sub-step S22, determine the feature vectors corresponding to the network performance parameters of the multiple communication links through the preset link stress analysis model, and determine whether the network performance parameters of the multiple communication links exceed the corresponding thresholds according to the feature vectors corresponding to the network performance parameters.

[0089] In the embodiments of the present invention, the preset link stress analysis model combines the convolutional neural network in deep learning and the traditional support vector machine classification algorithm.

[0090] Among them, the convolutional neural network can exhibit excellent feature extraction capabilities when processing network traffic data. Through multiple layers of convolution and pooling operations, the convolutional neural network can automatically extract key features in network performance parameters, such as the changing trends of latency, packet loss rate, and bandwidth utilization. These features provide a basis for subsequent judgment of the pressure state of the communication link.

[0091] As a classic classification algorithm, the support vector machine classification algorithm can accurately classify the link pressure state according to the extracted features. In one example, by constructing an optimal classification hyperplane, the support vector machine classification algorithm can divide the link state into two states: "normal" and "high pressure", thus providing a basis for the communication link switching decision. In other embodiments, other state classification situations can also be adopted, and the present invention does not limit this.

[0092] In one example, the link pressure analysis model is trained with a large amount of historical data, which includes link performance parameters and their corresponding pressure states in different network environments.

[0093] Through training, the link pressure analysis model can learn the mapping relationship between different parameter combinations and the communication link pressure state, thereby improving the accuracy of prediction.

[0094] In another example, the link pressure analysis model can also adaptively adjust the preset threshold according to the training results. This means that when a certain index of the communication link (such as latency or packet loss rate) exceeds the dynamically set threshold, the link pressure analysis model will determine that the communication link is in a high-pressure state and trigger a link switch. This dynamic adjustment mechanism enables the link pressure analysis model to adapt to changes in different network environments and device requirements.

[0095] In some embodiments, the link pressure analysis model not only considers the network performance parameters of a single communication link, but can also analyze in combination with the network topology.

[0096] By analyzing the device distribution, link connection relationships, and data traffic flow directions in the network, the link pressure analysis model can differentially evaluate the link pressure in different regions.

[0097] At the same time, the link pressure analysis model can perform weighted analysis on the communication link pressure according to the type and distribution of home devices. In one example, in areas with dense devices, the link pressure may be higher, and the model will give a higher weight for evaluation; while in areas with sparse devices, the weight will be appropriately reduced. This differential analysis method significantly improves the accuracy of link pressure evaluation.

[0098] In the embodiments of the present invention, the home host collects the network performance parameters of each communication link in real time, including latency, packet loss rate, bandwidth utilization, etc.; inputs the collected performance parameters into a preset pressure analysis model; the link pressure analysis model extracts features through a convolutional neural network and uses a support vector machine classification algorithm for classification to determine whether the link is in a high-pressure state; if a certain index of the link exceeds a dynamically set threshold, the model will trigger a link switch and send an optimization suggestion to the home host. The link pressure analysis model can also differentially evaluate the link pressure in different regions according to the network topology and device distribution, further optimizing the communication link switching decision. Through the above method, the present invention can effectively improve the performance and stability of the communication link in the smart home system, providing a more intelligent and efficient home experience for users.

[0099] Step 204, if there are network performance parameters of the communication link that exceed the corresponding thresholds, determine the communication link as the first communication link that meets the communication link switching condition;

[0100] In the smart home system, each communication link has a corresponding threshold for its performance parameters to evaluate whether the link is in a normal working state.

[0101] To ensure the stability and efficiency of the communication link, in one example, a link switching mechanism based on dynamic threshold adjustment is proposed. This mechanism optimizes network performance and improves the user experience by real-time monitoring of link pressure and triggering link switching according to preset dynamic thresholds. The dynamic threshold adjustment algorithm can automatically adjust the threshold range of the link performance parameters according to the real-time load situation of the home network, the number of active devices, and different time periods.

[0102] In some embodiments, during peak hours (such as 7-10 pm), the algorithm will appropriately relax the threshold to avoid frequent triggering of link switching due to short-term network fluctuations; while during network idle hours (such as 1-4 am), it will tighten the threshold to ensure that the network is always in the best performance state.

[0103] In the embodiments of the present invention, when it is detected that the performance parameters (such as latency, packet loss rate, bandwidth utilization, etc.) of a certain communication link exceed the preset threshold, it indicates that the performance of the communication link may not meet the communication requirements of the device, and corresponding measures need to be taken to optimize the network state. Through flexible threshold adjustment, the system can accurately evaluate the link state in different network environments, reduce misjudgment, optimize communication efficiency, while reducing user intervention and improving the overall stability and user experience of the smart home system.

[0104] Step 205, determine the second communication link and the switching time;

[0105] In an embodiment of the present invention, after detecting that the network performance parameter of the current communication link (the first communication link) exceeds a preset threshold, the home host selects a better link (the second communication link) to take over the communication task of the device by evaluating the performance of other available communication links.

[0106] In some embodiments, step 205 may include the following sub-steps:

[0107] Sub-step S31, obtaining the task priority of the current transmission task of the home device, the remaining communication time of the task, and the signal strength of the second communication link;

[0108] In the smart home system, in order to achieve more accurate communication link switching and resource optimization, the system needs to comprehensively consider multiple key parameters, including the transmission task priority of the device, the remaining communication time of the task, and the signal strength of the target communication link.

[0109] Sub-step S32, determining the switching time according to the task priority of the current transmission task of the home device, the remaining communication time of the task, and the signal strength of the second communication link.

[0110] In one example, the task priority refers to the importance and urgency of the current transmission task, which is usually determined by the device type, user settings, or task type. The remaining communication time of the task refers to the estimated time required to complete the current transmission task. The signal strength refers to the current signal quality of the target communication link (the second communication link). After obtaining the above parameters, the system will comprehensively evaluate this information to decide whether to perform link switching.

[0111] In an embodiment of the present invention, first, set the task priority according to the task type, and assign a higher basic switching urgency to high-priority tasks; monitor the remaining communication time of the task in real time, and dynamically correct the urgency using an exponential decay function; monitor the signal strength of the main link in real time, and trigger the evaluation process when it is lower than the dynamic threshold; evaluate the signal quality decay rate, task urgency, and switching time consumption through a multi-objective optimization algorithm to predict the stability window period of the backup link.

[0112] Step 206, when the switching time is reached, control the home device to access the second communication link, transmit the first type of data of the home device through the second communication link, and transmit the second type of data through the first communication link; the transmission priority of the first type of data is lower than the transmission priority of the second type of data;

[0113] Due to limited network bandwidth, when multiple data compete for limited resources simultaneously, it is necessary to determine the transmission priority to decide which data should be transmitted first. The transmission priority of data refers to the priority assigned to data during the data transmission process, and the transmission priority of data can be determined according to the type of data. The type of data can be determined according to factors such as the services and functions involved in the data.

[0114] In the embodiments of the present invention, the data that the home device needs to transmit can be divided into two types: the first type of data and the second type of data. For different home devices, the data that the home device needs to transmit can be divided according to different division criteria to determine which are the first type of data and which are the second type of data.

[0115] For example, the data transmission priority in an intelligent camera can be divided according to the requirements for real-time performance. The first type of data can include data related to device status updates, data related to background data synchronization, etc. This type of data has a lower requirement for real-time performance and can usually be transmitted when the network is idle without affecting the user experience and device functions. The second type of data can include real-time video streams, emergency control instructions, etc. This type of data has higher requirements for real-time performance and reliability and needs to be transmitted first to ensure the normal operation of the intelligent camera device functions. By reasonably dividing the data transmission priority of the intelligent camera, it can be ensured that high-priority data (such as real-time video streams, emergency control instructions) can be transmitted first, while optimizing the utilization of network resources. Low-priority data (such as data related to device status updates, data related to background data synchronization) can be transmitted in the background without affecting the user experience and device functions.

[0116] In the embodiments of the present invention, when the optimal switching time arrives, the system controls the home device to switch from the first communication link to the second communication link. The system verifies the connection quality of the standby link by pre-transmitting low-transmission-priority data to ensure that the transmission success rate meets the standard. During the switching process, the system adopts a dual-link backup technology to ensure the continuity and stability of communication: when the pressure on the primary link is too high, the system first switches some non-critical data traffic to the standby link for transmission testing.

[0117] Step 207, after the second communication link is stable, control the home device to disconnect the first communication link and transmit the second type of data through the second communication link.

[0118] During the switching process, the second type of data is always transmitted through the most stable and fastest communication link to ensure the normal operation of the home device and the timely execution of user commands.

[0119] In the embodiments of the present invention, the stability and availability of the standby link are verified through transmission tests. The system sends test frames and monitors the network performance parameters of the standby link. After ensuring that the standby link is stable and available, the system gradually switches the critical data traffic to the standby link.

[0120] Through gradual switching, the system achieves a smooth transition from the primary link to the standby link, avoiding communication interruptions or data loss caused by link switching. This process verifies the connection quality of the standby link by pre-sending test frames to ensure the stability of communication after switching.

[0121] In one embodiment, it further includes predicting link pressure prediction information of multiple communication links in the home network according to the network performance parameters of the multiple communication links in the home network; when it is determined according to the link pressure prediction information of the communication link that the link pressure of the communication link is about to exceed the link pressure threshold, performing link switching processing on the home devices accessing the communication link;

[0122] In the embodiments of the present invention, the system establishes a pressure prediction model based on historical network performance parameter data of the link (such as delay, packet loss rate, bandwidth utilization, etc.). These historical network performance parameter data include communication link performance indicators under different time periods and different network loads, providing rich training samples for the model.

[0123] In one example, the model uses machine learning algorithms to predict the future pressure change trend of the link. The specific algorithms may include: by constructing a decision tree model to classify and predict the link pressure. The decision tree can quickly process multi-dimensional data and is suitable for real-time prediction scenarios; at the same time, using the powerful fitting ability of the neural network to accurately predict the link pressure. The neural network can learn complex non-linear relationships and improve the accuracy of prediction.

[0124] In another example, in order to better process time series data, the system adopts the Long Short-Term Memory (LSTM) algorithm. LSTM has powerful time series processing capabilities and can learn long-term dependencies in the link pressure data. By analyzing the time series characteristics of historical data, LSTM can accurately predict the pressure change situation in the future for a period of time.

[0125] When the model predicts that the link pressure is about to exceed the preset threshold, the system triggers the link switching action in advance. This early intervention mechanism can effectively avoid communication interruptions caused by link overload and ensure the stability of the system. In one embodiment, if the model predicts that the delay of a certain link will exceed 100 ms within the next 5 minutes, the system will switch the relevant devices to the standby link in advance.

[0126] To improve the accuracy and timeliness of predictions, the model can continuously optimize and update itself based on new network data. The system regularly collects new link performance data and feeds it back into the model to update the model parameters through online learning or batch learning. This dynamic optimization mechanism ensures that the model can adapt to changes in the network environment and continuously provide accurate prediction results.

[0127] In some embodiments, the system can regularly collect historical data of the link, including latency, packet loss rate, bandwidth utilization, etc., and preprocess the data. Machine learning algorithms (such as decision trees, neural networks) are used to train the preprocessed data to build a stress prediction model. For time series data, the LSTM algorithm is used for modeling. The model predicts the future stress change trend of the link based on real-time data. By analyzing the time series characteristics of historical data, LSTM can accurately predict the stress change situation in the future for a period of time. When the model predicts that the link stress is about to exceed the threshold, the system can trigger the link switching action in advance, switch the relevant devices to the standby link, and ensure the continuity and stability of communication. The system regularly collects new link performance data and feeds it back into the model to update the model parameters through online learning or batch learning, improving the accuracy and timeliness of predictions.

[0128] In one embodiment, it further includes obtaining the communication priority of the home device and the stress situation of the communication link; and allocating bandwidth for the home device according to the communication priority of the home device and the stress situation of the communication link.

[0129] In the smart home system, in order to optimize the communication resource allocation and ensure that critical devices can still operate normally when the link is overloaded, the present invention proposes a dynamic communication priority adjustment mechanism based on the Analytic Hierarchy Process (AHP). This mechanism dynamically adjusts the communication priority of devices by constructing a multi-factor decision-making model, comprehensively considering factors such as the functional importance of the devices, the requirements for data real-time, and user-defined settings, ensuring the efficient and stable operation of the system in a complex network environment.

[0130] In the embodiments of the present invention, the communication priority of the home device is determined according to the device type or bandwidth requirement of the home device. In this way, the system can dynamically adjust the communication priority of the devices, ensure the reasonable allocation of network resources, and meet the communication requirements of different devices at the same time.

[0131] Different types of home appliances have different degrees of dependence on and importance for communication links. In one example, the system assigns communication priorities according to the device type to ensure that the communication needs of critical devices are preferentially met. In addition to the device type, the system also dynamically adjusts the communication priority according to the bandwidth requirements of the device. For devices with high bandwidth requirements, the system will preferentially allocate more network resources to ensure that their communication needs are met. The system can also dynamically adjust the communication priority according to the real-time status of the device and the network load. In some embodiments, the priority is dynamically adjusted by real-time monitoring of the communication status of the device and the network load. In other embodiments, the user can also manually adjust the communication priority of the device according to personal preferences and usage habits. In other embodiments, by analyzing the user's behavior patterns and the usage habits of the device, the system can also predict future communication needs and adjust the priority in advance.

[0132] In the embodiment of the present invention, an initial communication connection is established between the home host and the home appliance, and the initial communication protocol of the home appliance is configured so that the home appliance can join the communication link in the home network based on this protocol. Then, the home host obtains the network performance parameters of multiple communication links in the home network. According to the network performance parameters of the communication link, it is determined whether there is a first communication link that meets the communication link switching condition, and a communication link with poor performance can be quickly identified; the home appliance connected to the first communication link is switched to a second communication link with another communication protocol, so as to flexibly switch the communication link of the home appliance, reduce communication interruption and data transmission delay, and improve network resource utilization. This intelligent link control method not only optimizes the overall performance of the home network, but also provides a reliable guarantee for the efficient operation of the smart home system, significantly improving the user experience.

[0133] It should be noted that for the method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should know that the embodiments of the present invention are not limited by the described action sequence, because according to the embodiments of the present invention, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also know that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily essential for the embodiments of the present invention.

[0134] Refer to Figure 3 , which shows a structural block diagram of a control device for a communication link provided by an embodiment of the present invention, and specifically may include the following modules:

[0135] A communication connection module 301, configured to establish an initial communication connection with a home appliance and configure the initial communication protocol of the home appliance, so that the home appliance can join a communication link in a home network based on the initial communication protocol;

[0136] A parameter acquisition module 302, configured to acquire network performance parameters of multiple communication links in the home network;

[0137] A link determination module 303, configured to determine whether there is a first communication link that meets the communication link switching condition according to the network performance parameters of the multiple communication links;

[0138] A link switching module 304, configured to perform link switching processing on a home device accessing the first communication link to connect the home device to a second communication link; the communication protocol of the second communication link is different from that of the first communication link.

[0139] In an embodiment of the present invention, the communication connection module includes:

[0140] A configuration data acquisition sub-module, configured to acquire the device type and data transmission requirements of the home device;

[0141] An initial communication protocol configuration sub-module, configured to configure an initial communication protocol of the home device according to the device type and data transmission requirements of the home device.

[0142] In an embodiment of the present invention, the network performance parameters include at least one of delay, packet loss rate, and bandwidth utilization rate; the link determination module includes:

[0143] A network performance parameter comparison sub-module, configured to determine whether the network performance parameters of the multiple communication links exceed corresponding thresholds;

[0144] A first communication link determination sub-module, configured to, if there is a network performance parameter of the communication link that exceeds the corresponding threshold, determine the communication link as the first communication link that meets the communication link switching condition.

[0145] In an embodiment of the present invention, the network performance parameter comparison sub-module includes:

[0146] A pressure analysis unit, configured to input the network performance parameters of the multiple communication links into a preset link pressure analysis model,

[0147] A network performance parameter comparison unit, configured to determine, through the preset link pressure analysis model, eigenvectors corresponding to the network performance parameters of the multiple communication links, and determine whether the network performance parameters of the multiple communication links exceed the corresponding thresholds according to the eigenvectors corresponding to the network performance parameters.

[0148] In an embodiment of the present invention, the link switching module includes:

[0149] A switching parameter determination sub-module, configured to determine a second communication link and a switching time;

[0150] The first type of data transmission sub-module is used to control the home device to access the second communication link when the switching time is reached, transmit the first type of data of the home device through the second communication link, and transmit the second type of data through the first communication link; the transmission priority of the first type of data is lower than that of the second type of data;

[0151] The second type of data transmission sub-module is used to control the home device to disconnect the first communication link after the second communication link is stable, and transmit the second type of data through the second communication link.

[0152] In an embodiment of the present invention, the second communication link and switching time determination sub-module includes:

[0153] The switching time determination preparation unit is used to obtain the task priority of the current transmission task of the home device, the remaining communication time of the task, and the signal strength of the second communication link;

[0154] The switching time determination unit is used to determine the switching time according to the task priority of the current transmission task of the home device, the remaining communication time of the task, and the signal strength of the second communication link.

[0155] In an embodiment of the present invention, the device further includes:

[0156] The link pressure prediction module is used to predict the link pressure prediction information of multiple communication links in the home network according to the network performance parameters of the multiple communication links in the home network;

[0157] When it is determined according to the link pressure prediction information of the communication link that the link pressure of the communication link is about to exceed the link pressure threshold, perform link switching processing on the home device accessing the communication link;

[0158] The bandwidth allocation module is used to obtain the communication priority of the home device and the pressure situation of the communication link;

[0159] Allocate bandwidth for the home device according to the communication priority of the home device and the pressure situation of the communication link.

[0160] In some embodiments, the embodiments of the present invention establish an initial communication connection with home appliances through a home host and configure an initial communication protocol, enabling the home appliances to join the communication link in the home network; obtain network performance parameters of multiple communication links in real time, and determine whether there is a first communication link that meets the communication link switching condition according to the network performance parameters of the communication link, so as to quickly identify a communication link with poor performance; switch the home appliances connected to the first communication link to a second communication link with another communication protocol, thereby flexibly switching the communication links of the home appliances, reducing communication interruptions and data transmission delays, and improving network resource utilization. This intelligent link control method not only optimizes the overall performance of the home network, but also provides a reliable guarantee for the efficient operation of the smart home system, significantly enhancing the user experience.

[0161] For the device embodiments, since they are basically similar to the method embodiments, the description is relatively simple. For the relevant parts, please refer to the partial description of the method embodiments.

[0162] The embodiments of the present invention also provide an electronic device, including:

[0163] A processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, it implements each process of the above-described method embodiment for controlling the communication link and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0164] The embodiments of the present invention also provide a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, it implements each process of the above-described method embodiment for controlling the communication link and can achieve the same technical effects. To avoid repetition, it will not be elaborated here.

[0165] Each embodiment in this specification is described in a progressive manner. The key point of each embodiment is to illustrate the differences from other embodiments. For the same or similar parts among the embodiments, reference can be made to each other.

[0166] Those skilled in the art should understand that the embodiments of the present invention can be provided as a method, a device, or a computer program product. Therefore, the embodiments of the present invention can take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present invention can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk memories, CD-ROMs, optical memories, etc.) containing computer-usable program codes.

[0167] Embodiments of the present invention are described with reference to the flowcharts and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, and the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to the processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal devices to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal devices generate a means for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.

[0168] These computer program instructions can also be stored in a computer-readable memory that can direct a computer or other programmable data processing terminal device to work in a specific manner, so that the instructions stored in the computer-readable memory generate a manufactured article including an instruction means, and the instruction means implements the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.

[0169] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device, so that a series of operation steps are executed on the computer or other programmable terminal device to generate a computer-implemented process, and thus the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one process Figure 1 one process or multiple processes and / or blocks Figure 1 or means for implementing the functions specified in multiple blocks.

[0170] Although the preferred embodiments of the embodiments of the present invention have been described, those skilled in the art can make additional changes and modifications to these embodiments once they learn the basic creative concepts. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.

[0171] Finally, it should also be noted that in this text, relational terms such as first and second are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or terminal device comprising a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or terminal device. Without further limitation, an element defined by the statement "comprising an..." does not exclude the presence of additional identical elements in the process, method, article or terminal device comprising said element.

[0172] The above has introduced in detail a method for controlling a communication link and a device for controlling a communication link provided by the present invention. Specific examples are used in this text to elaborate on the principle and implementation manner of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation manner and application scope. In summary, the content of this specification should not be construed as a limitation to the present invention.

Claims

1. A control method for a communication link, characterized in that, Applied to a home host, the method includes: The home host establishes an initial communication connection with a home device and configures an initial communication protocol for the home device, so that the home device joins a communication link in the home network based on the initial communication protocol; Obtain network performance parameters of multiple communication links in the home network; According to the network performance parameters of the multiple communication links, determine whether there is a first communication link that meets the communication link switching condition; Perform link switching processing on the home device accessing the first communication link to connect the home device to a second communication link; the communication protocol of the second communication link is different from that of the first communication link.

2. The control method of a communication link according to claim 1, characterized in that The determining whether there is a first communication link that meets the communication link switching condition according to the network performance parameters of multiple communication links includes: Determine whether the network performance parameters of the multiple communication links exceed corresponding thresholds; If there are network performance parameters of the communication link that exceed the corresponding thresholds, determine the communication link as the first communication link that meets the communication link switching condition.

3. The control method of the communication link according to claim 2, wherein The determining whether the network performance parameters of the multiple communication links exceed corresponding thresholds includes: Input the network performance parameters of the multiple communication links into a preset link stress analysis model, determine eigenvectors corresponding to the network performance parameters of the multiple communication links through the preset link stress analysis model, and determine whether the network performance parameters of the multiple communication links exceed the corresponding thresholds according to the eigenvectors corresponding to the network performance parameters.

4. The control method of the communication link according to claim 1, wherein The network performance parameters include at least one of delay, packet loss rate, and bandwidth utilization rate.

5. The control method of a communication link according to claim 1, wherein, The configuring the initial communication protocol of the home device includes: Obtain the device type and data transmission requirements of the home device; Configure the initial communication protocol of the home device according to the device type and data transmission requirements of the home device.

6. The control method of a communication link according to any one of claims 1-5, characterized in that, The performing link switching processing on the home device accessing the first communication link includes: Determine a second communication link and a switching time; When the switching time is reached, control the home device to access the second communication link, transmit first-type data of the home device through the second communication link, and transmit second-type data through the first communication link; the transmission priority of the first-type data is lower than that of the second-type data; After the second communication link is stable, control the home device to disconnect the first communication link and transmit the second-type data through the second communication link.

7. The control method of the communication link according to claim 6, wherein The determining the switching time includes: Obtain the task priority, remaining communication time of the current transmission task of the home device, and the signal strength of the second communication link; Determine the switching time according to the task priority, remaining communication time of the current transmission task of the home device, and the signal strength of the second communication link.

8. The control method of the communication link according to claim 1, characterized in that It further includes: Predict link stress prediction information of multiple communication links in the home network according to the network performance parameters of the multiple communication links in the home network; When it is determined, according to the link pressure prediction information of the communication link, that the link pressure of the communication link is about to exceed the link pressure threshold, a link switching process is performed on the home devices accessing the communication link.

9. The control method of a communication link according to claim 1, wherein The method further includes: Obtaining the communication priority of the home device and the pressure condition of the communication link; Allocating bandwidth for the home device according to the communication priority of the home device and the pressure condition of the communication link.

10. A control device for a communication link, characterized in that, Applied to a home host platform, it includes: A communication connection module, configured to establish an initial communication connection with a home device and configure an initial communication protocol of the home device, so that the home device joins a communication link in a home network based on the initial communication protocol; A parameter acquisition module, configured to acquire network performance parameters of multiple communication links in the home network; A link determination module, configured to determine whether there is a first communication link that meets the communication link switching condition according to the network performance parameters of the multiple communication links; A link switching module, configured to perform a link switching process on the home device accessing the first communication link to connect the home device to a second communication link; the communication protocol of the second communication link is different from that of the first communication link.

11. An electronic device, characterized in that, It includes: A processor, a memory, and a computer program stored on the memory and capable of running on the processor. When the computer program is executed by the processor, the steps of the control method of the communication link according to any one of claims 1-9 are implemented.

12. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is executed by a processor, the steps of the control method of the communication link according to any one of claims 1-9 are implemented.