CN115002892B - Method, terminal and medium for reducing influence of temperature drift of crystal oscillator of narrow-band system - Google Patents

Method, terminal and medium for reducing influence of temperature drift of crystal oscillator of narrow-band system Download PDF

Info

Publication number
CN115002892B
CN115002892B CN202210406836.6A CN202210406836A CN115002892B CN 115002892 B CN115002892 B CN 115002892B CN 202210406836 A CN202210406836 A CN 202210406836A CN 115002892 B CN115002892 B CN 115002892B
Authority
CN
China
Prior art keywords
crystal oscillator
temperature
frequency
narrow
count value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210406836.6A
Other languages
Chinese (zh)
Other versions
CN115002892A (en
Inventor
林旭
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xinyi Information Technology Nanjing Co ltd
Xinyi Information Technology Shanghai Co ltd
Original Assignee
Xinyi Information Technology Nanjing Co ltd
Xinyi Information Technology Shanghai Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xinyi Information Technology Nanjing Co ltd, Xinyi Information Technology Shanghai Co ltd filed Critical Xinyi Information Technology Nanjing Co ltd
Priority to CN202210406836.6A priority Critical patent/CN115002892B/en
Publication of CN115002892A publication Critical patent/CN115002892A/en
Application granted granted Critical
Publication of CN115002892B publication Critical patent/CN115002892B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • H04W56/001Synchronization between nodes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0261Power saving arrangements in terminal devices managing power supply demand, e.g. depending on battery level
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Oscillators With Electromechanical Resonators (AREA)

Abstract

The embodiment of the application relates to the technical field of internet of things systems and discloses a method, a terminal and a medium for reducing the influence of temperature drift of a crystal oscillator of a narrowband system. The method for reducing the influence of the temperature drift of the crystal oscillator of the narrow-band system comprises the following steps: acquiring a first crystal oscillator frequency, a second crystal oscillator frequency and a third crystal oscillator frequency based on a crystal oscillator temperature drift characteristic function; acquiring a first count value and a second count value; acquiring a first time length based on the first crystal oscillator frequency, the first count value and the second count value; acquiring a second duration based on a cooling characteristic function of the narrow-band system; acquiring a third time length; taking the second time length and the third time length as weights, and carrying out weighted average on the second crystal oscillator frequency and the third crystal oscillator frequency to obtain an equivalent crystal oscillator frequency; and compensating the local clock based on the equivalent crystal oscillator frequency. The method for reducing the influence of the temperature drift of the crystal oscillator of the narrowband system can reduce the time domain deviation of the local clock of the narrowband system in the power saving mode.

Description

Method, terminal and medium for reducing influence of temperature drift of crystal oscillator of narrow-band system
Technical Field
The embodiment of the application relates to the technical field of internet of things systems, in particular to a method, a terminal and a medium for reducing the influence of the temperature drift of a crystal oscillator of a narrowband system.
Background
As demands for the internet of things increase, a plurality of internet of things communication solutions and standards are presented. The narrowband internet of things (Narrow Band Internet of Things, NBIoT for short) is a wide area internet of things technology standard based on a cellular network. The narrowband internet of things supports several power saving modes, namely discontinuous reception (Discontinuous Reception, abbreviated as DRX), extended discontinuous reception (enhanced Discontinuous Reception, abbreviated as eDRX) and sleep mode (Power Saving Mode, abbreviated as PSM), during the power saving mode, in order to reduce the bottom current of the narrowband system, the clock source generally only maintains a low-frequency clock, and after exiting the power saving mode, the local clock is recovered through the low-frequency clock, so that the time domain offset of the low-frequency clock during the power saving period is introduced into the local clock, and the local clock is deviated. Because the narrowband system may be in a temperature-reducing process due to temperature rise caused by radio frequency transceiving before entering the power-saving mode, the local clock is easily time-shifted due to the temperature drift of the crystal oscillator during the power-saving mode, thereby causing time-domain deviation of the local clock during the power-saving mode.
Disclosure of Invention
The embodiment of the application aims to provide a method, a terminal and a medium for reducing the influence of temperature drift of a crystal oscillator of a narrowband system, and the method, the terminal and the medium reduce timing deviation of the narrowband system caused by the temperature drift effect during a power saving mode, so that time domain deviation of a local clock of the narrowband system during the power saving mode is reduced.
In order to solve the technical problems, the embodiment of the application provides a method for reducing the influence of the temperature drift of a crystal oscillator of a narrow-band system, which comprises the following steps: acquiring a first crystal oscillator frequency, a second crystal oscillator frequency and a third crystal oscillator frequency based on a crystal oscillator temperature drift characteristic function; the first crystal oscillator frequency is the crystal oscillator frequency of the narrow-band system at the ambient temperature during the power saving mode, the second crystal oscillator frequency is the crystal oscillator frequency of the narrow-band system at the system temperature before the narrow-band system enters the power saving mode, and the third crystal oscillator frequency is the crystal oscillator frequency of the narrow-band system at the system temperature after the narrow-band system exits the power saving mode; based on a clock signal of a low-frequency clock, respectively acquiring a first count value and a second count value; the first count value is the count value of the low-frequency clock before entering the power saving mode, and the second count value is the count value of the low-frequency clock after exiting the power saving mode; acquiring a first time length based on the first crystal oscillator frequency, the first count value and the second count value; the first duration is a predicted duration of the power saving mode; acquiring a second duration based on a cooling characteristic function of the narrow-band system; the second time length is the time length required by the cooling stage of the power saving mode of the narrow-band system; acquiring a third time length based on the first time length and the second time length; the third duration is the duration required by the temperature stabilization stage of the power saving mode of the narrowband system; taking the second time length and the third time length as weights, and carrying out weighted average on the second crystal oscillator frequency and the third crystal oscillator frequency to obtain equivalent crystal oscillator frequency; and compensating the local clock based on the equivalent crystal oscillator frequency.
In addition, the compensating the local clock based on the equivalent crystal oscillator frequency comprises: acquiring a third count value based on a clock signal of the local clock; the third count value is a count value of a local clock before entering a power saving mode; acquiring a fourth time length based on the equivalent crystal oscillator frequency, the first count value and the second count value, wherein the fourth time length is the duration of a power saving mode of the narrowband system; and acquiring the count value of the compensated local clock based on the fourth time length and the third count value.
In addition, the fourth time length is calculated by the formula (1):
the count value of the compensated local clock is calculated by the formula (2):
wherein t is sleep For a fourth duration of time N b For the first count value, N a As the second count value, F eq Is equivalent to the frequency of crystal oscillator, n b Is of a third count value, n a F for the compensated count value of the local clock local Is the local clock frequency.
In addition, the first time length is calculated by the formula (3):
wherein t is Estimation of For a first duration of time N b For the first count value, N a For the second count value, F (T env ) Is the first crystal oscillator frequency.
In addition, when T a ≤T b <T s Or T s <T a ≤T b When the second time period is calculated by the formula (4):
t lowering blood pressure =t(T a -T env )-t(T b -T env )(4)
The third time period is calculated by the formula (5):
the equivalent crystal oscillator frequency is calculated by a formula (6):
wherein T is b For the system temperature before the narrow-band system enters the power-saving mode, T a For the system temperature after the narrowband system exits the power saving mode, T s Is the standing point temperature, T of the crystal oscillator frequency-temperature characteristic curve env For the ambient temperature, t, at which the narrowband system is in during the power saving mode Lowering blood pressure For a second period of time, t Stability and stability For the third period of time, F (T env ) For the first crystal oscillator frequency, F (T b ) For the second crystal frequency, F (T a ) For a third vibration frequency F eq Is equivalent crystal oscillator frequency.
In addition, when T a ≤T s ≤T b The second time period is that the system temperature of the narrow-band system is from T b Down to T s The required time length and the system temperature of the narrow-band system are from T s Down to T a The sum of the required time periods; the system temperature of the narrow-band system is from T b Down to T s The required time length is calculated by the formula (7):
t drop 1 =t(25-T env )-t(T b -T env ) (7)
The system temperature of the narrow-band system is from T s Down to T a The required time length is calculated by the formula (8):
t drop 2 =t(T a -T env )-t(25-T env ) (8)
The third time period is calculated by the formula (9):
the equivalent crystal oscillator frequency is calculated by the formula (10):
wherein T is b For the system temperature before the narrow-band system enters the power-saving mode, T a For the system temperature after the narrowband system exits the power saving mode, T s Is the standing point temperature, T of the crystal oscillator frequency-temperature characteristic curve env For the ambient temperature, t, at which the narrowband system is in during the power saving mode Drop 1 System temperature for narrowband system from T b Down to T s The required time period, t Drop 2 System temperature for narrowband system from T s Down to T a The required time period, t Stability and stability For a third period of time, F (T env ) For the first crystal oscillator frequency, F (T b ) For the second crystal frequency, F (T a ) For a third vibration frequency F eq Is equivalent crystal oscillator frequency.
In addition, the cooling characteristic function of the narrow-band system is obtained through the following steps: setting a plurality of environment temperatures, and acquiring the system temperature of the narrow-band system corresponding to different cooling time after the narrow-band system enters a power saving mode at each environment temperature; acquiring a relative temperature based on the system temperature of the narrowband system and the ambient temperature; acquiring a cooling characteristic curve of the narrow-band system based on the relative temperature and the cooling time; and performing piecewise linear regression on the cooling characteristic curve of the narrow-band system to obtain a cooling characteristic function of the narrow-band system.
In addition, the temperature range of the ambient temperature is-40 ℃ to 80 ℃.
In addition, at an ambient temperature of 25 ℃, characteristic points A (0, T 0 )、B(t 1 ,T 1 )、C(t 2 0) respectively obtaining a cooling characteristic curve of the narrow-band system as a starting time point of a rapid cooling stage of the narrow-band system, a starting time point of a slow cooling stage of the narrow-band system and a starting time point of a temperature stabilizing stage of the narrow-band system:
Performing piecewise linear regression on the cooling characteristic curve of the narrow-band system to obtain a cooling characteristic function of the narrow-band system, wherein the cooling characteristic function is shown in a formula (12):
wherein T is 0 For the relative temperature at characteristic point A, t 1 For the cooling time at the characteristic point B, T 1 For the relative temperature at characteristic point B, t 2 For the cooling time at the characteristic point C, T is the system temperature of the narrow-band system under different cooling time after the narrow-band system enters the power saving mode, T env Is the ambient temperature at which the narrowband system is located during the power saving mode.
In addition, the acquisition of the temperature drift characteristic function of the crystal oscillator comprises the following steps: setting a plurality of environment temperatures, and acquiring the frequency of a low-frequency clock after stabilizing at each environment temperature based on each environment temperature; and acquiring a crystal oscillator temperature drift characteristic function based on the ambient temperature and the frequency of the stabilized low-frequency clock.
In addition, the obtaining the characteristic function of the temperature drift of the crystal oscillator based on the ambient temperature and the frequency of the stabilized low-frequency clock includes: taking the ambient temperature as an abscissa, and the frequency of the stabilized low-frequency clock as an ordinate, obtaining n coordinate points;
obtaining the temperature drift characteristic function of the crystal oscillator through a formula (13):
wherein F is 1 For the frequency of the stabilized low-frequency clock of the first coordinate point, T 1 For the ambient temperature of the first coordinate point, F 2 For the frequency of the stabilized low-frequency clock of the second coordinate point, T 2 For the ambient temperature of the second coordinate point, F n-1 T is the frequency of the stabilized low-frequency clock of the n-1 th coordinate point n-1 An ambient temperature of the n-1 th coordinate point F n For the frequency of the stabilized low-frequency clock of the nth coordinate point, T n And the n-th coordinate point is the ambient temperature, T is the ambient temperature, and F (T) is the frequency of the low-frequency clock after being stabilized at the ambient temperature.
The embodiment of the application also provides a terminal, which comprises: the temperature sensing module and the at least one processor are connected with the temperature sensing module; and a memory communicatively coupled to the at least one processor; the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method for reducing the influence of the narrowband system crystal oscillator temperature drift as described in any one of the above.
The embodiment of the application also provides a computer readable storage medium which stores a computer program, wherein the computer program is executed by a processor to realize the method for reducing the influence of the temperature drift of the narrow-band system crystal oscillator.
The technical scheme provided by the embodiment of the application has at least the following advantages:
according to the method for reducing the influence of the temperature drift of the crystal oscillator of the narrowband system, provided by the embodiment of the application, the equivalent crystal oscillator frequency is calculated in a weighted average mode based on the temperature drift characteristic function of the crystal oscillator and the cooling characteristic function of the narrowband system, and the local clock is compensated to ensure the continuity of the local clock in the time domain, so that the timing deviation caused by the temperature drift effect during the power saving mode of the narrowband system is reduced, and the time domain deviation of the local clock during the power saving mode of the narrowband system is further reduced. According to the application, the cooling characteristic of the narrow-band system and the temperature drift characteristic of the crystal oscillator are combined, the equivalent crystal oscillator frequency of the narrow-band system in the power saving period is calculated through weighted average, the local clock is compensated, and compared with the state that the fixed parameter is directly used as the crystal oscillator frequency value in the prior art, the clock compensation stage in the power saving mode of the narrow-band system considers the influence of the temperature drift of the crystal oscillator caused by the natural cooling of the narrow-band system, so that the equivalent crystal oscillator frequency is calculated through combining the cooling characteristic of the narrow-band system and the temperature drift characteristic of the crystal oscillator, the local clock is compensated, and the influence of the temperature drift of the crystal oscillator on the time domain deviation of the local clock of the narrow-band system can be reduced.
Drawings
One or more embodiments are illustrated by way of example and not limitation in the figures of the accompanying drawings.
Fig. 1 is a flowchart of a downlink synchronization method of the related art;
FIG. 2 is a flow chart of a method for reducing the influence of the temperature drift of a crystal oscillator of a narrowband system according to an embodiment of the application;
FIG. 3 is a diagram of clock signals of a low frequency clock and a local clock in a power saving mode according to an embodiment of the present application;
FIG. 4 is a schematic diagram of a cooling profile of a narrowband system according to an embodiment of the application;
fig. 5 is a schematic structural diagram of a terminal according to an embodiment of the present application.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present application more apparent, the embodiments of the present application will be described in detail below with reference to the accompanying drawings. However, it will be understood by those of ordinary skill in the art that in various embodiments of the present application, numerous specific details are set forth in order to provide a thorough understanding of the present application. However, the claimed technical solution of the present application can be realized without these technical details and various changes and modifications based on the following embodiments. The following embodiments are divided for convenience of description, and should not be construed as limiting the specific implementation of the present application, and the embodiments can be mutually combined and referred to without contradiction.
As known from the background art, there is a problem that the local clock is easily biased due to the temperature drift of the crystal oscillator during the power saving mode in the Narrow Band (NB) system, so that the local clock is biased in the time domain during the power saving mode.
Because the temperature of the narrowband system may rise due to the radio frequency transceiving before entering the power saving mode, the narrowband system is in a cooling process during the power saving mode, and the temperature drift effect of the low frequency clock becomes a non-negligible time domain offset cause. After the narrowband system exits the power saving mode, the narrowband system performs time-frequency synchronization by taking the factor into consideration, so as to cope with the time offset caused by the temperature drift of the crystal oscillator. For local clock time domain and frequency domain offset caused by crystal oscillator temperature drift during a power saving mode of a narrow-band system, in the related art, the local clock is usually corrected by a downlink synchronization method.
Referring to fig. 1, a currently common downlink synchronization method includes:
step S101, the original baseband data is obtained through downlink receiving.
Step S102, a primary synchronization signal (Narrow band Primary Synchronization Signal, NPSS) or a secondary synchronization signal (Narrow band Secondary Synchronization Signal, NSSS) is detected in the baseband data.
Step S103, according to the difference value between the actual position of the NPSS/NSSS signal in the baseband data and the estimated position of the local clock, the time and frequency of the local clock are adjusted.
The related art can perform time and frequency adjustment on the local clock by a difference between an actual position of the NPSS/NSSS signal in the baseband data and an estimated position of the local clock. However, when the time domain and frequency domain offsets expected by the local clock are larger, the more the original baseband data that needs to be received in the downlink is, the larger the computation amount is correspondingly increased when NPSS/NSSS detection is performed, which results in increased power consumption. In addition, in the prior art, the time and frequency of the local clock are adjusted by the difference value between the actual position of the NPSS/NSSS signal and the estimated position of the local clock, and the expected deviation of the local clock is not considered, so that the power consumption is high, and the design requirement of low power consumption of the narrowband Internet of things is not met.
In the related art, a temperature compensated quartz crystal resonator (Temperature Compensate X' tal) Oscillator, abbreviated as TCXO) is also commonly used to adjust the local clock, so as to reduce the deviation of the local clock from the source. The TCXO is a temperature compensation circuit comprising a thermistor and a resistor-capacitor element, and is formed by connecting the temperature compensation circuit with a quartz crystal oscillator in series in an oscillator. When the temperature changes, the resistance value of the thermistor and the capacitance value of the crystal equivalent series capacitor correspondingly change, so that the temperature drift of the oscillation frequency is counteracted or reduced. However, TCXOs generally have a higher cost than a common crystal oscillator (Crystal Oscillator, abbreviated as XO), and the common frequency points of TCXOs are 10MHz, 16MHz, 19.2MHz, 20MHz, and the like, while in order to pursue low power consumption, the narrowband internet of things often only maintains a low frequency clock source during a power saving mode, and generally shares a 32k crystal oscillator (xo_32k) with a universal standard time (Coordinated Universal Time, abbreviated as UTC), which does not belong to the common frequency points of TCXOs.
Based on this, the embodiment of the application provides a method for reducing the influence of the temperature drift of a crystal oscillator of a narrowband system, which is based on the temperature characteristic curve of XO_32k and the cooling curve of the narrowband system, and based on different cooling stages, the frequency of a 32k clock is weighted and averaged in the time domain to obtain the equivalent crystal oscillator frequency, the local clock is compensated, and the time domain offset of the local clock is reduced, so that the cost of time-frequency synchronization of an NB system after exiting a power saving mode is reduced, and the purpose of reducing the power consumption is achieved.
The implementation details of a method for reducing the influence of the temperature drift of the narrowband system crystal oscillator in this embodiment are specifically described below, and the following details are provided only for easy understanding, and are not necessary for implementing this embodiment.
Referring to fig. 2, an embodiment of the present application provides a method for reducing the influence of a narrowband system crystal oscillator temperature drift, including the following steps:
step S1, acquiring a first crystal oscillator frequency, a second crystal oscillator frequency and a third crystal oscillator frequency based on a crystal oscillator temperature drift characteristic function; the first crystal oscillator frequency is the crystal oscillator frequency of the narrow-band system at the ambient temperature during the power saving mode, the second crystal oscillator frequency is the crystal oscillator frequency of the narrow-band system at the system temperature before the narrow-band system enters the power saving mode, and the third crystal oscillator frequency is the crystal oscillator frequency of the narrow-band system at the system temperature after the narrow-band system exits the power saving mode.
Step S2, based on a clock signal of a low-frequency clock, a first count value and a second count value are respectively obtained; the first count value is the count value of the low-frequency clock before entering the power saving mode, and the second count value is the count value of the low-frequency clock after exiting the power saving mode.
And step S3, acquiring a first time length based on the first crystal oscillator frequency, the first count value and the second count value, wherein the first time length is an estimated duration of the power saving mode.
And S4, acquiring a second time length based on the cooling characteristic function of the narrowband system, wherein the second time length is the time length required by the cooling stage of the power saving mode of the narrowband system.
And step S5, acquiring a third time length based on the first time length and the second time length, wherein the third time length is the time length required by the temperature stabilization stage of the power saving mode of the narrowband system.
And S6, taking the second time length and the third time length as weights, and carrying out weighted average on the second crystal oscillator frequency and the third crystal oscillator frequency to obtain the equivalent crystal oscillator frequency.
And S7, compensating the local clock based on the equivalent crystal oscillator frequency.
Because the temperature drift characteristic of the crystal oscillator of the NB system is closely related to the environment temperature of the NB system, in the temperature range of the environment temperature of-40 ℃ to 80 ℃, a plurality of environment temperatures are set at intervals, then the NB system is placed in an incubator, the frequency of a stable low-frequency clock is measured at each environment temperature, and according to the relation between the measured environment temperature and the frequency of the stable low-frequency clock, the temperature drift characteristic function of the crystal oscillator can be obtained, so that the first crystal oscillator frequency, the second crystal oscillator frequency and the third crystal oscillator frequency are obtained; the first crystal oscillator frequency is the crystal oscillator frequency of a low-frequency clock obtained by a crystal oscillator temperature drift characteristic function of a narrow-band system at the ambient temperature during a power saving mode, the narrow-band system of the second crystal oscillator frequency is the crystal oscillator frequency of the low-frequency clock obtained by the crystal oscillator temperature drift characteristic function of the narrow-band system at the current self-system temperature before entering the power saving mode, and the third crystal oscillator frequency is the crystal oscillator frequency of the low-frequency clock obtained by the crystal oscillator temperature drift characteristic function of the narrow-band system at the current self-system temperature after exiting the power saving mode.
In some embodiments, the low frequency clock may be a clock crystal having a frequency of 32.768KHz and the local clock may be a clock crystal having a frequency of 1.92 MHz.
It should be noted that, in the embodiment of the present application, the power saving mode may include a low power consumption mode such as an energy saving mode and a sleep mode.
According to the embodiment of the application, based on the crystal oscillator temperature drift characteristic function and the narrow-band system cooling characteristic function, the equivalent crystal oscillator frequency is calculated in a weighted average mode, and the local clock is compensated, so that the continuity of the local clock in the time domain is ensured, the timing deviation caused by the temperature drift effect during the narrow-band system power saving mode is reduced, and the time domain deviation of the local clock during the narrow-band system power saving mode is further reduced. According to the embodiment of the application, the cooling characteristic of the narrow-band system and the temperature drift characteristic of the crystal oscillator are combined, the equivalent crystal oscillator frequency in the power-saving period of the narrow-band system is calculated through weighted average, the local clock is compensated, and compared with the state that the fixed parameter is directly used as the crystal oscillator frequency value in the prior art, the clock compensation stage in the power-saving mode of the narrow-band system considers the influence of the temperature drift of the crystal oscillator caused by natural cooling of the narrow-band system, so that the equivalent crystal oscillator frequency is calculated by combining the cooling characteristic of the narrow-band system and the temperature drift characteristic of the crystal oscillator, the local clock is compensated, and the influence of the temperature drift of the crystal oscillator on the time domain deviation of the local clock of the narrow-band system can be reduced.
In some embodiments, the compensating the local clock based on the equivalent crystal oscillator frequency includes:
acquiring a third count value based on a clock signal of the local clock; the third count value is a count value of a local clock before entering a power saving mode;
acquiring a fourth time length based on the equivalent crystal oscillator frequency, the first count value and the second count value, wherein the fourth time length is the duration of a power saving mode of the narrowband system;
and acquiring the count value of the compensated local clock based on the fourth time length and the third count value.
The embodiment of the application respectively acquires a first count value and a second count value based on a clock signal of a low-frequency clock; acquiring a third count value based on a clock signal of the local clock; then, acquiring a fourth time length based on the first count value, the second count value and the equivalent crystal oscillator frequency, wherein the fourth time length is the duration of a power saving mode of the narrow-band system; and finally compensating the local clock count based on the fourth duration and the third count value. In the conventional method, a fixed parameter is often used as a crystal oscillator frequency when the fourth duration is acquired, but in the embodiment of the application, the equivalent crystal oscillator frequency during the power saving period of the narrow-band system is acquired in a weighted average mode based on a crystal oscillator temperature drift characteristic function and a narrow-band system cooling characteristic function, and the local clock is compensated based on the equivalent crystal oscillator frequency, so that the continuity of the local clock in the time domain is ensured, and the time domain deviation of the local clock during the power saving mode of the narrow-band system is reduced.
In addition, the fourth time length is calculated by the formula (1):
the count value of the compensated local clock is calculated by the formula (2):
wherein t is sleep For a fourth duration of time N b For the first count value, N a As the second count value, F eq Is equivalent to the frequency of crystal oscillator, n b Is of a third count value, n a F for the compensated count value of the local clock local Is the local clock frequency.
Here, F local Is the local clock frequency, typically 1.92MHz.
Referring to fig. 3, a diagram of clock signals of a low frequency clock and a local clock in a power saving mode according to an embodiment of the application is shown. As shown in fig. 3, the NB system local clock stops counting during the power saving mode, and the low frequency clock keeps counting, so the NB system needs to compensate the local clock by the low frequency clock after exiting the power saving mode to ensure the continuity of the local clock in the time domain.
As shown in fig. 3, the first count value N is obtained on the changing edge of the low frequency clock before the NB system starts to enter the power saving mode, i.e., at the start position b First count value N b A crystal frequency at ambient temperature during a power saving mode for the NB system; after the NB system exits the power saving mode, namely at the end point, a second count value N is obtained on the change edge of the low-frequency clock a A second count value N a A count value of the low-frequency clock after exiting the power saving mode; based on the first count value N b A second count value N a The equivalent crystal oscillator frequency can calculate and acquire the interval time t between the two counting low-frequency clock change edges before the NB system enters the power saving mode (starting point) and after the NB system exits the power saving mode (ending point) sleep
Reading a first count value N on a changing edge of the low frequency clock before the NB system starts to enter the power saving mode, namely at a starting point position b At the same time, a third calculated value n can be obtained on the change edge of the local clock b Then based on the interval time t sleep And a third calculated value n b Compensating the count value of the local clock to obtain the count value n of the compensated local clock a To reduce the count skew of the local clock.
The first count value N b A second count value N a A third count value n by reading the data acquisition of the counter of the low frequency clock on the changing edge of the low frequency clock b Data acquisition by reading a counter of the local clock on a changing edge of the local clock.
Before an NB system enters a power saving mode, the embodiment of the application acquires a first count value N on the change edge of a low-frequency clock b At the same time, a third calculated value n is obtained on the change edge of the local clock b The method comprises the steps of carrying out a first treatment on the surface of the After the NB system exits the power saving mode, a second count value N is obtained on the change edge of the low-frequency clock a Based on the first count value N b A second count value N a And equivalent crystalVibration frequency F eq Acquiring interval time t of clock change edges before and after NB system enters into power saving mode sleep Then through a third calculated value n b And interval time t sleep The local clock count is compensated. According to the embodiment of the application, the temperature drift characteristic of the crystal oscillator and the cooling characteristic of the narrow-band system are combined, and the equivalent crystal oscillator frequency in the power saving period of the narrow-band system is obtained to compensate the local clock, so that the timing deviation caused by the temperature drift effect of the crystal oscillator is reduced, and the time domain deviation of the local clock in the power saving mode of the narrow-band system is further reduced.
In some embodiments, the first time length is calculated by equation (3):
wherein t is Estimation of For a first duration of time N b For the first count value, N a For the second count value, F (T env ) Is the first crystal oscillator frequency.
The embodiment of the application is based on the first count value N b A second count value N a And a crystal oscillator frequency F (T) of the narrowband system at ambient temperature during a power saving mode env ) Acquiring a first time length t Estimation of I.e. the estimated duration of the narrowband system in the power saving mode, the first duration t is conveniently passed in the following Estimation of Calculating a third time period t Stability and stability I.e. the length of time required for the narrowband system to be in the power saving mode temperature stabilization phase.
The temperature drift characteristic of the low frequency clock (XO_32k) is at T s The trend of change is different at two sides (usually 25 ℃), and when the temperature is lower than 25 ℃, the crystal oscillation frequency of the low-frequency clock increases along with the temperature rise; when the temperature is higher than 25 ℃, the crystal oscillator frequency of the low-frequency clock is reduced along with the temperature rise, so that two application scenes need to be distinguished.
In some embodiments, when T a ≤T b <T s Or T s <T a ≤T b When the second time period is calculated by the formula (4):
t lowering blood pressure =t(T a -T env )-t(T b -T env ) (4)
The third time period is calculated by the formula (5):
the equivalent crystal oscillator frequency is calculated by a formula (6):
wherein T is b For the system temperature before the narrow-band system enters the power-saving mode, T a For the system temperature after the narrowband system exits the power saving mode, T s Is the standing point temperature, T of the crystal oscillator frequency-temperature characteristic curve env For the ambient temperature, t, at which the narrowband system is in during the power saving mode Lowering blood pressure For a second period of time, t Stability and stability For the third period of time, F (T env ) For the first crystal oscillator frequency, F (T b ) For the second crystal frequency, F (T a ) For a third vibration frequency F eq Is equivalent crystal oscillator frequency.
In the formula (6), T s The standing point temperature of the crystal oscillator frequency-temperature characteristic curve, namely the temperature corresponding to the peak point of the crystal oscillator frequency-temperature characteristic curve, is opposite to the trend of the crystal oscillator frequency along with the temperature change at the two sides of the standing point temperature. For a 32K crystal oscillator, this dwell temperature is 25 ℃.
In the embodiment of the application, the system temperature before the narrowband system enters the power saving mode and the system temperature after the narrowband system exits the power saving mode are both greater than 25 ℃ or both less than 25 ℃, so that the crystal oscillator frequency F (T) of the narrowband system at the current system temperature before the narrowband system enters the power saving mode b ) And the crystal oscillator frequency F (T) at the current system temperature after the narrowband system exits the power saving mode a ) On the same side of the narrow-band system cooling characteristic curve at 25 ℃, namely before the narrow-band system enters the power saving mode or after the narrow-band system exits the power saving mode, at two time pointsThe system temperature of the narrow-band system is consistent with the change of the crystal oscillator frequency, so that the system temperature of the narrow-band system is controlled from T based on the branching section regression function of the cooling curve b Down to T a The required time length is calculated by the formula (4), in the formula (4), T env May be 25 ℃.
Based on the temperature drift characteristic function of the crystal oscillator, a first crystal oscillator frequency F (T env ) Second crystal frequency F (T) b ) And a third vibration frequency F (T a ) The method comprises the steps of carrying out a first treatment on the surface of the First crystal oscillator frequency F (T env ) At ambient temperature T during power saving mode for narrowband systems env Lower crystal frequency, second crystal frequency F (T b ) For narrowband systems at system temperature T before entering power saving mode b A crystal frequency of the third crystal frequency F (T a ) At system temperature T after exiting power saving mode for narrowband systems a Lower crystal oscillator frequency. Then calculating the equivalent crystal oscillator frequency F by a weighted average mode eq The local clock is compensated.
The embodiment of the application provides an equivalent crystal oscillator frequency F in an application scene eq I.e. the crystal oscillator frequency F (T) at the current system temperature before the narrowband system enters the power saving mode b ) And the crystal oscillator frequency F (T) at the current system temperature after the narrowband system exits the power saving mode a ) At the same side of the narrow-band system cooling characteristic curve of 25 ℃, the equivalent crystal oscillator frequency F eq Is calculated by the method; obtaining a second time length t based on a branching section regression function of a cooling curve Lowering blood pressure (System temperature of narrow band System from T) b Down to T a A desired time period), and then through a first time period t Estimation of And a second time period t Lowering blood pressure Acquiring a third time period t Stability and stability Finally, based on the temperature drift characteristic function of the crystal oscillator, calculating the equivalent crystal oscillator frequency F in a weighted average mode eq
In other embodiments, when T a ≤T s ≤T b The second time period is that the system temperature of the narrow-band system is from T b Down to T s The required time length and the system temperature of the narrow-band system are from T s Down to T a The sum of the required time periods;
the system temperature of the narrow-band system is from T b Down to T s The required time length is calculated by the formula (7):
t drop 1 =t(25-T env )-t(T b -T env ) (7)
The system temperature of the narrow-band system is from T s Down to T a The required time length is calculated by the formula (8):
t drop 2 =t(T a -T env )-t(25-T env ) (8)
The third time period is calculated by the formula (9):
the equivalent crystal oscillator frequency is calculated by the formula (10):
wherein T is b For the system temperature before the narrow-band system enters the power-saving mode, T a For the system temperature after the narrowband system exits the power saving mode, T s Is the standing point temperature, T of the crystal oscillator frequency-temperature characteristic curve env For the ambient temperature, t, at which the narrowband system is in during the power saving mode Drop 1 System temperature for narrowband system from T b Down to T s The required time period, t Drop 2 System temperature for narrowband system from T s Down to T a The required time period, t Stability and stability For a third period of time, F (T env ) For the first crystal oscillator frequency, F (T b ) For the second crystal frequency, F (T a ) For a third vibration frequency F eq Is equivalent crystal oscillator frequency.
The embodiment of the application provides the equivalent crystal oscillator frequency F in another application scene eq I.e. the crystal oscillator frequency F (T) at the current system temperature before the narrowband system enters the power saving mode b ) And the crystal oscillator frequency at the current system temperature after the narrowband system exits the power saving modeF(T a ) When being respectively positioned at two sides of the 25 ℃ of the cooling characteristic curve of the narrow-band system, the equivalent crystal oscillator frequency F eq Is calculated by the method; the branching section regression function based on the cooling curve firstly obtains the system temperature of the narrow-band system from T b The time period t required for the temperature to drop to 25 DEG C Drop 1 Then the system temperature of the narrow-band system is obtained and reduced from 25 ℃ to T a The required time period t Drop 2 By taking the system temperature of the narrowband system from T b The time period t required for the temperature to drop to 25 DEG C Drop 1 The system temperature of the narrow-band system is reduced from 25 ℃ to T a The required time period t Drop 2 Adding to obtain a second time length t Lowering blood pressure Then pass through the first time period t Estimation of And a second time period t Lowering blood pressure Acquiring a third time period t Stability and stability Finally, based on the temperature drift characteristic function of the crystal oscillator, calculating the equivalent crystal oscillator frequency F in a weighted average mode eq
In some embodiments, the narrowband system cooling characteristic function is obtained by:
setting a plurality of environment temperatures, and acquiring the system temperature of the narrow-band system corresponding to different cooling time after the narrow-band system enters a power saving mode at each environment temperature;
Acquiring a relative temperature based on the system temperature of the narrowband system and the ambient temperature;
acquiring a cooling characteristic curve of the narrow-band system based on the relative temperature and the cooling time;
and performing piecewise linear regression on the cooling characteristic curve of the narrow-band system to obtain a cooling characteristic function of the narrow-band system.
Since the cooling characteristics of NB systems are closely related to their own material structure and the temperature of the environment. The embodiment of the application selects a plurality of characteristic temperatures (namely, the ambient temperature T) aiming at the temperature range of the working environment of the NB system product env ) -40 ℃, -25 ℃, -10 ℃, 0 ℃, 10 ℃, 25 ℃, 50 ℃, 75 ℃. Setting the NB system into the incubator with different characteristic temperatures by using the incubator, controlling the NB system to perform long-time radio frequency transmission to increase the temperature of the NB system, and then entering a power saving mode (sleep) by the NB systemSpecific data of the system temperature of the NB system changing along with the cooling time are recorded, so that a relation curve between the relative temperature (difference value between the NB system and the ambient temperature) and the cooling time can be drawn, and a cooling characteristic function of the narrow-band system is obtained.
According to the embodiment of the application, the NB system is placed in the temperature boxes with different set environmental temperatures by setting a plurality of environmental temperatures, after the NB system transmits radio frequency for a long time, the NB system is made to enter a power saving mode, the system temperature of the NB system is obtained, the relative temperature is obtained based on the system temperature and the environmental temperature of the NB system, the narrowband system cooling characteristic curve is obtained based on the relative temperature and the cooling time, and the narrowband system cooling characteristic function is obtained, so that the second time length t is conveniently calculated based on the narrowband system cooling characteristic function in the follow-up process Lowering blood pressure Thereby obtaining a third time period t Stability and stability So as to conveniently calculate the equivalent crystal oscillator frequency F eq
In some embodiments, the ambient temperature ranges from-40 ℃ to 80 ℃.
Typically, the operating environment of NB system products is in the temperature range of-40 ℃ to 80 ℃, so embodiments of the present application choose a temperature range of-40 ℃ to 80 ℃ as the ambient temperature.
In some embodiments, the feature points A (0, T are selected at an ambient temperature of 25 DEG C 0 )、B(t 1 ,T 1 )、C(t 2 0) respectively obtaining a cooling characteristic curve of the narrow-band system as a starting time point of a rapid cooling stage of the narrow-band system, a starting time point of a slow cooling stage of the narrow-band system and a starting time point of a temperature stabilizing stage of the narrow-band system:
performing piecewise linear regression on the cooling characteristic curve of the narrow-band system to obtain a cooling characteristic function of the narrow-band system, wherein the cooling characteristic function is shown in a formula (12):
wherein T is 0 For the relative temperature at characteristic point A, t 1 For the cooling time at the characteristic point B, T 1 For the relative temperature at characteristic point B, t 2 For the cooling time at the characteristic point C, T is the system temperature of the narrow-band system under different cooling time after the narrow-band system enters the power saving mode, T env Is the ambient temperature at which the narrowband system is located during the power saving mode.
Referring to fig. 4, a schematic diagram of a cooling characteristic curve of a narrowband system according to an embodiment of the application is shown. As shown in FIG. 4, the embodiment of the application uses the ambient temperature T env For the cooling characteristic curve of a narrow-band system at 25 ℃ as an example, three characteristic points, namely A (0, T 0 )、B(t 1 ,T 1 )、C(t 2 0), A (0, T 0 ) As a starting point of time for the rapid cooling phase of the narrowband system, B (t 1 ,T 1 ) As the starting point of the slow down phase of the narrowband system, C (t 2 0) as the initial time point of the temperature stabilization stage of the narrow-band system, acquiring a function expression of a narrow-band system cooling characteristic curve at the environment temperature of 25 ℃, as shown in a formula (11). And carrying out segment regression on the cooling characteristic curve of the narrow-band system to obtain the cooling characteristic function of the narrow-band system, as shown in a formula (12).
It will be appreciated that the relationship between the cooling time and the relative temperature, i.e., t, can be obtained in the same manner for other ambient temperatures (-40 ℃, -25 ℃, -10 ℃,0 ℃, 10 ℃, 25 ℃, 50 ℃, 75 ℃) -40℃ (T-T env )、t -25℃ (T-T env )、t -10℃ (T-T env )、t 0℃ (T-T env )、t 10℃ (T-T env )、t 50℃ (T-T env )、t 75℃ (T-T env ) As shown in formula (14):
the embodiment of the application shows that when the environment is warmAnd obtaining a cooling characteristic function of the narrow-band system when the temperature is 25 ℃. Firstly, acquiring a relative temperature based on a system temperature and an environment temperature; then based on the relative temperature and the cooling time, acquiring a cooling characteristic curve of the narrow-band system, and further acquiring a cooling characteristic function of the narrow-band system, thereby facilitating the subsequent calculation of the second time period tdrop based on the cooling characteristic function of the narrow-band system so as to acquire a third time period t Stability and stability So as to conveniently calculate the equivalent crystal oscillator frequency F eq
In some embodiments, the obtaining the temperature drift characteristic function of the crystal oscillator includes the following steps:
setting a plurality of environment temperatures, and acquiring the frequency of a low-frequency clock after stabilizing at each environment temperature based on each environment temperature;
and acquiring a crystal oscillator temperature drift characteristic function based on the ambient temperature and the frequency of the stabilized low-frequency clock.
The embodiment of the invention obtains the temperature drift characteristic function of the crystal oscillator by setting a plurality of environment temperatures to obtain the frequency of the stable low-frequency clock of the environment temperature and the narrowband system under different environment temperatures so as to conveniently control the first crystal oscillator frequency F (T) env ) Second crystal frequency F (T) b ) And a third vibration frequency F (T a ) Thereby calculating the equivalent crystal oscillator frequency F eq
In some embodiments, the obtaining the crystal oscillator temperature drift characteristic function based on the ambient temperature and the frequency of the stabilized low-frequency clock includes:
taking the ambient temperature as an abscissa, and the frequency of the stabilized low-frequency clock as an ordinate, obtaining n coordinate points;
obtaining the temperature drift characteristic function of the crystal oscillator through a formula (13):
wherein F is 1 For the frequency of the stabilized low-frequency clock of the first coordinate point, T 1 For the ambient temperature of the first coordinate point, F 2 For the second coordinateThe frequency of the stabilized low-frequency clock of the point, T 2 For the ambient temperature of the second coordinate point, F n-1 T is the frequency of the stabilized low-frequency clock of the n-1 th coordinate point n-1 An ambient temperature of the n-1 th coordinate point F n For the frequency of the stabilized low-frequency clock of the nth coordinate point, T n And the n-th coordinate point is the ambient temperature, T is the ambient temperature, and F (T) is the frequency of the low-frequency clock after being stabilized at the ambient temperature.
Setting the temperature of the incubator at intervals of 5 ℃ in a temperature range of-40 ℃ to 80 ℃ in each temperature range of-40 ℃, -35 ℃, -30 ℃, -25 ℃, -20 ℃, -15 ℃, -10 ℃, -5 ℃, 0 ℃, 5 ℃, 10 ℃, 15 ℃, 20 ℃, 25 ℃, 30 ℃, 35 ℃, 40 ℃, 45 ℃, 50 ℃, 55 ℃, 60 ℃, 65 ℃, 70 ℃, 75 ℃, 80 ℃ and then placing the NB system in the incubator, acquiring the crystal oscillation frequency of the low-frequency clock after the narrowband system is stabilized at different environmental temperatures, and acquiring 25 groups of data (T) of the environmental temperature and the crystal oscillation frequency 1 ,F 1 )、(T 2 ,F 2 )...(T 25 ,F 25 ) And obtaining a temperature drift characteristic curve of the crystal oscillator, as shown in a formula (13).
The embodiment of the invention obtains the temperature drift characteristic curve of the crystal oscillator based on the crystal oscillator frequencies of the environment temperature and the narrow-band system under different environment temperatures, and is convenient for calculating the first crystal oscillator frequency F (Tenv), the second crystal oscillator frequency F (Tb) and the third crystal oscillator frequency F (Ta) through the temperature drift characteristic curve of the crystal oscillator so as to calculate the equivalent crystal oscillator frequency F eq
Therefore, the method for reducing the influence of the crystal oscillator temperature drift of the narrowband system combines the cooling characteristic and the crystal oscillator temperature drift characteristic of the narrowband system, calculates the equivalent crystal oscillator frequency in the power saving period of the narrowband system through weighted average, compensates the local clock, and is different from the state that the fixed parameter is directly used as the crystal oscillator frequency value in the prior art.
The embodiment of the application also provides a terminal, as shown in fig. 5, which comprises a temperature sensing module 10 and at least one processor 11 connected with the temperature sensing module 10; and a memory 12 communicatively coupled to the at least one processor 11; wherein the memory 12 stores instructions executable by the at least one processor 11, the instructions being executable by the at least one processor 11 to enable the at least one processor 11 to perform a method of reducing the effects of narrowband system crystal temperature drift as described in any of the above.
In some embodiments, the temperature sensing module 10 may be a stand-alone temperature sensor. In other embodiments, the temperature sensing module 10 may also be a circuit formed by temperature sensitive resistor and Analog-to-Digital Converter (ADC).
Where the memory 12 and the processor 11 are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors 11 and the memory 12 together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor is transmitted over the wireless medium via the antenna, which further receives the data and transmits the data to the processor 11.
In some embodiments, the processor 11 is responsible for managing the bus and general processing, and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 12 may be used to store data used by the processor 11 in performing operations.
The embodiment of the application also provides a computer readable storage medium which stores a computer program, wherein the computer program is executed by a processor to realize the method for reducing the influence of the temperature drift of the narrow-band system crystal oscillator.
That is, it will be understood by those skilled in the art that all or part of the steps in implementing the methods of the embodiments described above may be implemented by a program stored in a storage medium, where the program includes several instructions for causing a device (which may be a single-chip microcomputer, a chip or the like) or a processor (processor) to perform all or part of the steps in the methods of the embodiments of the application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples of carrying out the application and that various changes in form and details may be made therein without departing from the spirit and scope of the application.

