Data synchronization method and system for terminal equipment

By dividing the data synchronization task into sub-tasks, selecting the target data link using spectrum environment awareness and link quality detection, and determining the transmission channel in combination with available physical resources, the shortcomings of existing data synchronization schemes are solved, and efficient, reliable, and adaptive data transmission is achieved.

CN121814779APending Publication Date: 2026-04-07GUANGZHOU XIANGSHI INFORMATION TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-06
Publication Date
2026-04-07

AI Technical Summary

Technical Problem

In existing technologies, data synchronization schemes between terminal devices lack proactive, multi-dimensional quality detection, cannot identify co-channel/adjacent-channel interference, analyze channel busy/idle patterns and interference source behavior, and link selection is decoupled from the service attributes of upper-layer subtasks, resulting in insufficient data transmission performance or resource waste.

Method used

The data synchronization task is divided into several sub-tasks. Based on spectrum environment awareness and link quality detection, the target data link is selected using service adaptation strategies, and the data transmission channel is determined in combination with available physical transmission resources to achieve efficient and reliable data synchronization.

Benefits of technology

It improves the data transmission performance of terminal devices, achieves efficient, reliable, and adaptive data synchronization, avoids narrow decision-making perspectives and resource waste, and ensures that link selection matches business attributes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121814779A_ABST
    Figure CN121814779A_ABST
Patent Text Reader

Abstract

The invention discloses a data synchronization method and system for terminal equipment, and relates to the technical field of data processing, and the method comprises the steps: first terminal equipment receives a data synchronization task, and divides the data synchronization task into a plurality of data synchronization subtasks; determining a second terminal device corresponding to each data synchronization subtask, and determining a processing method of each data synchronization subtask; determining a plurality of candidate data links based on each data synchronization subtask and the processing method; performing link quality detection on each candidate data link based on spectrum environment perception, and determining a target data link by using a service adaptation strategy; performing communication demand analysis on the target data link; and determining a plurality of data transmission channels based on the target data link and the communication demand information in combination with the available physical transmission resources, wherein the first terminal device transmits data in each data synchronization sub-task to the second terminal device based on the data transmission channels. According to the invention, the data transmission performance of the terminal equipment is improved, and efficient and reliable data synchronization is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of data processing technology, and in particular to a data synchronization method and system for terminal devices. Background Technology

[0002] With the development of the Internet of Things (IoT), mobile internet, and edge computing, the demand for data synchronization between multiple terminal devices is increasing. However, existing technologies still have shortcomings in data synchronization solutions between terminal devices. Existing link selection and evaluation mechanisms are one-sided and passive, with most technologies relying on simple indicators such as signal strength or historical connection success rates to select links, lacking proactive and multi-dimensional quality detection. Crucially, existing technologies generally lack deep awareness of the wireless spectrum environment, failing to identify co-channel / adjacent-channel interference, analyze channel busy / idle patterns, and the behavior of interference sources. Furthermore, current link selection strategies are often decoupled from the service attributes of upper-layer subtasks, leading to unsuitable selected links. After selecting a link, existing methods typically only establish a single, default-configured data channel, failing to deeply analyze and aggregate the underlying physical transmission resources to build a channel that improves throughput and reliability. In addition, the channel parameter configuration is not dynamically optimized based on the specific communication requirements resolved by the synchronization task, resulting in insufficient performance or wasted resources. Summary of the Invention

[0003] The purpose of this invention is to overcome the shortcomings of the prior art. This invention provides a data synchronization method and system for terminal devices, which improves the data transmission performance of terminal devices, thereby achieving efficient, reliable, and adaptive data synchronization.

[0004] To address the aforementioned technical problems, the present invention provides a data synchronization method for a terminal device, the method comprising: The first terminal device receives the data synchronization task and divides the data synchronization task into several data synchronization sub-tasks; Identify the second terminal devices corresponding to each data synchronization subtask and determine the processing method for each data synchronization subtask; Based on each data synchronization subtask and the processing method of each data synchronization subtask, several candidate data links between the first terminal device and each second terminal device are determined. Based on spectrum environment awareness, link quality detection is performed on each candidate data link to obtain link quality detection results. Based on the link quality detection results, the target data link between the first terminal device and each second terminal device is determined from several candidate data links using a service adaptation strategy. The target data link is analyzed for communication requirements to obtain communication requirement information; Based on the target data link and communication requirements information, combined with available physical transmission resources, several data transmission channels are determined between the first terminal device and each second terminal device. The first terminal device transmits data from each data synchronization subtask to the corresponding second terminal device based on the data transmission channels.

[0005] Optionally, dividing the data synchronization task into several data synchronization sub-tasks includes: Obtain data characteristic information for the data synchronization task; Based on a preset sharding strategy, the data synchronization task is divided into several data synchronization sub-tasks using the data characteristic information.

[0006] Optionally, the step of determining each second terminal device corresponding to each data synchronization subtask and determining the processing method for each data synchronization subtask includes: Obtain the network connection quality, remaining battery power, available storage space, and CPU load of each candidate terminal device; The constraint information of each data synchronization subtask is determined. Based on the constraint information, the network connection quality, remaining power, available storage space and central processing unit load are used to perform device matching processing to determine the second terminal device corresponding to each data synchronization subtask. The sensitivity, criticality, and data volume of each data synchronization subtask are analyzed, and the processing method of each data synchronization subtask is determined based on the preset rules using the sensitivity, criticality, and data volume.

[0007] Optionally, the method for determining several candidate data links between the first terminal device and each of the second terminal devices based on each data synchronization subtask and the processing method of each data synchronization subtask includes: Link requirement analysis is performed based on each data synchronization subtask and its processing method to obtain link requirement information; Technical requirements analysis is conducted based on each data synchronization subtask and its processing method to obtain technical requirements information. Based on the link requirement information and technical requirement information, combined with soft constraint scoring, data link matching is performed to determine several candidate data links between the first terminal device and each of the second terminal devices.

