Multi-source data time sequence synchronization method and system oriented to twinning control of magnetic drive rotor

By employing multi-source heterogeneous data acquisition and time-stamping injection, data transmission and delay calculation, and delay prediction and adaptive buffer alignment, the problem of data timing misalignment in the magnetic drive rotor system was solved, achieving high-precision data synchronization and improving the system's reliability and control performance.

CN121722209APending Publication Date: 2026-03-24NANJING UNIV OF AERONAUTICS & ASTRONAUTICS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202610196052.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-02-11
Publication Date
2026-03-24

AI Technical Summary

Technical Problem

Existing synchronization methods cannot effectively solve the timing misalignment problem of multi-source heterogeneous data in magnetically driven rotor systems, leading to the introduction of erroneous feedback signals into the control loop, threatening suspension stability, and lacking a real-time online adaptive synchronization and compensation mechanism.

Method used

By employing a multi-source heterogeneous data acquisition and time stamp injection method, data transmission and delay calculation, delay prediction and adaptive buffer alignment, combined with the IEEE 1588 precision clock protocol, unified time stamp and high-precision synchronization of data packets are achieved.

Benefits of technology

It achieves microsecond-level precise alignment of multi-source heterogeneous data in a CAN bus environment, improving the accuracy of state reconstruction and control performance of the digital twin system, and enhancing the system's reliability and robustness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121722209A_ABST
    Figure CN121722209A_ABST
Patent Text Reader

Abstract

The invention discloses a multi-source data time sequence synchronization method and system for magnetic drive rotor twin control, and the method comprises the steps: multi-source heterogeneous data collection and time mark injection: collecting multi-source heterogeneous data at a data collection end of a magnetic drive rotor control system, and injecting a time mark for each data packet; data transmission and delay calculation: transmitting the data packets with the time scales to a time sequence synchronization center, and calculating and recording the transmission delay of each data packet in real time to obtain a delay historical queue of each data source; in the time sequence synchronization center, delay prediction of a data packet and self-adaptive buffer alignment of data are carried out to obtain a synchronous data sequence with a unified time scale; distributing the synchronous data sequence with the unified time scale; the system is used for implementing the method. According to the method, the problem of data time sequence misalignment caused by transmission and processing delay uncertainty in a heterogeneous network environment is effectively solved, and microsecond-level high-precision synchronization is realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a multi-source data timing synchronization method and system, and more particularly to a multi-source data timing synchronization method and system for magnetically driven rotor twin control. Background Technology

[0002] Magnetic drive rotor systems (including magnetic levitation motors, magnetic levitation flywheel energy storage devices, and active magnetic bearing systems) utilize magnetic force to achieve contactless levitation and drive of the rotor, possessing significant advantages such as frictionless operation, high limiting speed, and active vibration suppression, making them key core components in high-end equipment and energy fields. However, such systems are typical strongly coupled, open-loop unstable nonlinear dynamic systems, and their operation involves deep interactions between electromagnetic fields, rotor dynamics, and control algorithms at the millisecond or even microsecond level. Traditional model-based or signal-based control methods often struggle to cope with time-varying parameters and nonlinear disturbances under complex operating conditions. "Twin control" technology, by constructing a virtual model synchronized in real time with the physical entity, utilizes the unlimited computing power of the digital domain for state observation and predictive control, providing a revolutionary technical path to improve the dynamic performance and robustness of magnetic drive rotor systems.

[0003] The cornerstone of building a high-performance magnetically driven rotor twin control system lies in the precise spatiotemporal alignment of multi-source data streams between the physical entity and the twin controller. In a typical twin control architecture, the controller needs to fuse massive amounts of monitoring data from heterogeneous sensors (such as eddy current displacement sensors, Hall current sensors, and MEMS vibration sensors) and internal state variables in real time. These data originate from different sampling frequencies and are transmitted via different communication protocols (such as CAN and EtherCAT), constituting a typical multi-source heterogeneous asynchronous data stream. If these data are time-displaced when input into the twin control model, it will not only lead to distortion in the virtual model's reconstruction of the rotor trajectory and force state, but also introduce erroneous feedback signals into the control loop due to phase lag or spurious observations, directly threatening the levitation stability of the magnetically driven rotor system.