Claims (13)

1. The method for reducing the influence of the temperature drift of the crystal oscillator of the narrow-band system is characterized by comprising the following steps of:
Acquiring a first crystal oscillator frequency, a second crystal oscillator frequency and a third crystal oscillator frequency based on a crystal oscillator temperature drift characteristic function; the first crystal oscillator frequency is the crystal oscillator frequency of the narrow-band system at the ambient temperature during the power saving mode, the second crystal oscillator frequency is the crystal oscillator frequency of the narrow-band system at the system temperature before the narrow-band system enters the power saving mode, and the third crystal oscillator frequency is the crystal oscillator frequency of the narrow-band system at the system temperature after the narrow-band system exits the power saving mode;
based on a clock signal of a low-frequency clock, respectively acquiring a first count value and a second count value; the first count value is the count value of the low-frequency clock before entering the power saving mode, and the second count value is the count value of the low-frequency clock after exiting the power saving mode;
acquiring a first time length based on the first crystal oscillator frequency, the first count value and the second count value; the first duration is a predicted duration of the power saving mode;
acquiring a second duration based on a cooling characteristic function of the narrow-band system; the second time length is the time length required by the cooling stage of the power saving mode of the narrow-band system;
acquiring a third time length based on the first time length and the second time length; the third duration is the duration required by the temperature stabilization stage of the power saving mode of the narrowband system;
Taking the second time length and the third time length as weights, and carrying out weighted average on the second crystal oscillator frequency and the third crystal oscillator frequency to obtain equivalent crystal oscillator frequency;
and compensating the local clock based on the equivalent crystal oscillator frequency.
2. The method for reducing the influence of the temperature drift of the crystal oscillator of the narrowband system according to claim 1, wherein the compensating the local clock based on the equivalent crystal oscillator frequency comprises:
acquiring a third count value based on a clock signal of the local clock; the third count value is a count value of a local clock before entering a power saving mode;
acquiring a fourth time length based on the equivalent crystal oscillator frequency, the first count value and the second count value, wherein the fourth time length is the duration of a power saving mode of the narrowband system;
and acquiring the count value of the compensated local clock based on the fourth time length and the third count value.
3. The method of reducing the effects of narrowband system crystal oscillator temperature drift of claim 2, wherein the fourth time period is calculated by equation (1):
the count value of the compensated local clock is calculated by the formula (2):
wherein t is sleep For a fourth duration of time N b For the first count value, N a As the second count value, F eq Is equivalent to the frequency of crystal oscillator, n b Is of a third count value, n a F for the compensated count value of the local clock local Is the local clock frequency.
4. The method of reducing the effects of narrowband system crystal oscillator temperature drift of claim 1, wherein the first time length is calculated by equation (3):
wherein t is Estimation of For a first duration of time N b For the first count value, N a For the second count value, F (T env ) Is the first crystal oscillator frequency.
5. The method for reducing the influence of the temperature drift of a crystal oscillator of a narrowband system according to any one of claims 1-4,
when T is a ≤T b <T s Or T s <T a ≤T b When the second time period is calculated by the formula (4):
t lowering blood pressure =t(T a -T env )-t(T b -T env ) (4)
The third time period is calculated by the formula (5):
the equivalent crystal oscillator frequency is calculated by a formula (6):
wherein T is b For the system temperature before the narrow-band system enters the power-saving mode, T a For the system temperature after the narrowband system exits the power saving mode, T s Is the standing point temperature, T of the crystal oscillator frequency-temperature characteristic curve env For the ambient temperature, t, at which the narrowband system is in during the power saving mode Lowering blood pressure For a second period of time, t Stability and stability For the third period of time, F (T env ) For the first crystal oscillator frequency, F (T b ) For the second crystal frequency, F (T a ) For a third vibration frequency F eq Is equivalent crystal oscillator frequency.
6. The method for reducing the influence of temperature drift of a crystal oscillator in a narrow-band system according to any one of claims 1 to 4, wherein when T a ≤T s ≤T b The second time period is that the system temperature of the narrow-band system is from T b Down to T s The required time length and the system temperature of the narrow-band system are from T s Down to T a The sum of the required time periods;
the system temperature of the narrow-band system is from T b Down to T s The required time length is calculated by the formula (7):
t drop 1 =t(25-T env )-t(T b -T env ) (7)
The system temperature of the narrow-band system is from T s Down to T a The required time length is calculated by the formula (8):
t drop 2 =t(T a -T env )-t(25-T env ) (8)
The third time period is calculated by the formula (9):
the equivalent crystal oscillator frequency is calculated by the formula (10):
wherein T is b For the system temperature before the narrow-band system enters the power-saving mode, T a For the system temperature after the narrowband system exits the power saving mode, T s Is the standing point temperature, T of the crystal oscillator frequency-temperature characteristic curve env For the ambient temperature, t, at which the narrowband system is in during the power saving mode Drop 1 System temperature for narrowband system from T b Down to T s The required time period, t Drop 2 System temperature for narrowband system from T s Down to T a The required time period, t Stability and stability For a third period of time, F (T env ) For the first crystal oscillator frequency, F (T b ) For the second crystal frequency, F (T a ) For a third vibration frequency F eq Is equivalent crystal oscillator frequency.
7. The method for reducing the influence of the temperature drift of a crystal oscillator of a narrowband system according to claim 1, wherein the narrowband system cooling characteristic function is obtained by the following steps:
setting a plurality of environment temperatures, and acquiring the system temperature of the narrow-band system corresponding to different cooling time after the narrow-band system enters a power saving mode at each environment temperature;
acquiring a relative temperature based on the system temperature of the narrowband system and the ambient temperature;
acquiring a cooling characteristic curve of the narrow-band system based on the relative temperature and the cooling time;
and performing piecewise linear regression on the cooling characteristic curve of the narrow-band system to obtain a cooling characteristic function of the narrow-band system.
8. The method for reducing the effects of temperature drift of a crystal oscillator in a narrowband system of claim 7, wherein the ambient temperature is in a temperature range of-40 ℃ to 80 ℃.
9. The reduced narrowband system crystal Wen Piaoying of claim 7 or 8A method for sounding, characterized in that at an ambient temperature of 25 ℃, characteristic points A (0, T 0 )、B(t 1 ,T 1 )、C(t 2 0) respectively obtaining a cooling characteristic curve of the narrow-band system as a starting time point of a rapid cooling stage of the narrow-band system, a starting time point of a slow cooling stage of the narrow-band system and a starting time point of a temperature stabilizing stage of the narrow-band system:
Performing piecewise linear regression on the cooling characteristic curve of the narrow-band system to obtain a cooling characteristic function of the narrow-band system, wherein the cooling characteristic function is shown in a formula (12):
wherein T is 0 For the relative temperature at characteristic point A, t 1 For the cooling time at the characteristic point B, T 1 For the relative temperature at characteristic point B, t 2 For the cooling time at the characteristic point C, T is the system temperature of the narrow-band system under different cooling time after the narrow-band system enters the power saving mode, T env Is the ambient temperature at which the narrowband system is located during the power saving mode.
10. The method for reducing the influence of the temperature drift of the crystal oscillator of the narrowband system according to claim 1, wherein the obtaining of the temperature drift characteristic function of the crystal oscillator comprises the following steps:
setting a plurality of environment temperatures, and acquiring the frequency of a low-frequency clock after stabilizing at each environment temperature based on each environment temperature;
and acquiring a crystal oscillator temperature drift characteristic function based on the ambient temperature and the frequency of the stabilized low-frequency clock.
11. The method for reducing the influence of the temperature drift of the narrowband system crystal oscillator according to claim 10, wherein the obtaining the characteristic function of the temperature drift of the crystal oscillator based on the ambient temperature and the frequency of the stabilized low-frequency clock comprises:
Taking the ambient temperature as an abscissa, and the frequency of the stabilized low-frequency clock as an ordinate, obtaining n coordinate points;
obtaining the temperature drift characteristic function of the crystal oscillator through a formula (13):
wherein F is 1 For the frequency of the stabilized low-frequency clock of the first coordinate point, T 1 For the ambient temperature of the first coordinate point, F 2 For the frequency of the stabilized low-frequency clock of the second coordinate point, T 2 For the ambient temperature of the second coordinate point, F n-1 T is the frequency of the stabilized low-frequency clock of the n-1 th coordinate point n-1 An ambient temperature of the n-1 th coordinate point F n For the frequency of the stabilized low-frequency clock of the nth coordinate point, T n And the n-th coordinate point is the ambient temperature, T is the ambient temperature, and F (T) is the frequency of the low-frequency clock after being stabilized at the ambient temperature.
12. A terminal, comprising:
the temperature sensing module and the at least one processor are connected with the temperature sensing module; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of reducing the effects of narrowband system crystal temperature drift as recited in any one of claims 1-11.
13. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the method of reducing the effects of narrowband system crystal oscillator temperature drift of any of claims 1-11.
CN202210406836.6A 2022-04-18 2022-04-18 Method, terminal and medium for reducing influence of temperature drift of crystal oscillator of narrow-band system Active CN115002892B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210406836.6A CN115002892B (en) 2022-04-18 2022-04-18 Method, terminal and medium for reducing influence of temperature drift of crystal oscillator of narrow-band system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210406836.6A CN115002892B (en) 2022-04-18 2022-04-18 Method, terminal and medium for reducing influence of temperature drift of crystal oscillator of narrow-band system