[0008] Optionally, the step of performing link quality detection on each candidate data link based on spectrum environment awareness, obtaining link quality detection results, and determining the target data link between the first terminal device and each second terminal device from several candidate data links using service adaptation strategies based on the link quality detection results includes: Bandwidth capacity detection is performed on each candidate data link to obtain bandwidth capacity information; Delay characteristic detection is performed on each candidate data link based on the delay distribution histogram method to obtain delay characteristic information; Time-varying link quality analysis is performed on each candidate data link to obtain time-varying link quality information, and spectrum environment perception is performed on each candidate data link to obtain spectrum environment perception information. The link quality detection results of each candidate data link are determined based on the bandwidth capacity information, delay characteristic information, time-varying link quality information, and spectrum environment awareness information. Based on the link quality detection results, the target data link between the first terminal device and each second terminal device is determined from several candidate data links using a service adaptation strategy combined with a highest score strategy.

[0009] Optionally, the step of performing spectrum environment awareness on each candidate data link to obtain spectrum environment awareness information includes: Background noise intensity analysis is performed on each candidate data link to obtain background noise intensity information; Analyze regional contention for access points for each candidate data link to obtain information on regional contention for access points; Interference source analysis is performed on each candidate data link to obtain interference source information. Based on the interference source information, background noise intensity information, and competing access point information in the region, spectrum environment perception is performed to obtain spectrum environment perception information.

[0010] Optionally, the step of parsing the communication requirements of the target data link to obtain communication requirement information includes: Delay constraint analysis is performed on the target data link to obtain delay constraint information, and bandwidth requirement analysis is performed on the target data link to obtain bandwidth requirement information. A security requirement analysis is performed on the target data link to obtain security requirement information; Communication requirements are determined based on the aforementioned delay constraint information, bandwidth requirement information, and security requirement information.

[0011] Optionally, determining several data transmission channels between the first terminal device and each of the second terminal devices based on the target data link and communication requirement information combined with available physical transmission resources includes: Analyze the available physical transmission resources of the target data link; The channel generation strategy is determined based on the target data link and communication requirements information, combined with available physical transmission resources. Based on the channel generation strategy, several data transmission channels are constructed between the first terminal device and each of the second terminal devices.

[0012] Optionally, the available physical transmission resources of the target data link being analyzed include: Channel resource analysis is performed on the target data link to obtain channel resource information; Based on network interface status events, network interface resource analysis is performed on the target data link to obtain network interface resource information. Based on path difference assessment, the target data link is analyzed for parallel transmission capability to obtain parallel transmission capability information. Based on the channel resource information, network interface resource information and parallel transmission capability information, the available physical transmission resources of the target data link are determined.

[0013] In addition, the present invention also provides a data synchronization system for terminal devices, the system comprising: Task partitioning module: used by the first terminal device to receive the data synchronization task and divide the data synchronization task into several data synchronization sub-tasks; Task method determination module: used to determine the second terminal devices corresponding to each data synchronization subtask and to determine the processing method for each data synchronization subtask; Candidate link determination module: used to determine several candidate data links between the first terminal device and each second terminal device based on each data synchronization subtask and the processing method of each data synchronization subtask; Target Link Determination Module: Used to perform link quality detection on each candidate data link based on spectrum environment awareness, obtain link quality detection results, and determine the target data link between the first terminal device and each second terminal device from several candidate data links based on the link quality detection results and using service adaptation strategies. Communication requirement parsing module: used to parse the communication requirements of the target data link and obtain communication requirement information; Data synchronization module: used to determine several data transmission channels between the first terminal device and each second terminal device based on the target data link and communication requirements information combined with available physical transmission resources. The first terminal device transmits the data in each data synchronization subtask to the corresponding second terminal device based on the data transmission channels.

[0014] In this embodiment of the invention, a first terminal device receives a data synchronization task, divides the data synchronization task into several data synchronization sub-tasks, determines the corresponding second terminal devices for each data synchronization sub-task, determines the processing method for each data synchronization sub-task, and determines several candidate data links between the first terminal device and each second terminal device based on each data synchronization sub-task and its processing method, thus constructing a systematic optional path space and avoiding a narrow decision-making perspective. Based on spectrum environment awareness, link quality detection is performed on each candidate data link. Based on the link quality detection results, a service adaptation strategy is used to determine the target data link between the first terminal device and each second terminal device from among the several candidate data links. This proactively avoids impending interference rather than passively responding after performance degradation, improving the stability of wireless transmission. Simultaneously, the link selection is adapted to the service, preventing the determined target data link from becoming decoupled from service attributes. The target data link is analyzed to obtain communication requirement information. Based on the target data link and communication requirement information, combined with available physical transmission resources, several data transmission channels between the first terminal device and each second terminal device are determined. The first terminal device transmits data from each data synchronization subtask to the corresponding second terminal device based on the data transmission channels. By combining available physical transmission resources and communication requirement information to determine the data transmission channels, the abstract link can be transformed into a concrete data transmission channel, maximizing the use of available physical resources and improving the data transmission performance of the terminal devices, thereby achieving efficient, reliable, and adaptive data synchronization. Attached Figure Description

[0015] 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, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0016] Figure 1 This is a flowchart illustrating the data synchronization method for a terminal device in an embodiment of the present invention; Figure 2 This is a flowchart illustrating a data synchronization method for a terminal device according to another embodiment of the present invention; Figure 3 This is a schematic diagram of the structural composition of the data synchronization system of the terminal device in an embodiment of the present invention. Detailed Implementation

[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0018] Example 1 Please see Figure 1 , Figure 1 This is a flowchart illustrating a data synchronization method for a terminal device according to an embodiment of the present invention. The method includes: S11: The first terminal device receives the data synchronization task and divides the data synchronization task into several data synchronization sub-tasks; In a specific implementation of the present invention, the first terminal device receives a data synchronization task and obtains the data characteristic information of the data synchronization task; based on a preset sharding strategy, the data synchronization task is divided into several data synchronization sub-tasks using the data characteristic information, thereby realizing the modularization and parallelization of task processing and improving the flexibility and overall throughput of task processing.

[0019] S12: Determine the second terminal device corresponding to each data synchronization subtask, and determine the processing method for each data synchronization subtask; In the specific implementation process of this invention, the network connection quality, remaining power, available storage space, and CPU load of each candidate terminal device are obtained; the constraint information of each data synchronization subtask is determined; based on the constraint information, device matching processing is performed using the network connection quality, remaining power, available storage space, and CPU load to determine each second terminal device corresponding to each data synchronization subtask; the sensitivity, criticality, and data volume of each data synchronization subtask are analyzed; and the processing method of each data synchronization subtask is determined based on preset rules using the sensitivity, criticality, and data volume, thereby achieving bidirectional intelligent matching of resources and requirements and ensuring optimal processing efficiency while meeting task constraints.

[0020] S13: Based on each data synchronization subtask and the processing method of each data synchronization subtask, determine several candidate data links between the first terminal device and each second terminal device; In the specific implementation process of this invention, link requirement analysis is performed based on each data synchronization subtask and its processing method to obtain link requirement information; technical requirement analysis is performed based on each data synchronization subtask and its processing method to obtain technical requirement information; data link matching is performed based on the link requirement information and technical requirement information combined with soft constraint scoring to determine several candidate data links between the first terminal device and each second terminal device, providing a rich pool of alternative solutions for subsequent optimal selection.

[0021] S14: Based on spectrum environment awareness, perform link quality detection on each candidate data link, obtain link quality detection results, and based on the link quality detection results, use service adaptation strategies to determine the target data link between the first terminal device and each second terminal device among several candidate data links; In the specific implementation process of this invention, bandwidth capacity detection is performed on each candidate data link to obtain bandwidth capacity information; delay characteristic detection is performed on each candidate data link based on the delay distribution histogram method to obtain delay characteristic information; time-varying link quality analysis is performed on each candidate data link to obtain time-varying link quality information; spectrum environment perception is performed on each candidate data link to obtain spectrum environment perception information; the link quality detection results of each candidate data link are determined based on the bandwidth capacity information, delay characteristic information, time-varying link quality information, and spectrum environment perception information; based on the link quality detection results, the target data link between the first terminal device and each second terminal device is determined from several candidate data links using a service adaptation strategy combined with a highest score strategy, thereby achieving accurate, forward-looking, and service-oriented link selection, ensuring that the selected target data link is not only optimal in physical layer quality but also most compatible in business logic, thus achieving accurate service quality assurance.

[0022] S15: Perform communication requirement analysis on the target data link to obtain communication requirement information; In the specific implementation process of this invention, a delay constraint analysis is performed on the target data link to obtain delay constraint information; a bandwidth requirement analysis is performed on the target data link to obtain bandwidth requirement information; a security requirement analysis is performed on the target data link to obtain security requirement information; and communication requirement information is determined based on the delay constraint information, bandwidth requirement information, and security requirement information, thereby avoiding the blindness of channel configuration and ensuring that the generated channel can accurately support business objectives.

[0023] S16: Based on the target data link and communication requirement information combined with available physical transmission resources, determine a number of data transmission channels between the first terminal device and each second terminal device. The first terminal device transmits the data in each data synchronization subtask to the corresponding second terminal device based on the data transmission channels.

[0024] In the specific implementation process of this invention, the available physical transmission resources of the target data link are analyzed; based on the target data link and communication requirement information combined with the available physical transmission resources, a channel generation strategy is determined; based on the channel generation strategy, several data transmission channels between the first terminal device and each second terminal device are constructed; the first terminal device transmits data from each data synchronization subtask to the corresponding second terminal device based on the data transmission channels, forming an intelligent closed loop from task understanding, environment awareness, resource scheduling to channel execution, which can adapt to dynamically changing network environments and diverse service requirements, and achieves the overall optimal effect of shortening synchronization time, improving success rate, and reducing resource consumption.

[0025] In this embodiment of the invention, a first terminal device receives a data synchronization task, divides the data synchronization task into several data synchronization sub-tasks, determines the corresponding second terminal devices for each data synchronization sub-task, determines the processing method for each data synchronization sub-task, and determines several candidate data links between the first terminal device and each second terminal device based on each data synchronization sub-task and its processing method, thus constructing a systematic optional path space and avoiding a narrow decision-making perspective. Based on spectrum environment awareness, link quality detection is performed on each candidate data link. Based on the link quality detection results, a service adaptation strategy is used to determine the target data link between the first terminal device and each second terminal device from among the several candidate data links. This proactively avoids impending interference rather than passively responding after performance degradation, improving the stability of wireless transmission. Simultaneously, the link selection is adapted to the service, preventing the determined target data link from becoming decoupled from service attributes. The target data link is analyzed to obtain communication requirement information. Based on the target data link and communication requirement information, combined with available physical transmission resources, several data transmission channels between the first terminal device and each second terminal device are determined. The first terminal device transmits data from each data synchronization subtask to the corresponding second terminal device based on the data transmission channels. By combining available physical transmission resources and communication requirement information to determine the data transmission channels, the abstract link can be transformed into a concrete data transmission channel, maximizing the use of available physical resources and improving the data transmission performance of the terminal devices, thereby achieving efficient, reliable, and adaptive data synchronization.

[0026] Example 2 Please see Figure 2 , Figure 2 This is a flowchart illustrating a data synchronization method for a terminal device according to another embodiment of the present invention, the method comprising: S201: The first terminal device receives the data synchronization task and divides the data synchronization task into several data synchronization sub-tasks; In a specific implementation of the present invention, dividing the data synchronization task into several data synchronization sub-tasks includes: obtaining data characteristic information of the data synchronization task; and dividing the data synchronization task into several data synchronization sub-tasks based on a preset sharding strategy using the data characteristic information.

[0027] Specifically, the first terminal device receives a data synchronization task. This task, initiated by a user, server, or processor, aims to synchronize and transmit data. It typically includes the data content to be synchronized, one or more target objects to be synchronized, task constraints, and objectives. The first terminal device then obtains the data characteristic information of the data synchronization task, including data file size and type. This information is acquired by reading the data synchronization task at appropriate levels.

