High-precision calibration method and device for multi-device time code synchronization, medium and device

By obtaining the device's crystal oscillator frequency and calculating the calibration parameters, the problem of error accumulation in multi-device time code synchronization is solved, high-precision time code synchronization and frame alignment are achieved, and the accuracy of audio and video editing is improved.

CN120614072APending Publication Date: 2025-09-09SHENZHEN JIAYZ PHOTO IND LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510744391.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-05
Publication Date
2025-09-09

AI Technical Summary

Technical Problem

There is accumulated error in the time code synchronization of multiple devices, which leads to large errors in audio and video editing. The types and accuracy of existing time coder products are not uniform, and high-precision synchronization cannot be achieved.

Method used

Use a frequency meter to test the crystal oscillator frequency of the device to be calibrated, obtain the first clock frequency and the second clock frequency, calculate the target calibration parameters, and perform time code calibration to ensure that the frames of each device are aligned.

Benefits of technology

It improves the accuracy of time code synchronization, reduces editing errors caused by frame misalignment, and achieves high-precision synchronization between multiple devices.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120614072A_ABST
    Figure CN120614072A_ABST
Patent Text Reader

Abstract

The invention relates to a multi-device time code synchronization high-precision calibration method and device, a medium and a device, and the method comprises the steps: obtaining a first clock frequency corresponding to a to-be-calibrated device for each to-be-calibrated device, and enabling the first clock frequency to be obtained through the crystal oscillator frequency test of the to-be-calibrated device through a frequency meter; respectively acquiring a second clock frequency of each device to be calibrated, wherein the second clock frequency is a nominal frequency corresponding to the device to be calibrated; determining a target calibration parameter based on the first clock frequency of each to-be-calibrated device and the second clock frequency of each to-be-calibrated device; and for each to-be-calibrated device, performing time code calibration on the to-be-calibrated device by using the target calibration parameter. According to the invention, frame number alignment among the devices is ensured, and the accuracy of time code synchronization is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of multimedia information technology, and in particular to a high-precision calibration method, apparatus, medium, and equipment for multi-device time code synchronization. Background Art

[0002] Time code is the time code recorded by a camera for each image when recording an image signal. Time code is a digital signal applied to a stream, assigning a number to each frame in the video to represent the hour, minute, second, and frame number. Currently, time code is typically generated by a time coder, which can be transmitted to devices such as cameras and recorders via various methods (such as embedded audio, video signals, or external interfaces). Time coders play a vital role in synchronization and editing. The accuracy of the synchronization data collected by cameras and recorders requires a highly precise time coder.

[0003] During the process of implementing the present invention, the inventors discovered that the current implementation method of audio and video data collection has the following problems:

[0004] Currently, there are many types of timecoder products. The types and accuracy of different timecoder products are not uniform, and errors exist in actual applications. Multiple timecoder products cannot align the frame numbers due to long-term error accumulation, which can easily lead to large errors in audio and video editing. Therefore, a high-precision calibration method for multi-device timecode synchronization is urgently needed. Summary of the Invention

[0005] The embodiments of the present application provide a high-precision calibration method, apparatus, medium, and equipment for multi-device time code synchronization, which can solve the technical problems of frame alignment failure and time code synchronization difficulty of multiple devices due to long-term error accumulation, thereby at least partially solving the above technical problems.

[0006] To achieve the above-mentioned object, according to a first aspect of the present application, a high-precision synchronization calibration method for multiple device time codes is provided, the method comprising:

[0007] For each device to be calibrated, obtaining a first clock frequency corresponding to the device to be calibrated, where the first clock frequency is obtained by performing a crystal oscillator frequency test on the device to be calibrated using a frequency meter;

[0008] Obtaining a second clock frequency of each device to be calibrated respectively, where the second clock frequency is a nominal frequency corresponding to the device to be calibrated;

[0009] determining a target calibration parameter based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated;

[0010] For each device to be calibrated, the target calibration parameters are used to perform time code calibration on the device to be calibrated.

[0011] According to a second aspect of the present application, a high-precision calibration device for multi-device time code synchronization is provided, the device comprising:

[0012] A first acquisition module is configured to acquire, for each device to be calibrated, a first clock frequency corresponding to the device to be calibrated, where the first clock frequency is obtained by performing a crystal oscillator frequency test on the device to be calibrated using a frequency meter;

[0013] A second acquisition module is used to respectively acquire a second clock frequency of each device to be calibrated, where the second clock frequency is a nominal frequency corresponding to the device to be calibrated;

[0014] a parameter determination module, configured to determine a target calibration parameter based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated;

