Measurement system and measurement method for determining clock synchronization accuracy
By using signal acquisition, logic processing and data analysis modules in the clock synchronization accuracy measurement system, the problems of high cost, complex operation and insufficient scalability of measuring clock synchronization accuracy in the prior art are solved, and efficient and convenient multi-nodes are achieved Clock synchronous measurement to adapt to the needs of dynamic production environments.
Patent Information
- Application Number
- CN202411491342.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-24
- Publication Date
- 2024-11-22
- Estimated Expiration
- 2044-10-24
AI Technical Summary
The prior art has problems such as high cost, complex operation, low efficiency, insufficient scalability and difficult integration when measuring clock synchronization accuracy, especially in multi-node clock synchronization scenarios.
Provide a measurement system, including a signal acquisition module, a logic processing module and a data analysis module, which can collect and process multiple signals at the same time, monitor and record synchronous signal changes in real time, and intuitively output clock synchronization accuracy measurement results, reducing operational complexity and measurement time.
It significantly improves operational convenience and measurement efficiency, reduces costs, is suitable for multi-node clock synchronization scenarios, meets the demand for rapid response in dynamically changing production environments, and has good scalability and easy system integration.
Smart Images

Figure CN119011109A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology of industrial automation, and in particular to a measurement system and a measurement method for determining clock synchronization accuracy. Background Art
[0002] In the field of industrial automation, such as Figure 1 As shown, when multiple devices 1 to 6 are connected to each other in a certain connection mode (for example, through an EPA communication protocol network), in order to enable all connected devices to be uniformly scheduled and operated to jointly complete the measurement and control work in the system. All connected devices need to use the time of one of the devices (such as device 1) as the reference, and the other devices (such as devices 2 to 6) are synchronized with the device that provides the time reference. Among them, device 1 that provides the clock reference is called the master clock device, and devices 2 to 6 that synchronize with the master clock device are called slave clock devices.
[0003] Traditional methods for measuring master-slave clock synchronization accuracy mainly rely on professional equipment such as oscilloscopes, but these devices are usually expensive. With the development of technology, some systems have begun to adopt software-based monitoring methods to evaluate clock synchronization accuracy by analyzing communication data. However, software-based monitoring methods are susceptible to network delays and packet loss. In addition, there is also a technical solution that uses a centralized synchronization system to broadcast time signals through a master clock to synchronize multiple devices, but it has the risk of strong dependence and single point failure.
[0004] In contrast, using an oscilloscope to measure clock synchronization accuracy has the advantages of high reliability, high-precision time resolution, and intuitive waveform display, making it easier for engineers to analyze synchronization signals. Although an oscilloscope can provide a high-precision time reference, using an oscilloscope to measure clock synchronization accuracy has the limitations of complex operation, high cost, and low time efficiency. In addition, each measurement can only be applied to a small number of nodes, which is not convenient for use in multi-node clock synchronization measurement scenarios. Summary of the invention
[0005] In response to the above problems, the present disclosure provides a measurement system and test method for determining the clock synchronization accuracy. Through the signal acquisition module, logic processing module and data analysis module, it can not only realize the acquisition and signal selection of multiple signals at the same time, but also monitor and record the changes of synchronization signals in real time and intuitively output the clock synchronization accuracy measurement results, thereby avoiding complicated operations, and significantly improving the operational convenience and measurement efficiency, solving the above problems.
[0006] According to a first aspect of the present disclosure, a measurement system for determining clock synchronization accuracy is provided, characterized in that it includes: a signal acquisition module, configured to simultaneously acquire signals from at least one device and convert the acquired signals into logic level signals; a signal processing module, configured to receive logic level signals from the signal acquisition module and perform "logical AND" and "logical OR" operations on the logic level signals, respectively, to output processed signals; a recording module, configured to record time data corresponding to the periodic signal output by the signal processing module in each cycle; and a data analysis module, configured to receive time data from the recording module and compare the time data with the corresponding master clock time data, so as to determine the clock synchronization accuracy of the at least one device.
[0007] In one embodiment, the signal acquisition module also includes: a channel selection unit, which is configured to communicate with the recording module, and after the signal acquisition module acquires the signal and completes the conversion, selectively processes at least part of the multiple logic level signals based on the channel type corresponding to the multiple acquired signals.
[0008] In one embodiment, the channel selection unit is further configured to: selectively shield at least part of the multiple logic level signals based on the channel type corresponding to the multiple collected signals, or transmit at least part of the multiple logic level signals to the recording module.
[0009] In one embodiment, the recording module is further configured to: record the time of the logic level signal received from the channel selection unit in each cycle and perform time compensation on the time.
[0010] In one embodiment, the recording module is further configured to record the input time of the logic level signal entering the signal processing module and the output time from the signal processing module, thereby obtaining the compensation time for time compensation by calculating the difference between the input time and the output time.
[0011] In one embodiment, the recording module is further configured to: record the time when the signal processing module outputs a periodic signal after “logical OR” processing in each period as the left deviation time; and The time when the signal processing module outputs a periodic signal after "logic AND" processing is recorded as the right deviation time.
[0012] In one embodiment, the data analysis module is further configured to: calculate the maximum left deviation time and the maximum right deviation time in all cycles based on the left deviation time and the maximum right deviation time in each cycle recorded by the recording module; and determine the jitter range of the clock synchronization accuracy based on the maximum left deviation time and the maximum right deviation time.
[0013] In one embodiment, the data analysis module is configured to: calculate the left deviation time difference between the maximum left deviation time and the minimum left deviation time in each cycle, and the right deviation time difference between the maximum right deviation time and the minimum right deviation time based on multiple left deviation times and multiple right deviation times in each cycle recorded by the recording module; and calculate the maximum value of the left deviation time difference and the right deviation time difference in all cycles, so as to determine the jitter range in the clock synchronization accuracy based on the maximum value.
[0014] In one embodiment, the data analysis module is configured to: calculate the average value of the left deviation time and the right deviation time in each cycle based on the left deviation time and the right deviation time in each cycle recorded by the recording module; calculate the total average value of the average values in all cycles, and the difference between the total average value and the corresponding master clock time data; and determine the deviation of the clock synchronization accuracy based on the difference between the total average value and the corresponding master clock time data.
[0015] In one embodiment, the data analysis module is configured to: calculate the left difference between the left deviation time and the corresponding master clock time, and the right difference between the right deviation time and the corresponding master clock time in each cycle based on multiple left deviation times and multiple right deviation times in each cycle recorded by the recording module; compare the left difference and the right difference to obtain the maximum value of the left difference and the right difference in each cycle; and calculate the average value of the maximum values for all cycles, so as to determine the deviation of the clock synchronization accuracy based on the average value.
[0016] According to a second aspect of the present disclosure, a measurement method is provided, including: connecting a signal acquisition module of the measurement system to at least one communication device; acquiring signals through the signal acquisition module and converting the acquired signals into logic level signals; performing logic processing on the logic level signals through the signal processing module and outputting them to a recording module; recording the time when the signal processing module outputs a periodic signal through the recording module; comparing the time data with the master clock time data through the data analysis module, thereby determining the clock synchronization accuracy.
[0017] According to a third aspect of the present disclosure, a computing device for determining clock synchronization accuracy is provided, comprising one or more processors; and a memory storing computer executable instructions, which, when executed by one or more processors, cause the one or more processors to perform a measurement method according to the second aspect of the present disclosure.
[0018] According to a fourth aspect of the present disclosure, a non-volatile storage medium having computer executable instructions stored thereon is provided. When the computer executable instructions are executed by a computer, the computer executes the measurement method according to the second aspect or the third aspect of the present disclosure.
[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The above and other features, advantages and aspects of the embodiments of the present disclosure will become more apparent with reference to the following detailed description in conjunction with the accompanying drawings. In the accompanying drawings, the same or similar reference numerals represent the same or similar elements.
[0021] Figure 1 A schematic diagram showing multiple devices in a connected state according to an embodiment of the present disclosure is shown.
[0022] Figure 2 A schematic diagram of a measurement system for determining clock synchronization accuracy according to an embodiment of the present disclosure is shown.
[0023] Figure 3 The flowchart of a measurement method using a measurement system for determining clock synchronization accuracy according to an embodiment of the present disclosure is shown.
[0024] Figure 4 A schematic block diagram of an electronic device for implementing a measurement method for determining clock synchronization accuracy according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0025] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.
[0026] As used herein, the term "including" and its variations mean open inclusion, i.e., "including but not limited to". Unless otherwise stated, the term "or" means "and / or". The terms "an example embodiment" and "an embodiment" mean "at least one example embodiment". The term "another embodiment" means "at least one additional embodiment". Other explicit and implicit definitions may also be included below.
[0027] As mentioned above, in industrial automation systems, the existing technology usually uses an oscilloscope to measure the clock synchronization accuracy of devices, such as the clock synchronization accuracy of multiple slave devices that follow the EPA (Ethernet for Plant Automation) communication protocol. However, when using the existing technology to measure the clock synchronization accuracy, there are usually disadvantages such as high cost, complex operation, low efficiency, insufficient real-time and scalability, and difficulty in integration.
[0028] Specifically, the traditional clock synchronization accuracy measurement method relies on high-precision professional measuring equipment, such as oscilloscopes, which are usually expensive and increase the cost burden of enterprises. Moreover, professional knowledge and skills are often required to operate these professional measuring equipment, which limits the popularity and convenience of the measurement process. In addition, when using professional measuring equipment such as oscilloscopes for synchronous measurement, it is usually necessary to operate each node one by one, which is not only time-consuming, but also extremely inefficient when facing a large number of node measurement scenarios. At the same time, the characteristics of single-point measurement lead to limitations in the existing technology in real-time monitoring of clock synchronization accuracy, making it difficult to meet the needs of fast response in the dynamically changing production environment, and even more unable to flexibly adapt to the changes in system scale that occur with the expansion of industrial automation systems, thus lacking good scalability. In addition, integrating the oscilloscope in the prior art into the existing industrial automation system requires a lot of changes and adaptations, which significantly increases the difficulty of technology upgrades.
[0029] Therefore, the present disclosure provides an improved measurement system and test method for determining clock synchronization accuracy, which can not only realize the acquisition and signal selection of multiple signals at the same time through a signal acquisition module, a logic processing module and a data analysis module, but also can monitor and record the changes of synchronization signals in real time and output the clock synchronization accuracy measurement results intuitively, thereby avoiding complex operations, thereby significantly improving the convenience of operation and measurement efficiency, and solving the above problems. The measurement system for determining clock synchronization accuracy according to various embodiments of the present disclosure will be described in detail below in conjunction with the accompanying drawings. It should be understood that the actual measurement system may have other components, but in order to avoid blurring the focus of the present disclosure, the present disclosure does not discuss these other components and the accompanying drawings do not show them.
[0030] Figure 2 A measurement system for determining clock synchronization accuracy according to some embodiments of the present disclosure is shown. Figure 2As shown, a measurement system for determining clock synchronization accuracy includes a signal acquisition module, a signal processing module, a recording module and a data analysis module that are communicatively connected in sequence, the signal acquisition module is configured to simultaneously acquire signals from at least one communication device, and convert the acquired signals into logic level signals respectively; the signal processing module is configured to receive logic level signals from the signal acquisition module, and perform logic AND and logic OR processing on the logic level signals respectively to output processed signals; the recording module is configured to record the time when the signal processing module outputs a periodic signal in each cycle; and the data analysis module is configured to receive time data from the recording module, and compare the time data with the corresponding master clock time data, so as to determine the clock synchronization accuracy.
[0031] The above measurement system adopts a modular implementation method, which is easy to integrate with the existing system without complicated adaptation process, reducing the difficulty of technology upgrade. Moreover, the measurement system adopts low-cost circuit design to replace expensive professional measurement equipment, which significantly reduces the cost.
[0032] At least one of the above-mentioned devices may be an EPA slave clock device, which is communicatively connected to the EPA master clock device via an EPA communication system. Meanwhile, the above-mentioned signal may include any one of periodic signals such as Ethernet trigger signals, periodic signals and second pulse signals.
[0033] The signal acquisition module may further include a channel selection unit, and the channel selection unit is configured to selectively shield at least part of the multiple logic level signals according to the channel type corresponding to each collected signal when the signal acquisition module collects multiple signals. The channel selection unit may also be communicatively connected to the recording module, and configured to selectively transmit at least part of the multiple logic level signals to the recording module according to the channel type corresponding to each collected signal.
[0034] Through the signal acquisition module, the measurement system can simultaneously connect to multiple EPA slave clock devices and collect multiple signals at the same time, so that the measurement system can process multiple signal channels in parallel, thereby greatly shortening the measurement time and improving the measurement efficiency, which is especially suitable for the clock synchronization accuracy measurement scenario of large-scale nodes. In addition, the shielding signal function of the channel selection unit in the signal acquisition module provides great flexibility, allowing users to selectively shield the signal of a specific channel according to test requirements, improving the pertinence and efficiency of the test.
[0035] The signal processing module is configured to perform logical AND and logical OR processing on logic level signals through AND gates and OR gates or line OR and line AND. By processing multiple signals in parallel through the signal processing module, the measurement process is simplified, the dependence on professional operating skills is reduced, and the measurement process is more convenient and easy to popularize. At the same time, logical processing of multiple signals enables the measurement system to respond to the measurement needs of multiple devices in a timely manner in actual use and reduce subsequent operations, thereby ensuring that the clock synchronization accuracy can be monitored in real time, thereby meeting the needs of fast response in a dynamically changing production environment.
[0036] The recording module can be configured to record the time when the signal processing module outputs a periodic signal after logical OR processing in each cycle as the left deviation time, and record the time when the signal processing module outputs a periodic signal after logical AND processing as the right deviation time. The recording module can also be configured to record the time when the logic level signal from the channel selection unit is received in each cycle, and perform time compensation on the time. Specifically, the recording module is configured to record the time when the logic level signal enters the signal processing module and is output from the signal processing module, so as to obtain the compensation time for time compensation by calculating the difference between the input and output times.
[0037] It should be understood that the recording module can not only record the time when the output of the signal processing module and the channel selection unit changes from "0" to "1" (i.e., the time when the logic level signal changes from a low level to a high level), but also record the time when the output of the signal processing module and the channel selection unit changes from "1" to "0" (i.e., the time when the logic level signal changes from a high level to a low level). Whether the aforementioned output signal changes from a high level to a low level or from a low level to a high level varies according to the requirements of the specific measurement scenario.
[0038] Through the above-mentioned signal processing module and recording module, the measurement system provided by the present disclosure can monitor and record the changes of the synchronization signal in real time, and quickly respond to the measurement requirements of clock synchronization accuracy, thereby meeting the needs for rapid response in a dynamic production environment.
[0039] In the analysis of clock synchronization accuracy, jitter range and deviation are two important parameters. Therefore, the data analysis module in the measurement system provided by the present disclosure can at least be configured to calculate the jitter range and deviation parameters in the clock synchronization accuracy according to the time data recorded by the recording module.
[0040] Specifically, the data analysis module is configured to calculate the maximum left deviation time and the maximum right deviation time in all cycles based on the left deviation time and the right deviation time in each cycle recorded by the recording module, and determine the jitter range of the clock synchronization accuracy based on the maximum left deviation time and the maximum right deviation time.
[0041] When the signal acquisition module collects multiple signals, the data analysis module is configured to calculate the left deviation time difference between the maximum left deviation time and the minimum left deviation time and the right deviation time difference between the maximum right deviation time and the minimum right deviation time in each cycle according to the multiple left deviation times and the multiple right deviation times in each cycle recorded by the recording module, and determine the jitter range of the clock synchronization accuracy based on the maximum value of the left deviation time difference and the right deviation time difference in all the cycles obtained by calculating.
[0042] For the deviation data in the clock synchronization accuracy measurement, the data analysis module can also be configured to calculate the average value of the left deviation and right deviation time in each cycle based on the left deviation time and right deviation time in each cycle recorded by the recording module, and calculate the total average value of the average value in all cycles, as well as the difference between the total average value and the corresponding master clock time data, so as to determine the deviation of the clock synchronization accuracy based on the difference.
[0043] Similar to the jitter range analysis in clock synchronization accuracy when collecting multiple signals, when the signal acquisition module collects multiple signals, the data analysis module can also be configured to calculate the left difference between the left deviation time and the corresponding master clock time and the right difference between the right deviation time and the corresponding master clock time in each cycle according to the multiple left deviation times and multiple right deviation times in each cycle recorded by the recording module, and obtain the maximum value of the left difference and the right difference in each cycle by comparison, and calculate the average value of the maximum value in all cycles, so as to determine the deviation of the clock synchronization accuracy based on the average value.
[0044] Optionally, the data analysis module can also be configured to calculate the left deviation time average value of the left deviation time in all cycles and the right deviation time average value of the right deviation time in all cycles based on the left deviation time and the right deviation time in each cycle recorded by the recording module.
[0045] Furthermore, based on the jitter range data and deviation data output by the data analysis module, the user can clearly obtain the clock synchronization accuracy of the slave device.
[0046] like Figure 3 As shown, a measurement method using the aforementioned measurement system for determining clock synchronization accuracy includes connecting a signal acquisition module of the measurement system to at least one communication device; and converting the acquired signal into a logic level signal through the signal acquisition module, performing logic processing on the logic level signal through the signal processing module and outputting it to the recording module, recording the time when the signal processing module outputs a periodic signal through the recording module, and comparing the time data with the master clock time data through the data analysis module, thereby determining the clock synchronization accuracy of the device.
[0047] The measurement system and measurement method disclosed in the present invention are cost-effective, easy to operate, highly efficient, real-time and flexible, and have the advantages of customizability, scalability and easy system integration. Specifically, the present invention adopts a low-cost circuit design to replace expensive professional measurement equipment, reducing the cost burden of enterprises in clock synchronization accuracy measurement. Moreover, the measurement system can collect signals from multiple devices at the same time and dynamically shield the signals of specific channels according to user configuration. It has high flexibility and effectively reduces the amount of data by performing logical processing on multiple signals, thereby realizing real-time monitoring of clock synchronization accuracy and timely feedback of measurement results, which is crucial to the stable operation of the system.
[0048] In terms of clock synchronization accuracy analysis, the measurement system provided by the present disclosure can not only calculate the average synchronization time, but also determine the maximum and minimum time deviations, which is conducive to deviation analysis, thereby providing a comprehensive clock synchronization accuracy assessment. Moreover, the entire measurement system adopts a modular design, and each module has clear functions and interfaces, which is easy to integrate into existing industrial automation systems.
[0049] The present disclosure also provides a computing device for determining clock synchronization accuracy, which includes one or more processors and a memory storing computer-executable instructions. When the computer-executable instructions are executed by the one or more processors, the one or more processors execute the measurement method according to any of the aforementioned embodiments of the present disclosure.
[0050] The present disclosure also provides a non-transitory storage medium having computer executable instructions stored thereon, and when the computer executable instructions are executed by a computer, the computer executes the measurement method according to any of the aforementioned embodiments of the present disclosure.
[0051] Figure 4 Schematic block diagram of an example device 700 that can be used to implement embodiments of the present disclosure is shown. Figure 1 The master clock device 1 and the slave clock devices 2 to 6 are shown, as Figure 2 The measurement system can be implemented by the device 700. Figure 4 As shown, the device 700 includes a central processing unit (CPU) 701, which can perform various appropriate actions and processes according to computer program instructions stored in a read-only memory (ROM) 702 or computer program instructions loaded from a storage unit 708 to a random access memory (RAM) 703. In the random access memory 703, various programs and data required for the operation of the device 700 can also be stored. The central processing unit 701, the read-only memory 702, and the random access memory 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0052] A number of components in the device 700 are connected to the input / output interface 705, including: an input unit 706, such as a keyboard, a mouse, a microphone, etc.; an output unit 707, such as various types of displays, speakers, etc.; a storage unit 708, such as a disk, an optical disk, etc.; and a communication unit 709, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0053] The various processes and processing described above, such as methods, may be executed by the central processing unit 701. For example, in some embodiments, Figure 3 The method shown may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 700 via the read-only memory 702 and / or the communication unit 709. When the computer program is loaded into the random access memory 703 and executed by the central processing unit 701, one or more actions of the method described above may be performed.
[0054] The present disclosure relates to methods, apparatus, systems, electronic devices, computer-readable storage media and / or computer program products. A computer program product may include computer-readable program instructions for executing various aspects of the present disclosure. A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the above. More specific examples (a non-exhaustive list) of computer-readable storage media include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a protruding structure in a groove on which instructions are stored, and any suitable combination of the above. The computer-readable storage medium used herein is not to be construed as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., light pulses through a fiber optic cable), or an electrical signal transmitted through wires.
[0055] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0056] The computer program instructions for performing the operations of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), the electronic circuit may execute the computer-readable program instructions, thereby implementing various aspects of the present disclosure.
[0057] Various aspects of the present disclosure are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0058] These computer-readable program instructions can be provided to a processing unit of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processing unit of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0059] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0060] The flow chart and block diagram in the accompanying drawings show the possible architecture, function and operation of the system, method and computer program product according to multiple embodiments of the present disclosure. In this regard, each square box in the flow chart or block diagram can represent a part of a module, program segment or instruction, and a part of the module, program segment or instruction includes one or more executable instructions for realizing the specified logical function. In some alternative implementations, the function marked in the square box can also occur in a sequence different from that marked in the accompanying drawings. For example, two continuous square boxes can actually be executed substantially in parallel, and they can sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each square box in the block diagram and / or flow chart, and the combination of the square boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs the specified function or action, or can be implemented with a combination of special hardware and computer instructions.
[0061] Those skilled in the art should understand that the present disclosure is not limited to the above-mentioned embodiments, and the present disclosure can be implemented in many other forms without departing from its subject matter and scope. Therefore, the examples and embodiments shown are considered to be illustrative rather than restrictive, and the present disclosure can cover various modifications and substitutions without departing from the spirit and scope of the present disclosure as defined in the appended claims.
Claims
1. A measurement system for determining clock synchronization accuracy, characterized in that include: a signal acquisition module configured to simultaneously acquire signals from at least one device and convert the acquired signals into logic level signals; a signal processing module configured to receive the logic level signal from the signal acquisition module and perform "logical AND" and "logical OR" operations on the logic level signal respectively to output a processed signal; A recording module configured to record time data corresponding to the periodic signal output by the signal processing module in each period; as well as A data analysis module is configured to receive the time data from the recording module and compare the time data with the corresponding master clock time data to determine the clock synchronization accuracy of the at least one device.
2. The measuring system according to claim 1, characterized in that The signal acquisition module also includes: The channel selection unit is configured to be in communication connection with the recording module, and after the signal acquisition module acquires the signal and completes the conversion, selectively processes at least part of the multiple logic level signals based on the channel types corresponding to the multiple acquired signals.
3. The measuring system according to claim 2, characterized in that The channel selection unit is also configured to: At least part of the multiple logic level signals are selectively shielded based on the channel types corresponding to the multiple collected signals, or at least part of the multiple logic level signals are transmitted to the recording module.
4. The measuring system according to claim 3, characterized in that The recording module is also configured to: The time of receiving the logic level signal from the channel selection unit in each cycle is recorded and time compensation is performed on the time.
5. The measuring system according to claim 4, characterized in that The recording module is also configured to: The input time of the logic level signal entering the signal processing module and the output time from the signal processing module are recorded, so as to obtain the compensation time for time compensation by calculating the difference between the input time and the output time.
6. The measurement system according to claim 1, characterized in that The recording module is also configured to: Recording the time when the signal processing module outputs a periodic signal after "logical OR" processing in each period as the left deviation time; and The time when the signal processing module outputs a periodic signal after "logic AND" processing is recorded as the right deviation time.
7. The measuring system according to claim 6, characterized in that The data analysis module is also configured to: Based on the left deviation time and the right deviation time in each cycle recorded by the recording module, the maximum left deviation time and the maximum right deviation time in all cycles are calculated; and For a single slave clock, the jitter range of the clock synchronization accuracy is determined based on the maximum left deviation time and the maximum right deviation time.
8. The measuring system according to claim 6, characterized in that The data analysis module is configured to: Based on the multiple left deviation times and multiple right deviation times in each cycle recorded by the recording module, respectively calculate the left deviation time difference between the maximum left deviation time and the minimum left deviation time in each cycle, and the right deviation time difference between the maximum right deviation time and the minimum right deviation time; as well as The maximum value of the left deviation time difference value and the right deviation time difference value in all cycles is calculated, so as to determine the jitter range in the clock synchronization accuracy based on the maximum value.
9. The measuring system according to claim 6, characterized in that The data analysis module is configured to: Based on the left deviation time and the right deviation time in each cycle recorded by the recording module, an average value of the left deviation time and the right deviation time in each cycle is calculated; Calculate the total average value of the average value in all cycles, and the difference between the total average value and the corresponding master clock time data; as well as The deviation of the clock synchronization accuracy is determined based on the difference between the total average value and the corresponding master clock time data.
10. The measuring system according to claim 6, characterized in that The data analysis module is configured to: Based on the multiple left deviation times and multiple right deviation times in each cycle recorded by the recording module, respectively calculate the left difference between the left deviation time and the corresponding master clock time in each cycle, and the right difference between the right deviation time and the corresponding master clock time; Compare the left difference value and the right difference value to obtain the maximum value of the left difference value and the right difference value in each cycle; as well as An average value of the maximum values is calculated for all cycles, thereby determining a deviation in the clock synchronization accuracy based on the average value.
11. A measurement method using the measurement system for determining clock synchronization accuracy according to any one of claims 1 to 10, characterized in that: The measuring method comprises: Connecting a signal acquisition module of the measurement system to at least one communication device; Collecting signals through the signal acquisition module and converting the collected signals into logic level signals; The signal processing module performs logic processing on the logic level signal and outputs the signal to the recording module; Recording, by the recording module, the time when the signal processing module outputs the periodic signal; The data analysis module compares the time data with the master clock time data to determine the clock synchronization accuracy.
12. A computing device for determining clock synchronization accuracy, characterized in that: The computing device comprises: one or more processors; and A memory storing computer executable instructions which, when executed by the one or more processors, cause the one or more processors to perform the measurement method according to claim 11.
13. A non-transitory storage medium having computer executable instructions stored thereon, characterized in that: The computer executable instructions, when executed by a computer, cause the computer to perform the measurement method according to claim 11 .
Citation Information
Patent Citations
Multichannel logic analyzer with synchronous signal self-calibration function
CN105911460A
Multichannel synchronous output calibrating apparatus and method
CN107863967A
Clock signal processing method, device and equipment and readable storage medium
CN109857190A
Method and device for testing chip, storage medium and corresponding chip
CN111856258A
Time synchronization precision test system and method based on pulse per second method
CN116896516A
