Method, device and equipment for determining occurrence time of event
By recording the timing of the data plane and management plane clocks during the SoC chip operating system initialization phase, the problem of difficulty in identifying event timings caused by the failure to generate the management plane clock is solved, and accurate location and management of event timings are achieved.
Patent Information
- Application Number
- CN202511817473.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-12-04
- Publication Date
- 2026-03-13
AI Technical Summary
During the initialization of the SoC chip operating system, the management plane clock is not generated, making it impossible for developers to quickly and effectively identify when events occur.
By recording the first occurrence time of the data plane clock and the generation time of the management plane clock during the initialization phase, and using preset conversion rules to determine the world time of the event, accurate location of the event time can be achieved.
It improves the readability of event moments, enabling developers to quickly and effectively identify and manage events during the initialization process.
Smart Images

Figure CN121650674A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of vehicle screen technology, and in particular to a method, apparatus, and device for determining the time of an event. Background Technology
[0002] Currently, most intelligent cockpits and intelligent driving systems in the automotive industry use operating systems based on system-on-chips (SoCs) as their system software, such as Linux and Qnix.
[0003] Typically, SoC chip operating systems have two sets of clocks: a data plane clock and a management plane clock. The time measured based on the management plane clock is mainly used for printing logs, DTCs, and other information that is actually needed for development and human-computer interaction, and its readability must be high. The time measured based on the data plane clock is used for counting the heartbeat and other functions of internal software programs, and its requirement is that there should be no large jumps and that it should not affect the stable operation of the program.
[0004] In related technologies, initialization is required during the startup process of the SoC chip operating system. Accordingly, during the initialization process, the operating system can only generate the data plane clock, but the management plane clock is not generated. Therefore, during the initialization process, the domain controller software of the operating system lacks the management plane clock, which makes it impossible for developers to quickly and effectively identify the timing of events that occur during the initialization process of the operating system. Summary of the Invention
[0005] The summary section introduces a series of simplified concepts, which will be further explained in detail in the detailed description section. This summary section is not intended to limit the key and essential technical features of the claimed technical solutions, nor is it intended to determine the scope of protection of the claimed technical solutions.
[0006] Firstly, this application provides a method for determining the time of an event, used in a control system, the method comprising: During the initialization phase of the control system, at least one event to be determined and the first occurrence time of each event to be determined are acquired; wherein, the first occurrence time is the occurrence time obtained based on the data plane clock measurement of the control system. Obtain the generation time of the management plane clock of the control system; wherein, the generation time includes the first generation time and the second generation time of time synchronization; the first generation time is the generation time obtained based on the data plane clock measurement, and the second generation time is the generation time obtained based on the management plane clock measurement; For each event to be determined, the world time of the event's occurrence is determined based on the first generation time, the second generation time, and the first occurrence time.
[0007] In some implementations, the world time of the event to be determined is determined based on the first generation time, the second generation time, and the first occurrence time, including: Based on the first generation time, the second generation time, and the first occurrence time, determine the second occurrence time of the event to be determined, which is obtained based on the management plane clock measurement. According to the preset conversion rules, the second occurrence time is converted into world time.
[0008] In some implementations, determining the second occurrence time of the event to be determined, based on the first generation time, the second generation time, and the first occurrence time, includes: Obtain the time difference between the first generation time and the first occurrence time; The second occurrence time is determined based on the second generation time and the time difference.
[0009] In some implementations, determining the second occurrence time based on the second generation time and the time difference includes: The second occurrence time is determined based on the difference between the second generation time and the time difference.
[0010] In some implementations, before acquiring at least one event to be determined and the first occurrence time of each event to be determined during the initialization phase of the control system, the determination method further includes: After the control system is powered on, the initialization of the control system is initiated, and the data plane clock of the control system is generated.
[0011] In some implementations, obtaining the generation time of the management plane clock of the control system includes: Generate the management plane clock of the control system; The acquisition management plane clock obtains the first generation time based on the data plane clock measurement, and the management plane clock obtains the second generation time based on the management plane clock measurement.
[0012] Secondly, this application proposes an apparatus for determining the time of an event, used in a control system. The apparatus includes: The acquisition unit, during the initialization phase of the control system, acquires at least one event to be determined, and the first occurrence time of each event; wherein the first occurrence time is the occurrence time obtained based on the data plane clock measurement of the control system; and Obtain the generation time of the management plane clock of the control system; wherein, the generation time includes the first generation time and the second generation time of time synchronization; the first generation time is the generation time obtained based on the data plane clock measurement, and the second generation time is the generation time obtained based on the management plane clock measurement; The determination unit determines the world time of the occurrence time of each event to be determined based on the first generation time, the second generation time, and the first occurrence time.
[0013] In some implementations, the determining unit is specifically used for: Based on the first generation time, the second generation time, and the first occurrence time, determine the second occurrence time of the event to be determined, which is obtained based on the management plane clock measurement. According to the preset conversion rules, the second occurrence time is converted into world time.
[0014] Thirdly, an electronic device includes: a processor, a memory, and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor communicates with the memory via the bus, and the machine-readable instructions are executed by the processor to perform the steps of the method for determining the occurrence time of an event as described in any of the above technical solutions.
[0015] Fourthly, this application also proposes a computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, performs the steps of a method for determining the occurrence time of an event as described in any of the above technical solutions.
[0016] In summary, the method for determining the occurrence time of events proposed in this application records the first occurrence time of each event to be determined based on the data plane clock measurement during the initialization phase of the control system, and records the first generation time and the second generation time based on the management plane clock measurement of the control system after the initialization phase is completed. This allows the first occurrence time of each event to be determined to be converted based on the first and second generation times, thus obtaining the occurrence time of each event based on the management plane clock measurement. Furthermore, the occurrence time of each event based on the management plane clock measurement is converted to world time, enabling developers to quickly and effectively identify the occurrence time of each event to be determined during the operating system initialization process. This facilitates the recording and management of each event to be determined during the initialization phase. Attached Figure Description
[0017] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit this specification. Furthermore, the same reference numerals denote the same parts throughout the drawings. In the drawings: Figure 1 A schematic flowchart illustrating a method for determining the occurrence time of an event, provided in an embodiment of this application; Figure 2 A schematic diagram of a device for determining the occurrence time of an event, provided in an embodiment of this application; Figure 3 This is a schematic diagram of the structure of a screen-controlled electronic device provided in an embodiment of this application; Figure 4 This is a schematic diagram illustrating the occurrence times of multiple undetermined events in the initialization phase of the control system in this application embodiment. Detailed Implementation
[0018] The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in a sequence other than that illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus. The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of them.
[0019] Please see Figure 1 This is a flowchart illustrating a method for determining the occurrence time of an event according to an embodiment of this application. The method for determining the occurrence time of an event can be used in a control system, and specifically may include: S110. During the initialization phase of the control system, acquire at least one event to be determined, and the first occurrence time of each event to be determined.
[0020] The first occurrence time is the occurrence time obtained based on the data plane clock measurement of the control system.
[0021] The method for determining the timing of an event provided in this application can be used in control systems, specifically in system-on-chip (SoC) based control systems. Accordingly, SoC chips can be used in vehicles to control processes such as intelligent cockpits and intelligent driving.
[0022] When the control system starts running, initialization is required. During the initialization process, the operating system can only generate the data plane clock, but the management plane clock is not generated. Therefore, during the initialization process, the domain controller software of the operating system lacks the management plane clock, and thus cannot measure the occurrence time of events during the initialization process based on the management plane clock. Instead, it can only measure the occurrence time of events based on the data plane clock. However, the occurrence time of events measured based on the data plane clock has poor readability, making it difficult for developers to quickly and effectively identify the occurrence time of events during the operating system initialization process.
[0023] The method for determining the occurrence time of an event provided in this application firstly acquires at least one event to be determined and the first occurrence time of each event during the initialization phase of the control system. It should be noted that during the initialization phase, since the control system only generates a data plane clock, the first occurrence time is the occurrence time of each event to be determined measured based on the data plane clock.
[0024] S120, Obtain the generation time of the management plane clock of the control system.
[0025] The generation time includes a first generation time and a second generation time for time synchronization; the first generation time is the generation time obtained based on the data plane clock measurement, and the second generation time is the generation time obtained based on the management plane clock measurement.
[0026] Specifically, after the control system initialization is completed, that is, after the control system generates the management plane clock, the generation time of the management plane clock can be obtained. The generation time of the management plane clock can include a first generation time and a second generation time. The first generation time and the second generation time correspond to the data plane clock and the management plane clock of the control system, respectively. That is, the first generation time is the generation time obtained based on the measurement of the data plane clock of the control system, and correspondingly, the second generation time is the generation time obtained based on the measurement of the management plane clock of the control system.
[0027] S130. For each event to be determined, determine the world time of the event's occurrence based on the first generation time, the second generation time, and the first occurrence time.
[0028] The aforementioned event to be determined can be a business failure event or a key node event in the initialization process, and is not specifically limited in this embodiment.
[0029] For each event to be determined, its occurrence time can be determined based on the first generation time, the second generation time, and the first occurrence time, using the management plane clock measurement. That is, by relating the first generation time obtained from the control system's data plane clock measurement to the generation time obtained from the control system's management plane clock measurement, the first occurrence time of each event to be determined is converted, thus obtaining the occurrence time of each event based on the management plane clock measurement. This allows for the determination of the occurrence time of each event to be determined based on the management plane clock measurement. It is understandable that the occurrence time obtained based on the management plane clock measurement has high readability, enabling developers to quickly and effectively identify the occurrence time of each event to be determined during operating system initialization. This facilitates the recording and management of each event during the initialization phase.
[0030] In summary, the method for determining the occurrence time of events proposed in this application records the first occurrence time of each event to be determined based on the data plane clock measurement during the initialization phase of the control system. After the initialization phase is completed, it records the first generation time and the second generation time based on the management plane clock measurement of the control system. This allows the first occurrence time of each event to be determined to be converted based on the first and second generation times, thereby obtaining the occurrence time of each event to be determined based on the management plane clock measurement. Furthermore, the occurrence time of each event to be determined based on the management plane clock measurement is converted into world time. This enables developers to quickly and effectively identify the occurrence time of each event to be determined during the operating system initialization process, facilitating the recording and management of each event during the initialization phase.
[0031] In some instances, the world time of the event to be determined is determined based on the first generation time, the second generation time, and the first occurrence time, including: Based on the first generation time, the second generation time, and the first occurrence time, determine the second occurrence time of the event to be determined, which is obtained based on the management plane clock measurement. According to the preset conversion rules, the second occurrence time is converted into world time.
[0032] In this embodiment, after converting the first occurrence time of each event to be determined to obtain the occurrence time of each event based on the management plane clock, the occurrence time of each event based on the management plane clock can be converted into world time according to a preset conversion rule, thereby further improving the readability of the occurrence time of each event to be determined.
[0033] For example, the occurrence time obtained based on the management plane clock measurement can be an integer with a minimum precision of ms, such as 1761219514948ms. After conversion according to the preset conversion rules, the corresponding world time can be obtained as 19:38:34 on October 23, 2025.
[0034] In summary, by converting the first occurrence time of an event to be determined according to preset conversion rules, the occurrence time of an event to be determined based on the management plane clock measurement can be converted into world time. This makes the occurrence time of each event to be determined more readable, further facilitating developers to read the occurrence time of each event to be determined, and thus further facilitating the management of each event to be determined.
[0035] In some instances, the second occurrence time of the event to be determined is determined based on the first generation time, the second generation time, and the first occurrence time, including: Obtain the time difference between the first generation time and the first occurrence time; The second occurrence time is determined based on the second generation time and the time difference.
[0036] In this embodiment, during the conversion of the first occurrence time of each event to be determined, the conversion can be based on the time difference between the first generation time measured by the management plane clock based on the data plane clock and the first occurrence time measured by the data plane clock for each event to be determined.
[0037] It is understandable that the first occurrence time of each event to be determined is obtained based on the data plane clock measurement of the control system. At the same time, the first generation time of the management plane clock is also obtained based on the data plane clock measurement. Therefore, the time difference between the first generation time and the first occurrence time is the time difference based on the same clock dimension. This means that the time difference between the first generation time and the first occurrence time can also reflect the time difference between the second generation time of the management plane clock and the occurrence time of the event to be determined under the management plane clock measurement.
[0038] Thus, after determining the second generation time obtained by the management plane clock based on the management plane clock measurement, the second occurrence time of the event to be determined can be obtained by the time difference and the second generation time based on the management plane clock measurement.
[0039] Finally, after obtaining the second occurrence time of each event to be determined based on the management plane clock measurement, the second occurrence time can be converted into world time according to the preset conversion rules, thus obtaining the world time of the occurrence time of each event to be determined.
[0040] In summary, in determining the occurrence time of each event to be determined based on the management plane clock metric, by obtaining the time difference between the first generation time and the first occurrence time under the data plane clock metric, the time difference between the second generation time of the management plane clock and the occurrence time of the event to be determined under the management plane clock metric can be reflected. Then, after determining the second generation time obtained by the management plane clock based on the management plane clock metric, the second occurrence time of the event to be determined based on the management plane clock metric can be obtained based on this time difference and the second generation time, which facilitates the determination process of the second occurrence time of each event to be determined based on the management plane clock metric.
[0041] In some instances, the second occurrence time is determined based on the second generation time and the time difference, including: The second occurrence time is determined based on the difference between the second generation time and the time difference.
[0042] In this embodiment, after obtaining the time difference between the first generation time of the management plane clock under the data plane clock metric and the first occurrence time of the event to be determined based on the data plane clock metric, this time difference can reflect the time difference between the second generation time of the management plane clock under the management plane clock metric and the occurrence time of the event to be determined. Thus, after the control system initialization phase is completed, i.e., after obtaining the second generation time of the control system's management plane clock, the second occurrence time of each event to be determined based on the difference between the second generation time and this time difference can be determined.
[0043] For example, please refer to Figure 4When the control system is powered on, it enters the initialization phase. That is, under the data plane clock measurement, the control system's data plane clock is generated at time T0, and at time T5, the control system completes the initialization phase and generates the control system's management plane clock. The first generation time of the management plane clock based on the data plane clock measurement is T5. Correspondingly, the second generation time of the management plane clock based on the management plane clock measurement can be recorded as t5. During the control system initialization process, multiple events to be determined are acquired. The first occurrence time of each event based on the data plane clock measurement can be recorded as Ti, where i represents the sequence number of the event to be determined. Then, the second occurrence time of each event based on the management plane clock measurement can be determined using the following formula: ti = t5 - (T5 - Ti) Where ti represents the second occurrence time of each event to be determined based on the management plane clock measurement, t5 is the second generation time of the management plane clock based on the management plane clock measurement, T5 is the first generation time of the management plane clock based on the data plane clock measurement, and Ti is the first occurrence time of each event to be determined based on the data plane clock measurement.
[0044] Specifically, during the initialization phase of the control system, four events to be determined were acquired. The first occurrence times of each event, based on the data plane clock metric, are T1, T2, T3, and T4, respectively. Based on the above formula, the second occurrence times t1, t2, t3, and t4 of each event based on the management plane clock metric can be determined as follows: t1 = t5 - (T5 - T1); t2 = t5 - (T5 - T2); t3 = t5 - (T5 - T3); t4 = t5 - (T5 - T4).
[0045] In summary, after the initialization phase of the control system is completed, that is, after obtaining the second generation time of the management plane clock of the control system, and determining the time difference between the first generation time of the management plane clock under the data plane clock measurement and the first occurrence time of the event to be determined based on the data plane clock measurement, the second occurrence time of each event to be determined based on the management plane clock measurement can be determined based on the second generation time and the above-mentioned event difference. This facilitates the determination process of the second occurrence time of each event to be determined based on the management plane clock measurement.
[0046] In some instances, during the initialization phase of the control system, before acquiring at least one event to be determined and the first occurrence time of each event to be determined, the determination method further includes: After the control system is powered on, the initialization of the control system is initiated, and the data plane clock of the control system is generated.
[0047] In this embodiment, before the control system is initialized, the control system can first be powered on to initiate its initialization, i.e., enter the initialization phase of the control system. Specifically, the control system can be a SoC chip-based control system; after the SoC chip is powered on, the initialization of the control system can be initiated.
[0048] Then, after the control system enters the initialization phase, the control system's data plane clock is generated. If any events to be determined are acquired during the initialization phase, the first occurrence time of each event, measured based on the data plane clock, can be obtained. After the control system initialization is completed, i.e., after the control system's management plane clock is generated, the second occurrence time of each event, measured based on the management plane clock, can be determined and then converted into the world time of each event. This facilitates the recording and management of the occurrence time of each event by the developers.
[0049] In some instances, the generation time of the management plane clock of the control system is obtained, including: Generate the management plane clock of the control system; The acquisition management plane clock obtains the first generation time based on the data plane clock measurement, and the management plane clock obtains the second generation time based on the management plane clock measurement.
[0050] In this embodiment, after the control system completes initialization, that is, after the management plane clock of the control system is generated, since both the management plane clock and the data plane clock of the control system have been generated, the first occurrence time and the second occurrence time of the management plane clock can be recorded. That is, the first occurrence time of the management plane clock is collected based on the measurement of the data plane clock, and the second occurrence time of the management plane clock is collected based on the measurement of the management plane clock.
[0051] Furthermore, if the first occurrence time of at least one event to be determined is recorded during the initialization phase of the control system, the occurrence time of each event to be determined based on the management plane clock measurement can be determined according to the first occurrence time, the first generation time, and the second generation time.
[0052] Please see Figure 2 This is a schematic diagram of a device for determining the occurrence time of an event, provided in an embodiment of this application. The device can be used to control a system. The device includes: The acquisition unit, during the initialization phase of the control system, acquires at least one event to be determined, and the first occurrence time of each event; wherein the first occurrence time is the occurrence time obtained based on the data plane clock measurement of the control system; and Obtain the generation time of the management plane clock of the control system; wherein, the generation time includes the first generation time and the second generation time of time synchronization; the first generation time is the generation time obtained based on the data plane clock measurement, and the second generation time is the generation time obtained based on the management plane clock measurement; The determination unit determines the world time of the occurrence time of each event to be determined based on the first generation time, the second generation time, and the first occurrence time.
[0053] The event occurrence time determination device proposed in this application records the first occurrence time of each event to be determined based on the data plane clock measurement during the initialization phase of the control system, and records the first generation time and the second generation time based on the management plane clock measurement of the control system after the initialization phase is completed. This allows the first occurrence time of each event to be determined to be converted based on the first and second generation times, thus obtaining the occurrence time of each event based on the management plane clock measurement. Furthermore, the occurrence time of each event based on the management plane clock measurement is converted to world time. This enables developers to quickly and effectively identify the occurrence time of each event to be determined during the operating system initialization process, facilitating the recording and management of each event during the initialization phase.
[0054] In some embodiments, the determining unit is specifically used for: Based on the first generation time, the second generation time, and the first occurrence time, determine the second occurrence time of the event to be determined, which is obtained based on the management plane clock measurement. According to the preset conversion rules, the second occurrence time is converted into world time.
[0055] In some embodiments, the determining unit is further configured to: Obtain the time difference between the first generation time and the first occurrence time; The second occurrence time is determined based on the second generation time and the time difference.
[0056] In some embodiments, the determining unit is further configured to: The second occurrence time is determined based on the difference between the second generation time and the time difference.
[0057] In some embodiments, the means for determining the time of occurrence of the event further includes: The generation unit is used to initiate the initialization of the control system and generate the data plane clock of the control system after the control system is powered on.
[0058] In some embodiments, the generation unit is also used to generate the management plane clock of the control system; The acquisition unit is specifically used to acquire the first generation time obtained by the management plane clock based on the data plane clock measurement, and the second generation time obtained by the management plane clock based on the management plane clock measurement.
[0059] Please see Figure 3 This application also provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor. When the processor 320 executes the computer program 311, it implements the steps of a method for determining the occurrence time of an event.
[0060] Since the electronic device described in this embodiment is a device used to implement an event occurrence time determination device in the embodiments of this application, those skilled in the art can understand the specific implementation method and various variations of the electronic device in this embodiment based on the method described in the embodiments of this application. Therefore, how the electronic device implements the method in the embodiments of this application will not be described in detail here. Any device used by those skilled in the art to implement the method in the embodiments of this application falls within the scope of protection of this application.
[0061] In practice, when the computer program 311 is executed by the processor, it can implement any of the embodiments corresponding to the first aspect.
[0062] It should be noted that the descriptions of each embodiment in the above embodiments have different focuses. For parts that are not described in detail in a certain embodiment, please refer to the relevant descriptions in other embodiments.
[0063] Those skilled in the art will understand that embodiments of this application can provide methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-readable storage media containing computer-readable program code.
[0064] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0065] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0066] These computer program instructions can also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0067] This application also provides a computer program product, which includes computer software instructions that, when executed on a processing device, cause the processing device to perform... Figure 1 The flowchart of a method for determining the occurrence time of an event in a corresponding embodiment.
[0068] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium or transferred from one computer-readable storage medium to another. For example, computer instructions may be transferred from one website, computer, server, or data center to another website, computer, server, or data center via wired or wireless means. The computer-readable storage medium may be any usable medium that a computer can store or a data storage device such as a server or data center that integrates one or more usable media. The usable medium may be a magnetic medium, an optical medium, or a semiconductor medium, etc.
[0069] Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the systems, devices, and units described above can be referred to the corresponding processes in the foregoing method embodiments, and will not be repeated here.
[0070] In the several embodiments provided in this application, it should be understood that the disclosed devices, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Furthermore, the mutual couplings or direct couplings or communication connections shown or discussed may be indirect couplings or communication connections through some interfaces, devices, or units, and may be electrical, mechanical, or other forms.
[0071] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0072] Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units described above can be implemented in the form of hardware and / or software functional units.
[0073] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device to execute all or part of the steps of the methods in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory, magnetic disks, or optical disks.
[0074] The above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
[0075] Although preferred embodiments have been described in this specification, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications that fall outside the scope of this specification.
[0076] Obviously, those skilled in the art can make various modifications to this specification without departing from its spirit and scope. Therefore, this specification also intends to include any modifications that fall within the scope of the claims and their equivalents.
Claims
1. A method for determining the time of occurrence of an event, used in a control system, characterized in that, The determination method includes: During the initialization phase of the control system, at least one event to be determined and a first occurrence time for each event to be determined are acquired; wherein the first occurrence time is the occurrence time obtained based on the data plane clock measurement of the control system. Obtain the generation time of the management plane clock of the control system; wherein, the generation time includes a first generation time and a second generation time for time synchronization; the first generation time is the generation time obtained based on the data plane clock measurement, and the second generation time is the generation time obtained based on the management plane clock measurement; For each event to be determined, the world time of the event's occurrence time is determined based on the first generation time, the second generation time, and the first occurrence time.
2. The determination method according to claim 1, characterized in that, The step of determining the world time of the event to be determined based on the first generation time, the second generation time, and the first occurrence time includes: Based on the first generation time, the second generation time, and the first occurrence time, determine the second occurrence time of the event to be determined, which is obtained based on the management plane clock measurement. According to the preset conversion rules, the second occurrence time is converted into world time.
3. The determination method according to claim 2, characterized in that, Determining the second occurrence time of the event to be determined based on the management plane clock metric, according to the first generation time, the second generation time, and the first occurrence time, includes: Obtain the time difference between the first generation time and the first occurrence time; The second occurrence time is determined based on the second generation time and the time difference.
4. The determination method according to claim 3, characterized in that, Determining the second occurrence time based on the second generation time and the time difference includes: The second occurrence time is determined based on the difference between the second generation time and the time difference.
5. The determination method according to claim 1, characterized in that, Before acquiring at least one event to be determined and the first occurrence time of each of the events to be determined during the initialization phase of the control system, the determination method further includes: After the control system is powered on, the initialization of the control system is initiated, and the data plane clock of the control system is generated.
6. The determination method according to claim 1, characterized in that, The step of obtaining the generation time of the management plane clock of the control system includes: Generate the management plane clock of the control system; The first generation time, obtained by the management plane clock based on the data plane clock measurement, and the second generation time, obtained by the management plane clock based on the management plane clock measurement, are collected.
7. A device for determining the time of occurrence of an event, used in a control system, characterized in that, The determining device includes: The acquisition unit, during the initialization phase of the control system, acquires at least one event to be determined, and a first occurrence time for each event to be determined; wherein the first occurrence time is an occurrence time obtained based on the data plane clock measurement of the control system; and Obtain the generation time of the management plane clock of the control system; wherein, the generation time includes a first generation time and a second generation time for time synchronization; the first generation time is the generation time obtained based on the data plane clock measurement, and the second generation time is the generation time obtained based on the management plane clock measurement; The determining unit determines the world time of the occurrence time of each event to be determined based on the first generation time, the second generation time, and the first occurrence time.
8. The determining device according to claim 7, characterized in that, The determining unit is specifically used for: Based on the first generation time, the second generation time, and the first occurrence time, determine the second occurrence time of the event to be determined, which is obtained based on the management plane clock measurement. According to the preset conversion rules, the second occurrence time is converted into world time.
9. An electronic device, characterized in that, include: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program stored in the memory to implement the steps of the method for determining the occurrence time of an event as described in any one of claims 1 to 6.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method for determining the occurrence time of the event as described in any one of claims 1 to 6.