[0015] The time code calibration module is used to perform time code calibration on each device to be calibrated using the target calibration parameters.

[0016] According to a third aspect of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the high-precision calibration method for multi-device time code synchronization is implemented.

[0017] According to a fourth aspect of the present application, a computer device is provided, comprising a processor and a memory, wherein the memory stores a plurality of instructions; the processor loads the instructions from the memory to execute the steps of the high-precision calibration method for multi-device time code synchronization as described in the first aspect.

[0018] The high-precision calibration method, apparatus, medium, and equipment for multi-device time code synchronization of the embodiments of the present application are as follows: for each device to be calibrated, the first clock frequency corresponding to the device to be calibrated is obtained, and the first clock frequency is obtained by performing a crystal oscillator frequency test on the device to be calibrated by a frequency meter; the second clock frequency of each device to be calibrated is obtained respectively, and the second clock frequency is the nominal frequency corresponding to the device to be calibrated; based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated, the target calibration parameters are determined; for each device to be calibrated, the target calibration parameters are used to perform time code calibration on the device to be calibrated. The first clock frequency is obtained by performing a crystal oscillator frequency test on the device to be calibrated by a frequency meter, and then the second clock frequency of each device to be calibrated is obtained, and then the universal target calibration parameters are calculated, so that each device to be calibrated is calibrated using the universal target calibration parameters, ensuring frame alignment between the devices and improving the accuracy of time code synchronization.

[0019] Other features and advantages of the present application will be described in detail in the subsequent detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] To more clearly illustrate the technical solutions in the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments. Obviously, the drawings described below are only some embodiments of the present application. Those skilled in the art can also derive other drawings based on these drawings without inventive effort.

[0021] In order to more completely understand the present application and its beneficial effects, the following description will be given in conjunction with the accompanying drawings, wherein the same drawing numbers represent the same parts in the following description.

[0022] Figure 1 is a flowchart of a high-precision calibration method for multi-device time code synchronization provided in some embodiments of the present application;

[0023] Figure 2 1 is a schematic diagram of a target calibration parameter iterative training process of a high-precision calibration method for multi-device time code synchronization provided in some embodiments of the present application;

[0024] Figure 3 is a schematic structural diagram of a high-precision calibration apparatus for multi-device time code synchronization provided in some embodiments of the present application;

[0025] Figure 4 It is a schematic diagram of the structure of a computer device provided in some embodiments of the present application. DETAILED DESCRIPTION

[0026] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the embodiments described are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0027] In the description of this application, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more features. In the description of this application, "plurality" means two or more, unless otherwise specifically defined.

[0028] In the description of this application, the word "for example" is used to mean "used as an example, illustration or illustration". Any embodiment described in this application as "for example" is not necessarily to be construed as being more preferred or advantageous than other embodiments. The following description is given to enable any person skilled in the art to implement and use the present invention. In the following description, details are listed for the purpose of explanation. It should be understood that a person of ordinary skill in the art can recognize that the present invention can be implemented without using these specific details. In other examples, well-known structures and processes are not elaborated in detail to avoid obscuring the description of the present invention with unnecessary details. Therefore, the present invention is not intended to be limited to the embodiments shown, but is consistent with the widest scope consistent with the principles and features disclosed in this application.

[0029] A timecoder, also known as a timecode generator, is a device that can generate precise timecodes. Timecode is a digital code, similar to a clock, but accurate to the frame level. Its display format is usually "HH:MM:SS:FF", which represents hours, minutes, seconds, and frames respectively. The timecoder has a precise clock system inside that can generate timecodes in real time. These timecodes can be transmitted to devices such as cameras and recorders through various means (such as embedded audio, video signals, or external interfaces). In film, television production, and other multimedia projects, it is necessary to ensure that the materials shot by multiple cameras and recording devices are accurately synchronized.

[0030] However, in actual application scenarios, the accuracy of the timecoder depends on the accuracy of the frame rate. If the frame rate is set incorrectly or the frame rates between devices are inconsistent, the timecode will be out of sync, which will affect post-editing and synchronization work.

[0031] In order to solve the above problems, an embodiment of the present application provides a high-precision calibration method for time code synchronization of multiple devices. The crystal oscillator frequency of the device to be calibrated is tested by a frequency meter to obtain a first clock frequency, and then the second clock frequency of each device to be calibrated is obtained, and then the common target calibration parameters are calculated. Each device to be calibrated is calibrated using the common target calibration parameters, ensuring frame alignment between each device and improving the accuracy of time code synchronization.

[0032] Some explanations of terms in this embodiment are as follows:

[0033] Frame rate refers to the number of image frames displayed or processed per unit time, usually measured in frames per second (fps).

[0034] The data volume per frame refers to the size of each frame of image or audio data after encoding, for example, 160 bit / s.

[0035] See also Figure 1 A high-precision calibration method for multi-device time code synchronization is provided. The method is applied to a computer device. The computer device may be a terminal device or a server. The method includes:

[0036] Step S101 : For each device to be calibrated, a first clock frequency corresponding to the device to be calibrated is obtained, where the first clock frequency is obtained by performing a crystal oscillator frequency test on the device to be calibrated using a frequency meter.

[0037] Among them, the frequency meter (Frequency Meter), also known as the frequency counter, is an electronic measuring instrument specifically used to measure the frequency of the signal being measured.

[0038] Specifically, for each device to be calibrated, connect the frequency meter to the crystal oscillator output port of the device to be calibrated to ensure a stable connection; start the frequency meter and measure the crystal oscillator frequency of the time coder; the frequency meter will display the actual crystal oscillator frequency value; record the crystal oscillator frequency value measured by the frequency meter, which is the first clock frequency of the device to be calibrated.

[0039] It should be noted that the actual operating crystal oscillator frequency of the time coder is measured by a frequency meter, providing actual data support for the subsequent calculation of calibration parameters.

[0040] Furthermore, the measured first clock frequency is saved in the device to be calibrated, so that when the target calibration parameters are subsequently obtained, the device to be calibrated is calibrated using the device to be calibrated and the target calibration parameters.

[0041] Step S102 : obtaining a second clock frequency of each device to be calibrated respectively, where the second clock frequency is a nominal frequency corresponding to the device to be calibrated.

[0042] The nominal frequency refers to the clock frequency marked on the nameplate of the electrical equipment, that is, the operating frequency of the electrical equipment.

[0043] Specifically, the second clock frequency in this embodiment is the nominal frequency corresponding to the device to be calibrated. In this embodiment, the second clock frequency of the device to be calibrated can be obtained through various methods, including but not limited to: searching the technical documentation of the timecoder device to obtain the nominal crystal oscillator frequency set during device design, reading the internal clock frequency of the timecoder when the device to be calibrated is powered on, etc.

[0044] Step S103: determining target calibration parameters based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated.

[0045] Specifically, based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated, the crystal oscillator deviation of each device to be calibrated is obtained, and then based on the own properties of each device to be calibrated (frame rate configuration), the target calibration parameters that meet the requirements for verification of all devices to be calibrated are determined.

[0046] The target calibration parameters include the calibration period, calibration timing and calibration time base;

[0047] The calibration period is a fixed time length and is used to periodically calibrate the time code;

[0048] The calibration adjustment opportunity is a time point or time period used to confirm the adjustment time of the calibration time base within the calibration cycle;

[0049] The calibration time base is a reference value used by the time coder to count during operation and is used to determine the counting unit of the timer.

[0050] It should be noted that periodic adjustment of the calibration time base can reduce the error caused by adjusting the timer: for example, at 25 frames per second, for LTC encoding, under the condition of no error, the time for one frame is 40ms = 160 250us; due to the existence of crystal oscillator frequency error, each unit time may be 251us, or 249us, etc., then the error in the output of one frame time is 160*251us = 40.16ms, or 160*249us = 39.84ms, etc. The error of 1s is 0.16ms*25, and the error of 48 hours is 0.16ms*25*48 = 192ms, a difference of about 192ms / 40ms = 4 frames.

[0051] In some embodiments, see Figure 2 , Figure 2 This is a schematic diagram of a target calibration parameter iterative training process for a high-precision calibration method for multi-device time code synchronization provided in some embodiments of the present application. Each of the devices to be calibrated corresponds to a frame rate configuration, and the target calibration parameters are applicable to multiple frame rate configurations. Determining the target calibration parameters based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated includes:

[0052] Calculating a crystal oscillator frequency deviation and a counting error based on the first clock frequency and the second clock frequency, wherein the counting error is calculated based on the crystal oscillator frequency deviation and a nominal cycle duration;

[0053] Determining a calibration period for each frame rate configuration using the crystal oscillator deviation;

[0054] determining a calibration adjustment timing according to the calibration period and the counting error;

[0055] The calibration time base is determined by the calibration adjustment timing.

[0056] In this embodiment, the target frame rate (fpsi) of the LTC encoding standard frame rate includes standard frame rates such as 23.98, 24, 25, 29.97, and 30. The maximum frame rate tolerance (fpsmax,i) corresponds to the actual display frame rate of the standard frame rate, for example, 23.98 corresponds to 24, 24 corresponds to 24, 25 corresponds to 25, 29.97 corresponds to 30, and 30 corresponds to 30.

