Constant temperature crystal oscillator service life early warning method and device based on historical data fitting
By constructing frequency accuracy fitting curves and analyzing historical data, the accuracy and cost issues of predicting the lifespan of temperature-controlled crystal oscillators have been resolved. This has enabled a temperature-controlled crystal oscillator lifespan early warning system with strong anti-interference capabilities and wide applicability, supporting frequencies in the range of 10kHz to 50MHz and providing clear graded early warning guidance.
Patent Information
- Application Number
- CN202511702395.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-11-19
- Publication Date
- 2026-02-13
AI Technical Summary
Existing technologies rely on a single parameter, such as real-time frequency stability or frequency accuracy, without combining historical data to build a long-term aging trend model. This results in the prediction of the lifespan of the isothermal crystal oscillator being greatly affected by instantaneous interference, failing to reflect the aging pattern within its lifespan. Furthermore, some solutions use high-cost frequency reference sources such as rubidium atomic clocks.
By collecting the output frequency of the isothermal crystal oscillator and preprocessing it to obtain the normalized frequency, a frequency accuracy fitting curve is constructed using the weighted least squares method. Combined with historical data, the target frequency accuracy is predicted and the lifespan is estimated. Multi-level lifespan thresholds are set for early warning.
It achieves more accurate lifetime prediction, has strong anti-interference capabilities, wide applicability, provides clear remaining lifetime and graded early warning, improves the reliability and engineering practicality of prediction results, and reduces costs.
Smart Images

Figure CN121524541A_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of electronic component state monitoring and life assessment, and more particularly, to a constant temperature crystal oscillator life warning method and device based on historical data fitting. BACKGROUND
[0002] As the core timing reference source of electronic equipment, the frequency stability and long-term reliability of the constant temperature crystal oscillator (OCXO) directly determine the operation performance of the whole machine. In critical infrastructures such as communication base stations and satellite navigation terminals, sudden failure of the OCXO will lead to major faults such as base station service withdrawal, cell network interruption, and navigation signal lockout. According to industry statistics, OCXO faults account for more than 35% of the total amount of single-board faults in communication equipment, and have become a key bottleneck affecting equipment availability.
[0003] The existing technology currently relies on a single parameter of real-time frequency stability or frequency accuracy, trains a deep learning model with a large amount of sample data, quickly analyzes and compares by the trained model, and timely identifies abnormal conditions that do not meet quality standards, breaking through the recognition limitations of traditional detection on complex problems.
[0004] However, the existing technology only relies on a single parameter of real-time frequency stability or frequency accuracy, without combining historical data to build a long-term aging trend model, resulting in that the prediction result is greatly affected by instantaneous interference and cannot reflect the aging law of the OCXO in its life cycle; in addition, the frequency reference source in part of the technical solutions selects a rubidium atomic clock as the frequency reference, which has a high cost and is not conducive to the promotion and use of the device. SUMMARY
[0005] According to the present application, a constant temperature crystal oscillator life warning scheme based on historical data fitting is provided. This scheme can realize the life warning of the constant temperature crystal oscillator without being bound by the output frequency.
[0006] In a first aspect of the present application, a constant temperature crystal oscillator life warning method based on historical data fitting is provided. The method comprises: acquiring the output frequency of the constant temperature crystal oscillator by a counter, pre-processing the output frequency to obtain a normalized frequency; obtaining frequency accuracy according to the normalized frequency; and constructing a fitting curve of the frequency accuracy by using a weighted least squares method; predicting target frequency accuracy according to the fitting curve, and calculating the predicted life of the constant temperature crystal oscillator through the target frequency accuracy, to obtain the constant temperature crystal oscillator life warning based on the predicted life of the constant temperature crystal oscillator.
[0007] Further, the pre-processing of the output frequency to obtain the normalized frequency comprises: A preset fundamental frequency, and a ratio of the fundamental frequency to the output frequency is taken as a frequency division multiplication coefficient; The output frequency is normalized according to the frequency division multiplication coefficient, and a result of the normalization is taken as a normalized frequency.
[0008] Further, after the fitting curve of the frequency accuracy is constructed, the method further comprises: A frequency accuracy threshold is preset, and the frequency accuracy threshold is corrected; The fitting accuracy of the fitting curve is verified according to the corrected frequency accuracy threshold, and the fitting curve that passes the verification is taken as a final fitting curve.
[0009] Further, the method of predicting a target frequency accuracy according to the fitting curve comprises: A first measurement time of the fitting curve is taken as a reference time, a difference between other measurement times of the fitting curve and the reference time is taken as a time difference, and a fitting curve equation is constructed based on the time difference; All measurement times of the fitting curve are traversed, a frequency accuracy prediction value of a current measurement time is calculated according to the fitting curve equation, and if the frequency accuracy prediction value is not less than the frequency accuracy threshold, the traversal is stopped, and the current frequency accuracy prediction value is taken as the target frequency accuracy.
[0010] Further, the method of predicting a life span of the oven-controlled crystal oscillator through the target frequency accuracy comprises: The target frequency accuracy is taken as an output of the fitting curve equation, and input data of the fitting curve equation is back calculated; A life span error range is preset, the input data of the fitting curve equation is corrected according to the life span error range, and the corrected data is taken as the predicted life span of the oven-controlled crystal oscillator.
[0011] Further, the method of obtaining an oven-controlled crystal oscillator life warning based on the predicted life span of the oven-controlled crystal oscillator comprises: If the predicted life span of the oven-controlled crystal oscillator is less than a first life threshold, the oven-controlled crystal oscillator life warning is a first-level warning; If the predicted life span of the oven-controlled crystal oscillator is not less than the first life threshold and less than a second life threshold, the oven-controlled crystal oscillator life warning is a second-level warning; If the predicted life span of the oven-controlled crystal oscillator is not less than the second life threshold, the oven-controlled crystal oscillator life warning is a third-level warning.
[0012] In the second aspect of the present application, an oven-controlled crystal oscillator life warning device based on historical data fitting is provided. The device comprises: A data acquisition module is configured to collect an output frequency of an oven-controlled crystal oscillator through a counter, pre-process the output frequency, and obtain a normalized frequency; a curve fitting module configured to obtain frequency accuracy according to the normalized frequency; and construct a fitting curve of the frequency accuracy by using a weighted least square method; a life warning module configured to predict a target frequency accuracy according to the fitting curve, and calculate a constant temperature crystal oscillator predicted life by the target frequency accuracy, and obtain a constant temperature crystal oscillator life warning based on the constant temperature crystal oscillator predicted life.
[0013] In a third aspect of the present application, an electronic device is provided. The electronic device comprises at least one processor; and a memory connected to the at least one processor in communication; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the method of the first aspect of the present application.
[0014] In a fourth aspect of the present application, a non-transitory computer readable storage medium storing computer instructions is provided, and the computer instructions are used to enable the computer to execute the method of the first aspect of the present application.
[0015] Compared with the prior art, the present application has the following beneficial technical effects: (1) More accurate prediction and strong anti-interference: by analyzing the overall trend of historical data for life prediction, false judgments caused by instantaneous frequency jitter are effectively avoided, and the result is more reliable.
[0016] (2) Wider applicability: by normalization processing, frequencies in the range of 10 kHz to 50 MHz can be supported at the same time, the requirement for output frequency is reduced, and normalized frequency is directly analyzed, thereby improving the applicability of the present application.
[0017] (3) Strong practicability and convenient operation and maintenance: instead of giving a simple good / bad judgment, the present application directly gives clear remaining life and graded warning, which can remind workers to plan replacement in advance, thereby providing a larger buffer time for engineering application.
[0018] It should be understood that the content described in the summary section is not intended to limit the key or important features of the embodiments of the present application, nor to limit the scope of the present application. Other features of the present application will become apparent through the following description. BRIEF DESCRIPTION OF DRAWINGS
[0019] The above and other features, advantages, and aspects of embodiments of the present application will become more apparent by describing in detail the following embodiments with reference to the attached drawings. In the drawings, the same or similar reference numerals refer to the same or similar elements, in which: Figure 1 a flowchart of a constant temperature crystal oscillator life warning method based on historical data fitting according to an embodiment of the present application is shown; Figure 2A flow chart of a data preprocessing method according to an embodiment of the present application is shown. Figure 3 A flow chart of a verification fitting curve method according to an embodiment of the present application is shown. Figure 4 A flow chart of a frequency accuracy prediction method according to an embodiment of the present application is shown. Figure 5 A flow chart of a constant temperature crystal oscillator life prediction method according to an embodiment of the present application is shown. Figure 6 A block diagram of a constant temperature crystal oscillator life warning device based on historical data fitting according to an embodiment of the present application is shown. Figure 7 A block diagram of an exemplary electronic device capable of implementing an embodiment of the present application is shown. Wherein, 700 is an electronic device, 701 is a computing unit, 702 is a ROM, 703 is a RAM, 704 is a bus, 705 is an I / O interface, 706 is an input unit, 707 is an output unit, 708 is a storage unit, and 709 is a communication unit. DETAILED DESCRIPTION
[0020] To make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some embodiments of the present application, rather than all the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative labor fall within the scope of protection of the present application.
[0021] In addition, the term "and / or" herein is only to describe the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone. In addition, the character " / " herein generally represents an "or" relationship between the front and rear associated objects.
[0022] In the present application, by collecting the OCXO signal path voltage signal, the normalized frequency is converted through frequency conversion analysis, the frequency parameters collected dynamically are combined with the historical data for weighted fitting, the remaining life is predicted based on the scenario threshold, and then the life warning information is obtained. In this way, the normalized frequency and frequency division / multiplier signal analysis in the range of 10kHz~50MHz can be supported, thereby expanding the application range.
[0023] Figure 1 A flow chart of a constant temperature crystal oscillator life warning method based on historical data fitting according to an embodiment of the present application is shown.
[0024] The method comprises: S101, acquiring an output frequency of a constant temperature crystal oscillator by a counter, pre-processing the output frequency to obtain a normalized frequency.
[0025] Specifically, the identification range of the output frequency is 10 kHz-50 MHz; the acquisition time is not fixed.
[0026] In the embodiment, as shown in the formula (1), the pre-processing of the output frequency to obtain a normalized frequency comprises: Figure 2 S201, presetting a fundamental frequency, and taking the ratio of the fundamental frequency to the output frequency as a frequency division multiplication coefficient.
[0027] In the embodiment, the fundamental frequency can be set to 10 MHz, and assuming that the output frequency is 100 kHz, then .
[0028] S202, normalizing the output frequency according to the frequency division multiplication coefficient, and taking the normalized result as a normalized frequency.
[0029] Specifically, .
[0030] By normalizing the output frequency based on the frequency division multiplication coefficient, the application successfully unifies the crystal oscillator signals of different frequencies (10 kHz-50 MHz) to the same standard scale for comparison and analysis. In this way, the compatibility problem caused by different signal frequencies in different application scenarios is effectively overcome, so that the application can be universally applied to processing fundamental wave, frequency division and frequency multiplication signals, significantly widening the application range of the scheme and enhancing the engineering practicability.
[0031] S102, obtaining a frequency accuracy according to the normalized frequency; and constructing a fitting curve of the frequency accuracy by using a weighted least square method.
[0032] In the embodiment, , wherein can be set to 10 MHz.
[0033] As some optional embodiments of the embodiment, the Allan variance can be used to calculate the frequency stability of the frequency accuracy, which is used to represent the size of the signal. The Allan variance is proposed by David Allan of the United States National Bureau of Standards in 1966, and has become an IEEE standard (IEEE Std 1139-2008) for time domain frequency stability analysis. The specific formula is:
[0034] , wherein is the frequency stability; N is the number of output frequency points. This is the index for the number of output frequency points; The frequency accuracy of the i-th acquisition; The frequency accuracy of the (i+1)th acquisition; This represents the sampling time interval.
[0035] In this embodiment, as Figure 3 As shown, after constructing the fitting curve for frequency accuracy, the following steps are also included: S301. Preset the frequency accuracy threshold and correct the frequency accuracy threshold.
[0036] Specifically, the frequency accuracy threshold can be set to Correcting the frequency accuracy threshold refers to fine-tuning within ±5% based on the importance level of the equipment, and the fine-tuning results are automatically stored locally.
[0037] S302. Verify the fitting accuracy of the fitted curve based on the corrected frequency accuracy threshold, and take the fitted curve that passes the verification as the final fitted curve.
[0038] Specifically, iterate through all the frequency accuracy values in the fitted curves, and select the fitted curves with frequency accuracy values greater than the frequency accuracy threshold as the final fitted curves.
[0039] By introducing a frequency accuracy threshold and validating the fitted curves, this invention establishes an effective detection mechanism for the lifespan prediction model. This method can filter out curves with poor fitting quality or significant distortion, preventing erroneous lifespan predictions due to local data anomalies or model failure, thereby significantly improving the reliability and accuracy of the final warning results.
[0040] S103. Predict the target frequency accuracy based on the fitted curve, and calculate the predicted lifespan of the isothermal crystal oscillator based on the target frequency accuracy. Obtain an early warning of the isothermal crystal oscillator lifespan based on the predicted lifespan of the isothermal crystal oscillator.
[0041] In this embodiment, as Figure 4 As shown, the accuracy of predicting the target frequency based on the fitted curve includes: S401. Take the initial measurement time of the fitted curve as the reference time, and take the difference between the other measurement times of the fitted curve and the reference time as the time difference; construct the fitted curve equation based on the time difference.
[0042] Specifically, both the reference time and the measurement time are in days; that is, the reference time is set to 0 days, and the time difference X is the date of the Nth acquisition minus the date of the first acquisition.
[0043] In this embodiment, the equation of the fitted curve is: ,in is the time difference; is a two-dimensional array of frequency accuracy; a is a quadratic coefficient, reflecting the aging acceleration trend, unit: 10 -12 / day2; is a linear coefficient, reflecting the conventional aging rate, unit: 10 -12 / day; is a constant term, reflecting the initial frequency accuracy, unit: 10 -12 .
[0044] S402, traverse all measurement times of the fitting curve, calculate the frequency accuracy prediction value of the current measurement time according to the fitting curve equation; if the frequency accuracy prediction value is not less than the frequency accuracy threshold, stop traversing, and take the current frequency accuracy prediction value as the target frequency accuracy.
[0045] Specifically, let Y = frequency accuracy prediction value, the frequency accuracy threshold can be set to = 2E-7 or -2E-7, and table 1 is the corresponding data table of the embodiment; traverse the frequency accuracy in table 1 from top to bottom, and take the frequency accuracy in table 1 that first reaches the frequency accuracy threshold as the final frequency accuracy.
[0046] Table 1 Serial number Date of acquisition Time (days) Frequency accuracy Frequency stability 1 2024-10-11 16:00 0 5.82E-9 1.12E-12 2 2024-11-01 10:00 20.75 1.26e-8 1.25E-12 3 2024-11-23 12:00 42.83 1.99e-8 1.05E-12 4 2024-11-30 18:00 50.08 2.26e-8 1.18E-12 5 2024-12-23 09:00 72.71 2.97e-8 1.25E-12 6 2025-01-13 11:00 93.79 3.65e-8 1.08E-12 7 2025-02-26 13:00 137.87 5.15e-8 1.23E-12 8 2025-03-05 15:00 144.96 5.38e-8 2.52E-12 9 2025-03-19 17:00 159.04 5.90e-8 1.87E-12 10 2025-04-01 18:00 172.08 6.36e-8 1.56E-12 11 2025-04-18 22:00 189.25 7.11e-8 1.34E-12 12 2025-04-30 17:00 202.04 7.55e-8 1.15E-12 13 2025-05-30 09:00 231.71 8.56e-8 1.35E-12 By setting the initial measurement time as the reference and constructing the fitting curve equation based on the time difference, the application converts the abstract frequency drift into an intuitive and quantifiable time function; by using the method of traversing the prediction value and comparing with the threshold value, the specific time node at which the frequency accuracy reaches the critical point can be automatically and accurately located. In this way, the life prediction is no longer a rough estimate, but a deterministic calculation based on model extrapolation, which significantly improves the accuracy and operability of the prediction result.
[0047] In the embodiment, as shown in Figure 5 , the target frequency accuracy is used to calculate the constant temperature crystal oscillator prediction life, which comprises: S501, taking the target frequency accuracy as the output of the fitting curve equation, and reversely calculating the input data of the fitting curve equation.
[0048] Specifically, the input data of the fitting curve equation is the time difference.
[0049] S502, preset a life error range, correct the input data of the fitting curve equation according to the life error range, and take the corrected data as the constant temperature crystal oscillator prediction life.
[0050] Specifically, the life error range can be set to ±10%, that is .
[0051] By substituting the target frequency accuracy into the equation to back-calculate its input data (time difference), the present application realizes direct and quantitative conversion from performance threshold to specific life. On this basis, the preset life error range is introduced to correct the prediction results, effectively compensating for the uncertainty of model extrapolation itself and the performance discreteness of individual devices. In this way, the theoretical prediction value is converted into a life interval that is more in line with engineering practice, significantly improving the reliability and practical value of the prediction conclusion, and providing a key basis for formulating accurate and robust operation plans.
[0052] In the present embodiment, the constant temperature crystal oscillator life warning based on the constant temperature crystal oscillator life prediction includes: if the constant temperature crystal oscillator life prediction is less than a first life threshold, the constant temperature crystal oscillator life warning is a first-level warning; if the constant temperature crystal oscillator life prediction is not less than the first life threshold and less than a second life threshold, the constant temperature crystal oscillator life warning is a second-level warning; and if the constant temperature crystal oscillator life prediction is not less than the second life threshold, the constant temperature crystal oscillator life warning is a third-level warning.
[0053] Specifically, the first life threshold can be set to 90 days, and the second life threshold can be set to 180 days. The first-level warning triggers a flashing alarm warning; the second-level warning triggers a screen prompt warning; and the third-level warning is a normal state, only displaying real-time parameters (including frequency accuracy, frequency stability) and life prediction values, without warning output.
[0054] By setting multiple life thresholds and triggering different levels of warnings, the present application converts a single life prediction value into an operation instruction with clear guidance. This hierarchical warning mechanism enables maintenance personnel to clearly distinguish the urgency of the risk, so as to develop targeted maintenance strategies (such as immediate replacement, planned procurement, and continuous monitoring), thereby realizing a fundamental change from passive response to failure to active planning of maintenance. In this way, not only is system downtime caused by sudden crystal oscillator failure effectively avoided, but also spare parts management and human resource allocation are optimized, significantly improving the planning and economy of operation and maintenance work.
[0055] Specifically, the present embodiment can use a data storage module to store data. Specifically, the data storage module includes: (1) storage architecture: a "local + cloud server" dual backup storage architecture is adopted, that is, prediction can be performed locally or off-line using a computer to reduce dependence on the acquisition computer. The stored data records the frequency accuracy collected by the current acquisition work and the calculated frequency stability, reducing the requirement for storage space. (2) Data labeling rules: each time the data is stored as a "time stamp" + "device number" + "asset number".txt document.
[0056] In the embodiment, the man-machine interaction module is used for display, specifically, the man-machine interaction module uses a UI interface program written by Python for display, the interface program can read historical measurement data of a cloud server, and can execute a service life calculation module in real time to view a health state of the crystal oscillator in real time.
[0057] Compared with the prior art, the present application has the following advantages according to the embodiments of the present application: The frequency conversion signal is fully adapted, and the application scenarios are expanded: normalized frequency and frequency division / multiplier signal analysis in the range of 10kHz-50MHz are supported, and multiple scenarios such as communication base stations (such as 10MHz OCXO frequency division to 100kHz for clock synchronization), precision instruments (such as 50MHz OCXO frequency multiplication to 100MHz for signal source) can be adapted, compared with the scheme of supporting only normalized frequency, the applicable range is expanded by more than 3 times; The flexibility and accuracy of the acquisition mechanism are considered: through the combination of variable frequency data fitting, the "basic acquisition + dynamic trigger" mode, the data effectiveness is high, the system storage resource occupation is low, and the service life prediction error is small; The engineering practicability is strong, and the operation and maintenance cost is low: local and remote operation and maintenance are supported, the early warning is clear, and the operation and maintenance personnel can assist in formulating accurate replacement plan, the equipment downtime caused by OCXO failure is shortened to the minimum, and the economic loss is reduced.
[0058] It should be noted that for the foregoing method embodiments, in order to simply describe, they are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited by the action sequence described, because according to the present application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should know that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0059] The above is the introduction of the method embodiment, and the device embodiment with the same inventive concept as the method in the foregoing embodiment is used to further describe the scheme of the present application.
[0060] As shown in Figure 6 The device 600 includes: The data acquisition module 610 is configured to acquire an output frequency of the constant temperature crystal oscillator through a counter, pre-process the output frequency, and obtain a normalized frequency.
[0061] The curve fitting module 620 is configured to obtain frequency accuracy according to the normalized frequency, and construct a fitting curve of the frequency accuracy by using a weighted least squares method.
[0062] The life warning module 630 is configured to predict the target frequency accuracy according to the fitting curve, calculate the oven-controlled crystal oscillator predicted life through the target frequency accuracy, and obtain the oven-controlled crystal oscillator life warning based on the oven-controlled crystal oscillator predicted life.
[0063] Those skilled in the art can clearly understand that, for the convenience and brevity of the description, the specific working process of the described modules can refer to the corresponding process in the foregoing method embodiments, which will not be described here.
[0064] In the technical solution of the present application, the acquisition, storage and application of user personal information comply with relevant laws and regulations and do not violate public order and good customs.
[0065] According to the embodiments of the present application, the present application further provides an electronic device and a readable storage medium.
[0066] Figure 7 A schematic block diagram of an electronic device 700 that can be used to implement embodiments of the present application is shown. The electronic device is intended to represent various forms of digital computers, such as laptops, desktops, tablets, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device can also represent various forms of mobile devices such as personal digital assistants, cellular telephones, smartphones, wearable devices, and other similar computing devices. The components shown here, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application described and / or claimed in this document.
[0067] The electronic device 700 includes a computing unit 701 that can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. Various programs and data required for the operation of the electronic device 700 can also be stored in the RAM 703. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other through a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.
[0068] Various components in the electronic device 700 are connected to the I / O interface 705, including an input unit 706 such as a keyboard, a mouse, etc., an output unit 707 such as various types of displays, a speaker, etc., a storage unit 708 such as a magnetic disk, an optical disk, etc., and a communication unit 709 such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0069] The computing unit 701 can be various general-purpose and / or special-purpose processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, and the like. The computing unit 701 performs various methods and processes described above, such as the methods S101-S103. For example, in some embodiments, the methods S101-S103 can be implemented as a computer software program tangibly embodied in a machine-readable medium, such as the storage unit 708. In some embodiments, part or all of the computer program can be loaded and / or installed onto the electronic device 700 via the ROM 702 and / or the communication unit 709. When the computer program is loaded onto the RAM 703 and executed by the computing unit 701, one or more steps of the methods S101-S104 described above can be performed. Alternatively, in other embodiments, the computing unit 701 can be configured to perform the methods S101-S103 by other any appropriate means, such as by means of firmware. Various implementations of the systems and techniques described above can be realized in digital electronic circuitry, integrated circuitry, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), a system on a chip (SOC), a programmable logic device (CPLD), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include implementation in one or more computer programs that are executable and / or interpretable on a programmable system including at least one programmable processor, which can be special or general purpose, coupled to receive data and instructions from, and to transmit data and instructions to, a storage system, at least one input device, and at least one output device.
[0070] Program code for carrying out methods of the present application can be written in any combination of one or more programming languages. The program code can be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the program code, when executed by the processor or controller, produces a means for implementing the functions / acts specified in the flowcharts and / or block diagrams. The program code can be executed entirely on a machine, partially on a machine, partially on a machine as a stand-alone software package, partially on a machine and partially on a remote machine or entirely on a remote machine or server.
[0071] In the context of the present application, a machine-readable medium can be a tangible medium that can contain or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. Machine-readable storage medium can include, but are not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of the machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0072] To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user and a keyboard and a pointing device (e.g., a mouse or a trackball) by which the user can provide input to the computer. Other kinds of devices can be used to provide for interaction with a user as well; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form, including acoustic, speech, or tactile input.
[0073] The systems and techniques described here can be implemented in a computing system that includes a back end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front end component (e.g., a user computer having a graphical user interface or a Web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back end, middleware, or front end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.
[0074] The computer system can include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server can arise by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0075] It should be understood that the various forms of flow shown above can be used to reorder, add, or remove steps. For example, the steps described in the present application can be performed in parallel, in series, or in a different order, as long as the desired results of the technical solutions of the present application can be achieved, which are not limited herein.
[0076] The above detailed description does not constitute a limitation on the protection scope of the present application. Those skilled in the art should understand that various modifications, combinations, sub-combinations, and substitutions can be made according to design requirements and other factors. Any modifications, equivalent replacements, and improvements made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for early warning of the lifespan of a temperature-controlled crystal oscillator based on historical data fitting, characterized in that, include: The output frequency of the thermostatic crystal oscillator is acquired by a counter, and the output frequency is preprocessed to obtain a normalized frequency. The frequency accuracy is obtained based on the normalized frequency; a fitting curve for the frequency accuracy is constructed using the weighted least squares method. The accuracy of the target frequency prediction is determined based on the fitted curve, and the predicted lifespan of the isothermal crystal oscillator is calculated based on the frequency accuracy. Based on the predicted lifespan of the isothermal crystal oscillator, an early warning of the isothermal crystal oscillator's lifespan is obtained.
2. The method according to claim 1, characterized in that, The preprocessing of the output frequency to obtain the normalized frequency includes: The fundamental frequency is preset, and the ratio of the fundamental frequency to the output frequency is used as the frequency division and multiplication coefficient; The output frequency is normalized according to the frequency division and multiplication coefficients, and the result of the normalization is used as the normalized frequency.
3. The method according to claim 1, characterized in that, After constructing the fitting curve for frequency accuracy, the following steps are also included: A preset frequency accuracy threshold is established, and the frequency accuracy threshold is then corrected. The fitting accuracy of the fitted curve is verified based on the corrected frequency accuracy threshold, and the fitted curve that passes the verification is taken as the final fitted curve.
4. The method according to claim 1, characterized in that, The accuracy of predicting the target frequency based on the fitted curve includes: The initial measurement time of the fitted curve is used as the reference time, and the difference between the other measurement times of the fitted curve and the reference time is used as the time difference; the fitted curve equation is constructed based on the time difference. Iterate through all measurement times of the fitted curve and calculate the frequency accuracy prediction value for the current measurement time based on the fitted curve equation. If the frequency accuracy prediction value is not less than the frequency accuracy threshold, stop iterating and use the current frequency accuracy prediction value as the target frequency accuracy.
5. The method according to claim 4, characterized in that, The method of calculating the predicted lifetime of the temperature-controlled crystal oscillator based on the accuracy of the target frequency includes: The target frequency accuracy is used as the output of the fitted curve equation, and the input data of the fitted curve equation is deduced in reverse. A preset lifetime error range is set, and the input data of the fitted curve equation is corrected according to the lifetime error range. The corrected data is then used as the predicted lifetime of the isothermal crystal oscillator.
6. The method according to claim 1, characterized in that, The method of obtaining a pre-warning of the lifespan of a temperature-controlled crystal oscillator based on the predicted lifespan of the temperature-controlled crystal oscillator includes: If the predicted lifespan of the isothermal crystal oscillator is less than the first lifespan threshold, then the isothermal crystal oscillator lifespan warning is a Level 1 warning. If the predicted lifespan of the isothermal crystal oscillator is not less than the first lifespan threshold and is less than the second lifespan threshold, then the isothermal crystal oscillator lifespan warning is a level two warning. If the predicted lifespan of the isothermal crystal oscillator is not less than the second lifespan threshold, then the isothermal crystal oscillator lifespan warning is a level three warning.
7. A temperature-controlled crystal oscillator lifespan early warning device based on historical data fitting, characterized in that, include: The data acquisition module is used to collect the output frequency of the thermostatic crystal oscillator through a counter, and preprocess the output frequency to obtain a normalized frequency. The curve fitting module is used to obtain the frequency accuracy based on the normalized frequency; and to construct a fitting curve for the frequency accuracy using the weighted least squares method. The lifespan warning module is used to predict the accuracy of the target frequency based on the fitted curve, and to calculate the predicted lifespan of the isothermal crystal oscillator based on the target frequency accuracy, and to obtain the lifespan warning of the isothermal crystal oscillator based on the predicted lifespan of the isothermal crystal oscillator.
8. An electronic device, comprising at least one processor; and a memory communicatively connected to said at least one processor; characterized in that, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-6.
9. A non-transitory computer-readable storage medium storing computer instructions, characterized in that, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-6.