[0028] Based on a preset fragmentation strategy, the data synchronization task is divided into several data synchronization subtasks using the data characteristic information. The preset fragmentation strategy includes dividing the synchronization task according to the number of second terminal devices or according to the data volume of the data synchronization task. Technical personnel preset the fragmentation strategy to divide the data synchronization task into several data synchronization subtasks according to the data characteristic information. For example, a file can be divided into 200 subtasks of 100MB each (T1, T2, ..., T200). Each subtask is a 100MB data block. Alternatively, it can be divided according to the geographic grid where the sensors are located (e.g., approximately 100 sensors per grid), generating approximately 100 subtasks. Each subtask contains data packets from all sensors within a grid. The divided subtasks can be simultaneously assigned to multiple different second terminal devices for processing and transmission, greatly shortening the overall synchronization time.

[0029] S202: Determine the second terminal device corresponding to each data synchronization subtask, and determine the processing method for each data synchronization subtask; In a specific implementation of this invention, determining the second terminal devices corresponding to each data synchronization subtask and determining the processing method for each data synchronization subtask includes: acquiring the network connection quality, remaining battery power, available storage space, and CPU load of each candidate terminal device; determining the constraint information of each data synchronization subtask; performing device matching processing based on the constraint information using the network connection quality, remaining battery power, available storage space, and CPU load to determine the second terminal devices corresponding to each data synchronization subtask; analyzing the sensitivity, criticality, and data volume of each data synchronization subtask; and determining the processing method for each data synchronization subtask based on preset rules using the sensitivity, criticality, and data volume.

[0030] Specifically, the network connection quality, remaining battery power, available storage space, and CPU load of each candidate terminal device are obtained. By testing each candidate terminal device, parameter information of each candidate terminal device is obtained. Network connection quality includes the current bandwidth, latency, and packet loss rate of each candidate terminal device. Remaining battery power is used to determine whether the device has sufficient power to complete the task. Available storage space is used to determine whether the device has enough warehouse to store data. CPU load is used to determine whether the brain of the device is currently busy and can process data in a timely manner.

[0031] The constraints of each data synchronization subtask are determined by analyzing thousands of historical task records from past systems to discover patterns and build an experience base. This experience base allows for the rapid identification of the constraints of each data synchronization subtask, such as processing and transmission requirements. For example, one subtask may have extremely strict latency requirements, another may require a large amount of storage space, and a third may require powerful computing capabilities for real-time decryption. Based on the constraint information, device matching is performed using network connection quality, remaining battery power, available storage space, and CPU load to determine the second terminal devices corresponding to each data synchronization subtask. Several candidate terminal devices that meet the constraint information are selected. For each candidate terminal device that meets the constraint information, a score is given based on its network connection quality, remaining battery power, available storage space, and CPU load and their weights to obtain the target score for each candidate terminal device. The candidate terminal devices with the highest target scores are selected as the second terminal devices. For example, the data synchronization subtask includes synchronizing navigation map packages and real-time obstacle avoidance instructions. Map packages (large data volume, non-real-time) will be assigned to terminals with large storage space and connected to stable Wi-Fi. Obstacle avoidance instructions (small data volume, millisecond-level latency requirement) will be assigned to terminals with the lowest network latency and the fastest CPU response.

[0032] The sensitivity, criticality, and data volume of each data synchronization subtask are analyzed. When dividing the data synchronization subtask, a corresponding parameter table is set. This parameter table reveals the sensitivity, criticality, and data volume. Sensitivity indicates whether the data is confidential or requires high-level encryption; criticality indicates whether the task is crucial or whether failure will lead to serious consequences; and data volume indicates the size of the data to be synchronized. Based on preset rules, the processing method for each data synchronization subtask is determined using these sensitivity, criticality, and data volume. These preset rules are built-in expert rules used to map the attributes of the data synchronization subtask to specific processing methods. If the data volume of a data synchronization subtask is large and its criticality is low, a high compression algorithm is used (to save bandwidth / time). For example, for map packages (large data volume, medium sensitivity, medium criticality), the processing method might be medium compression + standard encryption + reliable transmission allowing breakpoint resumption. For obstacle avoidance commands (small data volume, low sensitivity, extremely high criticality), the processing method might be no compression, no encryption (to reduce processing latency) + using a low-latency protocol with forward error correction.

[0033] S203: Based on each data synchronization subtask and the processing method of each data synchronization subtask, determine several candidate data links between the first terminal device and each second terminal device; In a specific implementation of this invention, the determination of several candidate data links between the first terminal device and each second terminal device based on each data synchronization subtask and its processing method includes: performing link requirement analysis based on each data synchronization subtask and its processing method to obtain link requirement information; performing technical requirement analysis based on each data synchronization subtask and its processing method to obtain technical requirement information; and performing data link matching based on the link requirement information and technical requirement information combined with soft constraint scoring to determine several candidate data links between the first terminal device and each second terminal device.

[0034] Specifically, link requirement analysis is performed based on each data synchronization subtask and its processing method to obtain link requirement information. This analysis includes bandwidth requirements, latency and real-time requirements, and security requirements. Bandwidth requirement analysis involves determining the net data volume based on the data volume of each data synchronization subtask, analyzing the compression ratio and maximum allowable transmission time based on the processing method of each subtask, and determining the bandwidth requirement based on the net data volume, compression ratio, and maximum allowable transmission time. Latency and real-time requirement analysis involves determining the real-time level based on the constraints of the data synchronization subtasks, determining the protocol type based on the processing method, and determining the latency and real-time requirements based on the real-time level and protocol type. Security requirements involve determining the corresponding security level based on the constraints of the subtasks, determining the encryption configuration based on the processing method, and determining the security requirements based on the security level and encryption configuration. All of these requirements constitute the link requirement information.

[0035] Technical requirements analysis is conducted based on each data synchronization subtask and its processing method to obtain technical requirement information. Then, according to the pre-defined technical requirements document, the required physical layer, network layer, and security technical requirements are determined. These requirements constitute the technical requirement information. For example, physical layer technical requirements may include a requirement for >100Mbps and low latency; network layer requirements may include high mobility requirements (e.g., a protocol supporting fast switching is recommended); and security technical requirements may include whether the interface hardware security module requires a dedicated encryption chip.

[0036] Based on the link requirement information and technical requirement information, combined with soft constraint scoring, data link matching is performed to determine several candidate data links between the first terminal device and each second terminal device. All possible data links between the first terminal device and each second terminal device are enumerated, and all possible data links are filtered according to the link requirement information and technical requirement information. Data links that meet the link requirement information and technical requirement information are selected. Soft constraint scoring is applied to the selected data links, which is based on optimization preferences and includes cost-effectiveness scoring, performance potential scoring, and reliability and robustness scoring. Cost-effectiveness scoring: estimates the economic cost (e.g., traffic fees) and resource cost (e.g., device energy consumption) incurred by using the link to complete synchronization. The lower the cost, the higher the score. Performance potential scoring: comprehensively evaluates the link's bandwidth potential, stability history, and current congestion level. The better the performance, the higher the score. Reliability and robustness scoring: evaluates the link's anti-interference capability, interruption history, and the existence of backup paths. The more reliable, the higher the score. Data links whose soft constraint scores reach a preset threshold are retained, and these ultimately retained data links are used as candidate data links.

[0037] S204: Based on spectrum environment awareness, perform link quality detection on each candidate data link, obtain link quality detection results, and based on the link quality detection results, use service adaptation strategies to determine the target data link between the first terminal device and each second terminal device among several candidate data links; In a specific implementation of this invention, the step of performing link quality detection on each candidate data link based on spectrum environment awareness to obtain link quality detection results, and determining the target data link between the first terminal device and each second terminal device from several candidate data links based on the link quality detection results using a service adaptation strategy, includes: performing bandwidth capacity detection on each candidate data link to obtain bandwidth capacity information; performing delay characteristic detection on each candidate data link based on the delay distribution histogram method to obtain delay characteristic information; performing time-varying link quality analysis on each candidate data link to obtain time-varying link quality information; performing spectrum environment awareness on each candidate data link to obtain spectrum environment awareness information; determining the link quality detection results of each candidate data link based on the bandwidth capacity information, delay characteristic information, time-varying link quality information, and spectrum environment awareness information; and determining the target data link between the first terminal device and each second terminal device from several candidate data links based on the link quality detection results using a service adaptation strategy combined with a highest score strategy.

[0038] Specifically, bandwidth capacity is probed for each candidate data link to obtain bandwidth capacity information. The first terminal device sends a probe sequence consisting of data packets of different lengths to each second terminal device in the corresponding candidate data link, for example, the packet length increases from 64 bytes to 1500 bytes. The second terminal accurately records the arrival timestamp of each packet and reports it back. By analyzing the throughput changes of data packets of different sizes, the first terminal can identify whether there is a maximum transmission unit fragmentation problem or a buffer size bottleneck in the link, and plot the load-throughput curve to find the optimal load range of the link, thus obtaining the bandwidth capacity information.

[0039] The delay characteristics of each candidate data link are detected using the delay distribution histogram method to obtain delay characteristic information. The first terminal device sends a large number of tiny probe packets at the highest frequency in each candidate data link. By statistically analyzing the round-trip delay of all packets, a delay distribution histogram is generated. The delay characteristic information is determined based on the delay distribution histogram. The delay characteristic information may include minimum delay, maximum delay, median delay, 95th percentile delay, 99th percentile delay, and jitter (the amount of change in delay).

[0040] Time-varying link quality analysis is performed on each candidate data link to obtain time-varying link quality information. A test data stream is maintained between the first and second terminal devices for each candidate data link for a period of time (e.g., 30 seconds), and current bandwidth, packet loss rate, and other indicators are sampled every short period (e.g., 5 seconds). This results in a time-quality matrix. By analyzing this matrix, bandwidth fluctuation rate, packet loss patterns can be calculated, the number of complete outages can be counted, and the average recovery time can be measured. The time-varying link quality information, composed of bandwidth fluctuation rate, identified packet loss patterns, the number of complete outages, and the average recovery time, comprehensively reflects the stability of the link. Spectrum environment sensing is performed on each candidate data link to obtain spectrum environment sensing information. Spectrum environment sensing can be achieved through analysis of background noise intensity, competing access points in the area, and interference sources. The analyzed information yields the spectrum environment sensing information.

[0041] Based on the bandwidth capacity information, latency characteristic information, time-varying link quality information, and spectrum environment awareness information, the link quality detection results of each candidate data link are determined. Scores are then assigned to each of these information components to obtain a score. These scores are combined using a weighted score, which represents the link quality detection result for each candidate data link. For example, candidate link ID: CL_WiFi_Ch11, overall quality score: 85, bandwidth capacity: measured value: score: 90, evaluation: ample, meets high bandwidth requirements; latency characteristic: score: 88, evaluation: low latency, low jitter, suitable for real-time applications; time-varying stability: score: 82, evaluation: relatively stable, no abnormal interruptions; spectrum environment: score: 80, evaluation: good environment, controllable coexistence interference exists.

[0042] Based on the link quality detection results, a service adaptation strategy combined with a highest score strategy is used to determine the target data links between the first terminal device and each of the second terminal devices from several candidate data links. The service adaptation strategy selects quality-adapted links based on the characteristics of the sub-tasks. After filtering candidate data links whose link quality matches the sub-tasks according to the service adaptation strategy and the link quality detection results, if there are several candidate data links, the candidate data link with the highest quality score is selected as the target data link between the first terminal device and the second terminal device according to the highest score strategy. The target data links for each second terminal device are also filtered according to the above strategy. This ensures that the selected target data links are not only optimal in terms of physical layer quality, but also most compatible in terms of business logic, achieving precise service quality assurance.

[0043] Furthermore, the step of performing spectrum environment perception on each candidate data link to obtain spectrum environment perception information includes: performing background noise intensity analysis on each candidate data link to obtain background noise intensity information; performing regional contention access point analysis on each candidate data link to obtain regional contention access point information; performing interference source analysis on each candidate data link to obtain interference source information, and performing spectrum environment perception based on the interference source information, background noise intensity information, and regional contention access point information to obtain spectrum environment perception information.

[0044] Specifically, background noise intensity analysis is performed on each candidate data link to obtain background noise intensity information. Each candidate data link establishes a communication quiet period, collects and purifies wireless signal samples, and accurately measures the inherent electromagnetic background noise of the channel. The core process includes coordinating terminal equipment to suspend transmission to create an interference-free environment, using digital signal processing to remove residual signals, calculating the noise power, spectrum distribution and statistical characteristics of each candidate data link, and generating background noise intensity information from the noise power, spectrum distribution and statistical characteristics.

