Method, device and equipment for judging abnormal time jump and medium
By employing a multi-time-source collaborative verification and reliability-level assessment mechanism, the problem of abnormal time jumps in the in-vehicle time synchronization system was solved, enabling accurate identification of time anomalies and reliable time synchronization, thus ensuring driving safety.
Patent Information
- Application Number
- CN202511550342.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-10-28
- Publication Date
- 2026-01-13
AI Technical Summary
Existing in-vehicle time synchronization systems are susceptible to interference, leading to abnormal time jumps. Furthermore, the single-time-source judgment method lacks multi-source cross-validation, resulting in reduced system robustness and impacting driving safety.
Through a multi-time-source collaborative verification and credibility grading assessment mechanism, the system uses timestamps from multiple time sources and preset time difference thresholds to classify credible and untrustworthy jumps, ultimately determining the judgment result of abnormal time jumps, and dynamically adjusting the weights of time sources to improve accuracy.
It accurately identifies abnormal time jumps, eliminates errors caused by system mistakes and human attacks, provides reliable time synchronization protection, and improves the security and robustness of the in-vehicle system.
Smart Images

Figure CN121326104A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of time management technology, and in particular to a method, apparatus, device, and medium for determining abnormal time jumps. Background Technology
[0002] With the development of intelligent connected vehicles, vehicle functions such as intelligent driving, reservation control, and log data recording all heavily rely on the accuracy and reliability of the in-vehicle system's time synchronization system. Currently, in-vehicle networks generally adopt a master-slave node network for time synchronization. The master clock node is responsible for obtaining the reference time from external / internal time sources (such as GPS (Global Positioning System), RTC (Real Time Clock), cellular networks, etc.) and distributing it to each slave node through a bus communication protocol to maintain system time consistency.
[0003] However, in real-world operating environments, this system is susceptible to various interferences, such as hardware interference (e.g., RTC module aging), software anomalies (e.g., communication interruptions, logic errors), and environmental factors (e.g., GPS signal loss). These interferences can cause abnormal time jumps during the time synchronization process. If such jumps are not effectively identified and handled, they will directly affect advanced functions that rely on precise timing, such as causing GPS positioning errors and misjudgments in automatic emergency braking, posing a serious threat to driving safety.
[0004] Current methods for handling in-vehicle time jumps mostly rely on preset thresholds for judgment. When the difference between adjacent timestamps exceeds the threshold, it is considered an abnormal time jump, and a smooth adjustment of the current time to the target time is usually performed. However, this method has significant limitations: it judges based solely on the changes of a single time source, lacking multi-source cross-validation and reliability assessment of jump events. Once the primary time source itself experiences persistent anomalies or provides incorrect time, existing methods cannot distinguish whether the jump is a reasonable clock correction or stems from a time source failure. This may lead the system to accept incorrect time or refuse correct correction, reducing the overall robustness of the time system. Summary of the Invention
[0005] In view of the above-described existing situation, the present invention provides a method for determining abnormal time jumps to solve the above-mentioned technical problems.
[0006] This invention provides a method for determining abnormal time jumps, comprising: Determine whether an abnormal time jump has occurred at the current time source; the current time source is one of multiple time sources. If it is determined that the current time source has experienced an abnormal time jump, then the first timestamp of the current time source at the moment of the abnormal time jump and the second timestamps of other time sources are obtained; wherein, the other time sources are time sources other than the current time source among multiple time sources, and the first timestamp and the second timestamp are timestamps at the same moment; Based on the first timestamp, the second timestamp, and the first preset time difference threshold, the judgments of other time sources on the time abnormal jumps are divided into reliable jump judgments or unreliable jump judgments. The final time anomaly jump determination result is determined based on the credible jump judgment and the uncredible jump judgment.
[0007] In one embodiment of the present invention, the step of classifying the judgment of the time anomaly jump from other time sources into a reliable jump judgment or an unreliable jump judgment based on the first timestamp, the second timestamp, and a first preset time difference threshold includes: Obtain the first time difference between the first timestamp and the second timestamp; If the first time difference is greater than or equal to the first preset time difference threshold, then the judgments of other time sources on the time abnormal jump are classified as reliable jumps. If the second time difference is less than the first preset time difference threshold, then the judgments of other time sources on the abnormal time jumps are classified as unreliable jumps.
[0008] In one embodiment of the present invention, determining whether an abnormal time jump has occurred in the current time source includes: Obtain the third timestamp of the current time source in the first period and the fourth timestamp in the second period, and calculate the second time difference between the third timestamp and the fourth timestamp; wherein the first period and the second period are consecutive time periods; Based on the second time difference and the second preset time difference threshold, it is determined whether the current time source has experienced an abnormal time jump at the time corresponding to the fourth timestamp; If the second time difference is less than the second preset time difference threshold, it is determined that the current time source has not experienced an abnormal time jump; If the second time difference is greater than or equal to the second preset time difference threshold, then it is determined that the current time source has experienced an abnormal time jump.
[0009] In one embodiment of the present invention, determining the final time anomaly jump determination result based on the credible jump determination and the untrusted jump determination includes: Obtain the first weight of the time source corresponding to the trusted transition judgment and the second weight of the time source corresponding to each untrusted transition judgment; wherein, the first weight is the sum of the preset weights of the time sources corresponding to the trusted transition judgment, and the second weight is the sum of the preset weights of the time sources corresponding to the untrusted transition judgment. Based on the first weight and the second weight, the final time anomaly jump judgment result is determined.
[0010] In one embodiment of the present invention, the preset weight of the time source is allocated by a first weight allocation method, the first weight allocation method comprising: Set multiple scoring indicators; Obtain the scores of each rating indicator for each time source, and calculate the average score of each time source under multiple rating indicators; Assign indicator weights to each scoring indicator, and calculate the weighted total score for each time source based on the indicator weights and the average score; The weighted total score is normalized to obtain the final weight of each time source.
[0011] In one embodiment of the present invention, the preset weight of the time source is allocated by a second weight allocation method, the second weight allocation method comprising: Obtain the time values from each time source and determine the reference time based on the time values from each time source; Calculate the absolute deviation between the time values of each time source and the reference time; The weights of each time source are calculated based on the absolute deviation and the preset adjustment parameters; The reference time is updated according to the weights, and the process is iterative to dynamically adjust the weights of each time source.
[0012] In one embodiment of the present invention, updating the reference time according to the weight includes: A new reference time is obtained by weighting the time values of each time source according to their respective weights.
[0013] The present invention provides a device for determining abnormal time jumps, comprising: The abnormal jump detection module is used to determine whether an abnormal time jump has occurred in the current time source; The timestamp acquisition module is used to acquire, when it is determined that the current time source has experienced an abnormal time jump, the first timestamp of the current time source at the moment of the abnormal time jump and the second timestamps of other time sources; wherein, the other time sources are time sources other than the current time source among multiple time sources, and the first timestamp and the second timestamp are timestamps at the same moment; The segmentation module is used to classify the judgments of other time sources on the time abnormal jump into reliable jump judgments or unreliable jump judgments based on the first timestamp, the second timestamp, and the first preset time difference threshold. The jump result judgment module is used to determine the final time abnormal jump judgment result based on the credible jump judgment and the uncredible jump judgment.
[0014] This invention provides a device for determining abnormal time jumps, comprising: One or more processors; A memory for storing one or more programs, which, when executed by one or more processors, enables the memory to implement the method for determining abnormal time jumps.
[0015] The present invention provides a machine-readable medium, characterized in that it stores instructions that, when executed by one or more processors, cause the processors to execute the method for determining abnormal time jumps.
[0016] The beneficial effects of this invention are: This invention provides a method for determining abnormal time jumps, comprising: determining whether an abnormal time jump has occurred at the current time source; if the abnormal time jump has occurred at the current time source, obtaining a first timestamp of the current time source at the moment of the abnormal time jump and second timestamps of other time sources; wherein the other time sources are time sources other than the current time source among multiple time sources, and the first timestamp and the second timestamp are timestamps at the same moment; based on the first timestamp, the second timestamp, and a first preset time difference threshold, classifying the judgments of other time sources regarding the abnormal time jump into reliable jump judgments or unreliable jump judgments; and determining the final abnormal time jump judgment result based on the reliable jump judgments and the unreliable jump judgments. This invention, through multi-time source collaborative verification and a reliability grading evaluation mechanism, solves the problems of misjudgment and reliability differences of a single time source, enabling more accurate identification of the valid occurrence of abnormal time jumps, eliminating abnormal time jumps introduced by system errors, human attacks tampering with injected time, etc., avoiding in-vehicle system time errors, and providing reliable protection for driving safety. Attached Figure Description
[0017] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention. It is obvious that the drawings described below are merely some embodiments of the invention, and those skilled in the art can obtain other drawings based on these drawings without any inventive effort.
[0018] In the attached diagram: Figure 1 This is a flowchart of a method for determining abnormal time jumps according to an embodiment of the present invention; Figure 2 This is a flowchart of a jump partitioning method according to an embodiment of the present invention; Figure 3 This is a flowchart of a time anomaly jump judgment according to an embodiment of the present invention; Figure 4 This is a flowchart of a first weight allocation method according to an embodiment of the present invention; Figure 5 This is a flowchart of a second weight allocation method according to an embodiment of the present invention; Figure 6 This is a schematic diagram of a device for determining abnormal time jumps according to an embodiment of the present invention; Figure 7 A schematic diagram of a computer system suitable for implementing an embodiment of the present invention is shown. Detailed Implementation
[0019] The following specific examples illustrate the implementation of the present invention. Those skilled in the art can easily understand other advantages and effects of the present invention from the content disclosed in this specification. The present invention can also be implemented or applied through other different specific embodiments. Various details in this specification can also be modified or changed based on different viewpoints and applications without departing from the spirit of the present invention. In the absence of conflict, the following embodiments and features in the embodiments can be combined with each other.
[0020] It should be noted that the illustrations provided in the following embodiments are only schematic representations of the basic concept of the present invention. The accompanying drawings only show the components related to the present invention and are not drawn according to the actual number, shape and size of the components in the actual implementation. In the actual implementation, the shape, quantity and proportion of each component can be arbitrarily changed, and the layout of the components may also be more complex.
[0021] In the following description, numerous details are explored to provide a more thorough explanation of embodiments of the invention. However, it will be apparent to those skilled in the art that embodiments of the invention may be practiced without these specific details. In other embodiments, well-known structures and devices are shown in block diagram form rather than in detail to avoid obscuring embodiments of the invention.
[0022] Please see Figure 1 , Figure 1 This is a flowchart illustrating a method for determining abnormal time jumps according to an embodiment of the present invention. Figure 1 In China, methods for determining abnormal time jumps include: Step S110: Determine whether the current time source has experienced an abnormal time jump; the current time source is one of multiple time sources. In a multi-time-source system consisting of GPS, cellular networks, and RTC, time anomaly detection is performed on the currently selected primary time source (current time source). By comparing the time consistency of multiple time sources in real time, analyzing the trend of time series changes, and monitoring the stability of clock frequencies, abnormal timestamp changes are accurately identified to ensure that the time base of critical business systems remains accurate and reliable at all times.
[0023] Step S120: If it is determined that the current time source has experienced an abnormal time jump, then obtain the first timestamp of the current time source at the moment of the abnormal time jump and the second timestamps of other time sources; wherein, the other time sources are time sources other than the current time source among multiple time sources, and the first timestamp and the second timestamp are timestamps at the same moment; Specifically, when step S110 determines that an abnormal time jump has occurred, the timestamp of the specific moment when the abnormal jump of the current time source occurred (i.e., the first timestamp) is obtained, along with the timestamps of all other time sources in the system at the same moment (i.e., the second timestamps). This results in one first timestamp and multiple second timestamps.
[0024] Step S130: Based on the first timestamp, the second timestamp, and the first preset time difference threshold, the judgments of other time sources on the time abnormal jump are divided into reliable jump judgments or unreliable jump judgments. For each other time source, calculate the first time difference between the first timestamp and the second timestamp, and compare each first time difference with a first preset time difference threshold. Based on the comparison results, classify the judgments of each time source regarding this abnormal jump. If other time sources consider the abnormal jump reasonable, then the time abnormal jump is judged as a reliable jump; otherwise, if other time sources consider the abnormal jump unreasonable, then the time abnormal jump is judged as an unreliable jump.
[0025] The first preset time difference threshold can usually be determined based on the normal update cycle of the time source, the system's requirements for time accuracy, and historical operating data.
[0026] Step S140: Determine the final time anomaly jump judgment result based on the credible jump judgment and the untrusted jump judgment.
[0027] Specifically, this step combines trusted and untrusted jump judgments to determine the final time anomaly jump result. If the final judgment is a trusted jump, the time change is accepted; if the final judgment is an untrusted jump, the time change is rejected, and a time source switching mechanism can be triggered.
[0028] This invention solves the problems of misjudgment and credibility difference of a single time source by using a multi-time source collaborative verification and credibility grading evaluation mechanism. It can more accurately identify the effective occurrence of abnormal time jumps, eliminate abnormal time jumps caused by system errors, human attacks to tamper with injected time, etc., avoid in-vehicle system time errors, and provide reliable protection for driving safety.
[0029] Please see Figure 2 , Figure 2 This is a flowchart illustrating a jump partitioning method according to an embodiment of the present invention. Figure 2 In this context, the method of classifying the judgment of other time sources regarding the abnormal time jump based on the first timestamp, the second timestamp, and a first preset time difference threshold into reliable jump judgments or unreliable jump judgments includes: Step S210: Obtain the first time difference between the first timestamp and the second timestamp; Step S220: If the first time difference is greater than or equal to the first preset time difference threshold, then the judgments of other time sources on the time abnormal jump are classified as reliable jumps. Specifically, when the first time difference is greater than or equal to the first preset time difference threshold, the abnormal time jump is judged as a reliable jump. At this time, at the physical moment when the abnormal time jump occurs, the time recorded by the corresponding time source itself is very close to the new time after the jump, and the jump of the current time source is considered reasonable.
[0030] Step S230: If the second time difference is less than the first preset time difference threshold, then the judgment of other time sources on the abnormal time jump is classified as an unreliable jump.
[0031] Specifically, if the first time difference is less than the first preset time difference threshold, the abnormal time jump is judged as an unreliable jump. In this case, at the moment the abnormal time jump occurs, there is a significant discrepancy between the time recorded by the corresponding time source itself and the new time after the jump, and the jump of the current time source is considered unreasonable.
[0032] Please see Figure 3 , Figure 3 This is a flowchart illustrating the time anomaly jump detection method according to an embodiment of the present invention. Figure 3 In the process of determining whether an abnormal time jump has occurred in the current time source, the following steps are included: Step S310: Obtain the third timestamp in the first period and the fourth timestamp in the second period of the current time source, and calculate the second time difference between the third timestamp and the fourth timestamp; wherein, the first period and the second period are consecutive time periods; Specifically, the master clock node continuously monitors the current time source, which serves as the system's time reference, and records the time information provided by the current time source within two consecutive working cycles, including the third timestamp in the first cycle and the fourth timestamp in the second cycle. Then, it calculates the difference between the third and fourth timestamps to obtain the amount of time change of the current time source within a unit cycle, i.e., the second time difference. The first cycle is the cycle preceding the two consecutive working cycles, and the second cycle is the cycle following the two consecutive working cycles.
[0033] Step S320: Based on the second time difference and the second preset time difference threshold, determine whether the current time source has experienced an abnormal time jump at the time corresponding to the fourth timestamp; Specifically, the calculated second time difference is compared with a second preset time difference threshold, and the comparison result is used to determine whether the current time source has experienced an abnormal time jump. If it is determined that no abnormal time jump has occurred, the process terminates and the system continues to operate normally; if it is determined that the current time source has experienced an abnormal time jump, the subsequent multi-source verification process is triggered.
[0034] The second preset time difference threshold can usually be determined based on the normal update cycle of the time source, the system's requirements for time accuracy, and historical operating data.
[0035] Step S330: If the second time difference is less than the second preset time difference threshold, then it is determined that the current time source has not experienced an abnormal time jump; Specifically, if the second time difference is lower than the second preset time difference threshold, it indicates that the time variation of the current time source within the continuous period is within the normal fluctuation range. This variation usually originates from normal clock stepping, minor crystal oscillator jitter, or tolerable network transmission delay. In this case, it is determined that no abnormal time jump has occurred, and the process terminates. The system uses the current time source and maintains normal time synchronization operations to ensure the system's operating efficiency under most normal working conditions and avoid unnecessary resource overhead.
[0036] Step S340: If the second time difference is greater than or equal to the second preset time difference threshold, then it is determined that the current time source has experienced an abnormal time jump.
[0037] Specifically, if the second time difference is greater than or equal to the second preset time difference threshold, it indicates that the current time source has output a drastic and sudden change, the magnitude of which has exceeded the normal boundary defined by the system. In this case, it is determined that the current time source has experienced an abnormal time jump. The master clock node will not immediately accept or reject this time, but will initiate multi-time source collaborative verification to determine the credibility of the abnormal jump.
[0038] In one embodiment, determining the final time anomaly jump determination result based on the credible jump determination and the untrusted jump determination includes: Obtain the first weight of the time source corresponding to the trusted transition judgment and the second weight of the time source corresponding to each untrusted transition judgment; wherein, the first weight is the sum of the preset weights of the time sources corresponding to the trusted transition judgment, and the second weight is the sum of the preset weights of the time sources corresponding to the untrusted transition judgment. Based on the first weight and the second weight, the final time anomaly jump judgment result is determined.
[0039] Specifically, the weights corresponding to the time sources identified as reliable jumps are accumulated to obtain the first weight. The weights corresponding to time sources deemed unreliable are accumulated to obtain the second weight. Choose the first weight. Second weight The voting category with the highest weight is used as the final judgment result Y:
[0040] in: c represents the possible categories of the vote, which in this case are "credible" and "uncredible". It is an indicator function, if The value is 1 if it is 1, otherwise it is 0. `arg max` indicates that the category with the most votes should be selected.
[0041] In one embodiment, the preset weights of the time sources are allocated using a first weight allocation method. This first weight allocation method is an expert scoring method, a subjective weight allocation method based on domain expertise. Experts score the time source indicators such as accuracy and stability, and then the weights are calculated comprehensively. Please refer to [link to relevant documentation]. Figure 4 , Figure 4 This is a flowchart of a first weight allocation method according to an embodiment of the present invention. Figure 4 In this context, the first weight allocation method includes: Step S410: Set multiple scoring indicators; each scoring indicator has a corresponding scoring standard (e.g., 1 to 10 points).
[0042] Several of the scoring indicators include: Indicator 1: Accuracy (1-10 points) Indicator 2: Stability (1-10 points) … Index n: Anti-interference capability (1-10 points) Step S420: Obtain the rating scores of each rating indicator for each time source, and calculate the average rating of each time source under multiple rating indicators. Specifically, multiple experts familiar with time synchronization systems or related fields independently scored each time source's metrics based on the aforementioned scoring indicators. After collecting all expert scores, the average score for each metric of each time source was calculated, denoted as: .
[0043] For a time source T i and a rating indicator S j Its average rating S ij for: ,in Indicates that the m-th expert is the time source. T i The score on rating indicator j, where M represents the number of experts.
[0044] Step S430: Assign indicator weights to each scoring indicator, and calculate the weighted total score for each time source based on the indicator weights and average scores. Specifically, a weight is assigned to each scoring indicator, such as indicator 1 accounting for a certain percentage. Indicator 2 accounts for ...The weighted total score for each time source is calculated using the following formula:
[0045] Step S440: Normalize the weighted total score to obtain the final weight of each time source.
[0046] Specifically, the weighted total score of all time sources is treated as a whole, and through scaling, it is converted into a final weight that sums to 1. .
[0047]
[0048] In one embodiment, the preset weights of the time sources are allocated using a second weight allocation method. This second weight allocation method dynamically adjusts the weights based on the real-time performance of the time sources, reducing the impact of outliers. Please refer to [link to relevant documentation]. Figure 5 , Figure 5 This is a flowchart of a second weight allocation method according to an embodiment of the present invention. Figure 5 In this context, the second weight allocation method includes: Step S510: Obtain the time values of each time source and determine the reference time based on the time values of each time source; The system obtains the time values of all available time sources at the current moment, forming a time set { Then, based on this time set, an initial reference time is determined. t ref Specifically, the median of all time values is taken as the initial reference time.
[0049] Step S520: Calculate the absolute deviation between the time value of each time source and the reference time; Calculate the time values for each time source Reference time absolute deviation .
[0050]
[0051] absolute deviation The larger the value, the further the time source deviates from the system consensus time, and the lower its reliability at the current moment. i Indicates the first i A time source.
[0052] Step S530: Calculate the weight of each time source based on the absolute deviation and preset adjustment parameters; The absolute deviation calculated in step S320 is used as an exponential function. Mapped to weights of each time source Among them, absolute deviation The larger the value, the smaller the weight.
[0053]
[0054] Here, α is an adjustment parameter used to control the weight decay rate; the smaller α is, the faster the weight decays; the larger α is, the more uniform the weight distribution.
[0055] Step S540: Update the reference time according to the weights and iterate to dynamically adjust the weights of each time source.
[0056] Repeat steps S510 to S540 above to perform dynamic weight allocation.
[0057] In one embodiment, updating the reference time according to the weights includes: taking a weighted average of the time values of each time source based on their respective weights to obtain a new reference time.
[0058] Specifically, using the new weights calculated in the preceding steps, a weighted average is performed on the time values of all time sources to calculate a new, more accurate reference time. .
[0059]
[0060] It should be understood that the sequence number of each step in the above embodiments does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0061] Please see Figure 6 , Figure 6 This is a schematic diagram of a time anomaly detection device according to an embodiment of the present invention. Figure 6 The device for determining abnormal time jumps includes: The abnormal jump judgment module 610 is used to determine whether an abnormal time jump has occurred in the current time source; The timestamp acquisition module 620 is used to acquire, when it is determined that the current time source has experienced an abnormal time jump, the first timestamp of the current time source at the moment of the abnormal time jump and the second timestamps of other time sources; wherein, the other time sources are time sources other than the current time source among multiple time sources, and the first timestamp and the second timestamp are timestamps at the same moment; The segmentation module 630 is used to classify the judgments of other time sources on the time abnormal jump into reliable jump judgments or unreliable jump judgments based on the first timestamp, the second timestamp, and the first preset time difference threshold. The jump result judgment module 640 is used to determine the final time abnormal jump judgment result based on the credible jump judgment and the uncredible jump judgment.
[0062] It should be noted that the time anomaly detection device and the time anomaly detection method provided in the above embodiments belong to the same concept. The specific operation methods of each module and unit have been described in detail in the method embodiments and will not be repeated here. In practical applications, the time anomaly detection device provided in the above embodiments can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. This is not a limitation here.
[0063] Embodiments of the present invention also provide an electronic device, including: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by one or more processors, the memory implements the time abnormal jump determination method described in the above embodiments.
[0064] Embodiments of the present invention also provide one or more machine-readable media having instructions stored thereon that, when executed by one or more processors, cause the processors to execute the time aberration determination method described in the above embodiments.
[0065] Figure 7 A schematic diagram of a computer system suitable for implementing an embodiment of the present invention is shown. It should be noted that... Figure 7 The computer system with the memory shown is merely an example and should not impose any limitation on the functionality and scope of use of the embodiments of the present invention.
[0066] like Figure 7 As shown, the computer system 700 includes a Central Processing Unit (CPU) 701, which can perform various appropriate actions and processes, such as executing the methods described in the above embodiments, based on a program stored in Read-Only Memory (ROM) 702 or a program loaded from storage into Random Access Memory (RAM) 703. The RAM also stores various programs and data required for system operation. The CPU 701, ROM 702, and RAM 703 are interconnected via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0067] The following components are connected to I / O interface 705: an input section 706 including a keyboard, mouse, etc.; an output section 707 including a cathode ray tube (CRT), liquid crystal display (LCD), etc., and speakers, etc.; a storage section 708 including a hard disk, etc.; and a communication section 709 including a network interface card such as a LAN (Local Area Network) card, modem, etc. The communication section 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to I / O interface 705 as needed. A removable medium 711, such as a disk, optical disk, magneto-optical disk, semiconductor memory, etc., is installed on drive 710 as needed so that computer programs read from it can be installed into storage section 708 as needed.
[0068] In particular, according to embodiments of the present invention, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of the present invention include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing a computer program for performing the time anomalous jump determination method of the aforementioned embodiments. In such embodiments, the computer program can be downloaded and installed from a network via a communication component, and / or installed from a removable medium 711. When the computer program is executed by the central processing unit (CPU) 701, it performs various functions defined in the system of the present invention.
[0069] It should be noted that the computer-readable medium shown in the embodiments of the present invention can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM) 703, read-only memory (ROM) 702, erasable programmable read-only memory (EPROM), flash memory, optical fiber, portable compact disc read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In the present invention, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media can also be any computer-readable medium other than computer-readable storage media, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The computer program contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to wireless, wired, etc., or any suitable combination thereof.
[0070] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. Each block in a flowchart or block diagram may represent a module, program segment, or portion of code, which contains one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, or they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block or combination of blocks in a block diagram or flowchart may be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0071] The units described in the embodiments of the present invention can be implemented in software or hardware, and the described units can also be located in a processor. The names of these units do not necessarily limit the specific unit itself.
[0072] Another aspect of the present invention provides a computer-readable storage medium storing a computer program thereon, which, when executed by a computer's processor, causes the computer to perform the aforementioned method for determining abnormal time jumps. This computer-readable storage medium may be included in the memory described in the above embodiments, or it may exist independently without being assembled into that memory.
[0073] Another aspect of the present invention provides a computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the time aberration determination method provided in the various embodiments described above.
[0074] The above embodiments are merely illustrative of the principles and effects of the present invention and are not intended to limit the invention. Any person skilled in the art can modify or alter the above embodiments without departing from the spirit and scope of the present invention. Therefore, all equivalent modifications or alterations made by those skilled in the art without departing from the spirit and technical concept disclosed in the present invention should still be covered by the claims of the present invention.
Claims
1. A method of determining a time anomaly jump, characterized by, The method comprises: determining whether a current time source has a time abnormal jump; wherein the current time source is one of a plurality of time sources; if it is determined that the current time source has a time abnormal jump, obtaining a first timestamp of the current time source at the time when the time abnormal jump occurs and a second timestamp of each of the other time sources; wherein the other time sources are time sources other than the current time source among the plurality of time sources, and the first timestamp and the second timestamp are timestamps of the same time; based on the first timestamp, the second timestamp and a first preset time difference threshold, dividing the judgment of the other time sources on the time abnormal jump into a credible jump judgment or an incredible jump judgment; determining a final time abnormal jump determination result according to the credible jump judgment and the incredible jump judgment.
2. The method of claim 1, wherein The method comprises: obtaining a first time difference between the first timestamp and the second timestamp; if the first time difference is greater than or equal to the first preset time difference threshold, the judgment of the other time sources on the time abnormal jump is divided into a credible jump; if the second time difference is less than the first preset time difference threshold, the judgment of the other time sources on the time abnormal jump is divided into an incredible jump.
3. The method of claim 1, wherein The method comprises: obtaining a third timestamp of the current time source in a first period and a fourth timestamp of the current time source in a second period, and calculating a second time difference between the third timestamp and the fourth timestamp; wherein the first period and the second period are consecutive time periods; determining whether the current time source has a time abnormal jump at the time corresponding to the fourth timestamp according to the second time difference and a second preset time difference threshold; if the second time difference is less than the second preset time difference threshold, it is determined that the current time source does not have a time abnormal jump; if the second time difference is greater than or equal to the second preset time difference threshold, it is determined that the current time source has a time abnormal jump.
4. The method of claim 1, wherein The method comprises: obtaining a first weight of the time source corresponding to the credible jump judgment and a second weight of each time source corresponding to the incredible jump judgment; wherein the first weight is the sum of the preset weights of the time sources corresponding to the credible jump judgment, and the second weight is the sum of the preset weights of the time sources corresponding to the incredible jump judgment; determining a final time abnormal jump determination result based on the first weight and the second weight.
5. The method of claim 4, wherein The preset weight of the time source is allocated by a first weight allocation method, and the first weight allocation method comprises: setting a plurality of scoring indicators; obtaining the indicator score of each scoring indicator of each time source, and calculating the average score of each time source under the plurality of scoring indicators; assigning an index weight to each score index, and calculating a weighted total score of each time source based on the index weight and the average score; normalizing the weighted total score to obtain a final weight of each time source.
6. The method of claim 4, wherein The preset weight of the time source is assigned by a second weight assignment method, and the second weight assignment method includes: obtaining a time value of each time source, and determining a reference time based on the time value of each time source; calculating an absolute deviation of the time value of each time source from the reference time; calculating the weight of each time source based on the absolute deviation and a preset adjustment parameter; updating the reference time according to the weight, and iteratively performing to dynamically adjust the weight of each time source.
7. The method of claim 6, wherein The updating of the reference time according to the weight includes: performing a weighted average of the time value of each time source by the weight of each time source to obtain a new reference time.
8. A device for determining a time abnormal jump, characterized by comprising: It includes: an abnormal jump judgment module for judging whether a current time source has a time abnormal jump; a timestamp acquisition module for acquiring a first timestamp of the current time source at the time of the time abnormal jump and a second timestamp of other time sources when it is determined that the current time source has a time abnormal jump; wherein the other time sources are time sources other than the current time source in the plurality of time sources, and the first timestamp and the second timestamp are timestamps at the same time; a division module for dividing the judgment of the other time sources on the time abnormal jump into a credible jump judgment or an incredible jump judgment based on the first timestamp, the second timestamp and a first preset time difference threshold; a jump result judgment module for determining a final time abnormal jump determination result according to the credible jump judgment and the incredible jump judgment.
9. A time abnormal jump determination device characterized by comprising: It includes: one or more processors; and a memory for storing one or more programs, when the one or more programs are executed by the one or more processors, the memory implements the determination method of the time abnormal jump as claimed in any one of claims 1-7.
10. A machine-readable medium, characterized in that, instructions stored thereon, when executed by one or more processors, cause the processors to perform the determination method of the time abnormal jump as claimed in any one of claims 1-7.