CN113423136A - Crystal oscillator clock calibration method, device, medium and equipment - Google Patents
Crystal oscillator clock calibration method, device, medium and equipment Download PDFInfo
- Publication number
- CN113423136A CN113423136A CN202110692398.XA CN202110692398A CN113423136A CN 113423136 A CN113423136 A CN 113423136A CN 202110692398 A CN202110692398 A CN 202110692398A CN 113423136 A CN113423136 A CN 113423136A
- Authority
- CN
- China
- Prior art keywords
- clock calibration
- terminal equipment
- calibration value
- crystal oscillator
- clock
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04W—WIRELESS COMMUNICATION NETWORKS
- H04W56/00—Synchronisation arrangements
- H04W56/0035—Synchronisation arrangements detecting errors in frequency or phase
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Oscillators With Electromechanical Resonators (AREA)
Abstract
The invention provides a crystal oscillator clock calibration method, a crystal oscillator clock calibration device, a crystal oscillator clock calibration medium and crystal oscillator clock calibration equipment. The method can be applied to terminal equipment, and comprises the following steps: acquiring a reference clock calibration value of a crystal oscillator in terminal equipment; performing clock calibration on a crystal oscillator in the terminal equipment by using the reference clock calibration value; after the clock calibration of the terminal equipment is finished, starting network searching; when the network searching fails, adjusting the size of the reference clock calibration value, performing clock calibration on a crystal oscillator in the terminal equipment by using the adjusted target clock calibration value, restarting the network searching after the clock calibration of the terminal equipment is completed, when the network searching fails, returning to execute the size of the adjusted reference clock calibration value until the Kth time of adjusting the size of the reference clock calibration value, performing clock calibration, restarting the network searching after the clock calibration of the terminal equipment is completed, and successfully searching the network. The method can improve the accuracy of the crystal oscillator clock calibration.
Description
Technical Field
The invention relates to the technical field of terminal equipment, in particular to a crystal oscillator clock calibration method, a crystal oscillator clock calibration device, a crystal oscillator clock calibration medium and crystal oscillator clock calibration equipment.
Background
When a wireless communication module of the terminal device is in transceiving operation, a crystal oscillator provides a clock source (for example, 26MHz), the crystal oscillator has an aging phenomenon, for example, the service life of the crystal oscillator reaches about 5 years, and the frequency offset may be greater than 200ppm, if calibration processing is not performed, the terminal device which can be normally used when originally leaves a factory may exist, after several years of use, the wireless communication module of the terminal device may not be synchronous with the frequency of the base station, and the terminal device may not normally work.
At present, in order to control the frequency deviation of a wireless communication module of a terminal device, during production, a high-precision clock source is used to calibrate a crystal oscillator in the terminal device to obtain a calibration value, and the calibration value is stored in a memory. However, the drawbacks of this are: the crystal oscillator gradually ages along with the time, and even if calibration is carried out by using a calibration value in a memory, the clock frequency generated by the crystal oscillator after calibration still has a very large difference with the base station; in addition, in an actual network, there may be a deviation between the clock of a part of the base stations and the standard clock, so even if the crystal oscillator is not aged and is calibrated by using the calibration value in the memory, it may not be guaranteed that the wireless communication module of the terminal device cannot be synchronized with the frequency of the base station.
Disclosure of Invention
The invention provides a crystal oscillator clock calibration method, terminal equipment, a medium and equipment, which are used for improving the precision of crystal oscillator clock calibration.
In a first aspect, the present invention provides a crystal oscillator clock calibration method, applied to a terminal device, the method including: acquiring a reference clock calibration value of a crystal oscillator in terminal equipment; performing clock calibration on a crystal oscillator in the terminal equipment by using the reference clock calibration value; and starting network searching after the clock calibration of the terminal equipment is finished.
When the network searching fails, adjusting the size of the reference clock calibration value, performing clock calibration on a crystal oscillator in the terminal equipment by using the adjusted target clock calibration value, restarting the network searching after the clock calibration of the terminal equipment is completed, when the network searching fails, returning to execute the size of the adjusted reference clock calibration value until the Kth time of adjusting the size of the reference clock calibration value, performing clock calibration on the crystal oscillator in the terminal equipment by using the adjusted target clock calibration value, restarting the network searching after the clock calibration of the terminal equipment is completed, and successfully searching the network, wherein K is a positive integer.
In this embodiment, after the wireless communication module fails to synchronize with the base station, frequency self-calibration is started, and whether the calibration is completed or not is judged by successful network search.
In one possible design, after the terminal device completes the clock calibration, the reference clock calibration value in the terminal device is also updated to the target clock calibration value obtained by the kth adjustment. In this way, the subsequent terminal device can perform clock calibration based on the target clock calibration value to improve the accuracy of the clock calibration result.
In one possible design, the method further includes: and determining the maximum working clock frequency and the minimum working clock frequency of the crystal oscillator of the terminal equipment according to the product parameters of the crystal oscillator and the current actual working clock frequency of the crystal oscillator. Then the terminal equipment adjusts the size of the reference clock calibration value according to the maximum clock frequency and the minimum clock frequency; so as to ensure that the target clock calibration value obtained by each adjustment meets the condition that the target clock calibration value is greater than or equal to the minimum clock frequency and less than or equal to the maximum clock frequency. The method can ensure that the calibration value of the target clock obtained by the terminal equipment through each adjustment falls into the maximum frequency deviation range and the minimum frequency deviation range.
In one possible design, the terminal device initiates a network search, including: obtaining a plurality of candidate frequency points; network searching is carried out on cells corresponding to the candidate frequency points in sequence; the network searching failure comprises the step of searching a cell suitable for the terminal equipment to reside; the successful network searching comprises that the cell suitable for the terminal equipment to reside is not searched. Therefore, whether the clock calibration of the terminal equipment is effective or not can be accurately judged through whether the network searching is successful or not, so that the rapid clock synchronization between the terminal equipment and the base station can be ensured, and the frequency deviation is avoided.
In one possible design, before the terminal device obtains the reference clock calibration value of the crystal oscillator in the terminal device, the method further includes: and determining that the terminal equipment is in a power-on state. That is to say, the terminal device starts the clock calibration process after each power-on, and the frequency offset problem of the crystal oscillator of the terminal device can be improved by periodically calibrating the clock.
In a second aspect, embodiments of the present application further provide a crystal clock calibration apparatus, which includes a module/unit for performing any one of the possible design methods of the first aspect. These modules/units may be implemented by hardware, or by hardware executing corresponding software.
In a third aspect, an embodiment of the present application provides a terminal device, which includes a processor and a memory. Wherein the memory is used to store one or more computer programs; the one or more computer programs stored in the memory, when executed by the processor, enable the terminal device to implement the method of any one of the possible designs of the first aspect described above.
In a fourth aspect, this embodiment also provides a computer-readable storage medium, where the computer-readable storage medium includes a computer program, and when the computer program is run on an electronic device, the computer program causes the electronic device to perform any one of the possible design methods of the foregoing aspects.
In a fifth aspect, the present application further provides a method including a computer program product, when the computer program product runs on a terminal, causing an electronic device to execute any one of the possible designs of any one of the above aspects.
In a sixth aspect, embodiments of the present application further provide a chip or a chip module, where the chip or the chip module is coupled to a memory and configured to execute a computer program stored in the memory, so that an electronic device executes any one of the possible design methods of any one of the above aspects.
For the beneficial effects of the second to sixth aspects, reference may be made to the description of the first aspect, and repeated descriptions will be omitted.
Drawings
Fig. 1 is a communication system according to an embodiment of the present invention;
fig. 2 is an interactive flow diagram of a crystal clock calibration method according to an embodiment of the present invention;
fig. 3 is an interactive flow diagram of another crystal clock calibration method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a crystal clock calibration apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
This application is intended to present various aspects, embodiments or features around a system that may include a number of devices, components, modules, and the like. It is to be understood and appreciated that the various systems may include additional devices, components, modules, etc. and/or may not include all of the devices, components, modules etc. discussed in connection with the figures. Furthermore, a combination of these schemes may also be used.
Hereinafter, some terms referred to hereinafter will be explained to facilitate understanding by those skilled in the art.
(1) The crystal oscillator refers to a crystal which can convert electric energy and mechanical energy into each other and works in a resonance state to provide stable and accurate single-frequency oscillation. The crystal oscillator is used for providing basic clock signals for the system.
(2) Frequency aging, which refers to the change in the crystal oscillator output frequency over time, is typically measured as the frequency over a time interval. Such as a total change of 0 to 30 days or a predetermined total frequency change over 1 year, etc.
(3) The frequency offset refers to the frequency difference between the wireless communication module clock and the base station clock.
(4) And searching the network, namely, the wireless communication module synchronizes with a base station signal and receives a base station broadcast message.
At present, in order to control the frequency deviation of the wireless communication module of the terminal device, a high-precision clock source is used to calibrate the crystal oscillator in the terminal device during production, but the clock frequency generated by the crystal oscillator after calibration cannot ensure the synchronization with the base station. Therefore, the invention provides a crystal oscillator clock calibration method which can ensure that the frequency self-calibration is started after the synchronization of a wireless communication module and a base station fails, and the synchronization and the communication between the terminal equipment and the base station are recovered.
The technical solution in the embodiments of the present application is described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments of the present application, the terminology used in the following embodiments is for the purpose of describing particular embodiments only and is not intended to be limiting of the present application. As used in the specification of the present application and the appended claims, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, such as "one or more", unless the context clearly indicates otherwise. It should also be understood that in the following embodiments of the present application, "at least one", "one or more" means one or more than two (including two). The term "and/or" is used to describe an association relationship that associates objects, meaning that three relationships may exist; for example, a and/or B, may represent: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship.
Reference throughout this specification to "one embodiment" or "some embodiments," or the like, means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the present application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," or the like, in various places throughout this specification are not necessarily all referring to the same embodiment, but rather "one or more but not all embodiments" unless specifically stated otherwise. The terms "comprising," "including," "having," and variations thereof mean "including, but not limited to," unless expressly specified otherwise. The term "coupled" includes both direct and indirect connections, unless otherwise noted. "first" and "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated.
In the embodiments of the present application, words such as "exemplary" or "for example" are used to mean serving as examples, illustrations or descriptions. Any embodiment or design described herein as "exemplary" or "e.g.," is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The face image processing method provided in the embodiment of the present application may be applied to a terminal device as shown in fig. 1, where fig. 1 shows a hardware configuration block diagram of the terminal device 100.
In some embodiments, the display apparatus 100 includes at least one of a tuner demodulator 110, a communicator 120, a collector 130, an external device interface 140, a controller 150, a display 160, an audio output interface 170, a memory, a power supply, and a user interface 180.
In some embodiments the controller comprises a central processor, a video processor, an audio processor, a graphics processor, a Random Access Memory (RAM), a read-only memory (ROM), a first interface for input/output to an nth interface.
In some embodiments, the display 160 includes a display screen component for displaying pictures, and a driving component for driving image display, a component for receiving image signals from the controller output, displaying video content, image content, and menu manipulation interface, and a user manipulation UI interface, etc.
In some embodiments, the display 160 may be at least one of a liquid crystal display, an OLED display, and a projection display, and may also be a projection device and a projection screen.
In some embodiments, the tuner/demodulator 110 receives broadcast television signals via wired or wireless reception, and demodulates audio/video signals, such as EPG data signals, from a plurality of wireless or wired broadcast television signals.
In some embodiments, communicator 120 is a component for communicating with external devices or servers according to various communication protocol types. For example: the communicator may include at least one of a wireless fidelity (wifi) module, a bluetooth module, a wired ethernet module, or other network communication protocol chip or near field communication protocol chip, and an infrared receiver. The display apparatus 100 may establish transmission and reception of a control signal and a data signal with the control device 100 or the server 400 through the communicator 120.
In some embodiments, the collector 130 is used to collect external environment or signals interacting with the outside. For example, the collector 130 includes a light receiver, a sensor for collecting the intensity of ambient light; alternatively, the collector 130 includes an image collector, such as a camera, which may be used to collect external environment scenes, attributes of the user, or user interaction gestures, or the collector 130 includes a sound collector, such as a microphone, which is used to receive external sounds.
In some embodiments, the external device interface 140 may include, but is not limited to, the following: high Definition Multimedia Interface (HDMI), analog or data high definition component input interface (component), composite video input interface (CVBS), USB input interface (USB), RGB port, and the like. The interface may be a composite input/output interface formed by the plurality of interfaces.
In some embodiments, the controller 150 and the modem 110 may be located in different separate devices, that is, the modem 110 may also be located in an external device of the main device where the controller 150 is located, such as an external set-top box.
In some embodiments, the controller 150 controls the operation of the display device and responds to user actions through various software control programs stored in memory. The controller 150 controls the overall operation of the display apparatus 100. For example: in response to receiving a user command for selecting a UI object to be displayed on the display 160, the controller 150 may perform an operation related to the object selected by the user command.
In some embodiments, the object may be any one of selectable objects, such as a hyperlink, an icon, or other actionable control. The operations related to the selected object are: displaying an operation connected to a hyperlink page, document, image, or the like, or performing an operation of a program corresponding to the icon.
In some embodiments the controller comprises at least one of a Central Processing Unit (CPU), a video processor, an audio processor, a Graphics Processing Unit (GPU), a RAM, a ROM, first to nth interfaces for input/output, a communication Bus (Bus), and the like.
And the central processor is used for executing the operating system and the application program instructions stored in the memory and executing various application programs, data and contents according to various interaction instructions for receiving external input so as to finally display and play various audio and video contents. The central processor may include a plurality of processors. E.g. comprising a main processor and one or more sub-processors.
In some embodiments, a graphics processor for generating various graphics objects, such as: at least one of an icon, an operation menu, and a user input instruction display figure. The graphic processor comprises an arithmetic unit, which performs operation by receiving various interactive instructions input by a user and displays various objects according to display attributes; the system also comprises a renderer for rendering various objects obtained based on the arithmetic unit, wherein the rendered objects are used for being displayed on a display.
In some embodiments, the video processor is configured to receive an external video signal, and perform at least one of video processing such as decompression, decoding, scaling, noise reduction, frame rate conversion, resolution conversion, and image synthesis according to a standard codec protocol of the input signal, so as to obtain a signal displayed or played on the direct display device 100.
In some embodiments, the video processor includes at least one of a demultiplexing module, a video decoding module, an image composition module, a frame rate conversion module, a display formatting module, and the like. The demultiplexing module is used for demultiplexing the input audio and video data stream. And the video decoding module is used for processing the video signal after demultiplexing, including decoding, scaling and the like. And an image synthesis module, such as an image synthesizer, configured to perform superposition and mixing processing on the Graphical User Interface (GUI) signal generated by the graphical generator according to the user input or the GUI signal and the video image after the scaling processing, so as to generate an image signal for display. And the frame rate conversion module is used for converting the frame rate of the input video. And the display formatting module is used for converting the received video output signal after the frame rate conversion, and changing the signal to be in accordance with the signal of the display format, such as an output RGB data signal.
In some embodiments, the audio processor is configured to receive an external audio signal, decompress and decode the received audio signal according to a standard codec protocol of the input signal, and perform at least one of noise reduction, digital-to-analog conversion, and amplification processing to obtain a sound signal that can be played in the speaker.
In some embodiments, a user may enter a user command on a Graphical User Interface (GUI) displayed on the display 160, and the user input interface receives the user input command through the Graphical User Interface (GUI). Alternatively, the user may input the user command by inputting a specific sound or gesture, and the user input interface receives the user input command by recognizing the sound or gesture through the sensor.
In some embodiments, a "user interface" is a media interface for interaction and information exchange between an application or operating system and a user that enables conversion between an internal form of information and a form that is acceptable to the user. A commonly used presentation form of the user interface is a Graphical User Interface (GUI), which refers to a user interface related to computer operations and displayed in a graphical manner. It may be an interface element such as an icon, a window, a control, etc. displayed in the display screen of the electronic device, where the control may include at least one of an icon, a button, a menu, a tab, a text box, a dialog box, a status bar, a navigation bar, a Widget, etc. visual interface elements.
In some embodiments, user interface 180 is an interface that can be used to receive control inputs (e.g., physical keys on the body of the display device, or the like).
In specific implementation, the terminal device 100 may be a mobile phone, a tablet computer, a handheld computer, a Personal Computer (PC), a cellular phone, a Personal Digital Assistant (PDA), a wearable device (e.g., a smart watch), a smart home device (e.g., a television), a vehicle-mounted computer, a game machine, and an Augmented Reality (AR) \ Virtual Reality (VR) device, and the like, and the specific device form of the terminal device 100 is not particularly limited in this embodiment.
Based on the terminal device shown in fig. 1, an embodiment of the present application provides a flowchart of a crystal clock calibration method, as shown in fig. 2, where the flowchart of the method may be executed by the terminal device, and the method includes the following steps:
s201, the terminal equipment obtains a reference clock calibration value of a crystal oscillator in the terminal equipment.
And S202, the terminal equipment performs clock calibration on a crystal oscillator in the terminal equipment by using the reference clock calibration value.
And S203, after the clock calibration of the terminal equipment is completed, the terminal equipment starts network searching.
S204, when the network searching fails, the terminal equipment adjusts the size of the reference clock calibration value, performs clock calibration on a crystal oscillator in the terminal equipment by using the adjusted target clock calibration value, restarts the network searching after the clock calibration of the terminal equipment is completed, returns to execute the adjustment of the size of the reference clock calibration value until the Kth time adjustment of the size of the reference clock calibration value, performs clock calibration on the crystal oscillator in the terminal equipment by using the adjusted target clock calibration value, restarts the network searching after the clock calibration of the terminal equipment is completed, and succeeds in network searching.
In the step, the terminal equipment can adjust the size of the reference clock calibration according to the set step length every time, then the adjusted target clock calibration value is used for carrying out clock calibration on the crystal oscillator in the terminal equipment, therefore, the network searching is restarted after the clock calibration of the terminal equipment is finished, whether a proper resident cell is found or not is judged according to the received reference received signal power, and if the proper resident cell is not found, the step of adjusting the size of the reference clock calibration according to the set step length is returned until the proper resident cell is found. Therefore, after the wireless communication module fails to synchronize with the base station, frequency self-calibration is started, whether the calibration is completed or not is judged through successful network searching, and the method can improve the precision of the crystal oscillator clock calibration, so that the clock synchronization and the normal communication between the terminal equipment and the base station are recovered.
In a possible embodiment, the method may occur after each power-on of the terminal device, that is, the terminal device starts the clock calibration procedure after each power-on, and the frequency offset problem of the crystal oscillator of the terminal device can be improved by periodically calibrating the clock.
In addition, in the method, the terminal device may further determine a maximum working clock frequency and a minimum working clock frequency of the crystal oscillator of the terminal device according to the product parameter of the crystal oscillator and the current actual working clock frequency of the crystal oscillator, and adjust the reference clock calibration value according to the maximum clock frequency and the minimum clock frequency, so that the target clock calibration value obtained by each adjustment is greater than or equal to the minimum clock frequency and less than or equal to the maximum clock frequency. The method can ensure that the calibration value of the target clock obtained by the terminal equipment through each adjustment falls into the maximum frequency deviation range and the minimum frequency deviation range.
In a possible embodiment, the reference clock calibration value in the terminal equipment is updated to the target clock calibration value obtained by the K-th adjustment. Therefore, the clock can be quickly synchronized between the terminal equipment and the base station in the follow-up process, and the frequency deviation is avoided.
In order to describe the above crystal oscillator clock calibration method more systematically, the present invention further provides a method flow, which may include the following steps.
S301, the terminal device uses the reference clock calibration value T to perform clock calibration on a crystal oscillator in the terminal device, and then network searching is started after the clock calibration of the terminal device is completed.
And S302, the terminal equipment judges whether the network searching is successful, if so, the network searching is finished, and if not, the S303 is executed.
And S303, when the network searching fails, the terminal equipment upwards adjusts the size of the reference clock calibration value according to a set step S, and performs clock calibration on a crystal oscillator in the terminal equipment by using the adjusted target clock calibration value R ═ T + (n × S) HZ, wherein n ═ 1.
And S304, the terminal equipment judges whether the network searching is successful, if so, S309 is executed, and if not, S305 is executed.
And S305, when the network searching fails, the terminal equipment downwards adjusts the size of the reference clock calibration value according to a set step S, and performs clock calibration on a crystal oscillator in the terminal equipment by using the adjusted target clock calibration value R-T- (n-S) HZ, wherein n-1.
And S306, the terminal equipment judges whether the network searching is successful, if so, S309 is executed, and if not, S307 is executed.
S307, when the network search fails, the terminal device adjusts n to n +1, and then executes S308.
And S308, the terminal judges whether n S is smaller than beta or not, wherein beta is the adjustment range of the maximum frequency deviation. If so, go back to step S303, otherwise go to step S309.
S309, when the network searching is successful, the terminal updates the reference clock calibration value T to the target clock calibration value R.
In summary, in the above implementation, the method performs the calibration of the crystal oscillator clock, the wireless communication module starts frequency self-calibration after synchronization with the base station fails, and whether the calibration is completed or not is judged successfully by searching the network.
In some embodiments of the present application, the present application further discloses a crystal clock calibration apparatus, as shown in fig. 4, which is configured to implement the method described in the above method embodiments, and includes: an obtaining unit 401 configured to obtain a reference clock calibration value of a crystal oscillator in the terminal device, and a calibrating unit 402 configured to perform clock calibration on the crystal oscillator in the terminal device by using the reference clock calibration value; a network searching unit 403, configured to start network searching after clock calibration of the terminal device is completed; the calibration unit 402 is further configured to, when the network search fails, adjust the size of the reference clock calibration value, and perform clock calibration on the crystal oscillator in the terminal device by using the adjusted target clock calibration value;
the network searching unit 403 is further configured to restart network searching after the clock calibration of the terminal device is completed;
the calibration unit 402 is further configured to, when the search fails, return to perform adjustment of the reference clock calibration value until the kth time is reached, perform clock calibration on the crystal oscillator in the terminal device by using the adjusted target clock calibration value, restart the network search after the clock calibration of the terminal device is completed, where K is a positive integer, and the network search is successful.
In a possible embodiment, the method further comprises a determining unit 404 for determining a maximum operating clock frequency and a minimum operating clock frequency of a crystal oscillator of the terminal device according to the product parameter of the crystal oscillator and a current actual operating clock frequency of the crystal oscillator. So that the calibration unit 402 adjusts the reference clock calibration value according to the maximum clock frequency and the minimum clock frequency; and the target clock calibration value obtained by each adjustment meets the condition that the target clock calibration value is greater than or equal to the minimum clock frequency and is less than or equal to the maximum clock frequency.
All relevant contents of each step related to the above method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again.
In other embodiments of the present application, an embodiment of the present application discloses a terminal device, and as shown in fig. 5, the terminal device may include: one or more processors 501; a memory 502; a display 503; one or more application programs (not shown); and one or more computer programs 504, which may be connected via one or more communication buses 505. Wherein the one or more computer programs 504 are stored in the memory 502 and configured to be executed by the one or more processors 501, the one or more computer programs 504 comprising instructions which may be used to perform the steps as in fig. 2 and 4 and the corresponding embodiments.
Through the above description of the embodiments, it is clear to those skilled in the art that, for convenience and simplicity of description, the foregoing division of the functional modules is merely used as an example, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device may be divided into different functional modules to complete all or part of the above described functions. For the specific working processes of the system, the apparatus and the unit described above, reference may be made to the corresponding processes in the foregoing method embodiments, and details are not described here again.
Each functional unit in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or make a contribution to the prior art, or all or part of the technical solutions may be implemented in the form of a software product stored in a storage medium and including several instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor to execute all or part of the steps of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: flash memory, removable hard drive, read only memory, random access memory, magnetic or optical disk, and the like.
The above description is only a specific implementation of the embodiments of the present application, but the scope of the embodiments of the present application is not limited thereto, and any changes or substitutions within the technical scope disclosed in the embodiments of the present application should be covered by the scope of the embodiments of the present application. Therefore, the protection scope of the embodiments of the present application shall be subject to the protection scope of the claims.
Claims (12)
1. A crystal oscillator clock calibration method is applied to terminal equipment and is characterized by comprising the following steps:
acquiring a reference clock calibration value of a crystal oscillator in the terminal equipment;
performing clock calibration on a crystal oscillator in the terminal equipment by using the reference clock calibration value;
after the clock calibration of the terminal equipment is completed, starting network searching;
when the network searching fails, adjusting the size of the reference clock calibration value, performing clock calibration on a crystal oscillator in the terminal equipment by using the adjusted target clock calibration value, restarting the network searching after the clock calibration of the terminal equipment is completed, when the network searching fails, returning to execute the adjustment of the size of the reference clock calibration value until the Kth time adjustment of the size of the reference clock calibration value, performing clock calibration on the crystal oscillator in the terminal equipment by using the adjusted target clock calibration value, restarting the network searching after the clock calibration of the terminal equipment is completed and the network searching is successful, wherein K is a positive integer.
2. The method of claim 1, further comprising:
and updating the reference clock calibration value in the terminal equipment to a target clock calibration value obtained by the Kth adjustment.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
determining the maximum working clock frequency and the minimum working clock frequency of the crystal oscillator of the terminal equipment according to the product parameters of the crystal oscillator and the current actual working clock frequency of the crystal oscillator;
the adjusting the size of the reference clock calibration value comprises:
adjusting the size of the reference clock calibration value according to the maximum clock frequency and the minimum clock frequency;
and the target clock calibration value obtained by each adjustment meets the condition that the target clock calibration value is greater than or equal to the minimum clock frequency and is less than or equal to the maximum clock frequency.
4. The method according to any one of claims 1 to 3, wherein the initiating network search comprises: obtaining a plurality of candidate frequency points; network searching is carried out on cells corresponding to the candidate frequency points in sequence;
the network searching failure comprises searching a cell suitable for the terminal equipment to reside; and the successful network searching comprises that the cell suitable for the terminal equipment to reside is not searched.
5. The method according to any one of claims 1 to 3, wherein before obtaining the reference clock calibration value of the crystal oscillator in the terminal device, further comprising:
and determining that the terminal equipment is in a power-on state.
6. A crystal clock calibration apparatus, the apparatus comprising:
the acquisition unit is used for acquiring a reference clock calibration value of a crystal oscillator in the terminal equipment;
the calibration unit is used for carrying out clock calibration on a crystal oscillator in the terminal equipment by utilizing the reference clock calibration value;
the network searching unit is used for starting network searching after the clock calibration of the terminal equipment is finished;
the calibration unit is further configured to adjust the size of the reference clock calibration value when the network search fails, and perform clock calibration on a crystal oscillator in the terminal device by using the adjusted target clock calibration value;
the network searching unit is further configured to restart network searching after the clock calibration of the terminal device is completed;
the calibration unit is further configured to, when the search fails, return to perform adjustment of the size of the reference clock calibration value until the kth time of adjustment of the size of the reference clock calibration value, perform clock calibration on the crystal oscillator in the terminal device by using the adjusted target clock calibration value, restart the network search after the clock calibration of the terminal device is completed, and perform the network search successfully, where K is a positive integer.
7. The apparatus of claim 6, further comprising:
and the calibration value updating unit is used for updating the reference clock calibration value in the terminal equipment to the target clock calibration value obtained by the Kth adjustment.
8. The apparatus of claim 6 or 7, further comprising:
the determining unit is used for determining the maximum working clock frequency and the minimum working clock frequency of the crystal oscillator of the terminal equipment according to the product parameters of the crystal oscillator and the current actual working clock frequency of the crystal oscillator;
when the calibration unit adjusts the size of the reference clock calibration value, the calibration unit is specifically configured to:
adjusting the size of the reference clock calibration value according to the maximum clock frequency and the minimum clock frequency;
and the target clock calibration value obtained by each adjustment meets the condition that the target clock calibration value is greater than or equal to the minimum clock frequency and is less than or equal to the maximum clock frequency.
9. The apparatus according to any one of claims 6 to 8, wherein the web searching unit, when initiating a search, is configured to: obtaining a plurality of candidate frequency points; network searching is carried out on cells corresponding to the candidate frequency points in sequence;
the network searching failure comprises searching a cell suitable for the terminal equipment to reside; and the successful network searching comprises that the cell suitable for the terminal equipment to reside is not searched.
10. The apparatus according to any of claims 6 to 8, wherein the obtaining unit, before obtaining the reference clock calibration value of the crystal oscillator in the terminal device, is further configured to:
the method comprises the steps of obtaining the state of the terminal equipment, wherein the state of the terminal equipment is a power-on state.
11. A terminal device, characterized in that it comprises N antennas for transceiving signals, a memory and a processor, said memory having stored thereon a computer program being executable on said processor, said computer program, when being executed by said processor, causing said terminal device to carry out the method according to any of the claims 1 to 5.
12. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method of any one of claims 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110692398.XA CN113423136A (en) | 2021-06-22 | 2021-06-22 | Crystal oscillator clock calibration method, device, medium and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110692398.XA CN113423136A (en) | 2021-06-22 | 2021-06-22 | Crystal oscillator clock calibration method, device, medium and equipment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN113423136A true CN113423136A (en) | 2021-09-21 |
Family
ID=77716059
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110692398.XA Pending CN113423136A (en) | 2021-06-22 | 2021-06-22 | Crystal oscillator clock calibration method, device, medium and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN113423136A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114528998A (en) * | 2022-01-26 | 2022-05-24 | 山东浪潮科学研究院有限公司 | Multi-board-card signal synchronization method, device and medium for quantum measurement and control system |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140004887A1 (en) * | 2012-06-29 | 2014-01-02 | Qualcomm Incorporated | Crystal oscillator calibration |
CN105050159A (en) * | 2014-04-14 | 2015-11-11 | 马维尔国际有限公司 | Method and device for cell search and user equipment |
-
2021
- 2021-06-22 CN CN202110692398.XA patent/CN113423136A/en active Pending
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20140004887A1 (en) * | 2012-06-29 | 2014-01-02 | Qualcomm Incorporated | Crystal oscillator calibration |
CN105050159A (en) * | 2014-04-14 | 2015-11-11 | 马维尔国际有限公司 | Method and device for cell search and user equipment |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN114528998A (en) * | 2022-01-26 | 2022-05-24 | 山东浪潮科学研究院有限公司 | Multi-board-card signal synchronization method, device and medium for quantum measurement and control system |
CN114528998B (en) * | 2022-01-26 | 2023-05-12 | 山东浪潮科学研究院有限公司 | Multi-board card signal synchronization method, equipment and medium for quantum measurement and control system |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP4044616A1 (en) | Method and apparatus for generating video, electronic device, and computer readable medium | |
CN107770457B (en) | Video production method, mobile terminal and computer readable storage medium | |
US10923021B2 (en) | Method for displaying time information and electronic device supporting the same | |
US20130212514A1 (en) | Method and Device for Displaying Start-Up Interface of Multimedia Terminal | |
US20220365985A1 (en) | Page jump method and apparatus, electronic device and computer-readable storage medium | |
KR20220124797A (en) | Method and apparatus for displaying caption information, electronic device and computer readable medium | |
US11710510B2 (en) | Video generation method and apparatus, electronic device, and computer readable medium | |
US20180262709A1 (en) | Image display apparatus and operation method thereof | |
US20240064367A1 (en) | Video processing method and apparatus, electronic device, and storage medium | |
CN113423136A (en) | Crystal oscillator clock calibration method, device, medium and equipment | |
CN114339069B (en) | Video processing method, video processing device, electronic equipment and computer storage medium | |
US20240177374A1 (en) | Video processing method, apparatus and device | |
EP3316588B1 (en) | Display apparatus and method of displaying content | |
CN108924664B (en) | Synchronous display method and terminal for program subtitles | |
CN112017261A (en) | Sticker generation method and device, electronic equipment and computer readable storage medium | |
CN115619904A (en) | Image processing method, device and equipment | |
CN113423132A (en) | Shutdown early warning method, shutdown early warning device, shutdown early warning medium and shutdown early warning equipment | |
CN113114849A (en) | Alarm clock reminding method and device, storage medium and terminal | |
CN112256176A (en) | Character display method and device, electronic equipment and computer readable storage medium | |
WO2022121436A1 (en) | Subtitle adjustment method and display device | |
JP2019139503A (en) | Language setting device and display device | |
US12020347B2 (en) | Method and apparatus for text effect processing | |
CN115480784A (en) | Image file flashing method, image file parsing device, image file equipment and image file medium | |
CN113014964B (en) | Method, device and system for generating spliced wall back display code stream and readable storage medium | |
CN114398131B (en) | Information display method, device, equipment, medium and program product |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20210921 |