[0045] Regional competition access point analysis is performed on each candidate data link to obtain regional competition access point information. This involves identifying and analyzing other communication network facilities that compete for resources with the access points used by the candidate data links in the same frequency band. The candidate data links are monitored, and beacon frames broadcast periodically by all access points are captured. Key information such as network name, channel, bandwidth, signal strength, and supported protocol standards are extracted from the beacon frames. Competition intensity is assessed based on the key information to obtain competition intensity assessment information, which is the regional competition access point information. Competition intensity assessment may include signal strength and channel overlap assessment. If the signal strength of a competing access point is equal to or stronger than that of the target access point, it constitutes strong competition. Channel overlap assessment is used to evaluate the degree of overlap between the channel bandwidth used by the competing access point (e.g., 40MHz) and the target channel.

[0046] Interference source analysis can be performed on each candidate data link. Digital signal processing technology can be used to analyze the non-target signals captured by each candidate data link, identify their modulation mode, symbol rate, and frame structure, and thus determine their source, i.e., obtain interference source information. Based on the interference source information, background noise intensity information, and competing access point information in the region, spectrum environment perception is performed. The interference source information, background noise intensity information, and competing access point information in the region are scored, and the scoring results of each information are integrated to obtain spectrum environment perception information.

[0047] S205: Perform communication requirement analysis on the target data link to obtain communication requirement information; In a specific implementation of this invention, the step of parsing the communication requirements of the target data link to obtain communication requirement information includes: performing delay constraint analysis on the target data link to obtain delay constraint information; performing bandwidth requirement analysis on the target data link to obtain bandwidth requirement information; performing security requirement analysis on the target data link to obtain security requirement information; and determining communication requirement information based on the delay constraint information, bandwidth requirement information, and security requirement information.

[0048] Specifically, a latency constraint analysis is performed on the target data link to obtain latency constraint information. Based on the data synchronization subtask, the latency constraints of the target data link are determined. These constraints include maximum tolerable latency, target latency, and jitter tolerance. Maximum tolerable latency is the upper limit of latency under the worst-case scenario acceptable to the service; target latency is the desired ideal latency; and jitter tolerance is the maximum allowable range of latency fluctuation. A bandwidth requirement analysis is also performed on the target data link to obtain bandwidth requirement information. Specifically, based on the data synchronization subtask, the minimum network throughput required for the target data link is determined, along with the net data volume of the data synchronization subtask. Based on this net data volume, the minimum network throughput required for the target data link to complete data synchronization is analyzed.

[0049] A security requirements analysis is performed on the target data link to obtain security requirement information. This involves determining the required level of protection for the target data link during data transmission based on the sensitivity of the data synchronization subtasks. Communication requirements information is then determined based on the latency constraints, bandwidth requirements, and security requirements. This communication requirements information characterizes the subtask characteristics that the target data link needs to carry, avoiding blind channel configuration and ensuring that the generated channels accurately support business objectives.

[0050] S206: Analyze the available physical transmission resources of the target data link; In a specific implementation of this invention, the analysis of the available physical transmission resources of the target data link includes: performing channel resource analysis on the target data link to obtain channel resource information; performing network interface resource analysis on the target data link based on network interface status events to obtain network interface resource information; performing parallel transmission capability analysis on the target data link based on path difference assessment to obtain parallel transmission capability information; and determining the available physical transmission resources of the target data link based on the channel resource information, network interface resource information, and parallel transmission capability information.

[0051] Specifically, channel resource analysis is performed on the target data link to obtain channel resource information. The channel resource analysis includes analyzing the quality of the channel currently used by the target data link, including its bandwidth, center frequency, and whether it is in a dynamic frequency selection radar channel.

[0052] Based on network interface status events, network interface resource analysis is performed on the target data link to obtain network interface resource information, identify the physical network interfaces on which the target data link depends, and establish detailed capability profile information for each interface. The profile information includes hardware specifications and software support. Hardware specifications include supported protocol standards, frequency bands, maximum theoretical speed, antenna configuration, etc. Software support includes driver version, supported transport layer protocols, and whether virtualization or bonding is supported, etc.

[0053] Based on path difference assessment, a parallel transmission capability analysis is performed on the target data link to obtain parallel transmission capability information. This involves evaluating the upper limit of the aggregate performance and potential gain of the target data link when multiple paths are used in parallel. The parallel transmission energy analysis includes aggregate bandwidth estimation and path difference analysis. Aggregate bandwidth estimation calculates the sum of the available bandwidth of each independent path, while path difference analysis analyzes the differences in latency and packet loss rate among the paths, assessing their impact on higher-layer protocols. Based on the channel resource information, network interface resource information, and parallel transmission capability information, the available physical transmission resources of the target data link are determined. In other words, the available physical transmission resources consist of the channel resource information, network interface resource information, and parallel transmission capability information.

[0054] S207: Determine the channel generation strategy based on the target data link and communication requirements information combined with available physical transmission resources; In the specific implementation of this invention, a channel generation strategy is determined based on the target data link and communication requirements information combined with available physical transmission resources. The generation of the data transmission channel is a transformation process from logical decision-making to physical implementation. Its core idea is to map abstract task requirements onto specific network resources. Based on the selected target data link, a channel capable of carrying actual user data flow is established on specific network interfaces and technologies. The channel generation strategy is determined by the channel generation strategy engine based on the target data link and communication requirements information combined with available physical transmission resources. The channel generation strategy is to run an intelligent data scheduler to independently establish a connection between the corresponding interfaces of the first terminal device and the second terminal device based on the communication requirements information and available physical transmission resources, thereby generating an independent data transmission channel for the target data link.

[0055] S208: Based on the channel generation strategy, a number of data transmission channels are constructed between the first terminal device and each of the second terminal devices. The first terminal device transmits the data in each data synchronization subtask to the corresponding second terminal device based on the data transmission channels.