[0057] The crystal oscillator frequency deviation is the difference between the first clock frequency and the second clock frequency. It should be understood that the crystal oscillator frequency (first clock frequency) determines the timer's counting rate, thereby affecting the accuracy of time code generation. For example, an 80MHz crystal oscillator frequency means that the timer can count 80,000,000 times per second, with each count corresponding to 12.5 nanoseconds (1 / 80,000,000 seconds). The deviation of the crystal oscillator frequency directly leads to counting errors.

[0058] In this embodiment, the crystal oscillator frequency deviation (δ 0.01Hz ) is calculated as:

[0059] δ 0.01Hz =f crystal -f base

[0060] Among them, f crystal is the first clock frequency, f base is the second clock frequency (nominal frequency).

[0061] In a specific example, assuming the nominal crystal frequency is 24 MHz (fbase = 24,000,000 Hz) and the actual measured crystal frequency is 23.999998 MHz (fcrystal = 23,999,998 Hz), the crystal frequency deviation is:

[0062] δ 0.01Hz =2399999800-2400000000=-200, i.e. -2Hz

[0063] This crystal oscillator frequency deviation will be used for subsequent calibration parameter calculations to ensure high-precision output of the time coder. 0.01Hz , use the following formula to calculate the crystal oscillator frequency correction Δf ctystal :

[0064]

[0065] In a specific embodiment, after determining the crystal oscillator frequency correction value Δf crystal Then, according to the crystal frequency correction value Δf crystaland the first clock frequency f crystal , the second clock frequency f base Use the following formula to calculate the actual timer frequency f timer :

[0066]

[0067] In one embodiment, after determining the actual timer frequency f timer After that, according to the actual timer frequency f timer Use the following formula to calculate the single counting period T cnt :

[0068]

[0069] Furthermore, after calculating the crystal oscillator frequency deviation, according to the target frame rate (fps i ) calculate the nominal cycle length (period i ), which is the theoretical duration of each frame, where the target frame rate is determined by the frame rate configuration. Since the actual duration may deviate from the nominal cycle duration due to crystal oscillator frequency deviation, the counting error needs to be calculated based on the crystal oscillator frequency deviation and the nominal cycle duration to determine the amount of adjustment required to compensate for the error during the calibration cycle.

[0070] In a specific example, assuming that the target frame rate corresponds to a data volume of 160 [bit / s] per frame, according to the target frame rate fps i The bit rate R is calculated using the following formula b :

[0071] R b =fps i ×160[bit / s]

[0072] In a specific embodiment, after determining the bit rate R b and the actual timer frequency f timer Then, the ideal count value N is calculated using the following formula ideal :

[0073]

[0074] The calibration timing is expressed in seconds, and its value is the product of the count error and the calibration period. For example, if the calibration period is 300 seconds and the calibration timing is 200 seconds, then every 300 seconds, one timer unit is added to the calibration timebase for the first 200 seconds (adding a unit means adding a count value), while no unit is added to the calibration timebase for the remaining 100 seconds. Therefore, only two timer settings are required within a 300-second period. The calibration timing specifies the time within the period at which calibration should be performed so that the cumulative total equals, or approaches, 300 seconds.

[0075] In one embodiment, after determining the ideal count value N ideal After that, the ideal count value N ideal Perform rounding calculation to get the calibration time base N base , that is, N base =round(N ideal ).

[0076] Furthermore, by calibrating the time base Nbase and the maximum frame rate tolerance fps max,i , use the following formula to calculate the actual number of cycles N actual :N actual =N base ×fps max,i ×160, and then calculate the actual duration T actual :T actual =N actual ×T cnt [s], and then through the nominal cycle length period i and the actual duration T actual , and get the duration deviation ΔT, that is, ΔT=(period i -T actual )×10 6 [us], through a single counting cycle T cnt , Maximum frame rate tolerance fps max,i , the time deviation ΔT determines the counting error ΔN, that is Finally, the following formula is used to determine the adjustment amount:

[0077] adjust=round(ΔN×orig_adj i )

[0078] It should be noted that the calibration time base N baseIt is determined based on the number of ideal count values ​​(ideal timers). The ideal count value is calculated based on the frame rate and the actual timer frequency. The actual duration is calculated based on the frame rate, the calibration time base (adjust), and the actual timer frequency. In order to obtain the optimal calibration time base, it is necessary to iteratively adjust the cycle reference. The specific method is to continue adjusting on the revised cycle reference. In the case that the cycle error does not converge, the revised cycle reference is the current cycle reference N. base The specific adjustment process can be referred to the description of other embodiments, and will not be described here again to avoid repetition.