Publications (2)

Publication Number Publication Date
CN115002892A CN115002892A (en) 2022-09-02
CN115002892B true CN115002892B (en) 2023-12-01

Family

ID=83023618

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210406836.6A Active CN115002892B (en) 2022-04-18 2022-04-18 Method, terminal and medium for reducing influence of temperature drift of crystal oscillator of narrow-band system

Country Status (1)

Country Link
CN (1) CN115002892B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7982549B1 (en) * 2009-12-04 2011-07-19 Atheros Communications, Inc. Dual self-calibrating low-power oscillator system and operation
US8188782B1 (en) * 2010-12-12 2012-05-29 Mediatek Inc. Clock system and method for compensating timing information of clock system
CN104918310A (en) * 2015-07-10 2015-09-16 四川长虹通信科技有限公司 Mobile terminal with rapid power saving function and rapid power saving method thereof
CN108196119A (en) * 2017-12-21 2018-06-22 广东汇泰龙科技有限公司 Method, the system of a kind of intelligent door lock power consumption estimation using NB-IOT modules
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device
CN114201001A (en) * 2021-12-14 2022-03-18 深圳市锐能微科技有限公司 Compensation method and device of real-time clock, terminal equipment and medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7982549B1 (en) * 2009-12-04 2011-07-19 Atheros Communications, Inc. Dual self-calibrating low-power oscillator system and operation
US8188782B1 (en) * 2010-12-12 2012-05-29 Mediatek Inc. Clock system and method for compensating timing information of clock system
CN104918310A (en) * 2015-07-10 2015-09-16 四川长虹通信科技有限公司 Mobile terminal with rapid power saving function and rapid power saving method thereof
CN108196119A (en) * 2017-12-21 2018-06-22 广东汇泰龙科技有限公司 Method, the system of a kind of intelligent door lock power consumption estimation using NB-IOT modules
CN113220106A (en) * 2021-05-10 2021-08-06 维沃移动通信有限公司 Power saving control method and power saving control device
CN114201001A (en) * 2021-12-14 2022-03-18 深圳市锐能微科技有限公司 Compensation method and device of real-time clock, terminal equipment and medium