[0004] In existing technologies, the IEEE 1588 Precision Clock Protocol (PTP) is typically used to solve the clock synchronization problem of distributed nodes. However, in the complex heterogeneous network environment of industrial sites, simple clock synchronization cannot eliminate the nondeterministic latency jitter generated by data packets during transmission links, protocol stack processing, and operating system scheduling. For high-frequency magnetic drive rotor systems, this microsecond-level timing uncertainty is significantly amplified under high-speed operation, making it impossible for twin control algorithms to perform calculations based on the full system state at the same moment. Existing synchronization methods often focus on offline data analysis and lack online adaptive synchronization and compensation mechanisms for real-time control closed loops, becoming a key bottleneck restricting the engineering application of magnetic drive rotor twin control technology. Summary of the Invention

[0005] Purpose of the invention: The technical problem to be solved by the present invention is to provide a multi-source data timing synchronization method and system for magnetically driven rotor twin control, which addresses the shortcomings of the prior art.

[0006] To address the aforementioned technical problems, this invention discloses a multi-source data timing synchronization method and system for twin control of magnetically driven rotors, wherein the method includes the following steps:

[0007] Step 1: Multi-source heterogeneous data acquisition and time stamp injection. At the data acquisition end of the magnetic drive rotor control system, multi-source heterogeneous data is acquired, forming data packets, and time stamps are injected into each data packet.

[0008] Step 2, data transmission and latency calculation: Transmit time-stamped data packets to the time synchronization center, calculate and record the transmission latency of each data packet in real time, and obtain the latency history queue of each data source.

[0009] Step 3: At the time synchronization center, delay prediction of data packets and adaptive buffer alignment of data are performed to obtain a synchronized data sequence with a unified time scale.

[0010] Step 4: Distribute the synchronized data sequence with a unified time stamp obtained in Step 3 to complete the time synchronization of multi-source data.

[0011] Furthermore, the multi-source heterogeneous data mentioned in step 1 includes: monitoring data from displacement sensors, current sensors, vibration sensors, and status data from the controller in the magnetic drive rotor control system.

[0012] Furthermore, the time stamp mentioned in step 1 is a primary timestamp based on the local clock; wherein, the local clock of the data acquisition end is synchronized with the global master clock and the clock offset is corrected through the IEEE 1588 precision clock protocol, so that all primary timestamps are unified with the global time reference.

[0013] Furthermore, the data transmission and delay calculation described in step 2 includes:

[0014] Step 2-1: Transmit the time-stamped data packet to the timing synchronization center via the CAN bus;

[0015] Step 2-2: Calculate and record the transmission delay of each data packet in real time, as follows:

[0016]

[0017] in, The single transmission delay of the data packet. This is the timestamp of the data packet's transmission at the sending node. This is the arrival timestamp of the data packet at the time synchronization center;

[0018] Steps 2-3: Calculate the transmission delay of data packets sent by each data source and retain records of a preset length to obtain a delay history queue of a preset length.

[0019] Furthermore, step 3 involves performing packet delay prediction and adaptive buffer alignment, which means configuring an adaptive buffer for each data source at the time synchronization center and executing the following steps:

[0020] Step 3-1, Delay prediction: Based on the delay history queue, a prediction model is used to predict the delay value of the next data packet;

[0021] Step 3-2, Dynamic buffer window adjustment: Based on the latency jitter of the latency history queue of each data source, dynamically set the waiting window size of the adaptive source buffer for that data.

[0022] Step 3-3: Assign a unified time stamp. At the end of the preset synchronization period, align the data in the adaptive buffer and assign a unified final time stamp to all data.