[0079] Step S104 : For each device to be calibrated, the target calibration parameters are used to perform time code calibration on the device to be calibrated.

[0080] Specifically, for each device to be calibrated, calibration is performed using the target calibration parameters to ensure that the frames of multiple devices to be calibrated are aligned, thereby achieving the unification of time codes.

[0081] In some embodiments, after performing time code calibration on each device to be calibrated using the target calibration parameters, the method further includes: periodically adjusting the calibration time base according to the target calibration parameters while the time coder is running.

[0082] Specifically, different devices have different frequencies. According to the LTC encoding specification, the frame rates include standard frame rates such as 23.98, 24, 25, 29.97, and 30. According to the actual test frequency, the timing of interpolation within the adjustment period can be calculated and the configuration timer can be adjusted to produce an infinitely close cycle time.

[0083] In some embodiments, periodically adjusting the calibration time base according to the target calibration parameter while the time coder is running includes:

[0084] In each calibration cycle, the calibration time base is interpolated and adjusted according to the calibration adjustment timing.

[0085] In some embodiments, the interpolating and adjusting the calibration time base according to the calibration adjustment opportunity within each calibration cycle includes:

[0086] Before the calibration adjustment opportunity in each calibration cycle, the calibration time base is increased by one timer unit, wherein the timer unit is the minimum unit of counting and is used to generate the time code;

[0087] The calibration time base is maintained constant after the calibration adjustment opportunity in each calibration cycle.

[0088] The timer unit is the count increment corresponding to the timer clock frequency (fcrystal). The timer clock frequency determines the number of times the timer can count per second, while the timer unit is the duration of each count.

[0089] The above-mentioned high-precision calibration method for multi-device time code synchronization uses a frequency meter to test the crystal oscillator frequency of the device to be calibrated to obtain a first clock frequency, then obtains the second clock frequency of each device to be calibrated, and then calculates the common target calibration parameters, so as to calibrate each device to be calibrated using the common target calibration parameters, ensure the frame number alignment between each device, and improve the accuracy of time code synchronization.

[0090] It should be understood that, although the steps in the flowcharts of the above embodiments are shown in sequence as indicated by the arrows, these steps are not necessarily performed in the order indicated by the arrows. Unless otherwise specified herein, there is no strict order restriction on the execution of these steps, and these steps can be performed in other orders. Moreover, at least a portion of the steps in the flowcharts of the above embodiments may include multiple steps or multiple stages, and these steps or stages are not necessarily performed at the same time, but can be performed at different times. The execution order of these steps or stages is not necessarily to be performed in sequence, but can be performed in turn or alternately with other steps or at least a portion of steps or stages in other steps.

[0091] Based on the same inventive concept, the present application also provides a high-precision calibration device for multi-device time code synchronization, which is used to implement the high-precision calibration method for multi-device time code synchronization involved in the above-mentioned embodiment in which a computer device is the execution subject. The implementation solution provided by this device is similar to the implementation solution described in the above-mentioned method. Therefore, the specific limitations of one or more embodiments of the high-precision calibration device for multi-device time code synchronization provided below can be referred to the limitations of the high-precision calibration method for multi-device time code synchronization involved in the embodiment in which a computer device is the execution subject, and will not be repeated here.

[0092] In some embodiments, as Figure 3 As shown, a high-precision calibration device for multi-device time code synchronization is provided. The high-precision calibration device for multi-device time code synchronization can be integrated into a computer device, comprising:

[0093] A first acquisition module 501 is configured to acquire, for each device to be calibrated, a first clock frequency corresponding to the device to be calibrated, where the first clock frequency is obtained by performing a crystal oscillator frequency test on the device to be calibrated using a frequency meter;

[0094] A second acquisition module 502 is configured to respectively acquire a second clock frequency of each device to be calibrated, where the second clock frequency is a nominal frequency corresponding to the device to be calibrated;

[0095] A parameter determination module 503 is configured to determine a target calibration parameter based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated;

[0096] The time code calibration module 504 is configured to perform time code calibration on each device to be calibrated using the target calibration parameters.

[0097] In some embodiments, in the parameter determination module 503, the target calibration parameters include a calibration period, a calibration timing, and a calibration time base; wherein,

[0098] The calibration period is a fixed time length and is used to periodically calibrate the time code;

[0099] The calibration adjustment opportunity is a time point or time period used to confirm the adjustment time of the calibration time base within the calibration cycle;

[0100] The calibration time base is a reference value used by the time coder to count during operation and is used to determine the counting unit of the timer.

