Clock frequency adjustment method, electronic equipment 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 is solved, and the problem of poor positioning accuracy and communication performance of the terminal equipment in extreme environments or weak signal scenarios is achieved, and adaptive high-precision clock frequency adjustment is achieved.
Patent Information
- Application Number
- CN202410178265.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-08
- Publication Date
- 2025-08-08
AI Technical Summary
The positioning accuracy and poor communication performance of terminal equipment due to clock frequency deviation are significantly reduced, especially in extreme environments or weak signal scenarios.
By obtaining the positioning performance parameters and scene detection information of the terminal device, dynamic compensation and adjusting the clock frequency, adaptive calibration is achieved, and frequency offset is reduced.
In extreme environments or weak signal scenarios, terminal devices can obtain optimal positioning performance, improving positioning accuracy and communication performance.
Smart Images

Figure CN120456219A_ABST
Abstract
Description
Technical Field
[0001] 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
[0002] 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).
[0003] 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. Summary of the Invention
[0004] Embodiments of the present application provide a clock frequency adjustment method, an electronic device, and a storage medium, which are intended to achieve adaptive adjustment of clock frequency deviation.
[0005] In a first aspect, an embodiment of the present application provides a clock frequency adjustment method, the method comprising:
[0006] Obtain positioning performance parameters of terminal devices;
[0007] 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.
[0008] In a second aspect, an embodiment of the present application provides an electronic device, including:
[0009] one or more processors;
[0010] 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 clock frequency adjustment method as described in the first aspect above.
[0011] 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.
[0012] The clock frequency adjustment method, electronic device and storage medium provided in the embodiments of the present application first obtain the positioning performance parameters of the terminal device, and 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. The embodiments of the present application adaptively adjust the clock frequency of the terminal device in a dynamic compensation adjustment manner, and convert the clock frequency calibration from traditional production calibration to terminal adaptive calibration. The terminal device can self-adjust the clock frequency in the existing network and the current scenario, and no longer relies on traditional production clock calibration parameters. It 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. BRIEF DESCRIPTION OF THE DRAWINGS
[0013] 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.
[0014] Figure 1 1 is a flow chart of a clock frequency adjustment method provided in an embodiment of the present application;
[0015] Figure 2 1 is a flow chart of a clock frequency adjustment method provided in an embodiment of the present application;
[0016] Figure 3 is a schematic diagram of a trim offset compensation adjustment mode provided in an embodiment of the present application;
[0017] Figure 4 Schematic diagram of the temperature control adjustment mode provided in an embodiment of the present application;
[0018] Figure 5 is a schematic diagram of a multi-frequency joint adjustment mode provided in an embodiment of the present application;
[0019] Figure 6 is a schematic diagram of a cumulative error adjustment mode provided in an embodiment of the present application;
[0020] Figure 7 is a schematic diagram of a multi-scenario adjustment mode provided in an embodiment of the present application;
[0021] Figure 8 is a schematic diagram of a clock information library provided in an embodiment of the present application;
[0022] Figure 9 1 is a flow chart of a clock frequency adjustment method provided in an embodiment of the present application;
[0023] Figure 10 This is a schematic diagram of the device structure of the electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0024] 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.
[0025] 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.
[0026] 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.
[0027] 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).
[0028] 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.
[0029] Although a crystal oscillator has a specific 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 peripheral capacitance and resistor tolerances can all lead to variations in crystal load capacitance, resulting in frequency deviation. Furthermore, even within the same terminal device, temperature can cause frequency deviation in the crystal oscillator.
[0030] 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.
[0031] 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.
[0032] The present application first proposes a clock frequency adjustment method, which can be applied to a terminal device with a positioning function. In some embodiments, the terminal device can be a handheld device, a vehicle-mounted device, etc., such as a mobile phone, a tablet computer, a laptop computer, a PDA, a wearable device, a vehicle-mounted computer, etc. Figure 1 , Figure 1 A clock frequency adjustment method provided by an embodiment of the present application is shown. Figure 1 As shown, the clock frequency adjustment method includes but is not limited to step S110 and step S120.
[0033] Step S110: Acquire positioning performance parameters of the terminal device.
[0034] 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.
[0035] 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.
[0036] Correspondingly, the clock frequency adjustment method further includes:
[0037] The positioning performance parameters are compared with the preset positioning performance thresholds, and it is determined whether the positioning performance parameters meet the preset conditions based on the comparison results.
[0038] 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.
[0039] 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.
[0040] 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-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.
[0041] 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.
[0042] 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.
[0043] In some embodiments, the scene detection information includes at least one of the following:
[0044] Terminal ambient temperature, network environment information, positioning satellite information, terminal motion status information, and terminal scene information.
[0045] 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.
[0046] 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.
[0047] It's understandable that different environments and scenarios place varying demands on GPS clock accuracy. Higher positioning accuracy, more complex scenarios, and harsher environments increase the clock frequency deviation requirements. Therefore, the adjustment mode required for the current scenario can be determined based on acquired scenario detection information. Clock trim adjustments can then be performed accordingly to further reduce clock frequency deviation and achieve high-precision positioning scenario adaptation.
[0048] In some embodiments, see Figure 2 , Figure 2 A clock frequency adjustment method provided by an embodiment of the present application is shown. Figure 2 As shown, performing trip compensation adjustment on the clock frequency of the terminal device according to the terminal status information and / or the scene detection information includes step S210 and step S220.
[0049] Step S210: Determine at least one adjustment mode according to the terminal status information and / or the scene detection information.
[0050] Step S220: performing clock trim compensation adjustment on the terminal device according to the adjustment mode.
[0051] 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.
[0052] 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.
[0053] 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.
[0054] Correspondingly, determining at least one adjustment mode according to the terminal status information and / or the scene detection information includes:
[0055] 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.
[0056] It should be noted that obtaining the coarse-calibrated clock value requires working at a non-high temperature (such as room temperature of 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; obtaining the fine-calibrated clock value requires driving the RF module to work, heating the terminal board, causing the power amplifier to generate heat, forming a temperature-frequency curve, and measuring the relationship curve between the clock frequency and temperature of the crystal oscillator. In addition, the power amplifier works at maximum power. In addition, fine calibration also includes DC calibration. By further adjusting the trim value and DCoffset value, the clock frequency offset is reduced to within + / -2ppm, and finally the fine-calibrated clock value is obtained; the current network self-calibration clock value refers to the clock obtained through self-calibration in the current network environment. Frequency offset calibration value; 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 or below -10°C; cellular frequency error value refers to the frequency error value of the terminal device during operation under different cellular network standards, such as NR, LTE, WCDMA, CDMA, and GSM; wireless frequency error value refers to the frequency error value of the terminal device during operation under different wireless modes, such as Wi-Fi and Bluetooth; multi-frequency positioning frequency error value refers to the frequency error value of the terminal device during operation under different positioning satellite bands, such as the L1, L2, and L5 bands for GPS, Glonass, QZSS, SBAS, Galileo, and Beidou positioning satellites. By collecting the above clock frequency parameters and comparing them with the corresponding target thresholds, if the clock frequency parameters exceed the target thresholds, the corresponding adjustment mode can be determined for different frequency offset types.
[0057] 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.
[0058] 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.
[0059] Step S310, obtaining the single-board calibration reference range of the terminal device, and when the current clock tirm 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.
[0060] 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.
[0061] 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.
[0062] 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.
[0063] It should be understood that the initial trim value is obtained by performing a rough calibration on the terminal device, and then it is determined whether the initial trim value is within the 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 the trim offset. When it is detected that the current positioning performance of the terminal device is poor and 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. Figure 3 , Figure 3 A schematic diagram of a trim offset compensation adjustment mode provided by an embodiment of the present application is shown. Figure 3 As shown, the trim offset supplementary adjustment modes include single-board adaptive trim adjustment, chip adaptive trim adjustment, temperature adaptive trim adjustment and performance adaptive trim adjustment.
[0064] In the single-board adaptive trim adjustment in step S310, it should be noted that after clock calibration, the crystal oscillator generates a trimNV value. The trim value can range from 0 to N, such as N = 64. Due to factors such as different crystal batches, different tolerances of external resistors and capacitors, and different parasitic capacitance of traces, the trim values corresponding to different terminal devices may also vary. However, there is an optimal range for the same platform, 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 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 trim value being biased to the upper or lower limit.
[0065] 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.
[0066] 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.
[0067] 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.
[0068] 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.
[0069] 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.
[0070] 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.
[0071] Understandably, see Figure 4 , Figure 4 A schematic diagram of a temperature control adjustment mode provided in an embodiment of the present application is shown. Figure 4 As shown, the temperature control adjustment mode includes cooling drive adjustment and heating drive adjustment. In 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 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.
[0072] 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.
[0073] 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 kept 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 phone's 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.
[0074] 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.
[0075] 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.
[0076] 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.
[0077] In the main 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.
[0078] 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.
[0079] 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.
[0080] 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.
[0081] 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.
[0082] 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.
[0083] In one embodiment, when the terminal device is in the temperature control adjustment mode, the clock frequency adjustment method further includes:
[0084] 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 the cooling drive or heating drive process according to the temperature sampling result;
[0085] 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.
[0086] 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.
[0087] 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 temperature reduction drive or temperature increase drive process according to the temperature sampling result. At the same time, the clock tr im temperature compensation value of the terminal device is collected, including the tr im value and the temperature-related tr im compensation value. When the clock tr im 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 tr im 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 tr im temperature compensation value within the target compensation value range, thereby improving the accuracy of clock frequency compensation.
[0088] 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 a 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 tr im temperature compensation value of the terminal device is collected. If the corresponding clock tr im temperature compensation value is not generated, or the generated clock tr im temperature compensation value is not monotonic or linear, or the generated clock tr im temperature compensation value differs significantly from the reference value, the clock calibration duration of the current temperature interval is adjusted, and the clock tr im compensation is adjusted according to the adjusted clock calibration duration until a clock tr im 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°.
[0089] 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.
[0090] In some embodiments, the adjustment mode is a multi-frequency joint adjustment mode, and clock trip compensation adjustment is performed on the terminal device according to the adjustment mode, including at least one of steps S510 to S530.
[0091] Step S510: obtaining first trip values of the terminal device under different communication standards, selecting an optimal value from the first trip values corresponding to the different communication standards as a target trip value, and performing clock trip compensation adjustment on the terminal device according to the target trip value.
[0092] 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.
[0093] Step S530: Obtain third tr im value groups for the terminal device under different communication standards, where the third tr im value group corresponding to each communication standard includes multiple third tr im values corresponding to different frequency bands, select an optimal value from the multiple third tr im values as a target tr im value, and perform clock tr im compensation adjustment on the terminal device according to the target tr im value.
[0094] It should be understood that when the terminal device detects that the current positioning performance 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 , Figure 5 A schematic diagram of a multi-frequency joint adjustment mode provided in an embodiment of the present application is shown. Figure 5 As shown, the multi-frequency joint adjustment mode includes multi-mode clock calibration, multi-frequency clock calibration and multi-satellite clock calibration.
[0095] 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 in 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, and the clock trim compensation adjustment of the terminal device is performed based on 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, one of them is selected. If the three first trim values differ significantly, 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 tested, and finally the first trim value with the optimal positioning performance and communication performance of the terminal device is selected. The im value is used as the target tr im value, and finally the clock tr im compensation adjustment of the terminal device is performed according to the target tr im value.
[0096] Traditional 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, multi-frequency joint clock calibration is adopted to perform crystal oscillator calibration in different frequency bands of the target communication standard, and obtain multiple second tr im values of the terminal device in different frequency bands of the target communication standard. For example, clock calibration is performed on the low, medium and high frequencies of LTE B5, B1 and B41 respectively to obtain three second tr im values: Tr imL, Tr imM, and Tr imH. Finally, the optimal value is selected from the three second tr im values as the target tr im value, and the clock tr im compensation adjustment of the terminal device is performed according to the target tr im value. Specifically, the three second tr im values Tr imL, Tr imM, and Tr imH are compared. If the three second tr im values are close or the same, one of them is selected. If the three second tr im values are significantly different, the second tr im values are loaded into the terminal device in sequence, and then the detection based on each second tr im value is performed. im value, and finally select the second tr im value with the best positioning performance and communication performance of the terminal device as the target tr im value, and finally perform clock tr im compensation adjustment on the terminal device according to the target tr im value.
[0097] 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 for the terminal device in different communication standards is obtained. 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 through calibration as the target trim value. This ensures that the terminal device, after clock trim compensation adjustment is performed based on the target trim value, is compatible with the aforementioned GPS frequency bands and communication standards.
[0098] In some embodiments, the adjustment mode is an accumulation error adjustment mode, and clock trip compensation adjustment is performed on the terminal device according to the adjustment mode, including step S610 or step S620.
[0099] 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 trip 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.
[0100] Step S620: recalibrate the clock of the terminal device to obtain various clock calibration parameters, and perform clock trip compensation adjustment on the terminal device according to the recalibrated clock calibration parameters.
[0101] It is understandable that during the use of terminal equipment, 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. Alternatively, due to the poor performance of the crystal itself, its resonant frequency stability is poor, and the drift over time becomes larger and larger, resulting in frequency deviation after a period of use. Alternatively, the power supply voltage for circuits such as the VCO and frequency multiplier is unstable and deviates too much over time, which can also cause frequency deviation. Figure 6 , Figure 6 A schematic diagram of a cumulative error adjustment mode provided in an embodiment of the present application is shown. Figure 6As shown, the embodiment of the present application proposes self-transmitting and self-receiving calibration adjustment and zeroing correction adjustment to address the above-mentioned clock offset phenomenon, so as to solve the problem of accumulated clock frequency deviation caused by long-term operation and work of the terminal equipment.
[0102] 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. The terminal device's clock trim compensation value 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's RF chip is activated to enter a constant transmission state, transmitting a signal at a fixed level Ra at frequency fa. Simultaneously, the other RF module is controlled to enter a constant reception state, collecting received signals at frequency fa and its offset value, and using this information to recalibrate the crystal oscillator to obtain a 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.
[0103] It should be understood that as the operating 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 become disordered, and a single calibration or a single parameter calibration can no longer meet the requirements. Therefore, in the reset 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 based on the recalibrated clock calibration parameters. Taking the clock parameter reset as an example, the crystal oscillator is sequentially subjected to coarse calibration, fine calibration, live network self-calibration, extreme temperature calibration, and multi-frequency and multi-mode calibration, and all calibration parameters are rewritten into a specific clock register of the terminal device. Then, based on the recalibrated clock parameters, the cellular frequency error, network search delay, or positioning performance are tested, and the clock parameters are corrected and adjusted in real time until the clock frequency deviation meets the requirements.
[0104] 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.
[0105] In some embodiments, the adjustment mode includes a multi-scenario adjustment mode, and clock trip compensation adjustment is performed on the terminal device according to the adjustment mode, including step S710.
[0106] 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.
[0107] 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 tr im value is obtained from the pre-built clock information library based on the current scene of the terminal device. Then, the clock tr im compensation adjustment of the terminal device is performed according to the target tr im value, so as to realize clock trim adjustment based on different positioning scenarios, so that the frequency deviation can be dynamically adjusted even in special scenarios.
[0108] 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 trip compensation adjustment according to the multi-scenario adjustment mode.
[0109] Specifically, the current scene of the terminal device is determined according to the scene detection information, including the cellular signal scene, the terminal sky state or the terminal motion state, and multiple scene adjustments are performed according to the cellular signal scene, the terminal sky state or the terminal motion state. Figure 7 , Figure 7 A multi-scenario adjustment mode is shown, such as Figure 7As shown, in the multi-scenario adjustment mode, the cellular signal scenario 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 used first, 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, and the positioning parameter clock accuracy needs to be improved. In this case, more refined TRIM adjustment can be started to enhance positioning capability; 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. In this case, more refined TRIM adjustment can be started to enhance positioning capability. For example, the default clock frequency deviation in a terminal device corresponds to a 2ppm clock frequency deviation, which is suitable for stationary or all-sky scenarios. However, when the terminal device is in motion, in a canyon, or on an elevated highway, 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, where the GPS signal is further weakened, the clock frequency accuracy needs to be increased to 1ppm. In actual applications, a clock information library can be pre-built to store clock frequency calibration values for the terminal device in different scenarios. After the terminal device enters multi-scenario adjustment mode, the corresponding target frequency deviation is retrieved from the pre-built clock information library and clock frequency compensation adjustment is performed on the terminal device.
[0110] In one embodiment, before obtaining the positioning performance parameters of the terminal device, the clock frequency adjustment method further includes:
[0111] 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 values of the terminal equipment before leaving the factory, the corrected clock library contains the clock frequency adjustment values generated by the terminal equipment during the clock tr im compensation adjustment process, and the specific clock library contains the clock frequency adjustment values suitable for the terminal equipment in different scenarios or requirements.
[0112] It is 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 the table, polling or reading the library file. Figure 8 , Figure 8 A schematic diagram of a clock information library provided by an embodiment of the present application is shown in FIG. Figure 8As shown in Figure 1, the clock information library consists of three parts: a basic clock library, a modified clock library, and a specific clock library. For the basic clock library, the factory-adjusted clock frequency values vary depending on the influencing factors, resulting in different clock frequency errors or offsets. Based on the calibration parameter values of a certain number of terminal devices, statistics are collected to extract the mean, lower limit, upper limit, and optimal recommended values, which are then stored in the basic clock library. The modified clock library supplements and amends the basic clock library, storing clock frequency adjustment values learned, adjusted, and extracted in real time during terminal device use and operation. Specific clock libraries are library files specific to terminal devices in different application scenarios and requirements, such as the high-precision positioning clock library, the high-temperature clock library, and the low-temperature clock library.
[0113] See also Figure 9 , Figure 9 A clock frequency adjustment method provided by an embodiment of the present application is shown. Figure 9 As shown, the clock frequency adjustment method includes:
[0114] Step S901: The terminal device starts a high-precision adjustment mode and enters an adaptive clock frequency adjustment working state;
[0115] Step S902: Detect the current terminal GNSS positioning performance parameters to determine whether clock frequency adjustment is required;
[0116] Step S903: If the positioning performance parameters do not meet the preset conditions, obtain the current positioning environment, scene and mode information;
[0117] Step S904, collecting and calculating the current clock frequency deviation parameter of the terminal;
[0118] Step S905: Coordination, classification, and control of high-precision clock adjustment based on the current positioning environment, scenario, mode information, and clock frequency offset parameters;
[0119] Step S906: If it is detected that the poor positioning performance of the terminal device is related to the trip offset, then entering the trip offset compensation adjustment mode;
[0120] Step S907: After step S906, the system enters the temperature control adjustment mode, and controls the terminal to perform precise calibration and high and low temperature adjustment to obtain the best calibration parameters.
[0121] 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;
[0122] Step S909: If it is detected that the poor positioning performance of the terminal device is related to the accumulated error of the clock frequency, then enter the accumulated error adjustment mode;
[0123] Step S910: If it is detected that the terminal device is currently in a complex scene, it enters the multi-scene adjustment mode.
[0124] 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 .
[0125] The present application also provides an electronic device, such as Figure 10 As shown, the electronic device 1000 includes:
[0126] one or more processors 1010;
[0127] The memory 1020 stores one or more programs. 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.
[0128] 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.
[0129] 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.
[0130] 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.
[0131] In some embodiments, the electronic device further comprises:
[0132] Input / output interface, used to realize information input and output;
[0133] Communication interface, used to realize communication interaction between this device and other devices, which can be achieved through wired means (such as USB, network cable, etc.) or wireless means (such as mobile network, Wi-Fi, Bluetooth, etc.);
[0134] A bus that transmits information between various components of the device (e.g., processor 1010, memory 1020, input / output interfaces, and communication interfaces);
[0135] The processor 1010 , the memory 1020 , the input / output interface, and the communication interface can be communicatively connected to each other within the device via a bus.
[0136] 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.
[0137] 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.
[0138] 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.
[0139] 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).
[0140] 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.
[0141] 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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, characterized in that 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.