CN111984059A - PPS (polyphenylene sulfide) jump detection method and system for timing by time service module - Google Patents

PPS (polyphenylene sulfide) jump detection method and system for timing by time service module Download PDF

Info

Publication number
CN111984059A
CN111984059A CN202010756160.4A CN202010756160A CN111984059A CN 111984059 A CN111984059 A CN 111984059A CN 202010756160 A CN202010756160 A CN 202010756160A CN 111984059 A CN111984059 A CN 111984059A
Authority
CN
China
Prior art keywords
time
service module
time service
synchronization
module
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
Application number
CN202010756160.4A
Other languages
Chinese (zh)
Other versions
CN111984059B (en
Inventor
马小燕
李宝伟
许云龙
余高旺
闫志辉
杨凯
李磊
颜志刚
杨培迪
杨佳昊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Original Assignee
State Grid Corp of China SGCC
Xuji Group Co Ltd
XJ Electric Co Ltd
Xuchang XJ Software Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by State Grid Corp of China SGCC, Xuji Group Co Ltd, XJ Electric Co Ltd, Xuchang XJ Software Technology Co Ltd filed Critical State Grid Corp of China SGCC
Priority to CN202010756160.4A priority Critical patent/CN111984059B/en
Publication of CN111984059A publication Critical patent/CN111984059A/en
Application granted granted Critical
Publication of CN111984059B publication Critical patent/CN111984059B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/04Generating or distributing clock signals or signals derived directly therefrom
    • G06F1/12Synchronisation of different clock signals provided by a plurality of clock generators
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation

Abstract

The invention discloses a PPS jump detection method and a system when a time service module carries out time synchronization, wherein the method comprises the following steps: the device needing time setting is butted with a time service module, the synchronous mark of the time service module is read when the time is set for the first time, and the synchronous mark of the time service module is confirmed to be normal; setting system time, setting a timestamp comparison mark, and recording time information of a time service module when the current second is updated; setting a device synchronization mark, judging whether the device is synchronized or out of step, and recording the current system time information under the condition of synchronization or out of step of the device; under the synchronous condition of the device, setting clock difference according to the current system time information and the time information of the time service module; and judging whether the time service module works normally or abnormally according to the clock difference, and maintaining time service. The invention can solve the problems that the abnormal time setting and PPS jumping caused by the fault of the normal time setting and time service module or the device time setting module can not be correctly detected, the time service module can not be timely reset, the related alarm can not be timely sent in a background and the like.

Description

PPS (polyphenylene sulfide) jump detection method and system for timing by time service module
Technical Field
The invention relates to the technical field of clock synchronization, in particular to a PPS jump detection method and a PPS jump detection system for timing by a timing module.
Background
With the rapid improvement of the automation degree of the transformer substation and the continuous increase of the scale of the power grid, a more standard and efficient operation management is urgently needed for a unified time synchronization system in the power grid. The real-time data acquisition, control, accident analysis and the like of the power secondary equipment cannot be separated from an accurate clock system. The time precision of the equipment in the station determines the efficiency and accuracy of the automation, informatization and intellectualization of the whole station.
In field engineering, a large number of measuring devices adopt a total station unified clock device with time service module input for time service, and have high-precision synchronization under the condition of locking stars and high-precision time keeping performance under the condition of losing stars. The main principle of the clock synchronization of the measuring device is that a clock signal receiver is utilized to obtain clock second pulse (PPS) and UTC corresponding to the pulse jump time from a time service module, a clock signal preprocessing module converts a received clock reference signal into an internal clock signal, and a signal generating module modulates the internal clock signal into a clock signal required by the measuring device, such as IRIG-B code, second pulse, minute pulse and the like. When the clock signal transmitted by the time service module is normal, the clock signal output by the time service server is synchronous with the second pulse of the time service module; however, the time service module or the device time service module has an abnormal phenomenon of occasional lock losing, at the moment, the device time service is abnormal, the PPS jumps, the pulse per second output by the time service module is unreliable, and the clock precision provided by the device does not meet the standard requirement.
The time synchronization abnormity caused by PPS jump not only affects the operators on duty to master the real-time operation condition of the power grid, but also can not provide a time reference for monitoring workers to accurately and quickly analyze the fault of the power system under the condition of the power grid abnormity or fault, and the time synchronization error brings great trouble to the engineering application of the measuring device.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and a system for detecting PPS jump when a time service module performs time synchronization, which can solve the problems of abnormal time synchronization and incorrect detection of PPS jump caused by a fault of the time service module during normal time synchronization or a device time synchronization module, failure in timely resetting the time service module, failure in timely background uploading of related alarms, and the like, and can really and effectively detect whether the time service module and the time synchronization module are working normally, and whether the device clock synchronization following precision meets the standard requirement, thereby not only facilitating the acceleration of analysis and processing of accident reasons, but also improving the operation reliability of a power grid system.
In a first aspect, an embodiment of the present invention provides a PPS jump detection method for timing by a timing module, including:
and butting the device needing time synchronization with the time service module, reading the synchronous mark of the time service module when time synchronization is carried out for the first time, and confirming that the synchronous mark of the time service module is normal.
And setting system time, setting a timestamp comparison mark, and recording time information of a time service module when the current second is updated, wherein the time information of the time service module comprises a PPS timestamp.
And setting a device synchronization mark, judging whether the device is synchronized or out of step, and recording the current system time information under the condition of synchronization or out of step of the device.
And under the synchronous condition of the device, setting clock difference according to the current system time information and the time information of the time service module.
And judging whether the time service module works normally or abnormally according to the clock difference, and maintaining time service.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where reading the time service module synchronization flag and confirming that the time service module synchronization flag is normal includes:
and reading a serial message synchronization mark of the time service module, and if the set state of the synchronization mark keeps the first time length, considering that the synchronization mark is effective.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where after the synchronization flag of the time service module is determined to be normal, the timestamp sent by the time service module is read, the time-keeping buffer areas of the device are sequentially filled, and the system time is set when the time-keeping buffer areas are filled.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where after the system time is set, the time information and quality of the time service module are read when a second time length elapses after the system time of the device is updated, and if the time information and quality of the time service module are normal, the time service is continued.
If the time information or the quality of the time service module is abnormal, the device automatically looks for time, a corresponding alarm is popped up, the alarm is uploaded to a background, and the device locks a jump detection judgment logic.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the setting a device synchronization flag, determining that a device is synchronized or out of synchronization, and recording current system time information under the condition that the device is synchronized or out of synchronization includes:
and under the synchronous condition of the device, continuously giving time, and recording the current second system time stamp which is the previous second system time stamp plus the current second interval.
Under the out-of-step condition of the device, the device pops up an alarm and sends the alarm to a background in a self-timekeeping mode, a jump detection judgment logic is locked, and the current second system time stamp is recorded as the previous second system time stamp and the timekeeping algorithm second interval.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where setting a clock offset according to current system time information and time information of a time service module under a synchronous condition of the device includes:
and setting a time stamp difference, wherein the time stamp difference is | the current second system time stamp-time service module PPS time stamp |.
And setting time difference, wherein the time difference is | the time of the device system is more than one second-the time of the time service module is more than one second |.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the determining, according to the clock difference, whether the time service module works normally or abnormally, and maintaining the time service includes:
if the continuous third time length of the time stamp difference is greater than the threshold value or the time difference is not 0, the clock difference is abnormal, the time service module is judged to be abnormal in work, the device is self-timed, an alarm is popped up and sent to the background, the time service module is reset, and the synchronous mark of the time service module is judged again.
If the synchronization mark of the time service module is abnormal after once reset, the device automatically keeps time, pops up an alarm and uploads the alarm to a background, and the device locks a jump detection judgment logic; if the synchronous mark of the time service module is normal after once resetting, after the time service module resets the fourth time length, the time service module is judged to work normally or abnormally again according to the clock error, and the synchronous mark of the reset time service module is sent out within the fifth time length, and the time keeping mark is set.
If the clock difference is still abnormal after the fourth time of the first reset, the time service module is reset for the second time, the sixth time is delayed after the second reset, and the time service module is judged to work normally or abnormally again according to the clock difference.
If the clock difference is still abnormal after the sixth time of time delay after the secondary reset, the device automatically keeps time, pops up an alarm and uploads the alarm to a background, and the device enters a time setting module fault judgment logic; if the clock difference meets the precision requirement, the self-maintenance timestamp of the device changes once along with the time service module, and the device jumps to the first time service completion stage after one minute.
After the reset time service module synchronous mark sends out a seventh time length, if the clock difference meets the precision requirement and the time service module synchronous mark is normal, the device automatically maintains the timestamp to change once along with the time service module, and then jumps to the first time service finishing stage; if the clock error meets the precision requirement, but the synchronization mark of the time service module is abnormal, the device locks the jump detection judgment logic, and pops up an alarm and uploads the alarm to the background at the same time until the synchronization mark of the time service module is normal during self-defense.
In a second aspect, an embodiment of the present invention further provides a PPS jump detecting system for timing by a timing module, which is used for implementing the PPS jump detecting system for timing by the timing module, and includes:
and the initialization module is used for butting the device needing time synchronization with the time service module, reading the synchronous mark of the time service module when time is first performed, and confirming that the synchronous mark of the time service module is normal.
And the time setting module is used for setting system time, setting a timestamp comparison mark and recording time information of the time service module when the current second is updated.
The quality judgment module is used for reading time information and quality of the time service module when a second time length passes after the system time is set and the system of the device is updated in seconds, and continuing time service if the time information and the quality of the time service module are normal; if the time information or the quality of the time service module is abnormal, the device automatically looks for time, a corresponding alarm is popped up, the alarm is uploaded to a background, and the device locks a jump detection judgment logic.
And the device synchronization module is used for setting a device synchronization mark, judging whether the device is synchronized or out of step and recording the current system time information under the condition of synchronization or out of step of the device.
And the clock difference calculation module is used for setting the clock difference according to the current system time information and the time service module time information under the device synchronization condition, wherein the clock difference comprises a time stamp difference and a time difference, the time stamp difference is | the current second system time stamp-the time service module PPS time stamp |, and the time difference is | the time above the device system second-the time above the time service module second |.
And the jump reset module is used for judging whether the time service module works normally or abnormally according to the clock difference and maintaining time service.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the device synchronization module includes:
and the synchronous recording unit is used for continuing time service under the synchronous condition of the device and recording the current second system time stamp which is the previous second system time stamp plus the current second interval.
And the step-out recording unit is used for popping up an alarm and uploading the alarm to a background when the device is in a self-timekeeping state under the step-out condition, locking the jump detection judgment logic and recording the current second system time stamp as the previous second system time stamp and the timekeeping algorithm second interval.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the transition resetting module includes:
and the primary reset unit is used for judging that the time service module works abnormally if the time stamp difference is greater than the threshold value continuously for a third time or the time difference is not 0, popping up an alarm and uploading the alarm to a background when the device is self-timed, resetting the time service module and judging the synchronous mark of the time service module again.
The primary synchronization mark judging unit is used for popping up an alarm and uploading the alarm to a background if the synchronization mark of the time service module is abnormal after the primary reset, and locking and jumping detection judging logic of the device; if the synchronous mark of the time service module is normal after once resetting, after the time service module resets the fourth time length, the time service module is judged to work normally or abnormally again according to the clock error, and the synchronous mark of the reset time service module is sent out within the fifth time length, and the time keeping mark is set.
And the secondary resetting unit is used for resetting the time service module for the second time if the clock difference is still abnormal after the fourth time is reset for the first time, delaying the sixth time after the second time is reset, and judging whether the time service module works normally or abnormally again according to the clock difference.
The clock error judging unit is used for popping up an alarm and uploading the alarm to a background if the clock error is still abnormal after the sixth time delay after the secondary reset, and the device enters a time setting module fault judging logic; if the clock difference meets the precision requirement, the self-maintenance timestamp of the device changes once along with the time service module, and the device jumps to the first time service completion stage after one minute.
The secondary synchronization mark judging unit is used for resetting the synchronization mark of the time service module to send out a seventh time length, if the clock error meets the precision requirement and the synchronization mark of the time service module is normal, the device automatically maintains the timestamp to change once along with the time service module, and then jumps to the first time setting finishing stage; if the clock error meets the precision requirement, but the synchronization mark of the time service module is abnormal, the device locks the jump detection judgment logic, and pops up an alarm and uploads the alarm to the background at the same time until the synchronization mark of the time service module is normal during self-defense.
The embodiment of the invention has the beneficial effects that:
according to the invention, by detecting and maintaining the PPS jump of the time service module in time, the problems that abnormal time service and the PPS jump cannot be correctly detected due to the fault of the time service module during normal time service or the device time service module, the time service module cannot be timely reset, related alarms cannot be timely and timely sent to a background can be solved, whether the time service module and the time service module normally work or not can be really and effectively detected, whether the synchronous following precision of the device clock meets the standard requirement or not can be judged, the analysis and the processing of accident reasons can be accelerated, and the operation reliability of a power grid system can be improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present invention and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained according to the drawings without inventive efforts.
The PPS jump detection method and system for timing by the timing module according to the present invention will be described in detail with reference to the accompanying drawings and embodiments.
FIG. 1 is a flowchart of a PPS jump detection method for timing by a timing module according to the present invention;
FIG. 2 is a logic block diagram of a PPS jump detection method for timing by the timing module according to the present invention;
FIG. 3 is a schematic diagram of normal operation of a PPS jump detection method module when a time service module performs time synchronization according to the present invention;
fig. 4 is a schematic diagram illustrating the detection of an abnormality by the PPS jump detection method when the timing module performs timing according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. The components of embodiments of the present invention generally described and illustrated in the figures herein can be arranged and designed in a wide variety of different configurations.
Some embodiments of the invention are described in detail below with reference to the accompanying drawings. The embodiments described below and the features of the embodiments can be combined with each other without conflict.
Referring to fig. 1 to 4, a first embodiment of the present invention provides a PPS jump detection method when a timing module performs timing, including:
and butting the device needing time synchronization with the time service module, reading the synchronous mark of the time service module when time synchronization is carried out for the first time, and confirming that the synchronous mark of the time service module is normal.
And setting system time, setting a timestamp comparison mark, and recording time information of a time service module when the current second is updated, wherein the time information of the time service module comprises a PPS timestamp.
And setting a device synchronization mark, judging whether the device is synchronized or out of step, and recording the current system time information under the condition of synchronization or out of step of the device.
And under the synchronous condition of the device, setting clock difference according to the current system time information and the time information of the time service module.
And judging whether the time service module works normally or abnormally according to the clock difference, and maintaining time service.
With reference to the first aspect, an embodiment of the present invention provides a first possible implementation manner of the first aspect, where reading the time service module synchronization flag and confirming that the time service module synchronization flag is normal includes:
and reading a serial message synchronization mark of the time service module, and if the set state of the synchronization mark keeps the first time length, considering that the synchronization mark is effective.
The first time period is 15S.
With reference to the first aspect, an embodiment of the present invention provides a second possible implementation manner of the first aspect, where after the synchronization flag of the time service module is determined to be normal, the timestamp sent by the time service module is read, the time-keeping buffer areas of the device are sequentially filled, and the system time is set when the time-keeping buffer areas are filled.
With reference to the first aspect, an embodiment of the present invention provides a third possible implementation manner of the first aspect, where after the system time is set, the time information and quality of the time service module are read when a second time length elapses after the system time of the device is updated, and if the time information and quality of the time service module are normal, the time service is continued.
The second duration is 500 ms.
If the time information or the quality of the time service module is abnormal, the device automatically looks for time, a corresponding alarm is popped up, the alarm is uploaded to a background, and the device locks a jump detection judgment logic.
With reference to the first aspect, an embodiment of the present invention provides a fourth possible implementation manner of the first aspect, where the setting a device synchronization flag, determining that a device is synchronized or out of synchronization, and recording current system time information under the condition that the device is synchronized or out of synchronization includes:
and under the synchronous condition of the device, continuously giving time, and recording the current second system time stamp which is the previous second system time stamp plus the current second interval.
Under the out-of-step condition of the device, the device pops up an alarm and sends the alarm to a background in a self-timekeeping mode, a jump detection judgment logic is locked, and the current second system time stamp is recorded as the previous second system time stamp and the timekeeping algorithm second interval.
With reference to the first aspect, an embodiment of the present invention provides a fifth possible implementation manner of the first aspect, where setting a clock offset according to current system time information and time information of a time service module under a synchronous condition of the device includes:
and setting a time stamp difference, wherein the time stamp difference is | the current second system time stamp-time service module PPS time stamp |.
And setting time difference, wherein the time difference is | the time of the device system is more than one second-the time of the time service module is more than one second |.
With reference to the first aspect, an embodiment of the present invention provides a sixth possible implementation manner of the first aspect, where the determining, according to the clock difference, whether the time service module works normally or abnormally, and maintaining the time service includes:
if the continuous third time length of the time stamp difference is greater than the threshold value or the time difference is not 0, the clock difference is abnormal, the time service module is judged to be abnormal in work, the device is self-timed, an alarm is popped up and sent to the background, the time service module is reset, and the synchronous mark of the time service module is judged again.
The third time period is 5S.
If the synchronization mark of the time service module is abnormal after once reset, the device automatically keeps time, pops up an alarm and uploads the alarm to a background, and the device locks a jump detection judgment logic; if the synchronous mark of the time service module is normal after once resetting, after the time service module resets the fourth time length, the time service module is judged to work normally or abnormally again according to the clock error, and the synchronous mark of the reset time service module is sent out within the fifth time length, and the time keeping mark is set.
The fourth time period is 10S.
The fifth time period is 60S.
If the clock difference is still abnormal after the fourth time of the first reset, the time service module is reset for the second time, the sixth time is delayed after the second reset, and the time service module is judged to work normally or abnormally again according to the clock difference.
If the clock difference is still abnormal after the sixth time of time delay after the secondary reset, the device automatically keeps time, pops up an alarm and uploads the alarm to a background, and the device enters a time setting module fault judgment logic; if the clock difference meets the precision requirement, the self-maintenance timestamp of the device changes once along with the time service module, and the device jumps to the first time service completion stage after one minute.
After the reset time service module synchronous mark sends out a seventh time length, if the clock difference meets the precision requirement and the time service module synchronous mark is normal, the device automatically maintains the timestamp to change once along with the time service module, and then jumps to the first time service finishing stage; if the clock error meets the precision requirement, but the synchronization mark of the time service module is abnormal, the device locks the jump detection judgment logic, and pops up an alarm and uploads the alarm to the background at the same time until the synchronization mark of the time service module is normal during self-defense.
The seventh time period is 60S.
Referring to fig. 3 to 4, a black solid line on the line a represents a synchronization flag of the time service module PPS, and a black dotted line represents an out-of-step flag of the time service module PPS; the black dotted line in the B line is a real-time timestamp maintained by the device. The synchronous mark and the out-of-step mark are indication marks for indicating whether the time service module works normally or not.
After the device is calibrated for the first time, the real-time maintenance device timestamps tick0 to the time service module PPS, and detects the timestamp tick1 (the current second system timestamp) of the time service module PPS in real time by taking tick0 as a reference. In the case of synchronization, the update of tick0 depends on the interval of the synchronization flag PPS; in the event of a loss of synchronization, tick0 updates are dependent on the interval that the time keeping algorithm produces.
When the time service module mark is from out-of-step to synchronous, the difference of | tick0-tick1| is less than 60 microseconds, and the second pulse is considered to have no jump. If the difference of the tick0-tick1 is more than 60 microseconds, the PPS of the time service module is considered to have abnormal jumping, the time service module is reset at the moment, the synchronization mark appears after the time service module is reset and is delayed to be effective, the time stamp difference is less than 60 microseconds, and the system time of the device follows one time. In the PPS jump fault, the condition of normal time synchronization can be recovered by resetting the time service module is higher.
And if the difference value | tick0-tick1| is less than 60 microseconds continuously in 10 seconds under the synchronous condition of the time service module, the time service module and the device time setting module are considered to work normally, and the time service module sets a synchronous mark for the device. And the system time of the device is followed by clock synchronization.
Referring to fig. 1 to 4, a second embodiment of the present invention provides a PPS jump detecting system for timing by a timing module, which is used to implement the PPS jump detecting system for timing by the timing module, and includes:
and the initialization module is used for butting the device needing time synchronization with the time service module, reading the synchronous mark of the time service module when time is first performed, and confirming that the synchronous mark of the time service module is normal.
And the time setting module is used for setting system time, setting a timestamp comparison mark and recording time information of the time service module when the current second is updated.
The quality judgment module is used for reading time information and quality of the time service module when a second time length passes after the system time is set and the system of the device is updated in seconds, and continuing time service if the time information and the quality of the time service module are normal; if the time information or the quality of the time service module is abnormal, the device automatically looks for time, a corresponding alarm is popped up, the alarm is uploaded to a background, and the device locks a jump detection judgment logic.
The second duration is 500 ms.
And the device synchronization module is used for setting a device synchronization mark, judging whether the device is synchronized or out of step and recording the current system time information under the condition of synchronization or out of step of the device.
And the clock difference calculation module is used for setting the clock difference according to the current system time information and the time service module time information under the device synchronization condition, wherein the clock difference comprises a time stamp difference and a time difference, the time stamp difference is | the current second system time stamp-the time service module PPS time stamp |, and the time difference is | the time above the device system second-the time above the time service module second |.
And the jump reset module is used for judging whether the time service module works normally or abnormally according to the clock difference and maintaining time service.
With reference to the second aspect, an embodiment of the present invention provides a first possible implementation manner of the second aspect, where the device synchronization module includes:
and the synchronous recording unit is used for continuing time service under the synchronous condition of the device and recording the current second system time stamp which is the previous second system time stamp plus the current second interval.
And the step-out recording unit is used for popping up an alarm and uploading the alarm to a background when the device is in a self-timekeeping state under the step-out condition, locking the jump detection judgment logic and recording the current second system time stamp as the previous second system time stamp and the timekeeping algorithm second interval.
With reference to the second aspect, an embodiment of the present invention provides a second possible implementation manner of the second aspect, where the transition resetting module includes:
and the primary reset unit is used for judging that the time service module works abnormally if the time stamp difference is greater than the threshold value continuously for a third time or the time difference is not 0, popping up an alarm and uploading the alarm to a background when the device is self-timed, resetting the time service module and judging the synchronous mark of the time service module again.
The third time period is 5S.
The primary synchronization mark judging unit is used for popping up an alarm and uploading the alarm to a background if the synchronization mark of the time service module is abnormal after the primary reset, and locking and jumping detection judging logic of the device; if the synchronous mark of the time service module is normal after once resetting, after the time service module resets the fourth time length, the time service module is judged to work normally or abnormally again according to the clock error, and the synchronous mark of the reset time service module is sent out within the fifth time length, and the time keeping mark is set.
The fourth time period is 10S.
And the secondary resetting unit is used for resetting the time service module for the second time if the clock difference is still abnormal after the fourth time is reset for the first time, delaying the sixth time after the second time is reset, and judging whether the time service module works normally or abnormally again according to the clock difference.
The sixth time period is 30S.
The clock error judging unit is used for popping up an alarm and uploading the alarm to a background if the clock error is still abnormal after the sixth time delay after the secondary reset, and the device enters a time setting module fault judging logic; if the clock difference meets the precision requirement, the self-maintenance timestamp of the device changes once along with the time service module, and the device jumps to the first time service completion stage after one minute.
The secondary synchronization mark judging unit is used for resetting the synchronization mark of the time service module to send out a seventh time length, if the clock error meets the precision requirement and the synchronization mark of the time service module is normal, the device automatically maintains the timestamp to change once along with the time service module, and then jumps to the first time setting finishing stage; if the clock error meets the precision requirement, but the synchronization mark of the time service module is abnormal, the device locks the jump detection judgment logic, and pops up an alarm and uploads the alarm to the background at the same time until the synchronization mark of the time service module is normal during self-defense.
The seventh time period is 60S.
The embodiment of the invention has the beneficial effects that:
according to the invention, by detecting and maintaining the PPS jump of the time service module in time, the problems that abnormal time service and the PPS jump cannot be correctly detected due to the fault of the time service module during normal time service or the device time service module, the time service module cannot be timely reset, related alarms cannot be timely and timely sent to a background can be solved, whether the time service module and the time service module normally work or not can be really and effectively detected, whether the synchronous following precision of the device clock meets the standard requirement or not can be judged, the analysis and the processing of accident reasons can be accelerated, and the operation reliability of a power grid system can be improved.
The PPS jump detection method and the computer program product of the PPS jump detection system in the timing of the timing module provided by the embodiment of the present invention include a computer readable storage medium storing a program code, and instructions included in the program code may be used to execute the method in the foregoing method embodiment.
Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, and the like, and when a computer program on the storage medium is run, the PPS jump detection method for timing by the timing module can be executed, so that the problems that timing abnormality and PPS jump cannot be correctly detected, the timing module cannot be timely reset, related alarms cannot be timely sent to a background and the like caused by a normal timing module or device timing module fault can be solved.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer-readable storage medium executable by a processor. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A PPS jump detection method for timing by a timing module is characterized by comprising the following steps:
the device needing time setting is butted with a time service module, the synchronous mark of the time service module is read when the time is set for the first time, and the synchronous mark of the time service module is confirmed to be normal;
setting system time, setting a timestamp comparison mark, and recording time information of a time service module when the current second is updated;
setting a device synchronization mark, judging whether the device is synchronized or out of step, and recording the current system time information under the condition of synchronization or out of step of the device;
under the synchronous condition of the device, setting clock difference according to the current system time information and the time information of the time service module;
and judging whether the time service module works normally or abnormally according to the clock difference, and maintaining time service.
2. The method according to claim 1, wherein the reading of the synchronization flag of the time service module to confirm that the synchronization flag of the time service module is normal comprises:
and reading a serial message synchronization mark of the time service module, and if the set state of the synchronization mark keeps the first time length, considering that the synchronization mark is effective.
3. The PPS jump detection method when the time service module carries out time synchronization according to claim 2, wherein after the synchronization mark of the time service module is confirmed to be normal, the time stamps sent by the time service module are read, the time keeping buffer area of the device is filled in sequence, and the system time is set after the time keeping buffer area is filled.
4. The PPS jump detection method for timing by the timing module according to claim 3, wherein after the system time is set, the time information and quality of the timing module are read when the second time length passes after the system time is updated, and the timing is continued if the time information and quality of the timing module are normal;
if the time information or the quality of the time service module is abnormal, the device automatically looks for time, a corresponding alarm is popped up, the alarm is uploaded to a background, and the device locks a jump detection judgment logic.
5. The PPS jump detection method when the time service module performs time synchronization according to claim 4, wherein the setting of the device synchronization flag, the judgment of device synchronization or device desynchronization, and the recording of the current system time information under the condition of device synchronization or device desynchronization comprise:
under the synchronous condition of the device, time service is continued, and the current second system time stamp is recorded as the previous second system time stamp plus the current second interval;
under the out-of-step condition of the device, the device pops up an alarm and sends the alarm to a background in a self-timekeeping mode, a jump detection judgment logic is locked, and the current second system time stamp is recorded as the previous second system time stamp and the timekeeping algorithm second interval.
6. The PPS jump detection method when the time service module performs time synchronization according to claim 5, wherein setting a clock offset according to the current system time information and the time service module time information under the device synchronization condition comprises:
setting a time stamp difference, wherein the time stamp difference is | the time stamp of the current second system-the time service module PPS |;
and setting time difference, wherein the time difference is | the time of the device system is more than one second-the time of the time service module is more than one second |.
7. The PPS jump detection method for timing by the time service module as claimed in claim 6, wherein the judging whether the time service module works normally or abnormally according to the clock difference comprises:
if the time stamp difference is greater than the threshold value continuously for a third time or the time difference is not 0, the clock difference is abnormal, the time service module is judged to be abnormal in work, the device is self-timed, an alarm is popped up and sent to the background, the time service module is reset, and the synchronous mark of the time service module is judged again;
if the synchronization mark of the time service module is abnormal after once reset, the device automatically keeps time, pops up an alarm and uploads the alarm to a background, and the device locks a jump detection judgment logic; if the synchronous mark of the time service module is normal after once resetting, after the time service module resets the fourth time length, judging whether the time service module works normally or abnormally again according to the clock error, and setting a time keeping mark when the synchronous mark of the reset time service module is sent out within the fifth time length;
if the clock difference is still abnormal after the fourth time of the first reset, the time service module is reset for the second time, the sixth time is delayed after the second reset, and the time service module is judged to work normally or abnormally again according to the clock difference;
if the clock difference is still abnormal after the sixth time of time delay after the secondary reset, the device automatically keeps time, pops up an alarm and uploads the alarm to a background, and the device enters a time setting module fault judgment logic; if the clock difference meets the precision requirement, the self-maintenance timestamp of the device changes once along with the time service module, and the device jumps to the first time service completion stage after one minute;
after the reset time service module synchronous mark sends out a seventh time length, if the clock difference meets the precision requirement and the time service module synchronous mark is normal, the device automatically maintains the timestamp to change once along with the time service module, and then jumps to the first time service finishing stage; if the clock error meets the precision requirement, but the synchronization mark of the time service module is abnormal, the device locks the jump detection judgment logic, and pops up an alarm and uploads the alarm to the background at the same time until the synchronization mark of the time service module is normal during self-defense.
8. A PPS jump detection system for timing by a timing module, which is used for implementing the PPS jump detection system for timing by the timing module as claimed in any one of claims 1 to 7, comprising:
the initialization module is used for butting a device needing time synchronization with the time service module, reading a synchronous mark of the time service module when time synchronization is carried out for the first time, and confirming that the synchronous mark of the time service module is normal;
the time setting module is used for setting system time, setting a timestamp comparison mark and recording time information of the time service module when the current second is updated;
the quality judgment module is used for reading time information and quality of the time service module when a second time length passes after the system time is set and the system of the device is updated in seconds, and continuing time service if the time information and the quality of the time service module are normal; if the time information or the quality of the time service module is abnormal, the device automatically looks for time, a corresponding alarm is popped up and sent to a background, and the device locks a jump detection judgment logic;
the device synchronization module is used for setting a device synchronization mark, judging whether the device is synchronized or out of step and recording the current system time information under the condition of synchronization or out of step of the device;
the clock difference calculation module is used for setting a clock difference according to the current system time information and the time service module time information under the device synchronization condition, wherein the clock difference comprises a time stamp difference and a time difference, the time stamp difference is | the current second system time stamp-the time service module PPS time stamp |, and the time difference is | the time of the device system second or more and the time of the time service module second or more |;
and the jump reset module is used for judging whether the time service module works normally or abnormally according to the clock difference and maintaining time service.
9. The PPS transition detection system when timed by the timing module of claim 8, wherein the device synchronization module comprises:
the synchronous recording unit is used for continuing time service under the synchronous condition of the device and recording the current second system time stamp which is the previous second system time stamp plus the current second interval;
and the step-out recording unit is used for popping up an alarm and uploading the alarm to a background when the device is in a self-timekeeping state under the step-out condition, locking the jump detection judgment logic and recording the current second system time stamp as the previous second system time stamp and the timekeeping algorithm second interval.
10. The PPS transition detection system when timed by the timing module of claim 9, wherein the transition reset module comprises:
the primary reset unit is used for judging that the time service module works abnormally if the time stamp difference is greater than a threshold value continuously for a third time or the time difference is not 0, popping an alarm and uploading the alarm to a background when the device is self-timed, resetting the time service module and judging the synchronous mark of the time service module again;
the primary synchronization mark judging unit is used for popping up an alarm and uploading the alarm to a background if the synchronization mark of the time service module is abnormal after the primary reset, and locking and jumping detection judging logic of the device; if the synchronous mark of the time service module is normal after once resetting, after the time service module resets the fourth time length, judging whether the time service module works normally or abnormally again according to the clock error, and setting a time keeping mark when the synchronous mark of the reset time service module is sent out within the fifth time length;
the secondary reset unit is used for resetting the time service module for the second time if the clock difference is still abnormal after the fourth time is reset for the first time, delaying the sixth time after the second time is reset, and judging whether the time service module works normally or abnormally again according to the clock difference;
the clock error judging unit is used for popping up an alarm and uploading the alarm to a background if the clock error is still abnormal after the sixth time delay after the secondary reset, and the device enters a time setting module fault judging logic; if the clock difference meets the precision requirement, the self-maintenance timestamp of the device changes once along with the time service module, and the device jumps to the first time service completion stage after one minute;
the secondary synchronization mark judging unit is used for resetting the synchronization mark of the time service module to send out a seventh time length, if the clock error meets the precision requirement and the synchronization mark of the time service module is normal, the device automatically maintains the timestamp to change once along with the time service module, and then jumps to the first time setting finishing stage; if the clock error meets the precision requirement, but the synchronization mark of the time service module is abnormal, the device locks the jump detection judgment logic, and pops up an alarm and uploads the alarm to the background at the same time until the synchronization mark of the time service module is normal during self-defense.
CN202010756160.4A 2020-07-31 2020-07-31 PPS (polyphenylene sulfide) jump detection method and system for timing by time service module Active CN111984059B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010756160.4A CN111984059B (en) 2020-07-31 2020-07-31 PPS (polyphenylene sulfide) jump detection method and system for timing by time service module

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010756160.4A CN111984059B (en) 2020-07-31 2020-07-31 PPS (polyphenylene sulfide) jump detection method and system for timing by time service module

Publications (2)

Publication Number Publication Date
CN111984059A true CN111984059A (en) 2020-11-24
CN111984059B CN111984059B (en) 2022-08-26

Family

ID=73444823

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010756160.4A Active CN111984059B (en) 2020-07-31 2020-07-31 PPS (polyphenylene sulfide) jump detection method and system for timing by time service module

Country Status (1)

Country Link
CN (1) CN111984059B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113176973A (en) * 2021-05-14 2021-07-27 山东英信计算机技术有限公司 PSU power supply black box log time stamp recording method, device, equipment and medium
CN113489140A (en) * 2021-05-27 2021-10-08 国网浙江省电力有限公司湖州供电公司 Time synchronization fault positioning method for transformer substation
CN113839767A (en) * 2021-09-13 2021-12-24 许昌许继软件技术有限公司 Multi-chip FPGA system and timestamp synchronization method thereof
CN114089038A (en) * 2021-11-16 2022-02-25 许昌许继软件技术有限公司 Time scale second-bit jump processing method and system for dynamic data of synchrophasor measuring device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110221485A1 (en) * 2008-11-29 2011-09-15 Zte Corporation Time synchronization method and apparatus
CN103036635A (en) * 2012-12-15 2013-04-10 辽宁省电力有限公司电力科学研究院 Merging unit synchronization time hack method adaptive for relay protection application and based on Institute of Electrical and Electronic Engineers (IEEE) 1588
CN103078401A (en) * 2012-12-17 2013-05-01 广东电网公司电力科学研究院 Time synchronization and sampling synchronization system and method for transformer substation
CN104457793A (en) * 2014-12-08 2015-03-25 中国科学院上海微系统与信息技术研究所 Parallel calibration method for synchronization precision of superconducting full tensor magnetic gradient measurement and control device
CN104683090A (en) * 2015-03-19 2015-06-03 浙江赛思电子科技有限公司 Expandable clock monitoring device and method
US20180302461A1 (en) * 2016-01-04 2018-10-18 Hangzhou Yameilijia Technology Co., Ltd. Method and system for synchronizing robot with server
CN110971332A (en) * 2019-11-26 2020-04-07 北京无线电计量测试研究所 Pulse-per-second time signal synchronization device and method
CN111277462A (en) * 2020-01-19 2020-06-12 成都天奥电子股份有限公司 Method for automatically measuring IRIG-B time service signal propagation delay, time service slave station and time service system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110221485A1 (en) * 2008-11-29 2011-09-15 Zte Corporation Time synchronization method and apparatus
CN103036635A (en) * 2012-12-15 2013-04-10 辽宁省电力有限公司电力科学研究院 Merging unit synchronization time hack method adaptive for relay protection application and based on Institute of Electrical and Electronic Engineers (IEEE) 1588
CN103078401A (en) * 2012-12-17 2013-05-01 广东电网公司电力科学研究院 Time synchronization and sampling synchronization system and method for transformer substation
CN104457793A (en) * 2014-12-08 2015-03-25 中国科学院上海微系统与信息技术研究所 Parallel calibration method for synchronization precision of superconducting full tensor magnetic gradient measurement and control device
CN104683090A (en) * 2015-03-19 2015-06-03 浙江赛思电子科技有限公司 Expandable clock monitoring device and method
US20180302461A1 (en) * 2016-01-04 2018-10-18 Hangzhou Yameilijia Technology Co., Ltd. Method and system for synchronizing robot with server
CN110971332A (en) * 2019-11-26 2020-04-07 北京无线电计量测试研究所 Pulse-per-second time signal synchronization device and method
CN111277462A (en) * 2020-01-19 2020-06-12 成都天奥电子股份有限公司 Method for automatically measuring IRIG-B time service signal propagation delay, time service slave station and time service system

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113176973A (en) * 2021-05-14 2021-07-27 山东英信计算机技术有限公司 PSU power supply black box log time stamp recording method, device, equipment and medium
CN113176973B (en) * 2021-05-14 2023-04-25 山东英信计算机技术有限公司 PSU power supply black box log time stamp recording method, device, equipment and medium
CN113489140A (en) * 2021-05-27 2021-10-08 国网浙江省电力有限公司湖州供电公司 Time synchronization fault positioning method for transformer substation
CN113489140B (en) * 2021-05-27 2023-07-28 国网浙江省电力有限公司湖州供电公司 Time setting fault positioning method for transformer substation
CN113839767A (en) * 2021-09-13 2021-12-24 许昌许继软件技术有限公司 Multi-chip FPGA system and timestamp synchronization method thereof
CN114089038A (en) * 2021-11-16 2022-02-25 许昌许继软件技术有限公司 Time scale second-bit jump processing method and system for dynamic data of synchrophasor measuring device
CN114089038B (en) * 2021-11-16 2024-04-16 许昌许继软件技术有限公司 Time scale second bit jump processing method and system for dynamic data of synchronous phasor measurement device

Also Published As

Publication number Publication date
CN111984059B (en) 2022-08-26

Similar Documents

Publication Publication Date Title
CN111984059B (en) PPS (polyphenylene sulfide) jump detection method and system for timing by time service module
US7617408B2 (en) System and method for providing accurate time generation in a computing device of a power system
CN107800590B (en) Transmission equipment delay monitoring method and device and switch transmission delay monitoring system
US20100070213A1 (en) Method for Monitoring the Electrical Energy Quality in an Electrical Energy Supply System, Power Quality Field Device and Power Quality System
CN110133998B (en) Method for preventing duration time synchronization attack
CN113014345B (en) Clock synchronization early warning method, device and system thereof
CN101604142B (en) Method for detecting time information of output signal of satellite synchronous time service device
US20160169977A1 (en) Device, method, and non-transitory recording medium storing program for specifying abnormality-occurrence area of secondary battery system
RU2010139412A (en) SYNCHRONIZATION OF TACT GENERATORS IN ASYNCHRONOUS DISTRIBUTED SYSTEM
CN103823361B (en) Multi-source dynamic self-adapting clock synchronizing method and device
CN110389846A (en) The electronic device and its method of record event
CN103257857A (en) System for managing buffers of time-stamped events
CN106647228B (en) Converter station master clock fault judgment system
CN115499082B (en) Comprehensive source selection method based on multi-time source fusion
CN105573110A (en) Leap second detection system and method of GNSS time synchronization system
CN114488915B (en) Processing method for abnormal reset of MCU and electric energy meter for realizing method
CN113489140B (en) Time setting fault positioning method for transformer substation
CN115914014A (en) Acceptance detection system, method, equipment and medium for substation unmanned aerial vehicle decoy equipment
CN111756466B (en) Method and system for synchronizing clocks of platform sensing terminals based on platform power failure event grabbing
CN111680037B (en) Dynamic data time scale acquisition method and device
CN109451521B (en) GPS synchronization method for base station intensive distributed networking
CN114114134A (en) Time synchronization method of intelligent electric energy meter
CN110618604B (en) Method and device for improving time keeping precision by using NTP auxiliary source
CN113328823B (en) Clock identification method and device based on PTP
CN113141227B (en) Time determination method, system and medium based on hierarchical control

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
GR01 Patent grant