[0101] In some embodiments, each of the devices to be calibrated corresponds to a frame rate configuration, and the target calibration parameters are applicable to multiple frame rate configurations. The parameter determination module 503 includes:

[0102] Calculating a crystal oscillator frequency deviation and a counting error based on the first clock frequency and the second clock frequency, wherein the counting error is calculated based on the crystal oscillator frequency deviation and a nominal cycle duration;

[0103] Determining a calibration period for each frame rate configuration using the crystal oscillator deviation;

[0104] determining a calibration adjustment timing according to the calibration period and the counting error;

[0105] The calibration time base is determined by the calibration adjustment timing.

[0106] In some embodiments, the time code calibration module 504 includes:

[0107] In each calibration cycle, the calibration time base is interpolated and adjusted according to the calibration adjustment timing.

[0108] In some embodiments, in the time code calibration module 504, interpolating and adjusting the calibration time base according to the calibration adjustment opportunity within each calibration cycle includes:

[0109] Before the calibration adjustment opportunity in each calibration cycle, the calibration time base is increased by one timer unit, wherein the timer unit is the minimum unit of counting and is used to generate the time code;

[0110] The calibration time base is maintained constant after the calibration adjustment opportunity in each calibration cycle.

[0111] Each module in each of the above devices may be implemented in whole or in part through software, hardware, or a combination thereof. Each of the above modules may be embedded in or independent of the processor in the control device in hardware form, or may be stored in a memory in a computer device in software form, so that the processor can call and execute the corresponding operations of each of the above modules.

[0112] In some embodiments, a computer device is provided, whose internal structure diagram can be as follows: Figure 4 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected via a system bus, and the communication interface, the display unit and the input device are connected to the system bus via the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be achieved through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a high-precision calibration method for multi-device time code synchronization is implemented.

[0113] Optionally, the computer device further includes a display unit. The display unit of the computer device is used to produce a visually visible image and may be a display screen, a projection device, or a virtual reality imaging device. The display screen may be a liquid crystal display or an electronic ink display screen. The input device of the computer device may be a touch layer covering the display screen, a keypad, a trackball, or a touchpad provided on the computer device housing, or an external keyboard, touchpad, or mouse.

[0114] Those skilled in the art will understand that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the scheme of the present application, and does not constitute a limitation on the control device to which the scheme of the present application is applied. The specific control device may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0115] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, database or other media used in the embodiments provided in this application may include at least one of non-volatile and volatile memory. Non-volatile memory may include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory may include random access memory (RAM) or external cache memory, etc. For purposes of illustration and not limitation, RAM may be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The processors involved in the various embodiments provided herein may be general-purpose processors, central processing units (CPUs), graphics processors (GPUs), digital signal processors (DSPs), programmable logic devices (PLDs), data processing logic devices based on quantum computing, and the like, without limitation thereto.

[0116] Correspondingly, an embodiment of the present application further provides a computer device, which may be a terminal device or a server.

[0117] like Figure 4 As shown, Figure 4 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. The computer device 1000 includes a processor 1001 having one or more processing cores, a memory 1002 having one or more computer-readable storage media, and a computer program stored in the memory 1002 and executable on the processor. The processor 1001 is electrically connected to the memory 1002. Those skilled in the art will appreciate that the computer device structure shown in the figure does not constitute a limitation of the computer device, and may include more or fewer components than shown, or combine certain components, or arrange the components differently.

[0118] The processor 1001 is the control center of the computer device 1000. It connects the various parts of the entire computer device 1000 using various interfaces and lines. By running or loading software programs and / or units stored in the memory 1002 and calling data stored in the memory 1002, it executes various functions of the computer device 1000 and processes data, thereby monitoring the computer device 1000 as a whole. The processor 1001 can be a central processing unit (CPU), a graphics processing unit (GPU), a network processor (NP), etc., and can implement or execute the various methods, steps, and logic blocks disclosed in the embodiments of this application.

[0119] In the embodiment of the present application, the processor 1001 in the computer device 1000 will load instructions corresponding to one or more application processes into the memory 1002 according to the following steps, and the processor 1001 will run the application stored in the memory 1002 to implement various functions, such as: compensating the target steering wheel angle of the vehicle based on the lateral error and speed of the vehicle to obtain a compensated steering wheel angle; and controlling the steering of the vehicle based on the compensated steering wheel angle. The specific implementation of each of the above operations can be found in the previous embodiments and will not be repeated here.

[0120] Alternatively, as Figure 4 As shown, the computer device 1000 further includes: a touch screen 1003, a radio frequency circuit 1004, an audio circuit 1005, an input unit 1006, and a power supply 1007. Among them, the processor 1001 is electrically connected to the touch screen 1003, the radio frequency circuit 1004, the audio circuit 1005, the input unit 1006, and the power supply 1007 respectively. It can be understood by those skilled in the art that Figure 4 The computer device structure shown in the figure does not constitute a limitation to the computer device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0121] The touch display screen 1003 can be used for displaying a graphical user interface and receiving the operation instructions generated by the user acting on the graphical user interface. The touch display screen 1003 can include a display panel and a touch panel. Among them, the display panel can be used for displaying the information input by the user or the information provided to the user and various graphical user interfaces of the computer device, and these graphical user interfaces can be composed of graphics, text, icons, videos and any combination thereof. Optionally, the display panel can be configured in the form of a liquid crystal display (LCD), an organic light emitting diode (OLED), etc. The touch panel can be used for collecting the touch operation of the user thereon or near it (such as the user uses any suitable object or accessory such as a finger, a stylus on the touch panel or near the touch panel), and generates corresponding operation instructions, and the operation instructions execute corresponding programs. Optionally, the touch panel can include two parts: a touch detection device and a touch computer device. Among them, the touch detection device detects the user's touch direction, detects the signal caused by the touch operation, and transmits the signal to the touch computer device; the touch computer device receives the touch information from the touch detection device, converts it into touch point coordinates, and then sends it to the processor 1001, and can receive commands sent by the processor 1001 and execute them. The touch panel can cover the display panel. When the touch panel detects a touch operation on or near it, it is transmitted to the processor 1001 to determine the type of touch event, and then the processor 1001 provides a corresponding visual output on the display panel according to the type of touch event. In an embodiment of the present application, the touch panel and the display panel can be integrated into the touch display screen 1003 to realize input and output functions. However, in some embodiments, the touch panel and the touch panel can be used as two independent components to realize input and output functions. That is, the touch display screen 1003 can also be used as part of the input unit 1006 to realize the input function.

[0122] The RF circuit 1004 may be used to transmit and receive RF signals, thereby establishing wireless communication with a network device or other computer device through wireless communication, and transmitting and receiving signals between the network device or other computer device.

[0123] Audio circuit 1005 can be used to provide an audio interface between the user and the computer device through a speaker and microphone. Audio circuit 1005 can convert received audio data into electrical signals and transmit them to the speaker, which then converts them into sound signals for output. The microphone, on the other hand, converts collected sound signals into electrical signals, which are then received by audio circuit 1005 and converted into audio data. The audio data is then output to processor 1001 for processing, and then transmitted via RF circuit 1004 to, for example, another computer device. Alternatively, the audio data can be output to memory 1002 for further processing. Audio circuit 1005 may also include an earphone jack to allow communication between external headphones and the computer device.

[0124] The input unit 1006 may be configured to receive input digital, character information, or user feature information (such as fingerprint, iris, or facial information), and generate keyboard, mouse, joystick, optical, or trackball signal input related to user settings and function control.

[0125] Power supply 1007 is used to supply power to various components of computer device 1000. Optionally, power supply 1007 can be logically connected to processor 1001 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. Power supply 1007 can also include one or more DC or AC power supplies, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0126] although Figure 4 Not shown in the figure, the computer device 1000 may also include a camera, a sensor, a wireless fidelity module, a Bluetooth module, etc., which will not be described in detail here.

[0127] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0128] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0129] To this end, an embodiment of the present application provides a computer-readable storage medium, in which a plurality of computer programs are stored, and the computer program can be loaded by a processor to execute any one of the high-precision calibration methods for multi-device time code synchronization provided by the embodiment of the present application. The computer program can execute the following steps of the high-precision calibration method for multi-device time code synchronization: for each device to be calibrated, obtain the first clock frequency corresponding to the device to be calibrated, and the first clock frequency is obtained by performing a crystal oscillator frequency test on the device to be calibrated by a frequency meter; obtain the second clock frequency of each device to be calibrated respectively, and the second clock frequency is the nominal frequency corresponding to the device to be calibrated; based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated, determine the target calibration parameters; for each device to be calibrated, use the target calibration parameters to perform time code calibration on the device to be calibrated. The specific implementation of each of the above operations can be found in the previous embodiments, and will not be repeated here.

[0130] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0131] Since the computer program stored in the computer-readable storage medium can execute any of the high-precision calibration methods for multi-device time code synchronization provided in the embodiments of the present application, the beneficial effects that can be achieved by any of the high-precision calibration methods for multi-device time code synchronization provided in the embodiments of the present application can be achieved. Please see the previous embodiments for details and will not be repeated here.

[0132] According to one aspect of the present application, a computer program product or computer program is also provided, the computer program product or computer program including computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the above embodiments.

[0133] In the above-mentioned embodiments of the high-precision calibration device for multi-device time code synchronization, computer-readable storage medium, computer device, and computer program product, the descriptions of each embodiment have different focuses. For parts not described in detail in a particular embodiment, reference can be made to the relevant descriptions of other embodiments. Those skilled in the art will clearly understand that, for the convenience and brevity of description, the specific working processes and beneficial effects of the high-precision calibration device for multi-device time code synchronization, computer-readable storage medium, computer program product, computer device, and corresponding units described above can be referred to the description of the high-precision calibration method for multi-device time code synchronization in the above embodiments, and the details will not be repeated here.

[0134] The technical features of the above embodiments can be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0135] The above are only preferred embodiments of the present application and do not constitute any form of limitation to the present application. Although the descriptions of each embodiment in the embodiments of the present application have different focuses, for parts that are not described in detail in a certain embodiment, please refer to the relevant embodiments of other embodiments. However, any simple modifications, equivalent changes and modifications made to the above embodiments based on the technical essence of the present application without departing from the content of the technical solution of the present application are still within the scope of the technical solution of the present application.

Claims

1. A high-precision calibration method for multi-device time code synchronization, characterized in that: The method comprises: For each device to be calibrated, obtaining a first clock frequency corresponding to the device to be calibrated, where the first clock frequency is obtained by performing a crystal oscillator frequency test on the device to be calibrated using a frequency meter; Obtaining a second clock frequency of each device to be calibrated respectively, where the second clock frequency is a nominal frequency corresponding to the device to be calibrated; determining a target calibration parameter based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated; For each device to be calibrated, the target calibration parameters are used to perform time code calibration on the device to be calibrated.

2. The method according to claim 1, characterized in that The target calibration parameters include calibration period, calibration timing and calibration time base; wherein, The calibration period is a fixed time length and is used to periodically calibrate the time code; The calibration adjustment opportunity is a time point or time period used to confirm the adjustment time of the calibration time base within the calibration cycle; The calibration time base is a reference value used by the time coder to count during operation and is used to determine the counting unit of the timer.

3. The method according to claim 2, characterized in that Each of the devices to be calibrated corresponds to a frame rate configuration, the target calibration parameters are applicable to multiple frame rate configurations, and determining the target calibration parameters based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated includes: Calculating a crystal oscillator frequency deviation and a counting error based on the first clock frequency and the second clock frequency, wherein the counting error is calculated based on the crystal oscillator frequency deviation and a nominal cycle duration; Determining a calibration period for each frame rate configuration using the crystal oscillator deviation; determining a calibration adjustment timing according to the calibration period and the counting error; The calibration time base is determined by the calibration adjustment timing.

4. The method according to claim 1, wherein After performing time code calibration on each device to be calibrated using the target calibration parameters, the method further includes: periodically adjusting a calibration time base according to the target calibration parameters when the time coder is running.

5. The method according to claim 4, characterized in that The periodically adjusting the calibration time base according to the target calibration parameter while the time coder is running includes: In each calibration cycle, the calibration time base is interpolated and adjusted according to the calibration adjustment timing.

6. The method according to claim 5, characterized in that The interpolation adjustment of the calibration time base according to the calibration adjustment opportunity in each calibration cycle includes: Before the calibration adjustment opportunity in each calibration cycle, the calibration time base is increased by one timer unit, wherein the timer unit is the minimum unit of counting and is used to generate the time code; The calibration time base is maintained constant after the calibration adjustment opportunity in each calibration cycle.

7. A high-precision calibration device for multi-device time code synchronization, characterized in that: The device comprises: A first acquisition module is configured to acquire, for each device to be calibrated, a first clock frequency corresponding to the device to be calibrated, where the first clock frequency is obtained by performing a crystal oscillator frequency test on the device to be calibrated using a frequency meter; A second acquisition module is used to respectively acquire a second clock frequency of each device to be calibrated, where the second clock frequency is a nominal frequency corresponding to the device to be calibrated; a parameter determination module, configured to determine a target calibration parameter based on the first clock frequency of each device to be calibrated and the second clock frequency of each device to be calibrated; The time code calibration module is used to perform time code calibration on each device to be calibrated using the target calibration parameters.

8. The device according to claim 7, characterized in that The device further comprises: The iterative calibration module is used to periodically adjust the calibration time base according to the target calibration parameters when the time coder is running.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the high-precision calibration method for multi-device time code synchronization according to any one of claims 1 to 6 is implemented.

10. A computer device, characterized in that: include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the high-precision calibration method for multi-device time code synchronization as described in any one of claims 1 to 6.