Clock frequency adjustment method, electronic device, and storage medium
By obtaining the positioning performance parameters and scene detection information of the terminal equipment, dynamic compensation and adjustment of the clock frequency are solved, and the positioning accuracy and poor communication performance caused by the clock frequency deviation of the terminal equipment are solved, and adaptive high-precision positioning and communication performance are achieved.
Patent Information
- Application Number
- PCT/CN2025/074546
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2024-02-08
- Filing Date
- 2025-01-24
- Publication Date
- 2025-08-14
AI Technical Summary
Due to the reduction in positioning accuracy and poor communication performance caused by the clock frequency deviation of the terminal equipment, especially under the requirements of high-precision positioning, it is difficult for the prior art to provide a comprehensive and adaptive clock frequency adjustment method.
By obtaining the positioning performance parameters and scene detection information of the terminal device, dynamic compensation and adjustment of the clock frequency of the terminal device, including trim compensation adjustment, temperature control adjustment and multi-frequency joint adjustment, etc., to achieve adaptive clock frequency calibration.
It improves the positioning accuracy and communication performance of terminal devices in different environments and scenarios, ensuring that the optimal positioning performance can be obtained in extreme environments or weak signal scenarios.
Smart Images

Figure CN2025074546_14082025_PF_FP_ABST
Abstract
Description
Clock frequency adjustment method, electronic device and storage medium
[0001] Cross-references
[0002] This application claims priority to the Chinese patent application filed with the China Patent Office on February 8, 2024, with application number 202410178265.4 and invention name “Clock frequency adjustment method, electronic device and storage medium”. The entire contents of the application are incorporated by reference into this application. Technical Field
[0003] Embodiments of the present application relate to the field of clock frequency adjustment, and in particular to a clock frequency adjustment method, electronic device, and storage medium. Background Art
[0004] With the development of mobile communications and positioning technology, mobile phone positioning services have become the most promising business. Traditional independent Global Navigation Satellite System (GNSS) positioning, combined with base station assistance and mobile network support, has formed the current positioning method, which is mainly based on Assisted Global Positioning System (AGPS).
[0005] With the growing demand for in-vehicle navigation and autonomous driving, the need for high-precision positioning is also increasing. High-precision positioning requires sub-meter or even centimeter-level accuracy. High-precision positioning requires strict time synchronization between GPS and base station wireless networks. However, in actual operation, terminal devices may experience delays or drifts of several milliseconds due to their own clock frequency deviation. The time errors caused by non-synchronization can increase positioning errors and reduce positioning accuracy. The performance of the terminal device's cellular and wireless local area network (Wireless Fidelity, WiFi) can also be significantly affected. Therefore, the development of a comprehensive and adaptive high-precision clock frequency adjustment method has become a pressing technical challenge. Summary of the Invention
[0006] Embodiments of the present application provide a clock frequency adjustment method, an electronic device, and a storage medium.
[0007] In a first aspect, an embodiment of the present application provides a clock frequency adjustment method, the method comprising: obtaining positioning performance parameters of a terminal device; when the positioning performance parameters do not meet preset conditions, obtaining the current terminal status information and / or scene detection information of the terminal device, and compensating and adjusting the clock frequency of the terminal device based on the terminal status information and / or the scene detection information.
[0008] In a second aspect, an embodiment of the present application provides an electronic device comprising: one or more processors; a memory on which one or more programs are stored, and when the one or more programs are executed by the one or more processors, the one or more processors implement the clock frequency adjustment method described in the first aspect above.
[0009] In a third aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the clock frequency adjustment method described in the first aspect above. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation to the technical solution of the present invention.
[0011] FIG1 is a flow chart of a clock frequency adjustment method provided in an embodiment of the present application;
[0012] FIG2 is a flow chart of a clock frequency adjustment method provided in an embodiment of the present application;
[0013] FIG3 is a schematic diagram of a trim offset compensation adjustment mode provided in an embodiment of the present application;
[0014] FIG4 is a schematic diagram of a temperature control adjustment mode provided in an embodiment of the present application;
[0015] FIG5 is a schematic diagram of a multi-frequency joint adjustment mode provided in an embodiment of the present application;
[0016] FIG6 is a schematic diagram of a cumulative error adjustment mode provided in an embodiment of the present application;
[0017] FIG7 is a schematic diagram of a multi-scenario adjustment mode provided in an embodiment of the present application;
[0018] FIG8 is a schematic diagram of a clock information library provided in an embodiment of the present application;
[0019] FIG9 is a flow chart of a clock frequency adjustment method according to an embodiment of the present application;
[0020] FIG10 is a schematic diagram of the device structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0021] In order to make the purpose, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0022] It should be understood that in the description of the embodiments of the present application, if there is a description of "first", "second", etc., it is only for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features. "At least one" means one or more, and "more" means two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships. For example, A and / or B can indicate the existence of A alone, the existence of A and B at the same time, and the existence of B alone. A and B can be singular or plural. The character " / " generally indicates that the previous and next associated objects are in an "or" relationship. "At least one of the following" and similar expressions refer to any group of these items, including any group of single or plural items. For example, at least one of a, b and c can indicate: a, b, c, a and b, a and c, b and c, or a, b and c, where a, b, c can be single or multiple.
[0023] In addition, the technical features involved in the various embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.
[0024] With the development of mobile communications and positioning technology, mobile phone positioning services have become the most promising business. Traditional independent Global Navigation Satellite System (GNSS) positioning, combined with base station assistance and mobile network support, has formed the current positioning method, which is mainly based on Assisted Global Positioning System (AGPS).
[0025] The GPS positioning system consists of three parts: a satellite constellation, a ground monitoring system, and a terminal device. The terminal device observes and calculates the distance to at least four navigation satellites to obtain the real-time position of the terminal device. The GPS receiving circuit of the terminal device consists of a GPS receiving chip, a front-end filter, a low-noise amplifier (LNA), a post-filter, an antenna module, and a clock circuit module. The front-end of the clock circuit module can be a crystal oscillator (XO), a temperature-compensated crystal oscillator (TCXO), a voltage-controlled temperature-compensated crystal oscillator (VCTCXO), or an oven-controlled crystal oscillator (OCXO). Due to cost reasons, ordinary crystal oscillators XOs are most commonly used. The back-end of the clock circuit module can be a phase-locked loop (PLL) and a frequency division module.
[0026] Although a crystal oscillator has a certain resonant frequency, such as 76.8MHz, it doesn't always operate at this frequency. Instead, it experiences a frequency deviation, measured in parts per million (PPM). For example, if the initial frequency deviation is 50 PPM, if the frequency deviation exceeds a certain threshold, certain modules in the terminal device will not function properly, resulting in the terminal being unable to register and find a network, perform GPS positioning, or perform Wi-Fi demodulation. For terminal devices from different batches, variations in crystal material batches, model differences, and tolerances of surrounding capacitors and resistors can all lead to variations in crystal load capacitance, resulting in frequency deviation. Furthermore, even when the same terminal device is operating, temperature can affect the crystal oscillator and cause frequency deviation.
[0027] With the growing demand for in-vehicle navigation and autonomous driving, the need for high-precision positioning is also increasing. High-precision positioning requires sub-meter or even centimeter-level accuracy. High-precision positioning requires strict time synchronization between GPS and base station wireless networks. However, in actual operation, terminal devices may experience delays or drifts of several milliseconds due to their own clock frequency deviation. The time errors caused by time desynchronization can increase positioning errors and reduce positioning accuracy. It can also significantly affect the cellular and Wi-Fi performance of terminal devices. Therefore, the development of a comprehensive and adaptive high-precision clock frequency adjustment method has become a pressing technical challenge.
[0028] Based on this, embodiments of the present application provide a clock frequency adjustment method, an electronic device, and a storage medium, which can achieve adaptive adjustment of clock frequency deviation.
[0029] The present application first proposes a clock frequency adjustment method, which can be applied to a terminal device with positioning capabilities. In some embodiments, the terminal device can be a handheld device, an in-vehicle device, or the like, such as a mobile phone, a tablet computer, a laptop computer, a PDA, a wearable device, or an in-vehicle computer. See FIG1 , which illustrates a flow chart of a clock frequency adjustment method provided in the present application. As shown in FIG1 , the clock frequency adjustment method includes, but is not limited to, steps S110 and S120.
[0030] Step S110: Acquire positioning performance parameters of the terminal device.
[0031] It can be understood that the positioning performance parameters, that is, the GNSS positioning performance parameters of the terminal device, are obtained by measuring the current positioning performance of the terminal device, such as the positioning speed, positioning accuracy, etc.
[0032] In some embodiments, the positioning performance parameters include at least one of the following: first fix time, cold start time, hot start time, positioning accuracy, positioning track offset, number of positioning satellites, and carrier-to-noise ratio.
[0033] Correspondingly, the clock frequency adjustment method further includes: comparing the positioning performance parameter with a preset positioning performance threshold, and determining whether the positioning performance parameter meets a preset condition based on the comparison result.
[0034] It can be understood that the time to first fix (TTFF) refers to the time required for the terminal device as a receiver to successfully obtain positioning information for the first time from startup; the cold start time refers to the time required for the receiver to successfully obtain positioning information for the first time when it has not been used for a long time or has been moved to a new area and then restarted; the hot start time refers to the time required for the receiver to successfully obtain positioning information for the first time when it is restarted in a relatively short time and some satellite information is saved; positioning accuracy refers to the accuracy of the measured position, usually expressed as errors in the horizontal and vertical directions; the positioning track offset refers to the track deviation generated by the positioning system when tracking an object; the number of positioning satellites refers to the number of satellites in the positioning system, that is, used to assist the terminal device in positioning; the carrier-to-noise ratio (CN0) refers to the ratio of the satellite signal strength received by the terminal device to the background noise. A higher carrier-to-noise ratio usually indicates better signal quality.
[0035] After obtaining the current positioning performance parameters of the terminal device, the positioning performance parameters are compared with the corresponding positioning performance thresholds to determine whether the current positioning performance of the terminal device can meet the requirements. For example, the current hot start time of the terminal device is obtained, and the hot start time is compared with the preset hot start time threshold. If the hot start time is too long, that is, the positioning speed of the terminal device is slow, the clock frequency of the terminal device needs to be adjusted accordingly.
[0036] It should be noted that the above-mentioned collected values are sent by the satellite, pass through the GPS receiving antenna, front-end filter, LNA, and post-stage filter of the terminal device to the RF chip of the built-in GPS receiver, and then are transmitted to the baseband chip, and then to the AP processor for processing. Finally, they can be reported as direct UI interface parameter values.
[0037] Step S120: When the positioning performance parameters do not meet the preset conditions, obtain the current terminal status information and / or scene detection information of the terminal device, and compensate and adjust the clock frequency of the terminal device according to the terminal status information and / or scene detection information.
[0038] In an embodiment of the present application, when the positioning performance of the terminal device does not meet the preset conditions, the current terminal status and the scene in which the terminal device is located are detected, and the clock frequency of the terminal device is adaptively adjusted in a dynamic compensation adjustment manner according to the current status information and scene information of the terminal device, and the clock calibration is converted from traditional production calibration to terminal adaptive calibration. The terminal device can self-adjust the clock frequency in the existing network and the current scene, and no longer relies on traditional production clock calibration parameters. This can solve the problem of poor positioning performance and communication performance of the terminal device due to clock frequency deviation, so that the terminal device can obtain optimal positioning performance in extreme environments or weak signal scenarios.
[0039] In some embodiments, the scene detection information includes at least one of the following: terminal environment temperature, network environment information, positioning satellite information, terminal motion state information, and terminal scene information.
[0040] It should be noted that the terminal ambient temperature includes the board-level temperature, crystal temperature and ambient temperature of the terminal device; network environment information refers to the network standard information currently used by the terminal device, such as 2G, 3G, LTE or NR; positioning satellite information refers to the type of positioning satellite and operating frequency currently used by the terminal device, such as GPS, GLONASS, QZSS, Galileo, Beidou, and the operating frequency is such as L1, L2, L5 or a combination thereof; terminal motion state information includes stationary working state and moving working state, stationary working state such as positioning, satellite signal transmission and reception, moving working state such as navigation, satellite signal reception while moving; terminal scene information occlusion conditions, such as full sky, half sky, canyon or indoor, special geocentric, such as elevated road, tunnel, bridge, etc.
[0041] Specifically, the board-level temperature and ambient temperature can be detected through the built-in thermistor or temperature sensor of the terminal device, the current network mode of the terminal device can be detected through the network standard detection module, the type of positioning satellite and the operating frequency currently used by the terminal device can be identified through the satellite identification interface, the indoor and outdoor scenes currently located by the terminal device can be identified through the latitude and longitude positioning module, the current altitude difference of the terminal device can be identified through the altimeter, and the current surrounding environment of the terminal device can be identified through terminal components such as the front camera, rear camera, light sensor or proximity sensor.
[0042] It's understandable that different environments and scenarios require different GPS clock accuracy. Higher positioning accuracy, more complex scenarios, and harsher environments require higher clock frequency deviation. Therefore, the adjustment mode required for the current scenario can be determined based on acquired scene detection information. Clock trim adjustments can then be performed accordingly to further reduce clock frequency deviation and achieve high-precision positioning scenario adaptation.
[0043] In some embodiments, please see Figure 2, which shows a flow chart of a clock frequency adjustment method provided in an embodiment of the present application. As shown in Figure 2, the clock frequency of the terminal device is trimmed and adjusted based on the terminal status information and / or scene detection information, including step S210 and step S220.
[0044] Step S210: Determine at least one adjustment mode according to the terminal status information and / or the scene detection information.
[0045] Step S220: performing clock trim compensation adjustment on the terminal device according to the adjustment mode.
[0046] It should be noted that trim refers to a module in an oscillator circuit for adjusting the clock frequency, and a trim value refers to a fine-tuning parameter for adjusting the clock frequency. By fine-tuning the trim value, the oscillator can be calibrated to the desired operating frequency, and trim fine-tuning can be achieved by changing the capacitance or resistance value in the oscillator circuit. In the case where the positioning performance parameters do not meet the preset conditions, it is necessary to adjust the clock frequency of the crystal oscillator in the terminal device. In an embodiment of the present application, the current terminal status information and / or scene detection information of the terminal device is first obtained, and at least one adjustment mode is determined according to the current terminal status and / or the scene in which the terminal device is located. The clock frequency of the terminal device is adjusted in a trim dynamic compensation adjustment manner according to the adjustment mode, which can convert the clock trim value adjustment from a traditional static call to a dynamic adjustment.
[0047] It is understood that when the current positioning performance parameters of the terminal device do not meet the preset conditions, the current terminal status information and / or scene detection information of the terminal device is obtained, and based on the obtained terminal status information and / or scene detection information, the cause of the poor positioning performance of the terminal device is determined and the corresponding adjustment mode is determined accordingly. On the one hand, the adjustment mode executed by the terminal device can be determined based only on the current terminal status information of the terminal device, or based only on the current scene detection information of the terminal device, or based on both the current terminal status information and the scene detection information of the terminal device. On the other hand, there can be multiple adjustment modes determined based on the terminal status information and / or scene detection information. The clock trim compensation adjustment of the terminal device can be a single adjustment or a combined adjustment. For example, an adjustment mode is determined based on the terminal status information and / or scene detection information, but after the clock trim compensation adjustment of the terminal device is performed according to the single adjustment mode, the positioning performance still cannot meet the requirements. Then, multiple other adjustment modes can be used for combined adjustment until the positioning performance meets the requirements. For example, if multiple adjustment modes are determined based on the terminal status information and / or scene detection information, multiple adjustment modes can be used to simultaneously perform combined compensation adjustment on the clock trim value of the terminal device.
[0048] In some embodiments, the terminal status information includes clock frequency parameters, and the clock frequency parameters include at least one of the following: coarse calibration clock value, fine calibration clock value, self-calibration clock value, extreme temperature clock value, cellular frequency error value, wireless frequency error value, and multi-frequency positioning frequency error value.
[0049] Correspondingly, determining at least one adjustment mode according to the terminal status information and / or the scene detection information includes: comparing the clock frequency deviation parameter with a preset frequency deviation threshold, and determining at least one adjustment mode according to the comparison result.
[0050] It should be noted that obtaining the coarse-calibrated clock value requires working at a non-high temperature (such as room temperature at 25°), or the initial crystal temperature compensation is lower than 45°. At this time, the RF power amplifier module does not work, and the frequency error is changed by setting the trim value. After coarse calibration, the initial trim value, i.e., the coarse-calibrated clock value, is obtained. To obtain the fine-calibrated clock value, the RF module needs to be driven to work, the terminal board is heated, the power amplifier is heated, a temperature-frequency curve is formed, and the relationship curve between the clock frequency and temperature of the crystal oscillator is measured. In addition, the power amplifier works at maximum power. In addition, fine calibration also includes DC calibration, by further adjusting the trim value and DC The offset value reduces the clock frequency offset to within + / - 2ppm, ultimately obtaining the calibrated clock value. The live network self-calibration clock value refers to the clock frequency offset calibration value obtained through self-calibration in the current network environment. The extreme temperature clock value refers to the clock frequency offset and trim compensation value when the terminal device operates in an environment above 60°C and below -10°C. The cellular frequency error value refers to the frequency error value of the terminal device in different cellular network standards during operation, such as NR, LTE, WCDMA, CDMA, and GSM. The wireless frequency error value refers to the frequency error value of the terminal in different wireless modes during operation, such as Wi-Fi and Bluetooth. The multi-frequency positioning frequency error value refers to the frequency error value of the terminal in different positioning satellite bands during operation, such as the L1, L2, and L5 bands of GPS, Glonass, QZSS, SBAS, Galileo, and Beidou positioning satellites. By collecting the above clock frequency parameters and comparing the clock frequency parameters with corresponding target thresholds, if the clock frequency parameters exceed the target thresholds, corresponding adjustment modes can be determined for different frequency deviation types.
[0051] It should be noted that XO crystal calibration can be performed on a one-to-one basis for each terminal through a specific procedure and calibration script. The clock source can be an XO, TCXO, or VCTCXO. The purpose of calibration is to determine the crystal frequency and the operating temperature of the terminal device. Clock calibration must be based on the specific 1X / GSM / WCDMA / LTE / NR format, as well as the specified frequency band, channel, receive frequency and offset value, number of samples, sampling time, temperature range, calibration procedure, and script to obtain various clock parameter values.
[0052] In some embodiments, the adjustment mode is a trim offset compensation adjustment mode, and clock trim compensation adjustment is performed on the terminal device according to the adjustment mode, including at least one of steps S310 to S340.
[0053] Step S310, obtaining the single-board calibration reference range of the terminal device, and when the current clock trim value of the terminal device exceeds the single-board calibration reference range, performing clock trim compensation adjustment on the terminal device by adjusting the variable capacitor of the trim adjustment circuit in the terminal device.
[0054] Step S320: Acquire a chip trim standard value corresponding to the crystal oscillator of the terminal device, and perform clock trim compensation adjustment on the terminal device according to the chip trim standard value.
[0055] Step S330: Acquire the temperature parameters of the terminal device, and perform clock trim compensation adjustment on the terminal device according to the temperature parameters.
[0056] Step S340: Acquire the positioning performance requirement information of the terminal device, and perform clock trim compensation adjustment on the terminal device according to the positioning performance requirement information.
[0057] It should be understood that the initial trim value is obtained by performing a rough calibration on the terminal device, and then a determination is made as to whether the initial trim value is within a preset range. If the initial trim value is not within the preset range, it can be considered that the current positioning performance of the terminal device is poor and is related to trim offset. When it is detected that the current positioning performance of the terminal device is poor and is related to trim offset, the terminal device enters a trim offset compensation mode and performs clock trim compensation adjustment according to the trim offset compensation adjustment mode. Referring to FIG. 3 , FIG. 3 shows a schematic diagram of a trim offset compensation adjustment mode provided in an embodiment of the present application. As shown in FIG. 3 , the trim offset supplementary adjustment mode includes single-board adaptive trim adjustment, chip adaptive trim adjustment, temperature adaptive trim adjustment, and performance adaptive trim adjustment.
[0058] In the single-board adaptive trim adjustment in step S310, it should be noted that after clock calibration, the crystal oscillator generates a trim NV value. The trim value can range from 0 to N, such as N = 64. Due to factors such as different crystal batches, variations in external resistor and capacitor components, and variations in trace parasitic capacitance, the trim values corresponding to different terminal devices may also vary. However, within the same platform, there is an optimal range, such as 35 to 45, which is recorded as the single-board calibration reference range. If the clock trim value of the terminal device exceeds the single-board calibration reference range, the crystal oscillator's performance will be abnormal. Therefore, the single-board calibration reference range of the terminal device is obtained. If the current clock trim value of the terminal device exceeds the single-board calibration reference range, the trim value is brought back into the adjustable range by adjusting the variable capacitor of the trim adjustment circuit in the terminal device and adjusting the output and input capacitance of the crystal oscillator, thereby resolving the problem of the crystal oscillator's trim value being biased towards the upper or lower limit.
[0059] In the chip adaptive trim adjustment of step S320, corresponding chip trim standard values are pre-configured corresponding to crystal oscillator parameters such as different crystal models, brands, package sizes, parasitic capacitance sizes, etc. in the terminal device. In the trim offset compensation adjustment, the trim value suitable for the terminal device is automatically matched and trim compensation adjustment is performed based on it. Specifically, the chip trim standard value corresponding to the crystal oscillator of the terminal device is obtained, and the clock trim compensation adjustment of the terminal device is performed according to the chip trim standard value. Different trim compensation values can be dynamically adapted according to different crystal models, different routings, parasitic parameters, wiring deviations, etc.
[0060] In the temperature adaptive trim adjustment of step S330, the temperature parameters of the terminal device are obtained, and the current trim value of the terminal device is adjusted in real time according to the temperature parameters, wherein the temperature parameters of the terminal device can be a board-level temperature, an ambient temperature or a frequency-temperature curve. Specifically, the corresponding target trim value can be obtained according to the board-level temperature, the ambient temperature or the frequency-temperature curve of the terminal device, and the trim compensation adjustment of the terminal device is performed according to the target trim value.
[0061] In the performance adaptive trim adjustment of step S340, the positioning performance requirement information of the terminal device is obtained, and the clock trim compensation adjustment of the terminal device is performed according to the positioning performance requirement information. For example, according to the existing network positioning performance and call network finding capability requirements, the current trim value of the terminal device is adjusted in real time through dynamic frequency error collection. For example, if the current positioning performance requirement of the terminal device is a lane-level navigation requirement, the trim adjustment strength is strengthened and the trim offset is reduced. If the current positioning performance requirement of the terminal device is a sub-meter / centimeter-level positioning requirement, the trim adjustment strength is further strengthened to reduce the trim offset as much as possible.
[0062] In some embodiments, the adjustment mode is a temperature control adjustment mode, and clock trim compensation adjustment is performed on the terminal device according to the adjustment mode, including step S410 or step S420.
[0063] Step S410: When the temperature of the terminal device is higher than a first preset temperature threshold, the terminal device is driven to lower the temperature and a clock trim compensation adjustment is performed on the terminal device.
[0064] Step S420: When the temperature of the terminal device is lower than a second preset temperature threshold, the terminal device is driven to increase its temperature and a clock trim compensation adjustment is performed on the terminal device.
[0065] It is understood that, referring to FIG4 , FIG4 shows a schematic diagram of a temperature control adjustment mode provided in an embodiment of the present application. As shown in FIG4 , the temperature control adjustment mode includes a cooling drive adjustment and a heating drive adjustment. In the cooling drive adjustment, when the temperature of the terminal device is higher than a first preset temperature threshold, the terminal device is driven to a lower temperature and a clock trim compensation adjustment is performed on the terminal device; in the heating drive adjustment, when the temperature of the terminal device is lower than a second preset temperature threshold, the terminal device is driven to a higher temperature and a clock trim compensation adjustment is performed on the terminal device.
[0066] In a specific embodiment, the first preset temperature threshold is greater than the second preset temperature threshold. For example, the first preset temperature threshold is pre-configured to be 50° and the second preset temperature threshold is pre-configured to be 5° according to actual application. When the temperature of the terminal device is detected to be lower than 50°, a cooling drive adjustment is performed. When the temperature of the terminal device is detected to be lower than 5°, a heating drive adjustment is performed.
[0067] It should be noted that the maximum operating temperature range of terminal equipment is generally -30°C to 85°C, with an intermediate temperature of 30°C. Before crystal oscillator calibration, the frequency deviation of the crystal oscillator is + / -50ppm (parts per million) at 30°C. Temperature fluctuations can increase the clock frequency deviation by an additional + / -12ppm. For smartphones, the board temperature during coarse calibration is within 45°C, and during fine calibration, it does not exceed 60°C. However, as user environments become more complex, the board temperature of a smartphone in an ambient temperature of 40°C may exceed 60°C or even higher. In colder weather, the temperature may drop below 0°C or even as low as -30°C. In extremely hot or cold environments, the temperature exceeds the optimal operating range of the crystal clock. Existing network self-calibration or frequency correction is slow and inefficient, resulting in significant errors in positioning and navigation. Therefore, to improve clock calibration accuracy, it is crucial to ensure coverage of the temperature range and to monitor both board and ambient temperatures in real time during clock frequency calibration.
[0068] In another specific embodiment, when the poor positioning performance of the terminal device is related to the trim offset, the terminal device enters the trim offset compensation mode, and performs clock trim compensation adjustment according to the trim offset compensation adjustment mode. After the trim compensation adjustment, the terminal device enters the temperature control adjustment mode, and performs precise calibration and high and low temperature adjustment on the terminal device to obtain the best calibration parameters.
[0069] In the cooling drive adjustment of step S410, when the positioning performance of the terminal device is poor, the current crystal frequency deviation of the terminal device is detected. If the crystal frequency deviation exceeds the preset threshold, the current crystal temperature of the terminal device is further detected. When it is detected that the current crystal temperature of the terminal device is too high, a dimensionality reduction drive is performed to lower the temperature around the crystal. Specifically, the heat source can be detected by multiple thermistor temperature sensors provided on the terminal device, and the terminal device components or modules associated with the heat source are determined and cooled.
[0070] In a specific embodiment, the terminal device is driven to cool down, including reducing the processor operating frequency, reducing the power of the wireless module, starting the active heat dissipation module, and disabling any one or more adjustment methods of the wireless module, namely, main frequency drive adjustment, power drive adjustment, active heat dissipation adjustment and forced intervention adjustment.
[0071] In frequency driver adjustment, the central processing unit (CPU) or graphics processing unit (GPU) frequency is reduced according to the current business scenario. For example, when running a game on a smartphone, the GPU frequency is reduced or directly locked until the temperature drops and the clock frequency deviation returns to the preset threshold.
[0072] During power drive adjustment, the power amplifier (PA) power of the cellular or wireless module of the current terminal device is first detected. If the PA power of the cellular or wireless module is the highest or too high, the PA transmit power is gradually reduced as required until the temperature drops and the clock frequency deviation returns to the preset threshold.
[0073] In active heat dissipation adjustment, the turbine air duct is aimed at the heating device or clock crystal by controlling the terminal micro fan, liquid cooling module, and semiconductor refrigeration radiator for active heat dissipation.
[0074] In forced intervention adjustment, when the terminal device has clock frequency deviation and the current temperature is too high, and other heat-generating modules are also in operation, the 2 / 3 / 4 / 5G cellular, WiFi, Bluetooth, NFC, UWB and other wireless modules can be forcibly disabled to reduce the board-level temperature until the temperature drops and the clock frequency deviation returns to the preset threshold.
[0075] In a specific embodiment, the terminal device is driven to increase its temperature, including any one or more adjustment methods of controlling the cellular module to enter the constant sending state and controlling the WiFi module to enter the constant sending state.
[0076] In the temperature increase drive adjustment of step S420, when the positioning performance of the terminal device is poor, the current crystal frequency deviation of the terminal device is detected. If the crystal frequency deviation exceeds a preset threshold, the current crystal temperature of the terminal device is further detected. When it is detected that the current crystal temperature of the terminal device is too low, the temperature around the crystal is increased. Specifically, the cellular transmitter chip and power amplifier module on the terminal device can be driven to enter a constant transmission state, such as driving LTE, NR, GSM or CDMD, WCDMA to transmit constantly. If the cellular transmitter chip is in working state, the WiFi chip can be driven to enter a constant transmission state, so that the terminal device can be quickly heated to a specific temperature in a short time to achieve the purpose of crystal frequency calibration in a specific temperature zone.
[0077] In one embodiment, when the terminal device is in a temperature control adjustment mode, the clock frequency adjustment method further includes: sampling the temperature of the terminal device, and controlling the temperature of the terminal device to change in steps according to a preset interval during a cooling drive or a heating drive process based on the temperature sampling result; when the clock trim temperature compensation value of the terminal device does not meet the preset conditions, adjusting the clock calibration duration and performing clock trim compensation adjustment on the terminal device based on the adjusted clock calibration duration, until each temperature step interval of the terminal device within the preset temperature range corresponds to a clock trim temperature compensation value within the target compensation value range.
[0078] It is understandable that in traditional clock calibration schemes, the calibration time for terminal devices to perform clock calibration is relatively short, or the calibration time is relatively random. When the terminal device is making calls, surfing the Internet or running WiFi services, the terminal device enters a certain temperature range due to working heat, and then starts clock frequency calibration in this temperature range. However, as the service is interrupted, the temperature of the terminal device may drop back, with irregular temperature rise or temperature drop times, or rapid temperature rise and temperature drop, that is, the calibration work is completed in a short time. Then the terminal device cannot sample enough calibration parameters, and the temperature curve model required for calibration cannot be accurately established, and finally an incorrect trim temperature compensation value is obtained. Therefore, in the temperature reduction drive or temperature increase drive adjustment, calibration temperature step control and calibration time control are also required to improve the accuracy of clock frequency compensation.
[0079] Specifically, when the terminal device is in the temperature control adjustment mode, the temperature of the terminal device is sampled, and then the temperature of the terminal device is controlled to change in steps according to a preset interval during the cooling drive or heating drive process according to the temperature sampling result. At the same time, the clock trim temperature compensation value of the terminal device is collected, including the trim value and the temperature-related trim compensation value. When the clock trim temperature compensation value of the terminal device does not meet the preset conditions, the clock calibration duration of the terminal device in the current temperature range is adjusted, and the clock trim compensation of the terminal device is adjusted according to the adjusted clock calibration duration until each temperature step interval of the terminal device within the preset temperature range corresponds to a clock trim temperature compensation value within the target compensation value range, thereby improving the accuracy of clock frequency compensation.
[0080] Exemplarily, the temperature of the terminal device is sampled and detected in real time. If the temperature sampling result indicates that the temperature step change exceeds the preset interval of 0.5°, the temperature is always changed in steps of 0.5° by adjusting the temperature increase power control or the temperature decrease frequency. At the same time, the clock trim temperature compensation value of the terminal device is collected. If the corresponding clock trim temperature compensation value is not generated, or the generated clock trim temperature compensation value is not monotonic or linear, or the generated clock trim temperature compensation value differs greatly from the reference value, the clock calibration duration of the current temperature interval is adjusted, and the clock trim compensation is adjusted according to the adjusted clock calibration duration until a clock trim temperature compensation value within the target compensation value range is generated for each 0.5° temperature step interval within the temperature range of -30° to 85°.
[0081] It should also be noted that the above embodiment describes performing temperature control adjustment after trim compensation adjustment to obtain the best calibration parameters. In addition, temperature control adjustment can also be combined with other adjustment modes to adjust the clock frequency, which is not limited in the embodiment of the present application.
[0082] In some embodiments, the adjustment mode is a multi-frequency joint adjustment mode, and clock trim compensation adjustment is performed on the terminal device according to the adjustment mode, including at least one of steps S510 to S530.
[0083] Step S510: obtaining first trim values of the terminal device under different communication standards, selecting an optimal value from the first trim values corresponding to the different communication standards as a target trim value, and performing clock trim compensation adjustment on the terminal device according to the target trim value.
[0084] Step S520: Obtain the second trim values of the terminal device in different frequency bands of the target communication standard, select the optimal value from the second trim values corresponding to the different frequency bands as the target trim value, and perform clock trim compensation adjustment on the terminal device according to the target trim value.
[0085] Step S530: obtain the third trim value group of the terminal device under different communication standards, the third trim value group corresponding to each communication standard includes multiple third trim values corresponding to different frequency bands, select the optimal value from the multiple third trim values as the target trim value, and perform clock trim compensation adjustment on the terminal device according to the target trim value.
[0086] It should be understood that when it is detected that the current positioning performance of the terminal device is poor and is related to the communication frequency band, the terminal device enters the multi-frequency joint adjustment mode and performs corresponding adjustment operations. See Figure 5, which shows a schematic diagram of a multi-frequency joint adjustment mode provided by an embodiment of the present application. As shown in Figure 5, the multi-frequency joint adjustment mode includes multi-mode clock calibration, multi-frequency clock calibration and multi-satellite clock calibration.
[0087] Traditional crystal oscillator calibration is generally based on a fixed standard, such as LTE. Due to the short acquisition time or the interference of the RX of the LTE frequency band, the clock calibration result is inaccurate. Therefore, in the multi-mode clock calibration in step S510, multi-mode joint clock calibration is adopted to perform crystal oscillator calibration on multiple communication standards respectively, and obtain multiple first trim values of the terminal device in different communication standards. For example, clock calibration is performed on LTE, WCDMA, and NR respectively to obtain three first trim values: TrimL, TrimW, and TrimN. Finally, the optimal value is selected from the three first trim values as the target trim value. value, and perform clock trim compensation adjustment on the terminal device according to the target trim value. Specifically, the three first trim values of TrimL, TrimW, and TrimN are compared. If the three first trim values are close or the same, any one of them is selected. If the three first trim values are significantly different, the first trim values are loaded into the terminal device in sequence. Then, the positioning performance and communication performance of the terminal device based on each first trim value are detected. Finally, the first trim value with the best positioning performance and communication performance of the terminal device is selected as the target trim value. Finally, the clock trim compensation adjustment of the terminal device is performed according to the target trim value.
[0088] Conventional crystal oscillator calibration is generally based on a fixed frequency band, such as LTE B1. Due to the acquisition time period or the interference of the RX in the frequency band, the clock calibration result is inaccurate. Therefore, in the multi-frequency clock calibration in step S520, a multi-frequency joint clock calibration is adopted to perform crystal oscillator calibration in different frequency bands of the target communication system, and obtain multiple second trim values of the terminal device in different frequency bands of the target communication system, such as in LTE Clock calibration is performed on the low, medium and high frequencies of B5, B1 and B41 respectively to obtain three second trim values: TrimL, TrimM and TrimH. Finally, the optimal value is selected from the three second trim values as the target trim value, and the clock trim compensation adjustment of the terminal device is performed according to the target trim value. Specifically, the three second trim values of TrimL, TrimM and TrimH are compared. If the three second trim values are close or the same, one of them is selected. If the three second trim values are significantly different, the second trim values are loaded into the terminal device in sequence. Then, the positioning performance and communication performance of the terminal device based on each second trim value are detected. Finally, the second trim value with the best positioning performance and communication performance of the terminal device is selected as the target trim value. Finally, the clock trim compensation adjustment of the terminal device is performed according to the target trim value.
[0089] The trim compensation values obtained through conventional coarse calibration, fine calibration, or on-site calibration are all based on the same fixed frequency band, such as GPS L1. However, it is unknown whether these trim compensation values are suitable for GPS L2 and L5. Therefore, in the multi-satellite frequency band clock calibration in step S530, a third trim value group is obtained for the terminal device under different communication standards. The third trim value group corresponding to each communication standard includes multiple third trim values corresponding to different frequency bands. An optimal value is selected from the multiple third trim values as a target trim value, and clock trim compensation adjustment is performed on the terminal device based on the target trim value. For example, crystal oscillator calibration is performed under GPS L1, L2, and L5, as well as LTE B5, B1, and B41. The positioning performance of the multi-frequency GPS and the frequency error of the multi-frequency cellular are tested. Finally, the optimal value is selected from the third trim values obtained from the calibration as the target trim value. This ensures that after the clock trim compensation adjustment is performed on the terminal device based on the target trim value, it is compatible with the aforementioned GPS frequency bands and communication standards.
[0090] In some embodiments, the adjustment mode is an accumulation error adjustment mode, and clock trim compensation adjustment is performed on the terminal device according to the adjustment mode, including step S610 or step S620.
[0091] Step S610: Control the first RF module of the terminal device to transmit a signal and control the second RF module to collect the signal transmitted by the first RF module, and perform self-calibration on the clock trim compensation value of the terminal device according to the signal transmitted by the first RF module and the signal collected by the second RF module.
[0092] Step S620: re-calibrate the clock of the terminal device to obtain various clock calibration parameters, and perform clock trim compensation adjustment on the terminal device according to the re-calibrated clock calibration parameters.
[0093] It is understandable that during the use of the terminal device, due to the inherent characteristics of the crystal, the longer it is used, the greater its clock error will be. When the error exceeds a certain threshold range, the cellular or positioning module will not work properly; or, due to the poor performance of the crystal itself, its resonant frequency stability is poor, and the drift generated over time is getting larger and larger, resulting in frequency deviation after a period of use; or, the power supply voltage for circuits such as the voltage controlled oscillator (VCO) and the frequency multiplier is unstable, and the deviation is too large over time, which will also cause frequency deviation. Referring to Figure 6, Figure 6 shows a schematic diagram of a cumulative error adjustment mode provided by an embodiment of the present application. As shown in Figure 6, the embodiment of the present application proposes self-transmitting and self-receiving calibration adjustment and zeroing correction adjustment to address the above-mentioned clock deviation phenomenon, solving the problem of cumulative clock frequency deviation caused by long-term operation and work of the terminal device.
[0094] In the self-transmission and self-reception calibration adjustment of step S610, if the accumulated clock frequency error exceeds a preset range, the first RF module of the terminal device is controlled to transmit a signal and the second RF module is controlled to collect the signal transmitted by the first RF module, and the clock trim compensation value of the terminal device is self-calibrated based on the signal transmitted by the first RF module and the signal collected by the second RF module. Exemplarily, the terminal RF chip is activated to enter a normal transmission state, transmit a signal at a fixed level Ra at frequency fa, and simultaneously control the other RF module to enter a normal reception state, collect the received signal at frequency fa and its offset value, and use this to recalibrate the crystal oscillator to obtain the clock trim compensation value. Among them, if the interference noise of the clock chip is large, different clock duty cycles can be adjusted to calibrate the crystal oscillator; if the clock frequency is sensitive, other frequency points fb can be entered for crystal oscillator calibration; if the calibration accuracy of the level Ra cannot meet the requirements, the receiving level can be adjusted to Rb, Rc or Rd for crystal oscillator calibration. For example, if the initial receiving level Ra is -45dBm, then Rb, Rc or Rd can be -50dBm, -55dBm, -60dBm, etc., that is, the accumulated clock frequency error is corrected and adjusted again through the variable signal source frequency and reference power, and the clock self-calibration without instrumentation is achieved through self-transmitting and self-receiving calibration adjustment.
[0095] It should be understood that as the working time of the terminal device increases, its cumulative clock error will become larger and larger, the cellular network search speed will become slower and slower, the positioning accuracy will become slower and slower, and the positioning speed will also become slower and slower. At this time, the clock parameters of each component unit have been disordered, and a single calibration or a single parameter calibration can no longer meet the requirements. Therefore, in the clearing and correction adjustment of step S620, it is necessary to reset or restore all calibration parameters in the terminal device, re-calibrate the clock of the terminal device to obtain various clock calibration parameters, and perform clock trim compensation adjustment on the terminal device according to the recalibrated clock calibration parameters. Taking the clock parameter clearing as an example, the crystal oscillator is subjected to coarse calibration, fine calibration, current network self-calibration, extreme temperature calibration and multi-frequency and multi-mode calibration in turn, and all calibration parameters are rewritten into the terminal device's specific clock register. Then, based on the recalibrated clock parameters, the cellular frequency error, network search delay or positioning performance are detected, and the clock parameters are corrected and adjusted in real time until the clock frequency deviation meets the requirements.
[0096] It should be understood that the clock frequency parameter can be reset regularly by setting a reset period, or the clock frequency parameter can be reset when it is detected that the positioning accuracy exceeds a range.
[0097] In some embodiments, the adjustment mode includes a multi-scenario adjustment mode, and clock trim compensation adjustment is performed on the terminal device according to the adjustment mode, including step S710.
[0098] Step S710: Obtain a target trim value corresponding to the current scene of the terminal device from a pre-built clock information library, and perform clock trim compensation adjustment on the terminal device according to the target trim value.
[0099] It can be understood that the current scene of the terminal device is determined based on the acquired scene detection information, and the corresponding target trim value is obtained from the pre-built clock information library based on the current scene of the terminal device. Then, the clock trim compensation of the terminal device is adjusted according to the target trim value, and clock trim adjustment is realized based on different positioning scenarios, so that the frequency deviation can be dynamically adjusted in special scenarios.
[0100] In a specific embodiment, when it is detected that the current positioning performance of the terminal device is poor, and the poor positioning performance is not unrelated to calibration factors but is caused by a special working scenario, the terminal device enters a multi-scenario adjustment mode and performs corresponding clock trim compensation adjustment according to the multi-scenario adjustment mode.
[0101] Specifically, the current scene of the terminal device is determined based on the scene detection information, including the cellular signal scene, the terminal sky state, or the terminal motion state. Multi-scene adjustment is performed based on the cellular signal scene, the terminal sky state, or the terminal motion state. See Figure 7, which shows a multi-scene adjustment mode. As shown in Figure 7, in the multi-scene adjustment mode, the cellular signal scene includes whether there is a base station signal and the strength of the base station signal. If the terminal device has no base station signal or the base station signal is weak, independent GPS positioning is preferentially used, and trim adjustment needs to be strengthened to enhance positioning performance; the terminal sky state includes full sky state, half sky state, canyon state, or tunnel, elevated road, garage, and indoor state. The deeper the obstruction state, the worse the positioning environment. At this time, high-precision positioning needs to be maintained. If the positioning parameter clock accuracy needs to be improved, more refined trim adjustment can be initiated to enhance positioning capabilities. The terminal motion state includes stationary state, walking state, running state, cycling state, driving state, and high-speed state. The faster the motion state changes, the higher the clock accuracy required for positioning. At this time, high-precision positioning needs to be maintained and the positioning parameter clock accuracy needs to be improved. More refined trim adjustment can be initiated to enhance positioning capabilities. For example, the default clock trim value in the terminal device corresponds to a 2ppm clock frequency deviation, which is suitable for stationary or all-sky scenarios. When the terminal device is in motion, in a canyon, or on an elevated road, the 2ppm clock frequency deviation is no longer applicable, and the clock frequency accuracy needs to be increased to 1.5ppm. If the terminal device is in a tunnel, the GPS signal is further weakened, and the clock frequency accuracy needs to be increased to 1ppm. In actual applications, a clock information library can be pre-built to store the clock frequency calibration values of the terminal device in different scenarios. After the terminal device enters the multi-scenario adjustment mode, the corresponding target trim value is retrieved from the pre-built clock information library and the clock trim compensation adjustment is performed on the terminal device.
[0102] In one embodiment, before obtaining the positioning performance parameters of the terminal device, the clock frequency adjustment method also includes: establishing a clock information library, the clock information library includes a basic clock library, a corrected clock library and a specific clock library, the basic clock library contains the clock frequency adjustment value of the terminal device before leaving the factory, the corrected clock library contains the clock frequency adjustment value generated by the terminal device during the clock trim compensation adjustment process, and the specific clock library contains clock frequency adjustment values suitable for the terminal device in different scenarios or requirements.
[0103] It can be understood that the clock information library is used to store, read and call clock frequency parameters based on different scenarios and conditions. The corresponding clock frequency adjustment value can be obtained from the clock information library by looking up a table, polling or reading a library file. Referring to Figure 8, Figure 8 shows a schematic diagram of a clock information library provided by an embodiment of the present application. As shown in Figure 8, the clock information library consists of three parts, namely a basic clock library, a modified clock library and a specific clock library. For the basic clock library, the clock frequency adjustment value before leaving the factory has different influencing factors, and the clock frequency error or offset is also different. Statistics are made based on the calibration parameter values of a certain number of terminal devices, and the mean, lower limit, upper limit and optimal recommended value are extracted and stored in the basic clock library; the modified clock library is a supplement and correction to the basic clock library, and stores the clock frequency adjustment values learned, adjusted and extracted in real time by the terminal device when it is in use and working; the specific clock library is a specific library file for the terminal device under different application scenarios and requirements, such as a high-precision positioning clock library, a high-temperature clock library, and a low-temperature clock library.
[0104] Referring to FIG. 9 , FIG. 9 shows a flow chart of a clock frequency adjustment method provided in an embodiment of the present application. As shown in FIG. 9 , the clock frequency adjustment method includes the following steps.
[0105] Step S901: The terminal device starts a high-precision adjustment mode and enters an adaptive clock frequency adjustment working state.
[0106] Step S902: Detect the current terminal GNSS positioning performance parameters and determine whether clock frequency adjustment is required.
[0107] Step S903: When the positioning performance parameters do not meet the preset conditions, obtain the current positioning environment, scene and mode information.
[0108] Step S904: collecting and calculating the current clock frequency deviation parameter of the terminal.
[0109] Step S905 : Coordination, classification, and control of high-precision clock adjustment are performed according to the current positioning environment, scenario, mode information, and clock frequency offset parameters.
[0110] Step S906: If it is detected that the poor positioning performance of the terminal device is related to the trim offset, then enter the trim offset compensation adjustment mode.
[0111] Step S907: After step S906, the temperature control adjustment mode is entered, and the control terminal is controlled to perform precise calibration and high and low temperature adjustment to obtain the best calibration parameters.
[0112] Step S908: If it is detected that the poor positioning performance of the terminal device is related to the network frequency band, then enter the multi-frequency joint compensation mode.
[0113] Step S909: If it is detected that the poor positioning performance of the terminal device is related to the cumulative error of the clock frequency, then the cumulative error adjustment mode is entered.
[0114] Step S910: If it is detected that the terminal device is currently in a complex scene, it enters a multi-scene adjustment mode.
[0115] In step S911 , if the positioning performance parameter still does not meet the preset condition after adjustment through one of steps S906 to S910 , the clock frequency can be adjusted simultaneously by combining one or more adjustment modes in steps S906 to S910 .
[0116] An embodiment of the present application also provides an electronic device, as shown in Figure 10, the electronic device 1000 includes: one or more processors 1010; a memory 1020, on which one or more programs are stored. When the one or more programs are executed by the one or more processors 1010, the one or more processors 1010 implement the clock frequency adjustment method.
[0117] The memory 1020 is a non-transient network system that can be used to store non-transient software programs and non-transient computer executable programs. In addition, the memory 1020 may include a high-speed random access memory and may also include a non-transient memory, such as at least one disk storage device, a flash memory device, or other non-transient solid-state storage device. In some embodiments, the memory 1020 may optionally include a memory 1020 remotely located relative to the processor 1010, and these remote memories 1020 may be connected to the processor 1010 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0118] The memory 1020 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 1020 can store an operating system and other application programs. When the technical solutions provided in the embodiments of this specification are implemented through software or firmware, the relevant program code is stored in the memory 1020 and is called by the processor 1010 to execute the methods of the embodiments of this application.
[0119] The processor 1010 can be implemented using a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application.
[0120] In some embodiments, the electronic device also includes: an input / output interface for realizing information input and output; a communication interface for realizing communication interaction between the device and other devices, which can be realized through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, WIFI, Bluetooth, etc.); a bus for transmitting information between the various components of the device (such as processor 1010, memory 1020, input / output interface and communication interface); wherein the processor 1010, memory 1020, input / output interface and communication interface can realize communication connection with each other within the device through the bus.
[0121] An embodiment of the present application further provides a computer-readable storage medium storing computer-executable instructions, wherein the computer-executable instructions are used to execute the clock frequency adjustment method provided in the embodiment of the present application.
[0122] An embodiment of the present application also provides a computer program product, including a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device executes the clock frequency adjustment method provided in an embodiment of the present application.
[0123] The system architecture and application scenarios described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of the system architecture and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are equally applicable to similar technical problems.
[0124] Those skilled in the art will appreciate that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory can include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
[0125] Those skilled in the art will appreciate that all or some of the steps and systems in the method disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some physical components or all physical components can be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software can be distributed on a computer-readable medium, and the computer-readable medium can include computer storage media (or non-transitory media) and communication media (or temporary media). As known to those skilled in the art, the term computer storage media is included in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data) and is volatile and non-volatile, removable, and non-removable. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory, or other memory technology, CD-ROM, digital versatile disks (DVD), or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage, or other magnetic storage devices, or any other medium that can be used to store desired information and can be accessed by a computer. Furthermore, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0126] The above description of some embodiments of the present application with reference to the accompanying drawings does not limit the scope of the present invention. Any modifications, equivalent substitutions, and improvements made by those skilled in the art without departing from the scope and essence of the present invention shall be within the scope of the present application.
Claims
1. A clock frequency adjustment method, the method comprising: Obtain positioning performance parameters of terminal devices; When the positioning performance parameters do not meet the preset conditions, the current terminal status information and / or scene detection information of the terminal device is obtained, and the clock frequency of the terminal device is compensated and adjusted according to the terminal status information and / or the scene detection information.
2. The method according to claim 1, wherein The compensating and adjusting the clock frequency of the terminal device according to the terminal status information and / or the scene detection information includes: determining at least one adjustment mode according to the terminal state information and / or scene detection information; Perform clock trim compensation adjustment on the terminal device according to the adjustment mode.
3. The method according to claim 2, wherein: The adjustment mode includes a trim offset compensation mode, and performing clock trim compensation adjustment on the terminal device according to the adjustment mode includes at least one of the following: Obtaining a single-board calibration reference range of the terminal device, and performing clock trim compensation adjustment on the terminal device by adjusting a variable capacitor of a trim adjustment circuit in the terminal device when a current clock trim value of the terminal device exceeds the single-board calibration reference range; Obtaining a chip trim standard value corresponding to a crystal oscillator of the terminal device, and performing clock trim compensation adjustment on the terminal device according to the chip trim standard value; Acquiring a temperature parameter of the terminal device, and performing clock trim compensation adjustment on the terminal device according to the temperature parameter; Acquire positioning performance requirement information of the terminal device, and perform clock trim compensation adjustment on the terminal device according to the positioning performance requirement information.
4. The method according to claim 2, wherein: The adjustment mode is a temperature control adjustment mode, and performing clock trim compensation adjustment on the terminal device according to the adjustment mode includes: When the temperature of the terminal device is higher than a first preset temperature threshold, the terminal device is driven to lower the temperature and a clock trim compensation adjustment is performed on the terminal device; or When the temperature of the terminal device is lower than a second preset temperature threshold, the terminal device is driven to increase its temperature and a clock trim compensation adjustment is performed on the terminal device.
5. The method according to claim 4, wherein When the terminal device is in the temperature control adjustment mode, the method further includes: Sampling the temperature of the terminal device, and controlling the temperature of the terminal device to change in steps according to a preset interval during a cooling drive or a heating drive according to the temperature sampling result; When the clock trim temperature compensation value of the terminal device does not meet the preset conditions, the clock calibration duration is adjusted and the clock trim compensation of the terminal device is adjusted according to the adjusted clock calibration duration until each temperature step interval of the terminal device within the preset temperature range corresponds to a clock trim temperature compensation value within the target compensation value range.
6. The method according to claim 4, wherein: The temperature reduction drive includes any one or more adjustment methods of reducing the processor operating frequency, reducing the wireless module power, starting the active heat dissipation module, and disabling the wireless module. The temperature increase drive includes any one or more adjustment methods of controlling the cellular module to enter the constant sending state and controlling the WiFi module to enter the constant sending state.
7. The method according to claim 2, wherein: The adjustment mode includes a multi-frequency joint adjustment mode, and performing clock trim compensation adjustment on the terminal device according to the adjustment mode includes at least one of the following: Obtaining first trim values of the terminal device under different communication standards, selecting an optimal value from the first trim values corresponding to the different communication standards as a target trim value, and performing clock trim compensation adjustment on the terminal device according to the target trim value; Obtaining second trim values of the terminal device in different frequency bands of the target communication standard, selecting an optimal value from the second trim values corresponding to the different frequency bands as a target trim value, and performing clock trim compensation adjustment on the terminal device according to the target trim value; Obtain the third trim value group of the terminal device under different communication standards, the third trim value group corresponding to each communication standard includes multiple third trim values corresponding to different frequency bands, select the optimal value from the multiple third trim values as the target trim value, and perform clock trim compensation adjustment on the terminal device according to the target trim value.
8. The method according to claim 2, wherein: The adjustment mode includes a cumulative error adjustment mode, and performing clock trim compensation adjustment on the terminal device according to the adjustment mode includes: Controlling the first RF module of the terminal device to transmit a signal and controlling the second RF module to collect the signal transmitted by the first RF module, and performing self-calibration processing on the clock trim compensation value of the terminal device according to the signal transmitted by the first RF module and the signal collected by the second RF module; or Recalibrate the clock of the terminal device to obtain various clock calibration parameters, and perform clock trim compensation adjustment on the terminal device according to the recalibrated clock calibration parameters.
9. The method according to claim 2, wherein: The adjustment mode includes a multi-scenario adjustment mode, and performing clock trim compensation adjustment on the terminal device according to the adjustment mode includes: A target trim value corresponding to the current scene of the terminal device is obtained from a pre-built clock information library, and a clock trim compensation adjustment is performed on the terminal device according to the target trim value.
10. The method according to claim 1, wherein The scene detection information includes at least one of the following: Terminal ambient temperature, network environment information, positioning satellite information, terminal motion status information, and terminal scene information.
11. The method according to claim 2, wherein: The terminal status information includes a clock frequency parameter, and the clock frequency parameter includes at least one of the following: a coarse calibration clock value, a fine calibration clock value, a self-calibration clock value, a limit temperature clock value, a cellular frequency error value, a wireless frequency error value, and a multi-frequency positioning frequency error value; The determining at least one adjustment mode according to the terminal status information and / or the scene detection information includes: The clock frequency deviation parameter is compared with a preset frequency deviation threshold, and at least one adjustment mode is determined according to the comparison result.
12. The method according to claim 1, wherein The positioning performance parameters include at least one of the following: first fix time, cold start time, hot start time, positioning accuracy, positioning track offset, number of positioning satellites, and carrier-to-noise ratio; the method further includes: The positioning performance parameter is compared with a preset positioning performance threshold, and it is determined whether the positioning performance parameter meets a preset condition according to the comparison result.
13. The method according to claim 1, wherein Before obtaining the positioning performance parameters of the terminal device, the method further includes: Establish a clock information library, which includes a basic clock library, a corrected clock library and a specific clock library. The basic clock library contains the clock frequency adjustment value of the terminal device before leaving the factory, the corrected clock library contains the clock frequency adjustment value generated by the terminal device during the clock trim compensation adjustment process, and the specific clock library contains clock frequency adjustment values suitable for the terminal device in different scenarios or requirements.
14. An electronic device comprising: one or more processors; A memory having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 13.
15. A computer-readable storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1 to 13 is implemented.
Citation Information
Patent Citations
Frequency calibration method, terminal and storage medium
CN110311673A
Frequency adjustment method and device, storage medium and electronic equipment
CN114641072A
Clock signal adjusting method and device, electronic equipment and storage medium
CN116847451A
Method and apparatus for updating local time, device, and storage medium
WO2022110280A1