Frequency compensation method and circuit, storage medium, and electronic device

By determining and converting speed information in the mobile phone to compensate for the crystal oscillator frequency, the problem of degradation of GPS performance in the new generation of mobile phones is solved, and the effect of improving GPS accuracy is achieved.

CN114114352BActive Publication Date: 2025-04-01ZTE CORP
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202010899383.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-08-31
Publication Date
2025-04-01
Estimated Expiration
2040-08-31

AI Technical Summary

Technical Problem

In the new generation of mobile phones, crystal oscillators are sensitive to heat conduction, resulting in a decline in GPS performance, and the existing technology has failed to effectively solve this problem.

Method used

By determining the speed information of the terminal device relative to the predetermined device, including acceleration information and vector information, it is converted into acceleration values ​​corresponding to the GPS device, and the frequency of the crystal oscillator is compensated based on these acceleration values ​​to correct the GPS acceleration error caused by thermal jitter.

Benefits of technology

It effectively corrects the GPS acceleration error caused by the instantaneous jitter of the heating device around the crystal, and improves the GPS performance in the terminal device.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114114352B_ABST
    Figure CN114114352B_ABST
Patent Text Reader

Abstract

The embodiment of the present invention provides a frequency compensation method and circuit, storage medium, and electronic device, the method comprising: determining the speed information of a terminal device relative to a predetermined device, wherein the speed information comprises acceleration information and vector information; converting the speed information into a first acceleration value corresponding to a global positioning system GPS device; and compensating the frequency of a crystal oscillator in the terminal device based on the first acceleration value and a second acceleration value, wherein the second acceleration value is an actual acceleration value of the GPS device determined by the terminal device. Through the present invention, the problem of GPS performance in the terminal device in the related art is solved, and the effect of improving the GPS performance in the terminal device is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of communications, and in particular, to a frequency compensation method and circuit, a storage medium, and an electronic device. Background Art

[0002] The Global Positioning System (GPS) uses navigation satellites to measure time and distance to form a global positioning system. It can provide personal positioning, timing, and speed measurement functions.

[0003] GPS has been widely used in aerospace, aviation, navigation, transportation, measurement, exploration and many other fields. With the development of digital large-scale integrated circuits and the demand for positioning functions, GPS has begun to be embedded in mobile handheld devices and consumer electronic products.

[0004] GPS is an indispensable functional module for current smartphone terminals. With the change of mobile phone generations, its role has become more and more important. In order to achieve more complex functions, the new generation of terminals have higher and higher requirements for GPS accuracy. From the perspective of hardware circuits, the stability of the crystal oscillator has a great influence on the accuracy of the test. Since the crystal oscillator is a heat-sensitive device, the thermal protection of the crystal has become an important task in hardware design. However, the hardware circuits of the next generation of terminal equipment such as 5G are more complex. The multi-frequency and multi-mode wireless modules cause more heating devices on the motherboard than the previous smart terminals. This contradiction makes it increasingly difficult to ensure the accuracy of GPS in the new generation of mobile phones.

[0005] In the mobile phone system, the crystal oscillator is the most sensitive to heat conduction. At the same time, as the heart of a mobile phone, the accuracy of the crystal oscillator greatly affects the GPS system in the mobile phone system, which is most dependent on the accuracy of the crystal oscillator. Therefore, in the early stage of mobile phone planning, it is very important to choose a suitable position for the crystal oscillator on the motherboard, which greatly affects the GPS performance of a mobile phone. The failure of acceleration is actually the performance of the signal in the frequency domain. If it exceeds the standard, it will lead to the deterioration of its frequency characteristics, that is, the deterioration of sensitivity, thereby causing the deterioration of GPS performance.

[0006] With respect to the problem of GPS performance in terminal devices existing in the prior art, no effective solution has been proposed in the related art. Summary of the invention

[0007] The embodiments of the present invention provide a frequency compensation method and circuit, a storage medium, and an electronic device to at least solve the problem of GPS performance in terminal equipment in the related art.

[0008] According to one embodiment of the present invention, a frequency compensation method is provided, comprising: determining speed information of a terminal device relative to a predetermined device, wherein the speed information comprises acceleration information and vector information; converting the speed information into a first acceleration value corresponding to a global positioning system (GPS) device; and compensating the frequency of a crystal oscillator in the terminal device based on the first acceleration value and the second acceleration value, wherein the second acceleration value is an actual acceleration value of the GPS device determined by the terminal device.

[0009] According to another embodiment of the present invention, a frequency compensation circuit is provided, comprising: a speed sensor, used to obtain speed information of the above-mentioned terminal device relative to a preset device, wherein the above-mentioned speed information includes acceleration information and vector information, and the above-mentioned speed sensor is arranged in the above-mentioned terminal device; a main control chip control unit, used to convert the above-mentioned speed information into a first acceleration value corresponding to a global positioning system GPS device; a variable capacitance control unit, used to compensate the frequency of a crystal oscillator in the above-mentioned terminal device based on the above-mentioned first acceleration value and the above-mentioned second acceleration value, wherein the above-mentioned second acceleration value is the actual acceleration value of the above-mentioned GPS device determined by the above-mentioned terminal device.

[0010] According to yet another embodiment of the present invention, a computer-readable storage medium is provided, in which a computer program is stored, wherein the computer program is configured to execute the steps of any one of the above method embodiments when running.

[0011] According to yet another embodiment of the present invention, there is provided an electronic device, including a memory and a processor, wherein the memory stores a computer program, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0012] Through the present invention, by determining the speed information of the terminal device relative to the predetermined device, wherein the speed information includes acceleration information and vector information; converting the speed information into a first acceleration value corresponding to the global positioning system GPS device; and compensating the frequency of the crystal oscillator in the terminal device based on the first acceleration value and the second acceleration value, wherein the second acceleration value is the actual acceleration value of the GPS device determined by the terminal device. The purpose of using the correction of the GPS acceleration error value caused by the instantaneous jitter of the heating device around the crystal is achieved. Therefore, the problem of GPS performance in the terminal device in the related art can be solved, and the effect of improving the GPS performance in the terminal device can be achieved. BRIEF DESCRIPTION OF THE DRAWINGS

[0013] Figure 1 is a hardware structure block diagram of a mobile terminal of a frequency compensation method according to an embodiment of the present invention;

[0014] Figure 2 is a flow chart of a frequency compensation method according to an embodiment of the present invention;

[0015] Figure 3 is a schematic diagram of the relationship between the error frequency and the acceleration error value of the crystal oscillator according to an embodiment of the present invention;

[0016] Figure 4 is a flow chart of frequency compensation according to an embodiment of the present invention;

[0017] Figure 5 It is a schematic diagram of the influence of the wifi chip standby state and the router intermittent standby communication on the crystal oscillator according to an embodiment of the present invention;

[0018] Figure 6 is a structural block diagram of a frequency compensation circuit according to an embodiment of the present invention. DETAILED DESCRIPTION

[0019] Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings and in combination with the embodiments.

[0020] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0021] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a frequency compensation method according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.

[0022] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the frequency compensation method in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal 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.

[0023] The transmission device 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0024] In this embodiment, a frequency compensation method is provided. Figure 2 is a flow chart of a frequency compensation method according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0025] Step S202, determining speed information of the terminal device relative to the predetermined device, wherein the speed information includes acceleration information and vector information;

[0026] Step S204, converting the speed information into a first acceleration value corresponding to a global positioning system GPS device;

[0027] Step S206: Compensate the frequency of the crystal oscillator in the terminal device based on the first acceleration value and the second acceleration value, wherein the second acceleration value is an actual acceleration value of the GPS device determined by the terminal device.

[0028] The execution subject of the above steps may be a terminal, etc., but is not limited thereto.

[0029] In an exemplary embodiment, the crystal oscillator is the most sensitive to heat conduction. At the same time, as the heart of a terminal device (such as a mobile phone), the accuracy of the crystal oscillator greatly affects the GPS system in the mobile phone system, which is most dependent on the accuracy of the crystal oscillator. Therefore, in the early stage of mobile phone planning, it is very important to choose a suitable position for the crystal oscillator on the motherboard, which greatly affects the GPS performance of a mobile phone. The failure of acceleration is actually the performance of the signal in the frequency domain. If it exceeds the standard, it will lead to the deterioration of its frequency characteristics, that is, the deterioration of sensitivity, thereby causing the deterioration of GPS performance.

[0030] from Figure 3 It can be seen that there is a relationship between the crystal oscillator error frequency and the acceleration error value. For the acceleration index, through the Doppler frequency shift formula, fm = mobile station moving speed v / light speed * (carrier frequency f0 = 1575.42MHz), so for 1s acceleration it is equivalent to 1575.42*10^6 / 3*10^8=5.25hz / s. When the corresponding relationship between the acceleration value and the frequency is distorted, the frequency synthesis system composed of the crystal oscillator has errors, but these corresponding systems have a linear relationship, so compensation is also possible.

[0031] Through the above steps, the speed information of the terminal device relative to the predetermined device is determined, wherein the speed information includes acceleration information and vector information; the speed information is converted into a first acceleration value corresponding to the global positioning system GPS device; the frequency of the crystal oscillator in the terminal device is compensated based on the first acceleration value and the second acceleration value, wherein the second acceleration value is the actual acceleration value of the GPS device determined by the terminal device. The purpose of using the correction of the GPS acceleration error value caused by the instantaneous jitter of the heating device around the crystal is achieved. Therefore, the problem of GPS performance in the terminal device in the related art can be solved, and the effect of improving the GPS performance in the terminal device can be achieved.

[0032] In an exemplary embodiment, determining speed information of a terminal device relative to a predetermined device includes:

[0033] S1, obtaining acceleration information and vector information of a terminal device relative to a predetermined device through a speed sensor, wherein the speed sensor is arranged in the terminal device.

[0034] In this embodiment, the acceleration information and vector direction of the terminal device relative to the earth are calculated, and the acceleration information and vector direction are converted into a tangential acceleration value relative to the GPS satellite, so that this value is compared with the GPS acceleration value actually calculated by the terminal device, and the error value is the difference of GPS distortion caused by thermal jitter. This difference is converted into frequency and compensated to the frequency synthesizer system of the reference crystal oscillator through circuit adjustment, so that the accuracy error of GPS caused by the frequency synthesizer system error can be compensated.

[0035] In an exemplary embodiment, converting the speed information into a first acceleration value corresponding to a global positioning system (GPS) device includes:

[0036] S1, converting acceleration information and vector information into a tangential acceleration value relative to a GPS device according to a preset rule to obtain a first acceleration.

[0037] In an exemplary embodiment, compensating a frequency of a crystal oscillator in a terminal device based on a first acceleration value and a second acceleration value includes:

[0038] S1, determining a difference between a first acceleration value and a second acceleration value;

[0039] S2, comparing the difference with a preset threshold to obtain a comparison result;

[0040] S3, compensating the frequency of the crystal oscillator based on the comparison result.

[0041] In this embodiment, when the frequency value corresponding to the first acceleration is A, the frequency corresponding to the second acceleration is X, and the preset threshold is C, the comparison result includes XA<C.

[0042] The C value can be defined as a constant. According to the mobile characteristics of the terminal device, the moving speed may be high, but the acceleration is large and lasting. The value of C is ±C, which represents a range of the measured value of X.

[0043] In an exemplary embodiment, compensating the frequency of the crystal oscillator based on the comparison result includes:

[0044] S1, when the difference is greater than or equal to a preset threshold, determining a sum of the second acceleration value and the preset threshold;

[0045] S2, uses the sum value to compensate the frequency of the crystal oscillator.

[0046] In an exemplary embodiment, compensating the frequency of the crystal oscillator based on the comparison result includes:

[0047] When the difference is smaller than a preset threshold, the frequency compensation of the crystal oscillator is terminated.

[0048] In this embodiment, if Figure 4 As shown, the frequency compensation steps in this embodiment include:

[0049] S401: The acceleration sensor outputs the acceleration of the current coordinate system, that is, the velocity information;

[0050] S402: converting the velocity information into tangential acceleration, i.e., first acceleration;

[0051] S403: Convert to the current theoretical crystal oscillator acceleration and frequency deviation frequency corresponding value;

[0052] S404: measuring the crystal oscillator frequency deviation of the GPS device, that is, the second acceleration;

[0053] S405: When the frequency value corresponding to the first acceleration is A, the frequency corresponding to the second acceleration is X, and the preset threshold is C, and when XA<C is satisfied, the compensation process is terminated (S406);

[0054] S407: When XA<C is not satisfied, the compensation frequency value is X+A (S408).

[0055] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0056] In the present embodiment, a device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceived.

[0057] like Figure 5As shown in the figure, it is an embodiment of the influence of the standby state of a wifi chip and the intermittent standby communication of a router on a crystal oscillator. As shown in the motherboard layout diagram, the wifi chip is arranged on the back of the crystal oscillator, and the distance between the devices in the horizontal plane is about 2mm. The acceleration index of the GPS caused by the operation of the wifi chip exceeds the standard. This embodiment illustrates the dilemma of the current motherboard layout on the crystal oscillator, and this contradiction will be more prominent on the next generation 5G motherboard. In order to solve the above technical problems, a frequency compensation circuit is proposed, such as Figure 6 FIG. 2 is a block diagram of a frequency compensation circuit according to an embodiment of the present invention. The device includes:

[0058] A speed sensor, used to obtain speed information of the terminal device relative to a preset device, wherein the speed information includes acceleration information and vector information, and the speed sensor is set in the terminal device;

[0059] A main control chip control unit, used for converting the speed information into a first acceleration value corresponding to a global positioning system GPS device;

[0060] A variable capacitance control unit is used to compensate the frequency of a crystal oscillator in a terminal device based on a first acceleration value and a second acceleration value, wherein the second acceleration value is an actual acceleration value of a GPS device determined by the terminal device.

[0061] In an exemplary embodiment, the circuit further comprises:

[0062] The main control chip control unit is also used to convert the acceleration information and the vector information into a tangential acceleration value relative to the GPS device according to a preset rule to obtain a first acceleration.

[0063] In an exemplary embodiment, the circuit further comprises:

[0064] The variable capacitance control unit is also used to determine the difference between the first acceleration value and the second acceleration value; to compare the difference with a preset threshold to obtain a comparison result; and to compensate the frequency of the crystal oscillator based on the comparison result.

[0065] In the above embodiment, an additional variable capacitance control unit (i.e., variable capacitance module) is added to the entire module of the reference crystal oscillator and the frequency synthesizer. This unit can be attached to the peripheral circuit or integrated into the frequency synthesizer. The main purpose is to control the frequency of the final output of the frequency synthesizer to meet the error compensation of the actual measured value of GPS acceleration.

[0066] The main control chip control unit can be integrated into the mobile phone's own processor, or a separate control chip can be used. It mainly completes the processing and conversion of the acceleration sensor output value, that is, Figure 4The whole process, and then through the output control signal including voltage control (but not limited to voltage control, it can also be i2C, SDI, mipi and other digital control), controls the variable capacitor module to work and compensates the error of the measured value of GPS acceleration. Its compensation principle is to compensate for the hardware of the crystal oscillator, which is different from the compensation correction in software. It solves the influence of thermal transient on the crystal oscillator more fundamentally. The compensation is effective and single, and will not bring other error components like software compensation.

[0067] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0068] An embodiment of the present invention further provides a computer-readable storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0069] In an exemplary embodiment, the computer-readable storage medium may include, but is not limited to, various media that can store computer programs, such as a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk.

[0070] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0071] In an exemplary embodiment, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0072] For specific examples in this embodiment, reference may be made to the examples described in the above embodiments and exemplary implementation modes, and this embodiment will not be described in detail herein.

[0073] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.

[0074] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A frequency compensation method, characterized in that: include: Determine speed information of the terminal device relative to the predetermined device, wherein the speed information includes acceleration information and vector information; Converting the speed information into a first acceleration value corresponding to a global positioning system GPS device; Compensating a frequency of a crystal oscillator in the terminal device based on the first acceleration value and a second acceleration value, wherein the second acceleration value is an actual acceleration value of the GPS device determined by the terminal device; The predetermined device is the earth; converting the velocity information into a first acceleration value corresponding to a global positioning system GPS device includes: converting the acceleration information and the vector information into a tangential acceleration value relative to the GPS device according to a preset rule to obtain the first acceleration value.

2. The method according to claim 1, characterized in that Determine the speed information of the terminal device relative to the predetermined device, including: The acceleration information and the vector information of the terminal device relative to the predetermined device are acquired through a speed sensor, wherein the speed sensor is arranged in the terminal device.

3. The method according to claim 1, characterized in that Compensating a frequency of a crystal oscillator in the terminal device based on the first acceleration value and the second acceleration value, comprising: determining a difference between the first acceleration value and the second acceleration value; Comparing the difference with a preset threshold to obtain a comparison result; The frequency of the crystal oscillator is compensated based on the comparison result.

4. The method according to claim 3, characterized in that Compensating the frequency of the crystal oscillator based on the comparison result includes: When the difference is greater than or equal to the preset threshold, determining a sum of the second acceleration value and the preset threshold; The frequency of the crystal oscillator is compensated using the sum value.

5. The method according to claim 3, characterized in that: Compensating the frequency of the crystal oscillator based on the comparison result includes: When the difference is smaller than the preset threshold, the frequency compensation of the crystal oscillator is terminated.

6. A frequency compensation circuit, characterized in that: include: A speed sensor, used to obtain speed information of a terminal device relative to a predetermined device, wherein the speed information includes acceleration information and vector information, and the speed sensor is disposed in the terminal device; A main control chip control unit, used to convert the speed information into a first acceleration value corresponding to a global positioning system GPS device; a variable capacitance control unit, configured to compensate a frequency of a crystal oscillator in the terminal device based on the first acceleration value and a second acceleration value, wherein the second acceleration value is an actual acceleration value of the GPS device determined by the terminal device; Wherein, the predetermined device is the earth; The main control chip control unit is further used to convert the acceleration information and the vector information into a tangential acceleration value relative to the GPS device according to a preset rule to obtain the first acceleration value.

7. The circuit according to claim 6, characterized in that Also includes: The main control chip control unit is further used to convert the acceleration information and the vector information into a tangential acceleration value relative to the GPS device according to a preset rule to obtain the first acceleration.

8. The circuit according to claim 6, characterized in that include: The variable capacitance control unit is further used to determine the difference between the first acceleration value and the second acceleration value; It is also used to compare the difference with a preset threshold to obtain a comparison result; and it is also used to compensate the frequency of the crystal oscillator based on the comparison result.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program implements the steps of the method described in any one of claims 1 to 5 when executed by a processor.

10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method described in any one of claims 1 to 5 are implemented.

Citation Information

Patent Citations

  • Infrastructure and method for providing aiding information to a GPS receiver

    CN101339236A

  • PLL and adaptive compensation method in PLL

    CN105580278A