[0023] Furthermore, the prediction model described in step 3-1 is a first-order exponential smoothing model, that is, the prediction is performed using the following method:

[0024]

[0025] in, This is the predicted value for this period. , This is the value predicted in the previous period. For smoothing coefficients, .

[0026] Furthermore, the dynamic setting of the waiting window size of the adaptive source buffer for the data in step 3-2 includes:

[0027] Step 3-2-1: Calculate the moving standard deviation of the delay values ​​in the delay history queue. , used to indicate the degree of delay jitter;

[0028] Step 3-2-2: Set the waiting window size according to the degree of latency jitter, as follows:

[0029]

[0030] in, For the waiting window size, For safety reasons, The baseline delay is used.

[0031] Furthermore, step 3-3 involves aligning the data within the adaptive buffer, which means resampling the data from each data source to the end of the synchronization period using linear interpolation.

[0032] Furthermore, step 3-3, which involves resampling the data from each data source to the end of the synchronization period using linear interpolation, includes:

[0033] Step 3-3-1, set the preset synchronization period as follows: Generate alignment time In each At any given time, for each data source buffer, retrieval is performed within the time window. All data packets that have arrived within the window are selected, and the one with the closest arrival time within that window is chosen. The two data packets have timestamps and values ​​respectively. and And satisfy ;

[0034] Step 3-3-2: Using linear interpolation, calculate the value at the alignment time. Estimated data values The details are as follows:

[0035]

[0036] Step 3-3-3, interpolation data Assigning the final time scale .

[0037] This invention also proposes a multi-source data timing synchronization system for digital twins of magnetically driven rotors, used to implement the aforementioned method and integrated into the digital twin system of magnetically driven rotors, comprising:

[0038] The clock synchronization layer uses the IEEE 1588 precision time protocol master clock to provide a global time reference;

[0039] The physical entity layer includes the magnetically driven rotor body and its control system;

[0040] The data transmission layer includes data acquisition nodes for collecting multi-source heterogeneous data, a CAN bus communication network for data transmission, and a timing synchronization center.

[0041] The digital twin application layer executes digital twin applications based on the synchronization data sequence output by the time synchronization center;

[0042] The timing synchronization center specifically includes:

[0043] The communication interface unit receives time-stamped data packets from the data acquisition node via the CAN bus;

[0044] The delay estimation unit calculates and records the transmission delay of each data stream;

[0045] The adaptive buffer alignment unit manages an adaptive buffer for each data source, performing operations such as delay prediction, dynamic buffer window adjustment, and uniform timescale assignment.

[0046] The data publishing unit distributes the processed synchronous data stream to the digital twin application layer.

[0047] Beneficial effects:

[0048] This invention effectively solves the problem of data timing inaccuracies caused by differences in transmission paths and uncertainties in processing delays. By constructing a layered synchronization architecture that combines bottom-level precise clock synchronization with upper-level adaptive delay compensation, and employing a lightweight prediction model based on first-order exponential smoothing and a linear interpolation algorithm, this invention achieves microsecond-level precise alignment of multi-source heterogeneous data such as control current and rotor displacement in a CAN bus environment. This invention organically combines IEEE 1588 PTP global clock synchronization with an adaptive buffer compensation mechanism, effectively suppressing delay jitter introduced by the transmission link and protocol stack, and significantly improving the accuracy of digital twin state reconstruction. At the same time, the lightweight algorithm design enables efficient deployment on resource-constrained edge controllers, providing accurate timing data support for core functions such as high-fidelity modeling, online parameter identification, and predictive control while ensuring high real-time performance, thus enhancing the overall reliability, control performance, and application value of the digital twin system. Attached Figure Description

[0049] The present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments, and the advantages of the present invention in the above and / or other aspects will become clearer.

[0050] Figure 1 This is a schematic diagram of the multi-source data timing synchronization method of the present invention.