[0056] In a specific implementation of this invention, several data transmission channels between the first terminal device and each of the second terminal devices are constructed based on the channel generation strategy. According to the channel generation strategy, the first terminal device sends a channel establishment request to the second terminal devices, including the channel sequence number, the physical interface used, the transmission protocol, and initial parameters. The second terminal devices respond and confirm the parameters, and both parties complete the channel initialization. The successfully established physical channels are bound to logical data links, forming data transmission channels corresponding to the first terminal device and each of the second terminal devices. The first terminal device transmits data from each data synchronization subtask to the corresponding second terminal devices based on the data transmission channels, binding each data transmission channel to the data synchronization subtask. Simultaneously, all established data transmission channels are used for parallel transmission. Each time a second terminal device receives a data block or a group of data blocks, it immediately sends an application-layer acknowledgment to the first terminal, containing the unique identifier and integrity check code of the data block. The first terminal starts a retransmission timer for each sent data block. If no application-layer acknowledgment is received before the timer expires, a retransmission is triggered. This transforms the abstract link into one or more highly optimized concrete data transmission channels. For example, by aggregating multiple spatial streams of Wi-Fi and frequency bands of cellular networks, parallel transmission channels are generated to achieve bandwidth superposition; primary and backup channels are generated simultaneously for tasks with high reliability requirements. This maximizes the utilization of available physical resources and achieves a significant improvement in transmission performance. Through multiple data transmission channels highly matched to the task, data from each subtask is efficiently and reliably distributed to the corresponding second terminal device, forming an intelligent closed loop from task understanding, environment awareness, resource scheduling to channel execution. This can adapt to dynamically changing network environments and diverse service needs, achieving an overall optimal effect of reduced synchronization time, increased success rate, and reduced resource consumption.

[0057] In this embodiment of the invention, a first terminal device receives a data synchronization task, divides the data synchronization task into several data synchronization sub-tasks, determines the corresponding second terminal devices for each data synchronization sub-task, determines the processing method for each data synchronization sub-task, and determines several candidate data links between the first terminal device and each second terminal device based on each data synchronization sub-task and its processing method, thus constructing a systematic optional path space and avoiding a narrow decision-making perspective. Based on spectrum environment awareness, link quality detection is performed on each candidate data link. Based on the link quality detection results, a service adaptation strategy is used to determine the target data link between the first terminal device and each second terminal device from among the several candidate data links. This proactively avoids impending interference rather than passively responding after performance degradation, improving the stability of wireless transmission. Simultaneously, the link selection is adapted to the service, preventing the determined target data link from becoming decoupled from service attributes. The target data link is analyzed to obtain communication requirement information. Based on the target data link and communication requirement information, combined with available physical transmission resources, several data transmission channels between the first terminal device and each second terminal device are determined. The first terminal device transmits data from each data synchronization subtask to the corresponding second terminal device based on the data transmission channels. By combining available physical transmission resources and communication requirement information to determine the data transmission channels, the abstract link can be transformed into a concrete data transmission channel, maximizing the use of available physical resources and improving the data transmission performance of the terminal devices, thereby achieving efficient, reliable, and adaptive data synchronization.

[0058] Example 3 Please see Figure 3 , Figure 3 This is a schematic diagram of the structural composition of the data synchronization system for a terminal device in an embodiment of the present invention. The system includes: Task partitioning module 31: used for the first terminal device to receive the data synchronization task and divide the data synchronization task into several data synchronization sub-tasks; Task method determination module 32: used to determine each second terminal device corresponding to each data synchronization subtask, and to determine the processing method of each data synchronization subtask; Candidate link determination module 33: used to determine several candidate data links between the first terminal device and each second terminal device based on each data synchronization subtask and the processing method of each data synchronization subtask; Target link determination module 34: is used to perform link quality detection on each candidate data link based on spectrum environment perception, obtain link quality detection results, and determine the target data link between the first terminal device and each second terminal device from several candidate data links based on the link quality detection results and using service adaptation strategies. Communication requirement parsing module 35: used to parse the communication requirements of the target data link and obtain communication requirement information; Data synchronization module 36: is used to determine several data transmission channels between the first terminal device and each second terminal device based on the target data link and communication requirement information combined with available physical transmission resources. The first terminal device transmits the data in each data synchronization subtask to the corresponding second terminal device based on the data transmission channels.

[0059] In the specific implementation of this invention, the specific implementation methods of the system items can be referred to the implementation methods of the above-mentioned method items, and will not be repeated here.

[0060] In this embodiment of the invention, a first terminal device receives a data synchronization task, divides the data synchronization task into several data synchronization sub-tasks, determines the corresponding second terminal devices for each data synchronization sub-task, determines the processing method for each data synchronization sub-task, and determines several candidate data links between the first terminal device and each second terminal device based on each data synchronization sub-task and its processing method, thus constructing a systematic optional path space and avoiding a narrow decision-making perspective. Based on spectrum environment awareness, link quality detection is performed on each candidate data link. Based on the link quality detection results, a service adaptation strategy is used to determine the target data link between the first terminal device and each second terminal device from among the several candidate data links. This proactively avoids impending interference rather than passively responding after performance degradation, improving the stability of wireless transmission. Simultaneously, the link selection is adapted to the service, preventing the determined target data link from becoming decoupled from service attributes. The target data link is analyzed to obtain communication requirement information. Based on the target data link and communication requirement information, combined with available physical transmission resources, several data transmission channels between the first terminal device and each second terminal device are determined. The first terminal device transmits data from each data synchronization subtask to the corresponding second terminal device based on the data transmission channels. By combining available physical transmission resources and communication requirement information to determine the data transmission channels, the abstract link can be transformed into a concrete data transmission channel, maximizing the use of available physical resources and improving the data transmission performance of the terminal devices, thereby achieving efficient, reliable, and adaptive data synchronization.

[0061] Those skilled in the art will understand that all or part of the steps in the various methods of the above embodiments can be implemented by a program instructing related hardware. The program can be stored in a computer-readable storage medium, which may include: read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk, etc.

