Time synchronization evaluation method and storage medium
Through the time synchronization evaluation method, the problem of time synchronization accuracy evaluation of sensors and peripherals is solved, the unification of sensor message time and the accuracy of obstacle recognition are achieved, and the fault location time is reduced.
Patent Information
- Application Number
- CN202410602085.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-15
- Publication Date
- 2024-08-27
AI Technical Summary
The existing technology lacks a method that can accurately evaluate the time synchronization accuracy between each sensor and peripherals, which results in inaccurate obstacle identification and difficulty in fault location, and increases the time investment in fault recurrence and troubleshooting.
A time synchronization evaluation method is provided. The time synchronization evaluation controller synchronizes the ports of the time source device and the evaluated device respectively, outputs the second frame header signal, calculates the synchronization error, and compares it with the allowed accuracy to obtain the evaluation results.
It achieves the unification of message time of each sensor, improves the accuracy of obstacle recognition, reduces fault location time, and can accurately evaluate the time synchronization accuracy between sensors and peripherals.
Smart Images

Figure CN118555028A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of autonomous driving technology, and in particular to a time synchronization evaluation method and a storage medium. Background Art
[0002] With the development of science and technology, autonomous driving is an inevitable trend in the automotive industry in the future. In order to achieve autonomous driving, various perception technologies are needed to obtain information about the vehicle's surrounding environment, and corresponding driving decisions are made based on the fusion results of these perception information to control the vehicle's driving. To obtain these perception information, it is necessary to borrow information from multiple sensors and fuse them to identify the environmental information of the vehicle, and then make planning decisions to achieve the function of autonomous driving. When the number of sensors increases, a new problem will arise. The system time, processing time, and data transmission time of each sensor may be different, and the collection time of each sensor is not the same, so time synchronization is required to calibrate the time of each sensor.
[0003] In autonomous driving, data from many sensors (Lidar, Camera, GPS / IMU) are needed. If the message times of the sensors received by the computing unit are not uniform, it will cause problems such as inaccurate obstacle recognition. At the same time, since time synchronization is performed all the time, it is very difficult to accurately grasp the cause of the fault at a certain point in time due to insufficient time synchronization accuracy. It takes a lot of time to invest in fault reproduction, troubleshooting, and positioning. In the prior art, patent applications CN113890665A and CN114785444A both disclose methods and devices for realizing time synchronization of various sensors. According to these two technical solutions, the time accuracy of the sensor can be greatly improved. However, there is no method in the prior art that can disclose the time synchronization accuracy between each sensor and peripherals for accurate evaluation, which has become a technical problem that needs to be solved urgently in the industry. Summary of the invention
[0004] The purpose of the present invention is to overcome the deficiencies of the above-mentioned background technology and to provide a time synchronization evaluation method and a storage medium, so that the time synchronization accuracy of each sensor and peripheral can be accurately evaluated.
[0005] The present invention provides a time synchronization evaluation method, comprising: a time source device provides time to an evaluated device; a time synchronization evaluation controller synchronizes the ports supporting time synchronization of the time source device and the evaluated device respectively, and starts time synchronization respectively; the time synchronization evaluation controller outputs a first second frame header signal after synchronizing the time source device, and the time synchronization evaluation controller outputs a second second frame header signal after synchronizing the evaluated device; a synchronization error is obtained according to the first second frame header signal and the second second frame header signal; the time synchronization evaluation controller compares the synchronization error with the allowed accuracy to obtain an evaluation result.
[0006] In the above technical scheme, the time synchronization evaluation controller synchronizes the ports supporting timing of the time source device and the evaluated device respectively, and the specific processes of starting the time synchronization steps are as follows: the time synchronization evaluation controller sets the time source module, the time synchronization evaluation controller calibrates the time source module to support the hardware channel / time synchronization mode of timing, and performs time synchronization on the time source module; the time synchronization evaluation controller sets the evaluated module, the time synchronization evaluation controller calibrates the evaluated module to support the hardware channel / time synchronization mode of timing, and performs time synchronization on the evaluated module.
[0007] In the above technical scheme, the time synchronization evaluation controller sets a time source module, and the time synchronization evaluation controller calibrates the time source module to support the hardware channel / time synchronization mode of timing, and the specific process of performing the time synchronization step on the time source module is as follows: the time synchronization evaluation controller calibrates the first hardware channel, and the time source module provides time for the time synchronization evaluation controller through the first hardware channel; the time synchronization evaluation controller calibrates the first time synchronization mode, and the time source module provides time for the time synchronization evaluation controller through the first time synchronization mode; the time synchronization evaluation controller configures a port of the time source module to Master mode, and configures the time synchronization evaluation controller itself to Slave mode of time synchronization according to the calibrated time synchronization parameters, and starts time synchronization.
[0008] In the above technical scheme, the time synchronization evaluation controller sets an evaluated module, and the time synchronization evaluation controller calibrates the evaluated module to support the hardware channel / time synchronization mode of timing, and the specific process of performing time synchronization steps on the evaluated module is as follows: the time synchronization evaluation controller calibrates the second hardware channel, and the evaluated module provides time for the time synchronization evaluation controller through the second hardware channel; the time synchronization evaluation controller calibrates the second time synchronization mode, and the evaluated module provides time for the time synchronization evaluation controller through the second time synchronization mode; the time synchronization evaluation controller configures a port of the evaluated module to Master mode, and configures the time synchronization evaluation controller itself to Slave mode of time synchronization according to the calibrated time synchronization parameters, and starts time synchronization.
[0009] In the above technical scheme, the time synchronization evaluation controller outputs the first second frame header signal after synchronizing the time source device, and the specific process of the time synchronization evaluation controller outputting the second second frame header signal after synchronizing the evaluated device is as follows: after the time synchronization evaluation controller is synchronized with the time source device, it generates the first second frame header signal at the second carry moment, and then pulls it low; after the time synchronization evaluation controller is synchronized with the evaluated device, it generates the second second frame header signal at the second carry moment, and then pulls it low.
[0010] In the above technical scheme, the specific process of the step of obtaining the synchronization error based on the first second frame header signal and the second second frame header signal is as follows: the time synchronization evaluation controller calibrates the maximum synchronization accuracy error value allowed by the synchronization process of the time source device or the evaluated device; the synchronization calibration of the time synchronization evaluation controller and the time source device or the evaluated device turns on the evaluation switch; the time synchronization evaluation controller counts the rising edge intervals of the first second frame header signal and the second second frame header signal respectively, and records the minimum / maximum / real-time value of the interval.
[0011] In the above technical scheme, the time synchronization evaluation controller counts the rising edge intervals of the first second frame header signal and the second second frame header signal respectively, and the specific process of recording the minimum / maximum / real-time value of the intervals is as follows: the time synchronization evaluation controller calculates the error value of the counter using the system clock of the time synchronization evaluation controller itself for the rising edge intervals of the first second frame header signal and the second second frame header signal, and obtains the time synchronization error measured in this period; the time synchronization evaluation controller then simultaneously updates the minimum value, maximum value, and real-time value obtained by calculating the error values of the first second frame header signal and the second second frame header signal.
[0012] In the above technical scheme, the time synchronization evaluation controller compares the synchronization error with the allowed accuracy, and the specific process of obtaining the evaluation result step is as follows: the time synchronization evaluation controller compares the allowable error value of the synchronization of the calibrated time source device with the maximum interval value obtained by calculating the first second frame header signal, and the time synchronization evaluation controller compares the allowable error value of the synchronization of the calibrated evaluated device with the maximum interval value obtained by calculating the second second frame header signal; when the maximum value of the synchronization error calculated by the time synchronization evaluation controller is greater than the set accuracy value that the time synchronization evaluation controller can allow, the time synchronization evaluation controller concludes that the evaluation result is qualified, otherwise the evaluation result is unqualified.
[0013] The above technical solution also includes the following process: outputting the evaluation results and the maximum / minimum / real-time value of the interval obtained in the synchronous calculation to the observation device.
[0014] The present invention also provides a storage medium having a computer program, wherein the computer program can execute the time synchronization evaluation method.
[0015] The time synchronization evaluation method and storage medium of the present invention have the following beneficial effects:
[0016] The technical solution disclosed in the present invention enables the message times of various sensors received by the computing unit to be unified, overcomes the problem of inaccurate obstacle recognition, and avoids accidents due to unsatisfactory time synchronization accuracy that makes it difficult to grasp the cause of a fault at a certain point in time. It also reduces the time investment in fault reproduction, troubleshooting, and positioning. It can not only greatly improve the time accuracy of the sensor, but also accurately evaluate the time synchronization accuracy between each sensor and peripherals. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A schematic diagram of the structure of the application environment required by the time synchronization evaluation method of the present invention;
[0018] Figure 2 It is a schematic diagram of the overall idea of the time synchronization evaluation method of the present invention;
[0019] Figure 3 It is a flow chart of a method for generating a second frame header after synchronization with a time source module in the time synchronization evaluation method of the present invention;
[0020] Figure 4 It is a flow chart of a method for generating a second frame header synchronized with an evaluated module in a time synchronization evaluation method of the present invention;
[0021] Figure 5 It is a flow chart of the time synchronization evaluation controller in the time synchronization evaluation method of the present invention comparing the synchronization error with the allowed accuracy to obtain the evaluation result and output it;
[0022] Figure 6 It is a schematic diagram of the structure of the storage medium of the present invention. DETAILED DESCRIPTION
[0023] The present invention will be described in further detail below in conjunction with the accompanying drawings and Examples, but these Examples should not be construed as limiting the present invention. Moreover, the present application can be implemented in many different forms and is not limited to the embodiments described herein. On the contrary, the purpose of providing these Examples is to make the disclosure of the present application more thorough and comprehensive.
[0024] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein in the specification of this application are only for the purpose of describing specific embodiments and are not intended to limit this application.
[0025] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In the description of the present invention, the meaning of "plurality" is at least two, such as two, three or more than three, unless otherwise clearly and specifically defined.
[0026] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean 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 the present application.
[0027] The embodiment of the present invention provides a time synchronization evaluation method and a storage medium for evaluating the time synchronization accuracy of each sensor and peripheral device.
[0028] Among them, in the hardware environment carrying the present invention:
[0029] The time synchronization modes supported by the device include at least: 1588, PTP, gPTP, and CanTsyc.
[0030] The hardware synchronization interfaces supported by the device include at least: CAN, ETH, CANFD, and GPIO.
[0031] The time synchronization evaluation method and storage medium carrier device of the invention can be applied not only in the time synchronization development stage, but also in the actual vehicle testing stage to evaluate the time synchronization effect in a bypass manner. The time synchronization evaluation method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. Traditional time source devices include RTK, GNSS, and IMU, which need to be used to provide time to autonomous driving sensors such as ultrasonic radar, lidar, corner radar, front / rear / surround cameras, and other peripheral devices. The hardware device synchronizes the time source device with the supported ports of the evaluated device, generates a second frame header signal, i.e., a second pulse signal (a pulse signal generated at the second carry moment), and then compares the difference between the two second pulse signals and the evaluation threshold to obtain the evaluation result.
[0032] Technical solution of the present invention
[0033] See also Figure 2 The time synchronization evaluation method of the present invention generally includes the following steps:
[0034] OS1, the time source device grants time to the evaluated device (Overall Step, OS);
[0035] OS2, the time synchronization evaluation controller synchronizes the ports supporting timing of the time source device and the evaluated device respectively, and starts time synchronization respectively; OS3, the time synchronization evaluation controller synchronizes the time source device and then outputs the first second frame header signal, and the time synchronization evaluation controller synchronizes the evaluated device and then outputs the second second frame header signal. The specific process of the above two steps is as follows:
[0036] Example 1
[0037] In one embodiment, Figure 3 As shown, a method for generating a second frame header synchronized with a time source module is provided, comprising the following steps:
[0038] Step S11: the time synchronization evaluation controller sets a time source module, and the time synchronization evaluation controller calibrates the set time source module to support the hardware channel / time synchronization mode of timing.
[0039] Specifically, the time synchronization evaluation controller calibrates the time source module, and the time source module provides the first hardware channel for timing to the time synchronization evaluation controller, for example: 0 represents CAN0 channel, 1 represents CAN1 channel, 2 represents CAN2 channel, 3 represents CANFD0 channel, 4 represents CANFD1 channel, 5 represents CANFD2 channel, 6 represents ETH0 channel, 7 represents ETH1 channel, 8 represents ETH2 channel, 9 represents GPIO0 channel, 10 represents GPIO1 channel, and 11 represents GPIO2 channel.
[0040] The time synchronization evaluation controller calibrates the time source module, and the time source module provides the first time synchronization mode for the time synchronization evaluation controller. For example: 0 represents 1588, 1 represents PTP, 2 represents gPTP, 3 represents CanTsyn, and 4 represents UTC+PPS.
[0041] Step S12: The time synchronization evaluation controller performs time synchronization on the set time source module.
[0042] Specifically, the time synchronization evaluation controller configures a port of the time source module to Master mode, connects to the time synchronization evaluation controller through the first hardware channel supported by the time source module, and configures the time synchronization evaluation controller itself to Slave mode of time synchronization according to the calibrated time synchronization parameters to start time synchronization.
[0043] Step S13: The time synchronization evaluation controller outputs the first second frame header signal after time synchronization with the time source module.
[0044] Specifically, after the time synchronization evaluation controller is synchronized with the time source device, it generates a first second frame header signal at the second carry time point, such as a 10ms high level, and then pulls it low.
[0045] Example 2
[0046] In one embodiment, Figure 4 As shown, a method for generating a second frame header synchronized with an evaluated module is provided, comprising the following steps:
[0047] Step S21: the time synchronization evaluation controller sets a time source module, and the evaluated module calibrated by the time synchronization evaluation controller supports the hardware channel / time synchronization mode of timing.
[0048] Specifically, the time synchronization evaluation controller calibrates the evaluated module, and the evaluated module provides a second hardware channel for timing for the time synchronization evaluation controller. For example: 0 represents CAN0 channel, 1 represents CAN1 channel, 2 represents CAN2 channel, 3 represents CANFD0 channel, 4 represents CANFD1 channel, 5 represents CANFD2 channel, 6 represents ETH0 channel, 7 represents ETH1 channel, 8 represents ETH2 channel, 9 represents GPIO0 channel, 10 represents GPIO1 channel, and 11 represents GPIO2 channel.
[0049] The time synchronization evaluation controller calibrates the evaluated module, and the evaluated module provides the time synchronization evaluation controller with a second time synchronization mode of timing, for example: 0 represents 1588, 1 represents PTP, 2 represents gPTP, 3 represents CanTsyn, and 4 represents UTC+PPS.
[0050] Step S22: The time synchronization evaluation controller performs time synchronization on the set evaluated module.
[0051] Specifically, the time synchronization evaluation controller configures a port of the evaluated module to Master mode, connects to the time synchronization evaluation controller through a second hardware channel supported by the evaluated module, and configures the time synchronization evaluation controller to Slave mode of time synchronization according to the calibrated time synchronization parameters to start time synchronization.
[0052] Step S23: The time synchronization evaluation controller outputs the first second frame header signal after synchronization with the evaluated module.
[0053] Specifically, after the time synchronization evaluation controller is synchronized with the evaluated module, it generates a second second frame header signal at the second carry time point, such as a 10ms high level, and then pulls it low.
[0054] In some embodiments, the time synchronization evaluation controller can be a general chip such as a central processing unit (CPU), a controller, a microcontroller (MCU), a microprocessor, a digital signal processor (DSP), a graphics processing unit (GPU), a fully customized chip such as an application-specific integrated circuit (ASIC, including fully customized ASIC chips and semi-customized ASIC chips), a semi-customized chip such as a field programmable gate array (FPGA), and can also be a transistor-transistor logic circuit (TTL), a brain-like chip such as a neural network processor (NPU) or a tensor processor (TPU) and other AI chips, a complex instruction set computer (CISC) based on the X86 architecture, and other data processing chips based on a reduced instruction set computer (RISC). The time synchronization evaluation controller is generally used to control the overall operation of a computer device. In this embodiment, the time synchronization evaluation controller is used to run the program code or process data stored in the storage medium, such as the time synchronization evaluation device, to implement the time synchronization evaluation method in the method embodiment.
[0055] OS4. Get the synchronization error based on the first second frame header signal and the second second frame header signal. The specific process is as follows:
[0056] Example 3
[0057] In one embodiment, Figure 5 As shown, a method for evaluating time synchronization accuracy is provided, comprising the following steps:
[0058] Step S31: The time synchronization evaluation controller calibrates the maximum synchronization accuracy error value that can be allowed in the synchronization process of the time source device or the evaluated device.
[0059] Specifically, different application scenarios have different tolerances for time synchronization accuracy, which may be at the ms level, the us level, or even the ns level.
[0060] Step S32: The time synchronization evaluation controller and the time source device or the evaluated device are synchronized and calibrated to turn on the evaluation switch.
[0061] Specifically, because it is necessary to ensure that the time synchronization between the time source device and the evaluated device is working normally, and the time synchronization between the time source device and the time synchronization evaluation controller is working normally, the evaluation result will be meaningful only after the time synchronization between the evaluated device and the time synchronization evaluation controller is working normally. Therefore, the evaluation switch can be turned on after the above confirmation work is completed.
[0062] Step S33: The time synchronization evaluation controller counts the rising edge intervals of the first second frame header signal and the second second frame header signal respectively, and records the minimum value / maximum value / real-time value of the intervals.
[0063] Specifically, the time synchronization evaluation controller uses the system clock of the time synchronization evaluation controller to calculate the error value of the counter for the rising edge interval of the first second frame header signal and the second second frame header signal. For example, if the system clock frequency of the time synchronization evaluation controller is 400M, then the value of the counter multiplied by 2.5ns is the time synchronization error measured in this round of cycles. The time synchronization evaluation controller then simultaneously updates the minimum value, maximum value, and real-time value obtained by calculating the error value of the first second frame header signal and the second second frame header signal.
[0064] OS5, time synchronization evaluation controller compares the synchronization error with the allowed accuracy to obtain the evaluation result. The specific process is as follows:
[0065] Step S34: The time synchronization evaluation controller compares the allowable error value of the synchronization of the calibrated time source device with the maximum interval value obtained by calculating the first second frame header signal. The time synchronization evaluation controller compares the allowable error value of the synchronization of the calibrated evaluated device with the maximum interval value obtained by calculating the second second frame header signal to obtain an evaluation result.
[0066] Specifically, when the maximum error value calculated by the time synchronization evaluation controller is greater than the set accuracy value allowed by the time synchronization evaluation controller, the time synchronization evaluation controller obtains a qualified evaluation result, otherwise the evaluation result is unqualified.
[0067] OS6. Output the evaluation results and the interval maximum / minimum / real-time values obtained in the synchronous calculation to the observation device. The specific process is as follows:
[0068] Step S35: Output the evaluation result and the interval maximum value / minimum value / real-time value obtained in the synchronous calculation to the observation device.
[0069] Specifically, the evaluation results and the maximum / minimum / real-time value of the interval obtained in the synchronous calculation can be output to the observation device for the tester to obtain the results.
[0070] Example 4
[0071] See also Figure 6 The storage medium of the present invention comprises the following parts:
[0072] Timing unit: The time source device provides time to the evaluated device;
[0073] Time synchronization unit: The time synchronization evaluation controller synchronizes the ports supporting timing of the time source device and the evaluated device respectively, and starts time synchronization respectively;
[0074] Second frame header signal output unit: the time synchronization evaluation controller outputs the first second frame header signal after synchronizing the time source device, and the time synchronization evaluation controller outputs the second second frame header signal after synchronizing the evaluated device;
[0075] Synchronous error acquisition unit: acquires the synchronous error according to the first second frame header signal and the second second frame header signal;
[0076] Evaluation unit: The time synchronization evaluation controller compares the synchronization error with the allowed accuracy to obtain the evaluation result;
[0077] Result output unit: outputs the evaluation results and the interval maximum / minimum / real-time values obtained in the synchronous calculation to the observation device.
[0078] In this embodiment, the storage medium includes flash memory, hard disk, multimedia card, card-type memory (for example, SD or DX memory, etc.), random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), and the memory can also be an external storage device of a computer device, such as a plug-in hard disk equipped on the computer device, a smart memory card (Smart Media Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), etc. Of course, the memory can also include both the internal storage unit of the computer device and its external storage device. In this embodiment, the storage medium is generally used to store the operating system and various application software installed on the computer device, such as the program code of the time synchronization evaluation method in the method embodiment. In addition, the storage medium can also be used to temporarily store various types of data that have been output or are to be output.
[0079] Technical principles and key points of the present invention
[0080] Synchronize the time source module set by the system;
[0081] Time synchronization of the evaluated equipment;
[0082] Generate a second frame header signal after time synchronization;
[0083] Get synchronization error based on two second frame headers;
[0084] The synchronization error is compared with the allowed accuracy and the evaluation results are output.
[0085] in addition,
[0086] The embodiment of the present invention also provides a structure of a computer device, such as a smart phone, tablet computer, laptop computer, desktop computer, rack server, blade server, tower server or cabinet server (including an independent server, or a server cluster composed of multiple servers) that can execute programs. The computer device of this embodiment includes at least but is not limited to: a memory and a processor that can communicate with each other through a system bus. It should be pointed out that this embodiment only shows a computer device with component memory and processor, but it should be understood that it is not required to implement all the components shown, and more or fewer components can be implemented instead.
[0087] The present application also provides a computer-readable storage medium, such as a magnetic storage device, a disk, an optical disk, a server, an App store, etc., on which a computer program is stored, and when the program is executed by a processor, a corresponding function is realized. The computer-readable storage medium of this embodiment is used in a time synchronization evaluation device, and when executed by a processor, a time synchronization evaluation method of a method embodiment is realized.
[0088] The present invention also provides a computer-readable storage medium on which executable instructions are stored. When the instructions are executed by a processor, the processor implements the method described above.
[0089] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0090] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0091] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0092] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 It should be noted that, according to the needs of implementation, each step / component described in this application can be split into more steps / components, and two or more steps / components or partial operations of steps / components can be combined into new steps / components to achieve the purpose of the present invention.
[0093] It will be easily understood by those skilled in the art that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the protection scope of the present invention.
[0094] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.
[0095] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
[0096] The contents not described in detail in this specification belong to the prior art known to professional and technical personnel in this field.
Claims
1. A time synchronization evaluation method, characterized in that: include: The time source device grants time to the evaluated device; The time synchronization evaluation controller synchronizes the ports supporting timing of the time source device and the evaluated device respectively, and starts time synchronization respectively; The time synchronization evaluation controller outputs the first second frame header signal after synchronizing the time source device, and the time synchronization evaluation controller outputs the second second frame header signal after synchronizing the evaluated device; Acquire a synchronization error according to the first second frame header signal and the second second frame header signal; The time synchronization evaluation controller compares the synchronization error with the allowed accuracy to obtain the evaluation result.
2. The time synchronization evaluation method according to claim 1, characterized in that: The specific process of the time synchronization evaluation controller synchronizing the ports supporting timing of the time source device and the evaluated device respectively and starting the time synchronization steps respectively is as follows: The time synchronization evaluation controller sets the time source module, and the time synchronization evaluation controller calibrates the time source module to support the hardware channel / time synchronization mode of timing, and performs time synchronization on the time source module; The time synchronization evaluation controller sets the evaluated module, calibrates the evaluated module to support the hardware channel / time synchronization mode of timing, and performs time synchronization on the evaluated module.
3. The time synchronization evaluation method according to claim 2, characterized in that: The time synchronization evaluation controller sets a time source module, and the time synchronization evaluation controller calibrates the time source module to support the hardware channel / time synchronization mode of timing, and performs the time synchronization step on the time source module. The specific process is as follows: The time synchronization evaluation controller calibrates the first hardware channel, and the time source module provides time to the time synchronization evaluation controller through the first hardware channel; The time synchronization evaluation controller calibrates the first time synchronization mode, and the time source module provides time for the time synchronization evaluation controller through the first time synchronization mode; The time synchronization evaluation controller configures a port of the time source module to the Master mode, and configures the time synchronization evaluation controller itself to the Slave mode of time synchronization according to the calibrated time synchronization parameters, and starts time synchronization.
4. The time synchronization evaluation method according to claim 3, characterized in that: The time synchronization evaluation controller sets the evaluated module, and the time synchronization evaluation controller calibrates the evaluated module to support the hardware channel / time synchronization mode of timing, and performs the time synchronization step on the evaluated module. The specific process is as follows: The time synchronization evaluation controller calibrates the second hardware channel, and the evaluated module provides time to the time synchronization evaluation controller through the second hardware channel; The time synchronization evaluation controller calibrates the second time synchronization mode, and the evaluated module provides time to the time synchronization evaluation controller through the second time synchronization mode; The time synchronization evaluation controller configures a port of the evaluated module to the Master mode, and configures the time synchronization evaluation controller itself to the Slave mode of time synchronization according to the calibrated time synchronization parameters, and starts time synchronization.
5. The time synchronization evaluation method according to claim 4, characterized in that: The specific process of the step of the time synchronization evaluation controller outputting the first second frame header signal after synchronizing the time source device and the time synchronization evaluation controller outputting the second second frame header signal after synchronizing the evaluated device is as follows: After the time synchronization evaluation controller is synchronized with the time source device, it generates the first second frame header signal at the second carry time point, and then pulls it low; After the time synchronization evaluation controller is synchronized with the evaluated device, it generates a second second frame header signal at the second carry time point, and then pulls it low.
6. The time synchronization evaluation method according to claim 5, characterized in that: The specific process of the step of obtaining the synchronization error according to the first second frame header signal and the second second frame header signal is as follows: The time synchronization evaluation controller calibrates the maximum synchronization accuracy error value that can be allowed in the synchronization process of the time source device or the evaluated device; The time synchronization evaluation controller and the time source device or the evaluated device are synchronized and calibrated to start the evaluation switch; The time synchronization evaluation controller counts the rising edge intervals of the first second frame header signal and the second second frame header signal respectively, and records the minimum value / maximum value / real-time value of the intervals.
7. The time synchronization evaluation method according to claim 6, characterized in that: The time synchronization evaluation controller counts the rising edge intervals of the first second frame header signal and the second second frame header signal, and the specific process of recording the minimum value / maximum value / real-time value of the interval is as follows: The time synchronization evaluation controller calculates the error value of the counter using the system clock of the time synchronization evaluation controller itself for the rising edge intervals of the first second frame header signal and the second second frame header signal, and obtains the time synchronization error measured in the period; The time synchronization evaluation controller then simultaneously updates the minimum value, maximum value and real-time value calculated from the error value between the first second frame header signal and the second second frame header signal.
8. The time synchronization evaluation method according to claim 7, characterized in that: The specific process of the time synchronization evaluation controller comparing the synchronization error with the allowed accuracy to obtain the evaluation result is as follows: The time synchronization evaluation controller compares the error value allowed for synchronization of the calibration time source device with the maximum interval value obtained by calculating the first second frame header signal, and the time synchronization evaluation controller compares the error value allowed for synchronization of the calibration evaluated device with the maximum interval value obtained by calculating the second second frame header signal; When the maximum value of the synchronization error calculated by the time synchronization evaluation controller is greater than the set accuracy value allowed by the time synchronization evaluation controller, the time synchronization evaluation controller obtains a qualified evaluation result, otherwise the evaluation result is unqualified.
9. The time synchronization evaluation method according to claim 8, characterized in that: It also includes the following processes: The evaluation results and the interval maximum / minimum / real-time values obtained in the synchronous calculation are output to the observation device.
10. A storage medium having a computer program, characterized in that: The computer program can execute the time synchronization evaluation method according to any one of claims 1 to 9.