Also Published As

Publication number Publication date
CN115002892A (en) 2022-09-02

Similar Documents

Publication Publication Date Title
US6304517B1 (en) Method and apparatus for real time clock frequency error correction
US8779974B2 (en) Piezoelectric oscillator, GPS receiver device, and electronic apparatus
EP2633619B1 (en) Crystal oscillator with low-power mode
US8488506B2 (en) Oscillator settling time allowance
KR101701258B1 (en) An ultra low-power high frequency crystal oscillator for real time clock applications
KR20140021671A (en) Apparatus and methods for adjusting voltage controlled oscillator gain
CN108736984B (en) Frequency offset calibration method and device for radio frequency module
JP2011504306A (en) Single multimode clock source for wireless devices
US8626102B1 (en) Radio coexistence using clock rate adaptation
JP3050146B2 (en) Digital temperature compensated oscillator
CN115002892B (en) Method, terminal and medium for reducing influence of temperature drift of crystal oscillator of narrow-band system
US9838023B2 (en) Slow-clock calibration method and unit, clock circuit, and mobile communication terminal
CN113114108A (en) Method for estimating crystal oscillator frequency
US8909164B2 (en) Frequency offset correction
CN101488752B (en) Temperature frequency correcting apparatus
CN109067475B (en) Frequency offset calibration method and system of radio frequency module
CN101388646B (en) Successive approximation temperature and frequency correcting method and device
CN105116712A (en) Method for automatically calibrating built-in crystal oscillator
US20170026049A1 (en) Oscillator Arrangement, Method, Computer Program And Communication Device
JP2007013878A (en) Synchronous oscillation apparatus and synchronous oscillation method
EP3402261B1 (en) Methods and devices indicating at least one of a temperature and frequency deviation
US8994466B2 (en) Methods for addressing aging of XO crystals
US20170288681A1 (en) Device and method for multiple reference system timer
JP7333705B2 (en) circuit system
JPH11340820A (en) Reference oscillating frequency setting system for data communication equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant