CN115361317A - Clock monitoring method, clock adjusting method, clock system and storage medium - Google Patents
Clock monitoring method, clock adjusting method, clock system and storage medium Download PDFInfo
- Publication number
- CN115361317A CN115361317A CN202210884462.9A CN202210884462A CN115361317A CN 115361317 A CN115361317 A CN 115361317A CN 202210884462 A CN202210884462 A CN 202210884462A CN 115361317 A CN115361317 A CN 115361317A
- Authority
- CN
- China
- Prior art keywords
- data
- clock
- slave clock
- slave
- real
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000012544 monitoring process Methods 0.000 title claims abstract description 64
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000002159 abnormal effect Effects 0.000 claims abstract description 37
- 238000012545 processing Methods 0.000 claims abstract description 34
- 230000005540 biological transmission Effects 0.000 claims abstract description 33
- 230000001360 synchronised effect Effects 0.000 claims description 20
- 238000012360 testing method Methods 0.000 description 7
- 239000013307 optical fiber Substances 0.000 description 4
- 230000008569 process Effects 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 3
- 238000012937 correction Methods 0.000 description 2
- 238000010586 diagram Methods 0.000 description 2
- 101100172132 Mus musculus Eif3a gene Proteins 0.000 description 1
- 230000002547 anomalous effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000006870 function Effects 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 238000013508 migration Methods 0.000 description 1
- 230000005012 migration Effects 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/08—Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
- H04L43/0852—Delays
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04J—MULTIPLEX COMMUNICATION
- H04J3/00—Time-division multiplex systems
- H04J3/02—Details
- H04J3/06—Synchronising arrangements
- H04J3/0635—Clock or time synchronisation in a network
- H04J3/0682—Clock or time synchronisation in a network by delay compensation, e.g. by compensation of propagation delay or variations thereof, by ranging
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0681—Configuration of triggering conditions
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/16—Threshold monitoring
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Environmental & Geological Engineering (AREA)
- Electric Clocks (AREA)
Abstract
The application discloses a clock monitoring method, an adjusting method, a clock system and a storage medium, wherein the clock monitoring method comprises the following steps: the real-time data network acquires master clock data from a master clock module and acquires slave clock data from one or more slave clock devices; the data processing module acquires master clock data and each slave clock data from the real-time data network at a first preset frequency, respectively calculates a difference value between the master clock data and each slave clock data, judges whether the difference value is greater than a preset threshold value or not, and marks an abnormal warning label on the slave clock data with the difference value greater than the preset threshold value. The technical scheme disclosed by the application ensures that the slave clock equipment connected with the real-time data network has smaller network transmission delay, so that the network has better real-time performance.
Description
Technical Field
The present application relates to the field of computer network technologies, and in particular, to a clock monitoring method, an adjusting method, a clock system, and a storage medium.
Background
The clock monitoring technology is crucial in the test management system, and the clock monitoring needs to monitor the clock data of all the test equipment, the tested equipment and other peripheral systems. During the test, the accuracy and difference change of the clock data of all the test devices need to be monitored in real time to ensure that the test data of all the devices and systems are generated on the same time control plane, all the devices are calculated according to the same clock period, and the generated data and the stored data have the same clock mark. The test data on the basis is real, effective and legal.
At present, most of the test processes are based on ethernet and perform clock monitoring and synchronization through PTP (precision Time Protocol). Although the ethernet technology has the advantages of good stability, low cost, high bandwidth, and good compatibility, the transmission mechanism of the CSMA/CD (carrier sense multiple access/collision detection) protocol of the ethernet determines that it cannot ensure network transmission delay, resulting in poor network real-time performance, and it is difficult to ensure data authenticity or real-time performance for a monitoring frequency of 1 ms.
Disclosure of Invention
The embodiment of the application provides a clock monitoring method, an adjusting method, a clock system and a storage medium, and solves the technical problem that the real-time performance is poor due to the fact that network transmission delay cannot be guaranteed in the prior art.
In a first aspect, an embodiment of the present application provides a clock monitoring method, where the method includes: the real-time data network acquires master clock data from a master clock module and acquires slave clock data from one or more slave clock devices; the data processing module acquires the master clock data and each slave clock data from the real-time data network at a first preset frequency, respectively calculates a difference value between the master clock data and each slave clock data, judges whether the difference value is greater than a preset threshold value, and marks an abnormal warning label on the slave clock data of which the difference value is greater than the preset threshold value.
With reference to the first aspect, in a possible implementation manner, data packets are generated between the master clock module and the real-time data network and between the slave clock device and the real-time data network according to a preset transmission protocol for data transmission; the preset transmission protocol comprises a data type, a data length and an offset.
With reference to the first aspect, in a possible implementation manner, the calculating a difference between the master clock data and each slave clock data, determining whether the difference is greater than a preset threshold, and after an anomaly warning tag is marked on the slave clock data whose difference is greater than the preset threshold, the method further includes: and storing a monitoring data packet to a cache unit, wherein the monitoring data packet comprises master clock data, each slave clock data, and the corresponding difference value and the corresponding label.
With reference to the first aspect, in a possible implementation manner, the method further includes: and the clock monitoring display equipment acquires and displays the monitoring data packet at a second preset frequency.
With reference to the first aspect, in a possible implementation manner, before the data processing module obtains the master clock data and each slave clock data from the real-time data network at a first preset frequency, the method further includes: configuring a slave clock device list in the data processing module, wherein the slave clock device list is used for acquiring the master clock data and each slave clock data from the real-time data network at a first preset frequency based on the slave clock device list; the slave clock device list comprises a monitoring identifier of each slave clock device and a data reading format defined based on the preset transmission protocol.
With reference to the first aspect, in a possible implementation manner, the method further includes: and updating the slave clock device list based on the slave clock device information by acquiring the connected slave clock device information from a slave clock management module, wherein the slave clock device information comprises the slave clock device address and the slave clock device state, and the slave clock device state is used for determining the monitoring identification of the slave clock device.
In a second aspect, an embodiment of the present application provides a clock adjustment method, where the method includes: according to the first aspect or any one of the possible implementation manners of the first aspect, a difference value between slave clock data and master clock data corresponding to a slave clock device with an exception warning tag is obtained; and the synchronization module corrects the slave clock data corresponding to the slave clock equipment with the abnormal warning label into master clock data through the real-time data network based on the difference value.
With reference to the second aspect, in a possible implementation manner, before the data processing module obtains the master clock data and each slave clock data from the real-time data network at a first preset frequency, the method further includes: configuring a slave clock device list in the data processing module, wherein the slave clock device list is used for acquiring the master clock data, each slave clock data and the synchronization mode of each slave clock device from the real-time data network at a first preset frequency based on the slave clock device list; the slave clock equipment list comprises a monitoring identifier of each slave clock equipment, a data reading format defined based on a preset transmission protocol and a synchronous identifier; the synchronization mark comprises a manual mode and an automatic mode.
In a third aspect, an embodiment of the present application provides a clock system, where the clock system includes: a master clock module for generating master clock data; one or more slave clock devices for generating slave clock data; the real-time data network is used for acquiring master clock data from the master clock module and acquiring slave clock data from one or more slave clock devices; the data processing module is used for acquiring the master clock data and each slave clock data from the real-time data network at a first preset frequency, respectively calculating a difference value between the master clock data and each slave clock data, judging whether the difference value is greater than a preset threshold value or not, and marking an abnormal warning label on the slave clock data of which the difference value is greater than the preset threshold value; the slave clock management module is used for configuring a slave clock equipment list in the data processing module and acquiring the master clock data and each slave clock data from the real-time data network at a first preset frequency based on the slave clock equipment list; and the synchronization module is used for correcting the slave clock data corresponding to the slave clock equipment with the abnormal warning label into master clock data through the real-time data network based on the difference value.
In a fourth aspect, the present application provides a computer-readable storage medium, which stores computer-readable instructions, and when executed by a processor, the computer-readable instructions implement the method described above.
The technical scheme provided in the embodiment of the application has at least the following technical effects or advantages:
the embodiment of the application provides a clock monitoring method, in the method, a real-time data network acquires master clock data from a master clock module, acquires slave clock data from one or more slave clock devices, the master clock data and the slave clock data are managed by the real-time data network, the consistency and the accuracy of the clock data are ensured, an abnormal warning label is marked on the slave clock data with the difference value larger than a preset threshold value with the master clock data by a data processing module, the real-time data network is convenient to adjust the slave clock data with the abnormal warning label, the slave clock devices connected with the real-time data network are ensured to have smaller network transmission delay, and the network has better real-time performance.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments of the present application or the prior art will be briefly introduced below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is an architecture diagram of a clock system provided by an embodiment of the present application;
FIG. 2 is an architecture diagram of a clock system according to another embodiment of the present application;
fig. 3 is a flowchart of a clock monitoring method according to an embodiment of the present disclosure;
fig. 4 is a flowchart of a clock adjustment method according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the application provides a clock system, the architecture of which is shown in fig. 1, and the clock system comprises a master clock module, one or more slave clock devices, a real-time data network, a data processing module, a slave clock management module, a synchronization module and a clock monitoring display device.
The master clock module and the plurality of slave clock devices are connected with a real-time data network; specifically, the optical fiber bus can be used for connection, and compared with the Ethernet and the field bus, the transmission rate of the optical fiber bus is higher, so that the real-time performance of a clock system can be ensured. The main clock module is provided with a main clock board card capable of generating main clock data, and a driving program is installed on the main clock board card.
In addition, a reflective memory card can be configured in the main clock module, the real-time data network is a reflective memory network, and a reflective memory switch is configured, so that the performance of data transmission can be improved by the reflective memory card and the reflective memory switch, and the software resource consumption caused by high-frequency requests can be reduced. The clock monitoring display device can be an electronic device which can be connected with the data processing module and displays, such as a personal computer, a tablet computer, a mobile phone and the like.
Specifically, the master clock module is used for generating master clock data; one or more slave clock devices for generating slave clock data; the real-time data network is used for acquiring master clock data from the master clock module and acquiring slave clock data from one or more slave clock devices; the data processing module is used for acquiring master clock data and each slave clock data from the real-time data network at a first preset frequency, respectively calculating a difference value between the master clock data and each slave clock data, judging whether the difference value is greater than a preset threshold value or not, and marking an abnormal warning label on the slave clock data with the difference value greater than the preset threshold value; the slave clock management module is used for configuring a slave clock equipment list in the data processing module and acquiring master clock data and each slave clock data from the real-time data network at a first preset frequency based on the slave clock equipment list; and the synchronization module is used for correcting the slave clock data corresponding to the slave clock equipment with the abnormal warning label into master clock data through the real-time data network based on the difference value.
In one embodiment of the present application, as shown in fig. 1, the synchronization module obtains the slave clock device with the abnormal warning tag and the corresponding difference value from the clock monitoring display device. When the synchronous identifier corresponding to the abnormal slave clock equipment is in an automatic mode, the synchronous module automatically transmits the calibration data to the corresponding abnormal slave clock equipment through a real-time data network based on the corresponding difference value, so that synchronous calibration of the slave clock equipment is realized; when the synchronous identifier is in a manual mode, the clock monitoring display device sets a synchronous button for the corresponding abnormal slave clock device based on an abnormal warning label output by the data processing module, and the synchronous button is used for receiving a synchronous instruction of a user. The calibration data is determined based on the difference from the master clock and the time required for data transfer between the synchronization module to the corresponding anomalous slave clock device.
In another embodiment of the present application, as shown in fig. 2, the synchronization module is respectively connected to the clock monitoring display device of the data processing module, and is configured to directly obtain the slave clock device with the abnormal warning tag and the corresponding difference value from the data processing module, and obtain the synchronization instruction from the clock monitoring display device. When the synchronous identifier corresponding to the slave clock equipment is in an automatic mode, the synchronous module automatically transmits the calibration data to the corresponding abnormal slave clock equipment through a real-time data network based on the corresponding difference value, so that synchronous calibration of the slave clock equipment is realized; when the synchronous mark is in a manual mode, the clock monitoring display device sets a synchronous button for the corresponding abnormal slave clock device based on the abnormal warning label output by the data processing module, the synchronous button is used for receiving a synchronous instruction of a user, and the synchronous module calibrates the corresponding abnormal slave clock device based on the synchronous instruction.
Based on the clock system provided in the foregoing embodiment of the present application, the embodiment of the present application further provides a clock monitoring method, which includes steps S301 to S306, as shown in fig. 3. When the clock monitoring method is implemented, data transmission can be carried out between the real-time data network and the master clock module and between the real-time data network and the slave clock equipment through the optical fiber bus, so that the data transmission is ensured to have higher speed, and the influence of transmission delay on judging slave clock data and adjusting the slave clock equipment is reduced.
Steps S301 to S306 shown in fig. 3 are described in detail below.
S301: the real-time data network obtains master clock data from a master clock module and slave clock data from one or more slave clock devices. The real-time data network is configured with a reflective memory switch, namely the real-time data network is a reflective memory network.
S302: the data processing module acquires master clock data and each slave clock data from the real-time data network at a first preset frequency. The first preset frequency in this step is set in advance by human, for example, set to 10 times/microsecond, or determined by the hardware itself.
S303: the difference between the master clock data and each slave clock data is calculated separately. For example, when three slave clock devices are connected to the real-time data network, the difference between the master clock data and the slave clock data of the first slave clock device, the difference between the master clock data and the slave clock data of the second slave clock device, and the difference between the master clock data and the slave clock data of the third slave clock device are calculated, and finally, three differences corresponding to the three slave clock devices are determined.
S304: and judging whether the difference value is larger than a preset threshold value or not. The preset threshold is set in advance by human, for example, the preset threshold is 10 microseconds.
If the determination result is yes, that is, the difference is greater than the preset threshold, the step S305 is executed: and (4) marking the data of the slave clock with an abnormal warning label. If the judgment result is negative, namely the difference value is less than or equal to the preset threshold value, the slave clock data is not labeled, and the slave clock data which is not labeled at the moment represents that the slave clock data is normal without adjustment. Of course, if the determination result in S304 is no, S306 may be executed: the slave clock data is tagged with a normal tag. The abnormal warning label gives a definite conclusion to the slave clock data, and the subsequent adjustment of the slave clock equipment corresponding to the slave clock data marked with the abnormal warning label by the real-time data network is facilitated.
When the difference is smaller than or equal to the preset threshold, the slave clock data running in the slave clock device corresponding to the difference is considered to be within the error range allowed by the clock system, and the slave clock device does not need to be adjusted. When the difference is greater than the preset threshold, it is determined that the slave clock data running in the slave clock device corresponding to the difference exceeds the allowable error range of the clock system, and if the difference is not adjusted, the subsequent normal running of the system and the running result of the system are affected.
In steps S301 to S306 of the clock monitoring method provided in the embodiment of the present application, the real-time data network obtains master clock data from the master clock module, and obtains slave clock data from one or more slave clock devices, where the master clock data and the slave clock data are managed by the real-time data network, so as to ensure consistency and accuracy of the clock data, and the data processing module marks an abnormal warning tag on the slave clock data having a difference value greater than a preset threshold value with respect to the master clock data, so as to facilitate the real-time data network to adjust the slave clock data having the abnormal warning tag, thereby ensuring that the slave clock device connected to the real-time data network has a smaller network transmission delay, and enabling the network to have better real-time performance.
Data packets are generated between the master clock module and the real-time data network and between the slave clock equipment and the real-time data network according to a preset transmission protocol for data transmission; the preset transmission protocol comprises a data type, a data length and an offset. Of course, under the condition of ensuring reliable transmission, the existing transmission protocol can be adopted when data transmission is carried out between each slave clock device and the real-time data network and between the master clock module and the real-time data network.
In the embodiment of the present application, a cache unit is disposed in the data processing module, and after step S305, the clock monitoring method further includes: and storing a monitoring data packet to a cache unit, wherein the monitoring data packet comprises master clock data, each slave clock data, and the corresponding difference value and the corresponding label. The label in the embodiment of the present application includes: and (4) judging whether the slave clock data with the difference value larger than the preset threshold value is marked with an abnormal warning label. When a normal tag is marked on the slave clock data with a difference value less than or equal to a preset threshold, the tag in this embodiment of the present application includes: an exception warning tag and a normal tag.
The clock monitoring method further comprises the following steps: and the clock monitoring display equipment acquires and displays the monitoring data packet at a second preset frequency. The second predetermined frequency is set in advance, for example, 10 times/microsecond, or determined by hardware itself. The clock monitoring display equipment enables the master clock data, the slave clock data, the corresponding difference values and the corresponding labels to be convenient for operation and maintenance personnel to master the running condition of the clock system in time.
The clock monitoring display device may also display the distinguishing prompt according to different labels, for example, the slave clock data marked with the abnormal warning label is set to be displayed in red, the slave clock data not marked with the abnormal warning label or marked with the normal label is set to be displayed in green, and simultaneously, the clock monitoring display device loads the synchronization button beside the slave clock data marked with the abnormal warning label based on the abnormal warning label and the synchronization identifier of the corresponding automatic mode in the slave clock device list, so that the user inputs the synchronization instruction to start the synchronization module.
Before the clock system executes S302, the clock monitoring method further includes: configuring a slave clock equipment list in a data processing module, and acquiring master clock data and each slave clock data from a real-time data network at a first preset frequency based on the slave clock equipment list; the slave clock device list comprises a monitoring identifier of each slave clock device and a data reading format defined based on a preset transmission protocol.
Wherein monitoring the status of the identifier comprises monitoring and releasing. Specifically, slave clock data generated by the slave clock device in the monitored state is subjected to difference calculation and is adjusted by the real-time data network when the difference is larger than a preset threshold; the slave clock device in the released state indicates that the slave clock device does not need to be monitored, and the generated slave clock data is not acquired by the data processing module and is not adjusted by the synchronization module. Therefore, the slave clock device list can clearly indicate the slave clock devices which need to be monitored and the slave clock devices which do not need to be monitored, and the consumption of software resources is saved.
Before configuring the slave clock device list in the data processing module, the slave clock device list is updated by acquiring the connected slave clock device information from the slave clock management module and based on the slave clock device information, wherein the slave clock device information comprises the slave clock device address and the slave clock device state, and the slave clock device state is used for determining the monitoring identification of the slave clock device. The slave clock management module can automatically update the slave clock device list based on the connected slave clock devices, and is beneficial to the self-adaptive update after the slave clock devices are expanded or reduced.
The embodiment of the present application further provides a clock adjusting method, as shown in fig. 4, the method includes steps S401 and S402. When the clock monitoring method is implemented, data transmission can be carried out between the real-time data network and the master clock module and between the real-time data network and the slave clock equipment through the optical fiber bus, so that the data transmission is ensured to have higher speed, and the influence of transmission delay on the judgment of the slave clock data and the adjustment of the slave clock equipment is reduced. Steps S401 and S402 shown in fig. 4 are described in detail below.
S401: and obtaining the difference value of the slave clock data and the master clock data corresponding to the slave clock device with the abnormal warning label. Specifically, the difference is obtained by the clock monitoring method described above in the embodiments of the present application.
S402: and the synchronization module corrects the slave clock data corresponding to the slave clock equipment with the abnormal warning label into the master clock data through the real-time data network based on the difference value.
The synchronization module corrects the slave clock data corresponding to the slave clock device with the abnormal warning label into the master clock data, so that the slave clock device connected with the real-time data network has smaller network transmission delay, and the network has better real-time performance.
In the process of obtaining the difference value by using the clock monitoring described above in this embodiment of the present application, before performing step S302, the method further includes: and configuring a slave clock device list in the data processing module, and acquiring the master clock data, each slave clock data and the synchronization mode of each slave clock device from the real-time data network at a first preset frequency based on the slave clock device list.
The slave clock equipment list comprises a monitoring identifier of each slave clock equipment, a data reading format defined based on a preset transmission protocol and a synchronous identifier; the synchronization flag includes a manual mode and an automatic mode. And switching between manual correction and automatic correction of the slave clock data is realized according to the synchronous identifier, so that the clock adjusting method can meet the requirements of different scenes.
The division of each module or unit in the clock system provided by the present application is only one logical function division, and in actual implementation, there may be another division manner, for example, multiple units or modules may be combined or may be integrated into another system, or some features may be omitted, or not executed, for example, each module may be integrated into one processing system, or each module may exist alone physically, or two or more modules may be integrated into one device or system. The integrated device or system can be implemented in the form of hardware, or in the form of hardware plus software functional units. For example, the master clock module, the data processing module, the slave clock management module, and the synchronization module in the present application may be integrated to form a master clock server.
It should be noted that, the precision of the master clock data and the slave clock data referred to in the embodiments of the present application may be preset, for example, the master clock data and the slave clock data are accurate to year, month, day, hour, minute, second, millisecond, microsecond, nanosecond.
While the embodiments of the present application provide for the above-described method steps, additional or fewer steps may be included based on routine or non-inventive labor. In addition, the step sequence listed in the embodiments of the present application is only one manner of execution sequence of many steps, and does not represent a unique execution sequence. When the clock monitoring method is executed, the method according to the embodiment or the drawings may be executed sequentially or in parallel (for example, in the context of a parallel processor or a multi-thread process).
Embodiments of the present application further provide a computer-readable storage medium, where computer-readable instructions are stored, and when executed by a processor, the computer-readable instructions implement the method provided in the embodiments of the present application. In particular, the computer-readable storage medium includes, but is not limited to, a random access memory, a read-only memory, a cache, a hard disk, or a memory card.
From the above description of the embodiments, it is clear to those skilled in the art that the present application can be implemented by software plus necessary hardware. Based on such understanding, the technical solutions of the present application may be embodied in the form of software products or in the implementation process of data migration, which essentially or partially contributes to the prior art. The computer software product may be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a mobile terminal, a server, or a network device, etc.) to execute the method according to the embodiment of the present application.
The embodiments in the present specification are described in a progressive manner, and the same or similar parts among the embodiments may be referred to each other, and each embodiment focuses on the differences from the other embodiments. All or portions of the present application are operational with numerous general purpose or special purpose computing system environments or configurations. For example: personal computers, server computers, hand-held or portable devices, tablet-type devices, mobile communication terminals, multiprocessor systems, microprocessor-based systems, programmable electronic devices, network PCs, minicomputers, mainframe computers, distributed computing environments that include any of the above systems or devices, and the like.
The above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the present application; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some or all of the technical features may be equivalently replaced; such modifications or substitutions do not depart from the spirit and scope of the present disclosure.
Claims (10)
1. A clock monitoring method, comprising:
the real-time data network acquires master clock data from a master clock module and acquires slave clock data from one or more slave clock devices;
the data processing module acquires the master clock data and each slave clock data from the real-time data network at a first preset frequency, respectively calculates a difference value between the master clock data and each slave clock data, judges whether the difference value is greater than a preset threshold value, and marks an abnormal warning label on the slave clock data of which the difference value is greater than the preset threshold value.
2. The clock monitoring method according to claim 1, wherein data packets are generated between the master clock module and the real-time data network and between the slave clock device and the real-time data network according to a preset transmission protocol for data transmission; the preset transmission protocol comprises a data type, a data length and an offset.
3. The clock monitoring method according to claim 1, wherein the calculating a difference between the master clock data and each slave clock data, respectively, and determining whether the difference is greater than a preset threshold, and after an anomaly warning tag is marked on the slave clock data whose difference is greater than the preset threshold, further comprises:
and storing a monitoring data packet to a cache unit, wherein the monitoring data packet comprises master clock data, each slave clock data, and the corresponding difference value and the corresponding label.
4. The clock monitoring method of claim 3, further comprising:
and the clock monitoring display equipment acquires and displays the monitoring data packet at a second preset frequency.
5. The clock monitoring method of claim 2, wherein before the data processing module obtains the master clock data and the slave clock data from the real-time data network at the first predetermined frequency, the method further comprises:
configuring a slave clock device list in the data processing module, wherein the slave clock device list is used for acquiring the master clock data and each slave clock data from the real-time data network at a first preset frequency based on the slave clock device list;
the slave clock device list comprises a monitoring identifier of each slave clock device and a data reading format defined based on the preset transmission protocol.
6. The clock monitoring method of claim 5, wherein before configuring the list of slave clock devices in the data processing module, further comprising:
and updating the slave clock device list based on the slave clock device information by acquiring the connected slave clock device information from a slave clock management module, wherein the slave clock device information comprises the slave clock device address and the slave clock device state, and the slave clock device state is used for determining the monitoring identification of the slave clock device.
7. A clock adjustment method, comprising:
the clock monitoring method according to any one of claims 1 to 6, obtaining a difference value between slave clock data and master clock data corresponding to the slave clock device with the abnormal warning tag;
and the synchronization module corrects the slave clock data corresponding to the slave clock equipment with the abnormal warning label into master clock data through the real-time data network based on the difference value.
8. The clock monitoring method of claim 7, wherein before the data processing module obtains the master clock data and the slave clock data from the real-time data network at the first predetermined frequency, the method further comprises:
configuring a slave clock device list in the data processing module, wherein the slave clock device list is used for acquiring the master clock data, each slave clock data and the synchronization mode of each slave clock device from the real-time data network at a first preset frequency based on the slave clock device list;
the slave clock equipment list comprises a monitoring identifier of each slave clock equipment, a data reading format defined based on a preset transmission protocol and a synchronous identifier;
the synchronization identifier includes a manual mode and an automatic mode.
9. A clock system, comprising:
a master clock module for generating master clock data;
one or more slave clock devices for generating slave clock data;
the real-time data network is used for acquiring master clock data from the master clock module and acquiring slave clock data from one or more slave clock devices;
the data processing module is used for acquiring the master clock data and each slave clock data from the real-time data network at a first preset frequency, respectively calculating a difference value between the master clock data and each slave clock data, judging whether the difference value is greater than a preset threshold value or not, and marking an abnormal warning label on the slave clock data of which the difference value is greater than the preset threshold value;
the slave clock management module is used for configuring a slave clock equipment list in the data processing module and acquiring the master clock data and each slave clock data from the real-time data network at a first preset frequency based on the slave clock equipment list;
and the synchronization module is used for correcting the slave clock data corresponding to the slave clock equipment with the abnormal warning label into master clock data through the real-time data network based on the difference value.
10. A computer-readable storage medium storing computer-readable instructions which, when executed by a processor, implement the method of any one of claims 1-8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210884462.9A CN115361317B (en) | 2022-07-26 | 2022-07-26 | Clock monitoring method, adjusting method, clock system and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210884462.9A CN115361317B (en) | 2022-07-26 | 2022-07-26 | Clock monitoring method, adjusting method, clock system and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115361317A true CN115361317A (en) | 2022-11-18 |
CN115361317B CN115361317B (en) | 2024-06-07 |
Family
ID=84031757
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210884462.9A Active CN115361317B (en) | 2022-07-26 | 2022-07-26 | Clock monitoring method, adjusting method, clock system and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115361317B (en) |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070260906A1 (en) * | 2006-05-08 | 2007-11-08 | Corredoura Paul L | Clock synchronization method and apparatus |
CN103248471A (en) * | 2013-05-22 | 2013-08-14 | 哈尔滨工业大学 | Clock synchronization method based on PTP (Precision Time Protocol) and reflective memory network |
CN107294634A (en) * | 2017-06-13 | 2017-10-24 | 烽火通信科技股份有限公司 | The centralized approach of 1588 time synchronizeds is realized in a kind of distributed system |
CN107395305A (en) * | 2017-06-21 | 2017-11-24 | 浙江理工大学 | Towards the method for synchronizing time of real-time Wi Fi networks |
CN107919934A (en) * | 2017-11-20 | 2018-04-17 | 广州谨华电子科技有限公司 | A kind of clock and clock correcting method |
CN108153284A (en) * | 2017-12-28 | 2018-06-12 | 北京金风科创风电设备有限公司 | control program testing method and system |
EP3382918A1 (en) * | 2017-03-30 | 2018-10-03 | ADVA Optical Networking SE | System and method of clock management in a packet data network |
CN111726188A (en) * | 2020-06-15 | 2020-09-29 | 哈工大机器人(合肥)国际创新研究院 | Method and device for synchronizing clocks of AIRT-ROS real-time system and non-real-time system |
CN113037415A (en) * | 2021-02-25 | 2021-06-25 | 上海赫千电子科技有限公司 | TSN (time delay network) clock synchronization method, system and equipment based on vehicle-mounted Ethernet transmission |
CN113636090A (en) * | 2021-08-24 | 2021-11-12 | 中国商用飞机有限责任公司 | Method, system, and medium for monitoring a real-time clock of an aircraft |
CN114095109A (en) * | 2021-11-17 | 2022-02-25 | 深圳市领创星通科技有限公司 | Clock synchronization method, device, equipment and storage medium |
CN114726471A (en) * | 2022-03-21 | 2022-07-08 | 国网湖南省电力有限公司 | Power distribution field domain network clock accurate synchronization method and device based on HPLC |
-
2022
- 2022-07-26 CN CN202210884462.9A patent/CN115361317B/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070260906A1 (en) * | 2006-05-08 | 2007-11-08 | Corredoura Paul L | Clock synchronization method and apparatus |
CN103248471A (en) * | 2013-05-22 | 2013-08-14 | 哈尔滨工业大学 | Clock synchronization method based on PTP (Precision Time Protocol) and reflective memory network |
EP3382918A1 (en) * | 2017-03-30 | 2018-10-03 | ADVA Optical Networking SE | System and method of clock management in a packet data network |
CN107294634A (en) * | 2017-06-13 | 2017-10-24 | 烽火通信科技股份有限公司 | The centralized approach of 1588 time synchronizeds is realized in a kind of distributed system |
CN107395305A (en) * | 2017-06-21 | 2017-11-24 | 浙江理工大学 | Towards the method for synchronizing time of real-time Wi Fi networks |
CN107919934A (en) * | 2017-11-20 | 2018-04-17 | 广州谨华电子科技有限公司 | A kind of clock and clock correcting method |
CN108153284A (en) * | 2017-12-28 | 2018-06-12 | 北京金风科创风电设备有限公司 | control program testing method and system |
CN111726188A (en) * | 2020-06-15 | 2020-09-29 | 哈工大机器人(合肥)国际创新研究院 | Method and device for synchronizing clocks of AIRT-ROS real-time system and non-real-time system |
CN113037415A (en) * | 2021-02-25 | 2021-06-25 | 上海赫千电子科技有限公司 | TSN (time delay network) clock synchronization method, system and equipment based on vehicle-mounted Ethernet transmission |
CN113636090A (en) * | 2021-08-24 | 2021-11-12 | 中国商用飞机有限责任公司 | Method, system, and medium for monitoring a real-time clock of an aircraft |
CN114095109A (en) * | 2021-11-17 | 2022-02-25 | 深圳市领创星通科技有限公司 | Clock synchronization method, device, equipment and storage medium |
CN114726471A (en) * | 2022-03-21 | 2022-07-08 | 国网湖南省电力有限公司 | Power distribution field domain network clock accurate synchronization method and device based on HPLC |
Non-Patent Citations (1)
Title |
---|
张端阳;肖力;付忠敏;: "基于stm32f407的精确时钟同步协议的实现", 计算机与数字工程, no. 03 * |
Also Published As
Publication number | Publication date |
---|---|
CN115361317B (en) | 2024-06-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8001225B2 (en) | Server time protocol messages and methods | |
CN109656574B (en) | Transaction time delay measurement method and device, computer equipment and storage medium | |
EP3489829B1 (en) | Semiconductor device and failure detection method of the semiconductor device | |
CN103117879A (en) | Network monitoring system for computer hardware processing parameters | |
CN109471588B (en) | Synchronization method and device | |
CN112769517A (en) | T-BOX time synchronization method and device | |
CN110855394A (en) | Time correction method, device, system, equipment and storage medium | |
EP4120634A1 (en) | Information processing device, master device, information processing system, notification method, and information processing program | |
CN112714010B (en) | Network topology management method and device, expansion unit and storage medium | |
CN115361317B (en) | Clock monitoring method, adjusting method, clock system and storage medium | |
CN116436823B (en) | State monitoring method of intelligent network card and related equipment | |
CN112511259A (en) | Intelligent terminal clock management method and device, storage medium and terminal equipment | |
CN114006674B (en) | Time correction method, device, equipment and storage medium for attendance equipment | |
KR101435181B1 (en) | Time synchronization and transmission delay time correction method between the master and the slave of intelligent power distribution system | |
CN109766235A (en) | Configuration file detection method, system, equipment and medium based on software supervision | |
CN114257469A (en) | Communication method, device and medium of EtherCAT main station | |
CN113849328A (en) | Management method and device of disaster recovery system | |
EP4254831A1 (en) | Method and device for selecting clock source | |
CN111757371A (en) | Statistical method of transmission delay, server and storage medium | |
CN111929520B (en) | Fault recording triggering method and device for power system | |
CN111447106B (en) | Fault detection method, device, storage medium and communication equipment | |
JP2001251323A (en) | Network management unit | |
CN113534887B (en) | Method and device for time synchronization between boards based on real-time bus and electronic equipment | |
US20240146432A1 (en) | Time synchronization communication system, time synchronization end station, and message transmission control program | |
KR102509057B1 (en) | System and method for monitoring netwrok |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant |