Clock control method and device, time frequency equipment and storage medium

By finding the target control amount matching the current time in the pre-stored control amount set, and using the control amount to control the local clock signal when the reference source fails, the problem of difficulty in ensuring the accuracy of the local clock signal when the reference source fails is solved, and the realization of the realization of the local clock signal is achieved. Improved clock signal accuracy in failure situations.

CN119402119AInactive Publication Date: 2025-02-07SHENZHEN JINKETAI COMM EQUIP CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411368704.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-27
Publication Date
2025-02-07
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

When the reference source fails, the clock cannot be tamed, making it difficult to guarantee the accuracy of the local clock signal.

Method used

Find the target control amount matching the current time in the pre-stored set of control amounts, and use the target control amount to control the local clock signal when the reference source fails.

Benefits of technology

In the case of the reference source failure, the matching target control amount is checked on time by querying the timely table method, which effectively improves the accuracy of the local clock signal.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119402119A_ABST
    Figure CN119402119A_ABST
Patent Text Reader

Abstract

The invention is suitable for the technical field of communication, and provides a clock control method and device, time frequency equipment and a storage medium, and the method comprises the steps: searching a target control quantity matched with the current time in a pre-stored control quantity set when a compensation control condition is satisfied, and the compensation control condition comprises that a reference source fails; the local clock signal is controlled using the target control amount.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communications, and in particular relates to a clock control method and apparatus, a time-frequency device, and a computer-readable storage medium. Background Art

[0002] During operation, the time and frequency device can calibrate the local clock signal with reference to the external clock signal (also called the reference source), and this process can also be called clock taming. Specifically, the deviation value between the external clock signal and the local clock signal can be calculated, and a specific taming method can be used to calculate and generate the control amount of the local clock signal based on the deviation value to control the local clock signal to follow the external clock signal.

[0003] Clock training depends on the reference source. When the reference source fails, that is, when the external clock signal cannot be obtained, clock training cannot be performed and the accuracy of the local clock signal is difficult to guarantee. Summary of the invention

[0004] The embodiments of the present application provide a clock control method and apparatus, a time-frequency device, and a computer-readable storage medium, which can solve the problem in the related art that the accuracy of the local clock signal is difficult to ensure when the reference source fails.

[0005] In a first aspect, an embodiment of the present application provides a clock control method, which includes: when a compensation control condition is met, searching for a target control quantity that matches the current time in a pre-stored control quantity set, the compensation control condition including failure of a reference source; and using the target control quantity to control a local clock signal.

[0006] In second aspect, an embodiment of the present application provides a clock control device, which includes: a search module, used to search for a target control quantity matching the current time in a pre-stored control quantity set when a compensation control condition is met, and the compensation control condition includes failure of a reference source; a control module, used to use the target control quantity to control a local clock signal.

[0007] In a third aspect, an embodiment of the present application provides a time and frequency device, including a memory, a processor, and a computer program stored in the memory and executable by the processor, and when the processor executes the computer program, the clock control method described in the first aspect above is implemented.

[0008] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program, which implements the clock control method described in the first aspect when executed by a processor.

[0009] In a fifth aspect, an embodiment of the present application provides a computer program product. When the computer program product runs on a time and frequency device, the time and frequency device executes the clock control method described in the first aspect above.

[0010] Compared with the prior art, the embodiments of the present application have the following beneficial effects: when the compensation control condition is met, the target control amount matching the current time is searched in the pre-stored control amount set, and the compensation control condition includes the failure of the reference source; the target control amount is used to control the local clock signal. When the reference source fails, the matching target control amount can be queried based on the timed table lookup method to control the local clock signal, thereby effectively improving the accuracy of the local clock signal when the reference source fails. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0012] Figure 1 It is a structural diagram of a time-frequency device provided in an embodiment of the present application;

[0013] Figure 2 is a flowchart of a clock control method provided by an embodiment of the present application;

[0014] Figure 3 It is a structural diagram of a clock control device provided in one embodiment of the present application. DETAILED DESCRIPTION

[0015] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.

[0016] It should be understood that when used in the present specification and the appended claims, the term "comprising" indicates the presence of described features, wholes, steps, operations, elements and / or components, but does not exclude the presence or addition of one or more other features, wholes, steps, operations, elements, components and / or combinations thereof.

[0017] It should also be understood that the term “and / or” used in the specification and appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.

[0018] As used in the specification and appended claims of this application, the term "if" can be interpreted as "when" or "uponce" or "in response to determining" or "in response to detecting", depending on the context. Similarly, the phrase "if it is determined" or "if [described condition or event] is detected" can be interpreted as meaning "uponce it is determined" or "in response to determining" or "uponce [described condition or event] is detected" or "in response to detecting [described condition or event]", depending on the context.

[0019] In addition, in the description of the present application specification and the appended claims, the terms "first", "second", "third", etc. are only used to distinguish the descriptions and cannot be understood as indicating or implying relative importance.

[0020] References to "one embodiment" or "some embodiments" etc. described in the specification of this application mean that one or more embodiments of the present application include specific features, structures or characteristics described in conjunction with the embodiment. Therefore, the statements "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments", etc. that appear in different places in this specification do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. The terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.

[0021] Figure 1 FIG. 1 is a block diagram showing a partial structure of a time-frequency device provided in an embodiment of the present application. Figure 1 The time-frequency device includes: a processor 10, a memory 20, a satellite receiver 30 and a local clock signal source 40. The processor 10 is connected to the memory 20, the satellite receiver 30 and the local clock signal source 40. Those skilled in the art can understand that Figure 1 The structure of the time-frequency device shown in the figure does not constitute a limitation on the time-frequency device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0022] Combine the following Figure 1 A detailed introduction to the various components of the time-frequency equipment:

[0023] The processor 10 is the control center of the time-frequency device, and can run the program stored in the memory 20 to perform various functions and process data. The processor 10 can be a central processing unit (CPU), and the processor 10 can also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), microcontroller units (MCU) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc.

[0024] The memory 20 is used to store an operating system, an application program, a boot loader, data, and other programs, such as program code of a computer program. The memory 20 can also be used to temporarily store data required and generated by executing the program. The memory 20 can include a high-speed random access memory, and can also include a non-volatile memory, such as a flash memory, a hard disk, a multimedia card, a card-type memory, etc.

[0025] In some embodiments, the processor 10 and the memory 20 may be integrated together.

[0026] The satellite receiver 30 is used to receive satellite signals. The satellite receiver 30 can directly output the satellite signals to the processor 10, and the processor 10 is responsible for decoding the satellite signals to obtain the message information and the pulse-second signal therein. Alternatively, the satellite receiver 30 can decode the satellite signals by itself to obtain the message information and the pulse-second signal therein, and then output the message information and the pulse-second signal to the processor 10.

[0027] The local clock signal source 40 generally includes a crystal oscillator, which is used to generate a local clock.

[0028] The clock control method provided in the embodiment of the present application can be implemented as a computer software program. For example, the embodiment of the present application provides a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a program code for executing the method shown in the flowchart. When the computer program is executed by the processor 10, the various functions defined in the clock control method provided in the embodiment of the present application are implemented.

[0029] Figure 2A schematic flow chart of a clock control method provided in an embodiment of the present application is shown. As an example but not a limitation, the method can be applied to the above-mentioned time and frequency device.

[0030] S1: While the reference source is valid, the control amount of the local clock signal is calculated based on the reference source.

[0031] The reference source, i.e., the external clock signal, refers to the clock signal obtained from outside the time and frequency equipment. For example, the second pulse signal from the satellite can be received by a satellite receiver as a reference source. A valid reference source means that the reference source can be received, and correspondingly, an invalid reference source means that the reference source cannot be received.

[0032] During the validity period of the reference source, the deviation between the external clock signal and the local clock signal can be calculated, and a specific taming method is used to calculate and generate the control amount of the local clock signal according to the deviation value. The control amount is then used to control the local clock signal to follow the reference source until the deviation value reaches the preset requirement. This process is called clock taming. After the clock taming is completed, it enters the locked state and the above process will be repeated. Each execution will obtain a control amount, which can be cached for subsequent calculations.

[0033] S2: Update the control quantity set based on the control quantity.

[0034] The control quantity set includes control quantities of multiple time periods, and the multiple time periods are obtained by dividing the preset time length. Compared with the clock taming cycle, the preset time length can be a longer time length. Since one of the sources of drift of the local clock signal is the change in temperature, and the change pattern of temperature in a day is relatively obvious and relatively fixed, the preset time length can be set to one day. For example, the preset time length is one day, the length of each time period is one hour, and there are 24 time periods in total. The control quantity set includes 24 hours of control quantities.

[0035] Specifically, the control amount can be cached after the clock training is completed. When the cache duration reaches the length of the preset time period, the average value of the control amount in the current time period can be calculated, and then the average value of the control amount in the current time period can be used to update the control amount of the corresponding time period in the control amount set. The update can be a replacement type, that is, the average value of the control amount in the current time period is used to replace the control amount of the corresponding time period; or, the update can be an average type, and the weighted average value of the control amount of the corresponding time period and the average value of the control amount in the current time period is calculated to replace the control amount of the corresponding time period. The average values ​​of the corresponding control amount in the set and the control amount in the current time period can both be 0.5, or, the weight of the average value of the control amount in the current time period can be gradually reduced as the number of updates increases.

[0036] For example, after the time and frequency device is powered on, it obtains the control quantity set, which is a list of 24 elements, and each element is initially empty. When the reference source is valid, the clock is tamed based on the reference source until it enters the locked state. In the locked state, the time and frequency device calculates and caches the control quantity of the local clock source every second. Every hour, it calculates the average value of the cached 3600 control quantities as the average value of the control quantity in the current time period and replaces the elements in the control quantity set in turn. If the last element of the control quantity set is reached, a new round of replacement starts from the beginning.

[0037] S3: When the compensation control condition is met, the target control amount matching the current time is searched in the pre-stored control amount set.

[0038] The compensation control condition includes the failure of the reference source. Optionally, the compensation control condition also includes that the duration of validity of the reference source is greater than or equal to the preset duration, that is, all elements in the control quantity set are not empty, so as to ensure that the control quantity set can be continuously used for compensation when the subsequent reference source fails.

[0039] The target control amount matching the current time refers to the element (i.e., control amount) of the target time period matching the current time in the control amount set. The time period that falls after subtracting the integer multiple of the preset time length from the current time is the target time period.

[0040] For example, the preset duration is 1 day, and the length of a single time period is 1 day. By comparing the information after the year, month, and day of the current time with the time periods in the control quantity set, the target time period can be found, thereby determining the target control quantity.

[0041] S4: Use the target control amount to control the local clock signal.

[0042] Through the implementation of this embodiment, when the compensation control condition is met, the target control amount matching the current time is searched in the pre-stored control amount set, and the compensation control condition includes the failure of the reference source; the target control amount is used to control the local clock signal. When the reference source fails, the matching target control amount can be queried based on the timed table lookup method to control the local clock signal, thereby effectively improving the accuracy of the local clock signal when the reference source fails.

[0043] Figure 3 A schematic structural diagram of a clock control device provided in an embodiment of the present application is shown. The clock control device includes a search module 11 and a control module 12 .

[0044] The search module 11 is used to search for a target control amount matching the current time in a pre-stored control amount set when a compensation control condition is met, and the compensation control condition includes failure of a reference source.

[0045] The control module 12 is used to control the local clock signal using the target control amount.

[0046] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / modules / units are based on the same concept as the method embodiment of the present application. Their specific functions and technical effects can be found in the method embodiment part and will not be repeated here.

[0047] 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.

[0048] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0049] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.

[0050] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium can at least include: any entity or device that can carry the computer program code to the camera / time-frequency device, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, RandomAccess Memory), electric carrier signal, telecommunication signal and software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

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

[0052] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0053] In the embodiments provided in the present application, it should be understood that the disclosed devices / network equipment and methods can be implemented in other ways. For example, the device / network equipment embodiments described above are merely schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0054] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0055] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A clock control method, characterized in that: The method comprises: When a compensation control condition is met, searching for a target control amount matching the current time in a pre-stored control amount set, wherein the compensation control condition includes failure of a reference source; The local clock signal is controlled using the target control amount.

2. The method according to claim 1, characterized in that The control amount set includes control amounts for multiple time periods, and the multiple time periods are obtained by dividing a preset time length.

3. The method according to claim 2, characterized in that The compensation control condition also includes that the duration of validity of the reference source is greater than or equal to the preset duration.

4. The method according to claim 2, characterized in that Also includes: The preset duration is one day.

5. The method according to claim 1, characterized in that Also includes: During the validity period of the reference source, calculating the control amount of the local clock signal based on the reference source; The control amount set is updated based on the control amount.

6. The method according to claim 5, characterized in that The updating of the control amount set based on the control amount comprises: Calculate the average value of the control quantity in the current time period; The control amount of the corresponding time period in the control amount set is updated using the average value of the control amount in the current time period.

7. The method according to claim 6, characterized in that The updating of the control amount of the corresponding time period in the control amount set by using the average value of the control amount in the current time period comprises: The control amount of the corresponding time period is replaced by the average value of the control amount in the current time period; or the weighted average value of the control amount of the corresponding time period and the average value of the control amount in the current time period is calculated to replace the control amount of the corresponding time period.

8. A clock control device, characterized in that: The device comprises: A search module, used for searching a target control amount matching the current time in a pre-stored control amount set when a compensation control condition is met, wherein the compensation control condition includes a reference source failure; A control module is used to control a local clock signal using the target control amount.

9. A time-frequency device, comprising a memory, a processor, and a computer program stored in the memory and executable by the processor, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 7 is implemented.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Synchronous clock signal compensation method and device

    CN104378109A

  • Clock synchronization method and device, electronic equipment and storage medium

    CN113972893A

  • Timing method, electronic equipment and computer readable storage medium

    CN116300383A

  • Temperature correction system and method for time in off-line self-timekeeping state

    CN118074846A