[0062] Furthermore, the data synchronization method and system for a terminal device provided by the embodiments of the present invention have been described in detail above. Specific examples have been used to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core ideas of the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation methods and application scope based on the ideas of the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A data synchronization method for a terminal device, characterized in that, The method includes: The first terminal device receives the data synchronization task and divides the data synchronization task into several data synchronization sub-tasks; Identify the second terminal devices corresponding to each data synchronization subtask and determine the processing method for each data synchronization subtask; Based on each data synchronization subtask and the processing method of each data synchronization subtask, several candidate data links between the first terminal device and each second terminal device are determined. Based on spectrum environment awareness, link quality detection is performed on each candidate data link to obtain link quality detection results. Based on the link quality detection results, the target data link between the first terminal device and each second terminal device is determined from several candidate data links using a service adaptation strategy. The target data link is analyzed for communication requirements to obtain communication requirement information; Based on the target data link and communication requirements information, combined with available physical transmission resources, several data transmission channels are determined between the first terminal device and each second terminal device. The first terminal device transmits data from each data synchronization subtask to the corresponding second terminal device based on the data transmission channels.

2. The data synchronization method for terminal devices according to claim 1, characterized in that, The process of dividing the data synchronization task into several data synchronization sub-tasks includes: Obtain data characteristic information for the data synchronization task; Based on a preset sharding strategy, the data synchronization task is divided into several data synchronization sub-tasks using the data characteristic information.

3. The data synchronization method for terminal devices according to claim 1, characterized in that, The step of determining the second terminal devices corresponding to each data synchronization subtask and determining the processing method for each data synchronization subtask includes: Obtain the network connection quality, remaining battery power, available storage space, and CPU load of each candidate terminal device; The constraint information of each data synchronization subtask is determined. Based on the constraint information, the network connection quality, remaining power, available storage space and central processing unit load are used to perform device matching processing to determine the second terminal device corresponding to each data synchronization subtask. The sensitivity, criticality, and data volume of each data synchronization subtask are analyzed, and the processing method of each data synchronization subtask is determined based on the preset rules using the sensitivity, criticality, and data volume.

4. The data synchronization method for terminal devices according to claim 1, characterized in that, The method for determining several candidate data links between the first terminal device and each second terminal device based on each data synchronization subtask and the processing method of each data synchronization subtask includes: Link requirement analysis is performed based on each data synchronization subtask and its processing method to obtain link requirement information; Technical requirements analysis is conducted based on each data synchronization subtask and its processing method to obtain technical requirements information. Based on the link requirement information and technical requirement information, combined with soft constraint scoring, data link matching is performed to determine several candidate data links between the first terminal device and each of the second terminal devices.

5. The data synchronization method for terminal devices according to claim 1, characterized in that, The step of performing link quality detection on each candidate data link based on spectrum environment awareness, obtaining link quality detection results, and determining the target data link between the first terminal device and each second terminal device from several candidate data links based on the link quality detection results using a service adaptation strategy includes: Bandwidth capacity detection is performed on each candidate data link to obtain bandwidth capacity information; Delay characteristic detection is performed on each candidate data link based on the delay distribution histogram method to obtain delay characteristic information; Time-varying link quality analysis is performed on each candidate data link to obtain time-varying link quality information, and spectrum environment perception is performed on each candidate data link to obtain spectrum environment perception information. The link quality detection results of each candidate data link are determined based on the bandwidth capacity information, delay characteristic information, time-varying link quality information, and spectrum environment awareness information. Based on the link quality detection results, the target data link between the first terminal device and each second terminal device is determined from several candidate data links using a service adaptation strategy combined with a highest score strategy.

6. The data synchronization method for terminal devices according to claim 5, characterized in that, The step of performing spectrum environment awareness on each candidate data link to obtain spectrum environment awareness information includes: Background noise intensity analysis is performed on each candidate data link to obtain background noise intensity information; Analyze regional competition for access points for each candidate data link to obtain information on regional competition for access points; Interference source analysis is performed on each candidate data link to obtain interference source information. Based on the interference source information, background noise intensity information, and competing access point information in the region, spectrum environment perception is performed to obtain spectrum environment perception information.

7. The data synchronization method for terminal devices according to claim 1, characterized in that, The step of parsing the communication requirements of the target data link to obtain communication requirement information includes: Delay constraint analysis is performed on the target data link to obtain delay constraint information, and bandwidth requirement analysis is performed on the target data link to obtain bandwidth requirement information. A security requirement analysis is performed on the target data link to obtain security requirement information; Communication requirements are determined based on the aforementioned delay constraint information, bandwidth requirement information, and security requirement information.

8. The data synchronization method for terminal devices according to claim 1, characterized in that, The determination of several data transmission channels between the first terminal device and each of the second terminal devices based on the target data link and communication requirement information combined with available physical transmission resources includes: Analyze the available physical transmission resources of the target data link; The channel generation strategy is determined based on the target data link and communication requirements information, combined with available physical transmission resources. Based on the channel generation strategy, several data transmission channels are constructed between the first terminal device and each of the second terminal devices.

9. The data synchronization method for terminal devices according to claim 8, characterized in that, The available physical transmission resources of the target data link being analyzed include: Channel resource analysis is performed on the target data link to obtain channel resource information; Based on network interface status events, network interface resource analysis is performed on the target data link to obtain network interface resource information. Based on path difference assessment, the target data link is analyzed for parallel transmission capability to obtain parallel transmission capability information. Based on the channel resource information, network interface resource information and parallel transmission capability information, the available physical transmission resources of the target data link are determined.

10. A data synchronization system for a terminal device, characterized in that, The system includes: Task partitioning module: used by the first terminal device to receive the data synchronization task and divide the data synchronization task into several data synchronization sub-tasks; Task method determination module: used to determine the second terminal devices corresponding to each data synchronization subtask and to determine the processing method for each data synchronization subtask; Candidate link determination module: used to determine several candidate data links between the first terminal device and each second terminal device based on each data synchronization subtask and the processing method of each data synchronization subtask; Target Link Determination Module: Used to perform link quality detection on each candidate data link based on spectrum environment awareness, obtain link quality detection results, and determine the target data link between the first terminal device and each second terminal device from several candidate data links based on the link quality detection results and using service adaptation strategies. Communication requirement parsing module: used to parse the communication requirements of the target data link and obtain communication requirement information; Data synchronization module: used to determine several data transmission channels between the first terminal device and each second terminal device based on the target data link and communication requirements information combined with available physical transmission resources. The first terminal device transmits the data in each data synchronization subtask to the corresponding second terminal device based on the data transmission channels.