[0051] Figure 2 This is a schematic diagram of the overall architecture of the magnetic drive rotor digital twin timing synchronization system of the present invention.

[0052] Figure 3 This is a schematic diagram illustrating the working principle and timing alignment of the adaptive buffer alignment unit of the present invention. Detailed Implementation

[0053] The overall concept of this invention is as follows: It provides a multi-source data timing synchronization method and system for magnetically driven rotor twin control, addressing the timing inaccuracy problem caused by heterogeneous data sources, diverse transmission paths, and differences in processing delays. This problem severely affects the accuracy of digital twin model state reconstruction. Specifically, this invention designs a precision synchronization mechanism that effectively compensates for inherent jitter in communication protocols and hardware links, achieving microsecond-level high-precision clock alignment for multi-source heterogeneous data such as displacement, current, and vibration. This provides a data foundation with a unified timescale for constructing a high-fidelity digital twin, significantly improving the reliability of analysis, diagnosis, and decision-making based on digital twins.

[0054] This invention provides a multi-source data timing synchronization method and system for magnetically driven rotor twin control. Its core lies in introducing a dynamic compensation mechanism based on data flow delay characteristic analysis and prediction on the basis of underlying precision clock synchronization. Through intelligent buffering and unified time scale reconstruction, high-precision eventual consistency synchronization of the application layer is achieved.

[0055] In a first aspect, the present invention provides a multi-source data timing synchronization method for digital twins of magnetically driven rotors, such as... Figure 1 As shown, it includes the following steps:

[0056] Step S1: Multi-source heterogeneous data acquisition and time-stamp injection;

[0057] The multi-source heterogeneous data originates from multiple sources within the magnetically driven rotor control system, specifically including control current, rotor displacement, triaxial vibration acceleration, and controller internal state data. At the data acquisition end, a primary timestamp based on a local clock is injected into each data packet; the synchronization time stamp is determined using the IEEE 1588 PTP precision clock protocol deployed in the field, synchronizing the local clocks of each data acquisition node with the global master clock, correcting clock offsets, and unifying all primary timestamps with the global time reference.

[0058] Step S2: Data transmission and delay calculation based on CAN bus;

[0059] The data transmission transmits time-stamped data packets via the CAN bus to the timing synchronization center of the digital twin; the delay calculation calculates the transmission delay of each data stream based on real-time system monitoring, including the single transmission delay. The calculation formula is:

[0060]

[0061] in, This is the timestamp of the data packet's transmission at the sending node. This is the arrival timestamp added to the data packets when they are received at the time synchronization center. The system maintains a fixed-length delay history queue for each data source, recording a series of consecutive delay values. This will serve as the basis for subsequent analysis.

[0062] Step S3: Lightweight latency prediction and adaptive buffer alignment;

[0063] The lightweight latency prediction and adaptive buffer alignment are implemented based on a time-series synchronization center, which configures an adaptive buffer for each data source and performs the following sub-steps:

[0064] Sub-step S3.1: Lightweight delay prediction;

[0065] The lightweight prediction uses a single exponential smoothing method as the prediction model, and predicts the latency of the next data packet based on the latency history queue. The prediction formula is:

[0066]

[0067] in This is the predicted value for this period. This is the value predicted in the previous period. Smoothing coefficient , That is Simultaneously, the moving standard deviation of historical delays is calculated. To quantify the degree of latency jitter.

[0068] Sub-step S3.2: Adjust the dynamic buffer window;

[0069] The window adjustment is based on the standard deviation of delay jitter. Dynamically set the wait window size for the data source buffer. The rules are set as follows:

[0070]

[0071] in, For adjustable safety factor (usually) ), This serves as the baseline latency. This mechanism ensures fault tolerance for high-jitter data streams while avoiding introducing excessive latency into stable data streams.

[0072] Sub-step S3.3: Linear interpolation and uniform time scale assignment;

[0073] At the end of the preset synchronization period, all data in the buffers are aligned. Taking the commonly used CAN communication protocol as an example, given that the CAN communication process is extremely fast and data changes can be considered linear in a short period of time, a linear interpolation algorithm is used to resample the data from each data source to the alignment time point, and a unified high-precision final time stamp is assigned to all data.

[0074] In a preferred embodiment, the synchronization period is set to The linear interpolation algorithm is calculated using the following formula:

[0075]

[0076] in, For the interpolation result, For reference interval, The interpolation parameter represents the relative position of the inserted point within the reference interval. Preset values ​​can be based on experience.

[0077] Step S4: Synchronize data distribution to core functional modules;

[0078] The data distribution process involves publishing the high-quality, synchronized data sequence with a unified timescale obtained through the aforementioned processing to the data bus of the digital twin system. The core functional modules of the digital twin system, including a high-fidelity physical model, an online parameter identification module, and an adaptive predictive control module, will acquire and utilize this data in real time, ensuring that each module performs simulation, decision-making, and control based on a consistent spatiotemporal state.

[0079] Secondly, the present invention provides a timing synchronization system for implementing the above-described method, which is integrated into a magnetically driven rotor digital twin system, such as... Figure 2 As shown. The system mainly includes: a clock synchronization layer, a physical entity layer, a data transmission layer, and a digital twin application layer;

[0080] The core of the clock synchronization layer is the IEEE 1588 Precision Time Protocol (PTP) master clock, which supports the distribution of global clock synchronization signals and provides a basic time reference for subsequent timing synchronization.

[0081] The physical entity layer mainly includes the magnetic drive rotor body and its controller. The magnetic drive rotor controller executes mature control algorithms to support the stable operation of the magnetic drive rotor system under normal working conditions.

[0082] The data transmission layer mainly includes data acquisition nodes, a CAN bus communication network, and a timing synchronization center. Through a series of data operations, it achieves timing synchronization of multi-source heterogeneous data.

[0083] The digital twin application layer executes more specific digital twin applications based on the synchronized data mentioned above;

[0084] Furthermore, the data acquisition node is used to collect multi-source heterogeneous operating data of the magnetically driven rotor, specifically including: a displacement sensor node for high-frequency monitoring of air gap change data between the rotor and stator; a current sensor node for collecting current data of the electromagnetic bearing drive coil; a vibration sensor node for measuring triaxial vibration acceleration data of the bearing housing; and a magnetic levitation digital controller node for providing internal control commands, PID regulator outputs, and other internal state data.

[0085] Furthermore, the data acquisition node has a built-in slave clock interface supporting PTP. After a data packet is generated, the node immediately invokes the local system clock synchronized with PTP to inject a high-precision primary timestamp into the data packet. The clocks of all data acquisition nodes are synchronized with the PTP master clock deployed at the time synchronization center through an industrial network switch to correct clock offsets and ensure that all primary timestamps are established on a unified global time base.

[0086] Furthermore, the CAN bus communication network supports data access from the aforementioned data acquisition nodes and high-speed data interaction with the subsequent timing synchronization center.

[0087] Furthermore, the timing synchronization center supports real-time transmission and reception of CAN bus data and performs corresponding data processing to achieve timing synchronization of multi-source heterogeneous data. This part is the core of the invention. Specifically, the timing synchronization center includes the following functional units: a communication interface unit, a delay estimation unit, an adaptive buffer unit, and a data publishing unit.

[0088] The communication interface unit is configured to communicate with each data acquisition node via a CAN bus and receive data packets with PTP timestamps.

[0089] The delay estimation unit is responsible for calculating and recording the transmission delay of each data stream in real time.

[0090] The adaptive buffer alignment unit incorporates a lightweight prediction model based on a first-order exponential smoothing method and dynamic window adjustment logic. It is responsible for managing the buffers of each data source and performing linear interpolation and unified timescale reconstruction.

[0091] The data publishing unit distributes the processed synchronous data stream to the core functional modules of the digital twin system.

[0092] Furthermore, the digital twin application module improves the accuracy and reliability of related digital twin applications based on the aforementioned time-synchronized data. Specifically, high-fidelity twin model construction can be achieved based on time-synchronized data, online parameter identification accuracy can be improved based on time-synchronized data, and adaptive predictive control effects can be optimized based on time-synchronized data.

[0093] Example:

[0094] The multi-source data time-series synchronization method of the present invention, executed by the time-series synchronization center, specifically includes the following steps:

[0095] Step S1: Multi-source heterogeneous data acquisition and time-stamp injection;

[0096] When the magnetically driven rotor is running, each data acquisition node operates continuously at its own inherent sampling frequency to acquire corresponding sensor data. After each data packet is generated, the data node immediately integrates the local clock value synchronized with PTP as the primary timestamp of that data packet. and will The sensor device number and the collected data value are encapsulated together into a data packet and sent through the CAN bus in the form of a standard CAN data frame.

[0097] Step S2: Bus-based data transmission and delay calculation;

[0098] The aforementioned time-stamped data packets are transmitted to the timing synchronization center via the CAN bus. The timing synchronization center calculates the transmission delay of each data stream based on the received data packets and performs the following operations:

[0099] Parse the data packets within the CAN standard data frame to extract the data values, sensor device number, and primary timestamp. This is the sending timestamp. Immediately read the local PTP synchronization clock and record it as the arrival timestamp. Calculate the transmission delay. ; calculate the Values ​​are pushed into the delayed history queue of the corresponding data source. If the queue is full, the oldest data is removed to maintain the queue length.

[0100] Step S3: Lightweight latency prediction and adaptive buffer alignment;

[0101] The adaptive buffer alignment unit configures an adaptive buffer for each data source, such as... Figure 3 As shown, the following sub-steps are executed independently and in parallel:

[0102] Sub-step S3.1: Lightweight delay prediction;

[0103] Considering the resource-constrained edge computing environment, lightweight processing of related algorithms is required. This embodiment preferably uses the computationally efficient first-order exponential smoothing method for delayed prediction. Whenever a new... Once a value is entered into the queue, the predicted delay for the arrival of the next data packet from that data source is updated. The prediction formula used is:

[0104]

[0105] in, Let the current predicted value be denoted as . ; This is the predicted value from the previous calculation; As a smoothing coefficient, it can be used based on the stationarity of the data stream. Configuration within the interval, in this embodiment, is taken as... .

[0106] Simultaneously, calculate the overall standard deviation of the historical latency queue of this data source. The jitter intensity used to quantize latency, standard deviation The calculation formula is:

[0107]

[0108] in, For the specific data in the queue, The mean of the data in the queue. This represents the number of data items in the queue.

[0109] Sub-step S3.2: Adjust the dynamic buffer window;

[0110] To ensure full utilization of the data in the queue, the size of the buffer area will be adjusted according to the jitter intensity of the data latency, specifically based on the aforementioned standard deviation. Size: Dynamically sets the wait window size for the data source buffer. The rules are set as follows:

[0111]

[0112] in, The adjustable safety factor is usually set to [value missing]. This is to cover the vast majority of latency fluctuations and improve system robustness; As a baseline delay, the predicted arrival delay of the next data packet from this data source can be taken. .

[0113] Standard deviation Based on historical latency data, the baseline latency is... Based on the prediction of the next time step delay, the dual dynamic adjustment mechanism ensures that the system is fault-tolerant to high jitter data streams, while avoiding introducing too much unnecessary delay to stable data streams.

[0114] Sub-step S3.3: Linear interpolation and uniform time scale assignment;

[0115] Linear interpolation and uniform time scaling need to be performed at specific time points, introducing a synchronization period. Each time interval is a synchronization cycle The length refers to the linear interpolation and uniform time stamp assignment function performed once, which means that at the end of each preset synchronization period, all data in the buffer will be aligned.

[0116] This embodiment takes the CAN communication protocol as an example. Given that the CAN communication process is extremely fast and the data changes in a short time can be regarded as linear, a linear interpolation algorithm can be used to resample the data from each data source to the aligned time point and assign a unified high-precision final time stamp to all data.

[0117] With a fixed synchronization period For the beat, this embodiment is set as follows: Generate alignment time In each At any given time, for each data source buffer, retrieval is performed within the time window. All data packets that have arrived within the window are selected, and the one that is closest in time is chosen within that window. Two data packets, whose timestamps and values ​​are respectively... and And satisfy Based on the assumption that data changes continuously over a short period of time, a linear interpolation algorithm is used to calculate the precise alignment time. Estimated data values :

[0118]

[0119] The following is the interpolated data. To provide a unified, high-precision final time scale .

[0120] Step S4: Synchronize data distribution to core functional modules;

[0121] The data publishing unit will publish all data sources generated in sub-step S3.3. Moment ( , The data pairs are assembled into a complete, time-sequentially aligned system status data stream and published to the CAN communication data bus.

[0122] The digital twin application module, including a high-fidelity twin model, an online parameter identification module, and an adaptive predictive control module, subscribes to and consumes the synchronous data stream in real time. This enables all core functional modules to perform simulation, analysis, and decision-making based on a completely consistent spatiotemporal system state, fundamentally eliminating state reconstruction errors caused by timing inaccuracies, and significantly improving the fidelity of the digital twin model and the control performance and reliability of the entire system.

[0123] In its specific implementation, this application provides a computer storage medium and a corresponding data processing unit. The computer storage medium is capable of storing a computer program, which, when executed by the data processing unit, can run the invention's content regarding a multi-source data timing synchronization method and system for magnetically driven rotor twin control, as well as some or all of the steps in various embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc.

[0124] Those skilled in the art will clearly understand that the technical solutions in the embodiments of the present invention can be implemented using computer programs and their corresponding general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of computer programs, i.e., software products. These computer program software products can be stored in a storage medium and include several instructions to cause a device containing a data processing unit (which may be a personal computer, server, microcontroller, MCU, or network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.

[0125] This invention provides a method and system for multi-source data timing synchronization in magnetically driven rotor twin control. Many methods and approaches exist for implementing this technical solution; the above description is merely a preferred embodiment. It should be noted that those skilled in the art can make various improvements and modifications without departing from the principles of this invention, and these improvements and modifications should also be considered within the scope of protection of this invention. All components not explicitly stated in this embodiment can be implemented using existing technologies.

Claims

1. A multi-source data timing synchronization method for magnetically driven rotor twin control, characterized in that, Includes the following steps: Step 1: Multi-source heterogeneous data acquisition and time stamp injection. At the data acquisition end of the magnetic drive rotor control system, multi-source heterogeneous data is acquired, forming data packets, and time stamps are injected into each data packet. Step 2, data transmission and latency calculation: Transmit time-stamped data packets to the time synchronization center, calculate and record the transmission latency of each data packet in real time, and obtain the latency history queue of each data source. Step 3: At the time synchronization center, delay prediction of data packets and adaptive buffer alignment of data are performed to obtain a synchronized data sequence with a unified time scale. Step 4: Distribute the synchronized data sequence with a unified time stamp obtained in Step 3 to complete the time synchronization of multi-source data.

2. The multi-source data timing synchronization method for magnetically driven rotor twin control according to claim 1, characterized in that, The multi-source heterogeneous data mentioned in step 1 includes: monitoring data from displacement sensors, current sensors, vibration sensors, and status data from the controller in the magnetic drive rotor control system.

3. The multi-source data timing synchronization method for magnetically driven rotor twin control according to claim 2, characterized in that, The time stamp mentioned in step 1 is a primary timestamp based on the local clock; wherein, the local clock of the data acquisition end is synchronized with the global master clock and the clock offset is corrected through the IEEE 1588 precision clock protocol, so that all primary timestamps are unified with the global time reference.

4. The multi-source data timing synchronization method for magnetically driven rotor twin control according to claim 3, characterized in that, The data transmission and delay calculation mentioned in step 2 include: Step 2-1: Transmit the time-stamped data packet to the timing synchronization center via the CAN bus; Step 2-2: Calculate and record the transmission delay of each data packet in real time; Steps 2-3: Calculate the transmission delay of data packets sent by each data source and retain records of a preset length to obtain a delay history queue of a preset length.

5. A multi-source data timing synchronization method for magnetically driven rotor twin control according to claim 4, characterized in that, Step 3 involves performing packet delay prediction and adaptive buffer alignment, which means configuring an adaptive buffer for each data source at the time synchronization center and executing the following steps: Step 3-1, Delay prediction: Based on the delay history queue, a prediction model is used to predict the delay value of the next data packet; Step 3-2, Dynamic buffer window adjustment: Based on the latency jitter of the latency history queue of each data source, dynamically set the waiting window size of the adaptive source buffer for that data. Step 3-3: Assign a unified time stamp. At the end of the preset synchronization period, align the data in the adaptive buffer and assign a unified final time stamp to all data.

6. A multi-source data timing synchronization method for magnetically driven rotor twin control according to claim 5, characterized in that, The prediction model described in step 3-1 is a first-order exponential smoothing model.

7. A multi-source data timing synchronization method for magnetically driven rotor twin control according to claim 6, characterized in that, The dynamic setting of the wait window size of the adaptive source buffer for the data in step 3-2 includes: Step 3-2-1: Calculate the moving standard deviation of the delay values ​​in the delay history queue. , used to indicate the degree of delay jitter; Step 3-2-2: Set the waiting window size according to the degree of latency jitter.

8. A multi-source data timing synchronization method for magnetically driven rotor twin control according to claim 7, characterized in that, The data alignment in the adaptive buffer described in step 3-3 involves resampling the data from each data source to the end of the synchronization period using linear interpolation.

9. A multi-source data timing synchronization method for magnetically driven rotor twin control according to claim 8, characterized in that, Step 3-3, which involves resampling the data from each data source to the end of the synchronization period using linear interpolation, includes: Step 3-3-1, set the preset synchronization period as follows: Generate alignment time In each At any given time, for each data source buffer, retrieval is performed within the time window. All data packets that have arrived within the window are selected, and the one with the closest arrival time within that window is chosen. The two data packets have timestamps and values ​​respectively. and And satisfy ; Step 3-3-2: Using linear interpolation, calculate the value at the alignment time. Estimated data values ; Step 3-3-3, interpolation data Assigning the final time scale .

10. A multi-source data timing synchronization system for magnetically driven rotor twin control, used to implement the method as described in any one of claims 1 to 9, characterized in that, Integrated into the digital twin system of the magnetically driven rotor, including: The clock synchronization layer uses the IEEE 1588 precision time protocol master clock to provide a global time reference; The physical entity layer includes the magnetically driven rotor body and its control system; The data transmission layer includes data acquisition nodes for collecting multi-source heterogeneous data, a CAN bus communication network for data transmission, and a timing synchronization center. The digital twin application layer executes digital twin applications based on the synchronization data sequence output by the time synchronization center; The timing synchronization center specifically includes: The communication interface unit receives time-stamped data packets from the data acquisition node via the CAN bus; The delay estimation unit calculates and records the transmission delay of each data stream; The adaptive buffer alignment unit manages an adaptive buffer for each data source, performing operations such as delay prediction, dynamic buffer window adjustment, and uniform timescale assignment. The data publishing unit distributes the processed synchronous data stream to the digital twin application layer.

Citation Information

Patent Citations

  • Biomass power generation combustion parameter deep learning method and system

    CN120217302A

  • Multi-dimensional data fusion monitoring method and system for complex industrial scene

    CN120611482A