Radio device with resonator
By integrating a temperature measurement unit and a frequency synthesizer into a wireless device, and using a model to calibrate the resonator frequency offset, the problem of resonator frequency being affected by temperature is solved, achieving low-cost and low-power frequency stability, suitable for low-cost, battery-powered wireless devices.
Patent Information
- Application Number
- CN202180038922.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2020-05-28
- Filing Date
- 2021-05-28
- Publication Date
- 2026-11-27
- Estimated Expiration
- 2041-05-28
AI Technical Summary
The frequency of resonators in radio devices is greatly affected by temperature, leading to frequency instability. Existing temperature compensation technologies such as OCXO and TCXO are costly and power-consuming, making them unsuitable for low-cost, battery-powered devices.
By integrating a temperature measurement unit and a frequency synthesizer into a radio device, the frequency offset of the resonator is calibrated using a model, and the frequency model is calibrated using the received radio signal, reducing or eliminating the dependence on temperature compensation circuitry and achieving temperature compensation for digital logic and software.
It achieves accurate control of resonator frequency at different temperatures, reduces cost and power consumption, meets the accuracy requirements of half-duplex radio communication, and is suitable for low-cost, battery-powered radio devices.
Smart Images

Figure CN115699583B_ABST
Abstract
Description
Background Technology
[0001] This invention relates to a radio device with a resonator and a method of operating the same.
[0002] Resonators, such as crystals or MEMS (microelectromechanical systems) resonators, are used in conjunction with oscillator circuits to generate electrical signals with known frequencies. They are used to provide clock signals to digital logic gates in microcontrollers, and to generate local oscillator signals at stable frequencies for heterodyne processing in radio transmitters and receivers.
[0003] The frequencies of oscillators used in many radio communication systems need to be accurate and stable enough to ensure that radio transmissions remain within the required channel boundaries. For example, for user equipment (UE) to operate according to eMTC (enhanced Machine-Type Communication) and NB-IoT (Narrowband Internet of Things) 4G LTE... TM The (Long Term Evolution) standard transmits in HD-FDD (Half-Duplex-Frequency Division Duplex) mode, and the carrier frequency of its radio transmission must be kept within + / - 0.1 ppm (parts per million) of the specified center frequency.
[0004] However, the frequency of some resonators is strongly temperature-dependent, and this temperature dependence is determined by the resonator's properties. For example, in the case of a crystal oscillator, the frequency may depend on the crystal's cut, while for a MEMS oscillator, the frequency may depend on the MEMS resonator's design and materials. This means that the oscillator's frequency can vary significantly depending on the instantaneous operating conditions of the radio device, making it challenging to ensure the use of an accurate transmission frequency.
[0005] Furthermore, the characteristic resonant frequency of a resonator can be affected by structural damage. For example, stress within the crystal lattice can influence the characteristic frequency of a crystal resonator. As a result, the resonator's frequency may change over time during a process known as aging.
[0006] In a full-duplex radio system, where the radio device is capable of simultaneously transmitting and receiving signals, the device can receive a radio signal that provides a known, stable reference frequency (e.g., from a cellular network base station). It can use this reference frequency to simultaneously transmit radio signals, controlling the frequency of radio transmissions to ensure they maintain a fixed spectral relationship with the arriving reference signal. However, when the radio device is only transmitting (e.g., in half-duplex operation), no such instantaneous reference signal is available.
[0007] Therefore, to provide more accurate transmission frequencies in half-duplex radio devices, the use of oven-controlled crystal oscillators (OCXOs) or temperature-compensated crystal oscillators (TCXOs) is known. OCXOs include an electrically heated element next to the quartz crystal to protect the oscillating crystal from changes in ambient temperature. Compared to conventional crystal oscillators, OCXOs are large, expensive, and power-intensive, making them unsuitable for low-cost, battery-powered devices. TCXOs include a temperature sensor and compensation circuitry in the same package as the quartz crystal. TCXOs consume less power than OCXOs, but are still significantly more expensive than conventional crystal oscillators and may not achieve sufficient accuracy for certain radio requirements, such as + / -2 ppm accuracy when some radio standards require + / -0.1 ppm.
[0008] This invention attempts to provide an alternative method. Summary of the Invention
[0009] According to a first aspect, the present invention provides a radio device comprising:
[0010] Radio transceiver;
[0011] Resonator or interface to resonator;
[0012] Temperature measurement unit or interface to temperature measurement unit;
[0013] Frequency synthesizer; and
[0014] Processing system
[0015] The radio device is configured as follows:
[0016] Receive a temperature signal representing the measured temperature of the resonator from the temperature measurement unit;
[0017] Using a model that correlates frequency offset with temperature stored in the processing system's memory, the estimated frequency offset of the resonator is determined using the temperature signal.
[0018] Receive periodic resonator signals from the resonator;
[0019] Provide a periodic resonator signal to the frequency synthesizer;
[0020] The frequency synthesizer is controlled based on the estimated frequency offset to generate a periodic local signal from the periodic resonator signal;
[0021] Receive radio signals at a radio transceiver, wherein the radio signals include periodic components having the frequency of the received signal;
[0022] Determine the error value representing the difference between the frequency of the received signal and the frequency of the periodic local signal; and
[0023] Update one or more parameters of the model stored in memory using the error value.
[0024] According to a second aspect, the present invention provides a method comprising:
[0025] Receives a temperature signal representing the measured temperature of the resonator;
[0026] Using a model that correlates frequency shift with temperature, the estimated frequency shift of the resonator is determined using the temperature signal;
[0027] Receive radio signals, wherein the radio signals include periodic components having the frequency of the received signal;
[0028] Receive periodic resonator signals from the resonator;
[0029] A periodic local signal is generated from a periodic resonator signal using an estimated frequency offset;
[0030] Determine the error value representing the difference between the frequency of the received signal and the frequency of the periodic local signal; and
[0031] Use error values to update one or more parameters of the model.
[0032] According to another aspect, the present invention provides a radio communication system including a radio device as disclosed herein and a remote radio transceiver (e.g., a base station), wherein the remote radio transceiver is configured to transmit radio signals received by the radio device.
[0033] Therefore, it will be seen that, according to the present invention, the incoming radio signal is used to calibrate the frequency model of the resonator in response to temperature. The incoming radio signal (e.g., from a base station of a cellular communication network) can potentially provide a reliable reference frequency that is unaffected by the temperature of the device's resonator, thereby enabling the development of accurate models of the resonator's behavior at different temperatures.
[0034] This method allows radio devices to model the characteristics of a specific resonator. Therefore, it has the potential to be significantly more accurate than general temperature profiles, which may be used by devices such as TCXOs, as they are not tailored to a specific resonator.
[0035] In some implementations, if the radio device repeatedly performs these calibration steps at intervals over a period of time (e.g., weeks, months, or years), the accuracy of the model can be maintained over time, even as the resonator ages. Specifically, the model can evolve over time to account for any changes in the temperature-dependent behavior of the resonator.
[0036] At least in some embodiments, this method can eliminate the need to package the resonator together with its own temperature compensation circuitry, such as a temperature-compensated crystal oscillator or a temperature-controlled crystal oscillator (although these may be used in some embodiments).
[0037] In some embodiments, the resonator is a piezoelectric resonator, such as a quartz crystal resonator or a ceramic resonator. In some embodiments, the resonator is a crystal resonator unit. In some embodiments, the resonator is housed within a housing but not encapsulated with any temperature sensor or compensation circuitry (such as one or more switchable capacitors). It may consist only of a crystal and a pair of electrodes within the housing. In other embodiments, the resonator is a MEMS resonator. Similarly, a MEMS resonator may be housed within a housing that does not contain a temperature sensor or any temperature compensation circuitry. At least some embodiments allow for the provision of the required level of accuracy using a resonator of lower mass than is typically required. This can reduce the cost and / or power requirements of the radio device.
[0038] By using this model to control the frequency synthesizer, at least in some implementations, temperature compensation can advantageously be performed solely using digital logic and / or software, for example, without the need for switchable control of a set of capacitors to change the crystal's resonant frequency. This allows for finer-grained frequency control and can also reduce the size and cost of the radio device. (However, other implementations may combine digital and analog compensation mechanisms.)
[0039] The radio device can be configured to use the model to transmit (and / or receive) radio signals. The radio device can be configured to perform updates to one or more parameters when in calibration mode. The radio device can be configured to use the model to transmit (and / or receive) radio signals when in an operating state different from calibration mode.
[0040] Specifically, the radio device can also be configured to:
[0041] Receive a second temperature signal representing the second measured temperature of the resonator from the temperature measurement unit;
[0042] The second estimated frequency shift of the resonator is determined using the second temperature signal and the model stored in the memory of the processing system; and
[0043] Use the second estimated frequency offset to send or receive radio signals.
[0044] The radio transceiver can be configured to transmit radio signals according to half-duplex radio protocols, such as NB-IoT or half-duplex eMTC. This approach can be particularly advantageous in these cases because, unlike full-duplex communication, the radio device cannot use the incoming radio signal to provide an instantaneous timing reference to synchronize simultaneous radio transmissions. Instead, the radio device can be configured to use a resonator to generate the transmitted radio signal, for example, to generate a local oscillator signal to be input to a mixer to up-mix the baseband signal to radio frequency (RF).
[0045] Periodic local signals can be used to transmit or receive radio signals. Specifically, the periodic local signal can be a local oscillator signal that a radio device can configure to provide to a radio transceiver, for example, as input to a mixer in the radio transceiver. The radio transceiver can be configured to use the local signal to upmix a signal, for example, upmixing a baseband or intermediate frequency signal to radio frequency for transmission from a radio antenna. When receiving radio signals, the radio transceiver can be configured to use the local signal to downmix the received radio signal, for example, downmixing it to intermediate frequency or baseband.
[0046] In some implementations, a local signal can be used to tune the radio receiver to receive the radio signal before reception begins. Then, while receiving the radio signal, the radio device can instead control the frequency synthesizer based on the frequency of the received signal itself, for example, by using an automatic frequency control (AFC) unit in the radio transceiver.
[0047] The wireless device may be or includes an integrated circuit (IC) device. It may be or includes a semiconductor chip, such as a system-on-a-chip (SoC). The resonator and / or temperature measurement unit may be off-chip components, while at least a portion of the processing system and the radio transceiver may be integrated on a single chip or may share a common IC package. However, in some embodiments, the temperature measurement unit may be integrated with the processing system, for example, including a silicon bandgap temperature sensor. The resonator may be driven by oscillator circuitry that can be integrated on the same chip as the processing system. In some embodiments, the wireless device may be an SoC. In other embodiments, it may be a larger device, such as a wireless sensor or a set of earphones. It may include a battery, a user interface, etc. The radio transceiver may include or have an interface to a radio antenna.
[0048] The radio device can be configured to communicate via LTE TM Radio networks receive and transmit data.
[0049] A wireless device may include a temperature measurement unit, which may be adjacent to or near a resonator to sense the temperature of the resonator. The resonator (e.g., a quartz crystal) may be directly coupled to the pins of an integrated circuit chip that includes the temperature measurement unit (and optionally, a processing system). In some embodiments, the resonator and the temperature measurement unit may be housed in a common housing (e.g., a metal housing). However, in other embodiments, the temperature measurement unit may be packaged separately from the resonator, for example, outside the resonator's housing. The temperature measurement unit may include a thermistor or other thermometer, which may be arranged to measure the temperature near the resonator. In some embodiments, the temperature measurement unit may include one or more additional environmental sensors, such as an atmospheric pressure sensor and / or a humidity sensor. The wireless device may receive analog or digital temperature signals from the temperature measurement unit. In cases where the wireless device includes a temperature measurement unit, this reception occurs internally within the wireless device, for example, by pins or pads of an IC chip that includes the processing system.
[0050] The processing system may include one or more processors and memory storing software instructions that can be executed by the one or more processors. The software may include instructions for performing any portion of all the processing operations disclosed herein. Alternatively or additionally, the processing system may include dedicated hardware logic for performing any portion of all the processing operations disclosed herein. It should be understood that the steps disclosed herein may be implemented by software or hardware in any suitable proportion where appropriate.
[0051] The processing system can be configured to determine an estimated frequency offset from a temperature signal using a model in any suitable manner. The estimated frequency offset can be expressed as an absolute value (e.g., in Hz) or a relative value (e.g., in ppm); it can be related to the nominal or characteristic frequency of the resonator. It can be encoded in any suitable manner. The model can represent the absolute or relative frequency error (i.e., the frequency offset divided by the absolute frequency) as a function of temperature. The model can use sum, difference, or multiplication functions, or a neural network, or any combination of these to represent the frequency error. In some implementations, the frequency error can be represented by a polynomial function, such as a third- or fourth-order polynomial function; however, depending on the temperature-frequency drift characteristics of the resonator, a higher- or lower-order polynomial can be used. In some implementations, the model can include one or more parameters for a predetermined formula or model function, such as a polynomial function. For a specific measured temperature input, the processing system can numerically evaluate the formula to determine the estimated frequency offset. The formula can be a cubic function. In some implementations, the model can include parameters representing a lookup table, and the processing system can be configured to perform a lookup operation based on the measured temperature to determine the estimated frequency offset.
[0052] In some implementations, the model can also correlate the frequency shift with one or more additional environmental factors, such as atmospheric pressure or humidity. The estimated frequency shift can then be determined not only using the temperature signal but also using signals representing additional environmental factors such as atmospheric pressure and / or humidity.
[0053] In some implementations, the model's parameters can be stored in non-volatile memory, such as flash memory. In this way, the model is preserved even if the radio device is powered off.
[0054] In some implementations, the radio device may store a model including one or more initial parameters, for example, loaded by the radio device manufacturer, which may represent an initial or default model. When using the radio device, these may be supplemented or replaced by one or more new parameters derived from received radio signals and measured temperatures.
[0055] A frequency synthesizer can generate a periodic local signal by proportionally amplifying a periodic resonator signal. The frequency synthesizer can be a fractional frequency synthesizer. A radio device can use an estimated frequency offset to control the scaling factor applied to the periodic resonator signal by the frequency synthesizer. In some implementations, the estimated frequency offset, or the value or signal derived therefrom, is set as the input to a fractional divider in the frequency synthesizer.
[0056] The periodic component of the received radio signal can be the carrier frequency of the radio signal. Alternatively, it can be a periodic pattern modulated on the radio signal, such as a series of timing symbols or data packets encoded by the radio signal. The received signal can be transmitted from a cellular base station, but this is not required.
[0057] In some implementations, the error value may be equal to or determined by the difference between the received signal frequency and the fundamental frequency of the periodic local signal generated by the frequency synthesizer, or it may be equal to or determined by the difference minus a constant value (e.g., subtracting the expected frequency offset between the carrier frequency and the intermediate frequency). The processing system may be configured to subtract the received signal frequency value from the fundamental frequency and vice versa. In some implementations, the error value may be a relative rather than an absolute frequency value (e.g., representing a Δf / fppm error). As mentioned above, it may be equal to the difference divided by a reference frequency value, which may be the received signal frequency or the local signal frequency. Calculating a relative error value facilitates comparison of the error value with the relative frequency offset estimated by the model.
[0058] In some implementations, the error value can be determined by multiplying the absolute or relative difference between the received signal frequency and the fundamental frequency of the periodic local signal by a constant factor at one of these frequencies, where the constant factor can be greater than or less than 1. In this way, the error value can represent the residual offset error after the expected scaling factor between frequencies has been taken into account.
[0059] In some implementations, the error value can be generated at least in part using the automatic frequency control (AFC) unit in the radio transceiver.
[0060] In some implementations, the processing system can subtract the error value from the estimated frequency offset (or vice versa) to generate an adjusted estimated frequency offset, which can be used to update the model stored in memory. In some implementations, both the error value and the estimated frequency offset are relative frequency offset values.
[0061] Error values can be used to update the model in any of a variety of different ways, depending on the nature of the model. The measured temperature associated with the error values can also be used when updating the model.
[0062] Error values, or data representing or derived from them (e.g., the adjusted estimated frequency offset as described above), can be stored in a buffer. The buffer can be arranged to store one or more such values, which may be obtained at different times and possibly at different resonator temperatures. The buffer may also store the corresponding temperature data associated with each error value. In some embodiments, the buffer may also store corresponding environmental data associated with each error value, such as atmospheric pressure or humidity.
[0063] The radio device can be configured to determine error values at intervals, which can be regular or irregular, such as each time a specific type of radio signal is received. The device can be configured to periodically update the model and / or update the model when one or more conditions are met. In some implementations, the device may not always update the model every time an error value is calculated; for example, it may update the model if the error value is determined to be below a threshold. This can help reduce power consumption.
[0064] In some implementations, the processing system can update one or more parameters of the model by inputting error values (and optionally other buffered data) into an optimization process. One or more pairs of error values and associated measured temperatures can be used to perform a cost minimization process to compute one or more updated parameters of the model. In some implementations, the processing system can determine one or more parameters by solving a least-squares problem to minimize a cost function, for example using gradient descent. The cost function can represent the mean squared error between the model function (e.g., a polynomial function, such as a cubic or quartic function) and the buffered data.
[0065] In some implementations, the processing system can perform gradient descent processing with a momentum term. It can use an exponentially weighted average when computing one or more updated parameters, for example, by storing previous and current values of the parameters in memory and computing the new values of the parameters based on the stored previous and current values.
[0066] In some implementations, the processing system is configured to constrain one or more parameters (e.g., polynomial coefficients) of the model function to be above their respective minimum values and / or below their respective maximum values. The minimum and maximum values can be based on the characteristics of the resonator. For example, in implementations using crystals, the minimum and maximum values can be based on the cut angle or cut of the oscillating crystal (e.g., AT cut or BT cut).
[0067] In some implementations, the model can be two predetermined temperature polynomial functions, such as a linear combination of two quadratic or cubic polynomials. The predetermined functions can be set based on upper and lower bounds of expected changes in the properties of the resonator during manufacturing. Parameters representing the two predetermined polynomial functions can be stored in memory; in some implementations, they can be read-only values. The processing system can be configured to update the parameters representing one or more coefficients of the linear combination using error values (or a set of error values). The predetermined polynomial functions can be preloaded into the device during manufacturing. The model can then be represented as a linear combination of the two polynomial functions.
[0068] In some implementations, the paired first and second polynomial functions determine the upper and lower limits of the model point-by-point, at least within the temperature range of interest. The model can be represented as i) the first polynomial function plus ii) the difference between the second and first polynomial functions multiplied by a variable factor less than 1. The variable factor can be stored in memory as a parameter of the model. In some implementations, the model can be represented by only this single value, which can lead to particularly efficient memory implementations. The processing system can use the error value and the associated measured temperature to calculate an updated value for the variable factor. Alternatively, multiple buffered error values and temperatures can be used, for example, by calculating the updated value for each buffer pair and then averaging the updated values to determine the final value of the variable factor.
[0069] In some implementations, the processing system can perform least-squares processing to fit a function of a predetermined type, such as a polynomial function, to a set of error values and associated measured temperatures. The model can then be represented in memory by the coefficients of the function.
[0070] In some implementations, when updating the model, in addition to one or more calculated error values and measured temperatures, the processing system may sometimes (e.g., when updating the model for the first time) use one or more (e.g., three) predetermined auxiliary values (which may be based on fixed characteristics of the resonator, such as the cut angle in implementations employing crystal oscillators). This can be useful when the device has not yet had time to collect a series of calibration values spanning a wide temperature range. Once a threshold number of error values is determined, the auxiliary values can be excluded when updating the model.
[0071] Features of any aspect or implementation described herein may be applied to any other aspect or implementation described herein where appropriate. In the case of references to different implementations or groups of implementations, it should be understood that these are not necessarily different but may overlap. Attached Figure Description
[0072] Some preferred embodiments of the invention will now be described by way of example only with reference to the accompanying drawings, wherein:
[0073] Figure 1 This is a schematic diagram of a cellular communication system including the radio device implementing the present invention;
[0074] Figure 2 This is a schematic diagram of a fractional frequency synthesizer and a crystal resonator in a radio device;
[0075] Figure 3 It is a flowchart of the steps involved in the transmission operation performed by a radio device;
[0076] Figure 4 This is a flowchart of the steps involved in the receiving operation performed by a radio device; and
[0077] Figure 5 It is a graph showing the relative frequency shift of a crystal oscillator with respect to temperature at a series of cutting angles. Detailed Implementation
[0078] Figure 1 This is a schematic diagram of a Long Term Evolution (LTE) cellular communication system 100 implementing the present invention, which includes a base station (eNodeB) 120 and a user equipment (UE) radio device 110.
[0079] The radio device 110 implements a local frequency compensation scheme and also implements the present invention.
[0080] The radio device 110 may be a wireless Internet of Things (IoT) sensor or any other suitable electronic device.
[0081] The radio device 110 includes a system-on-chip (SoC) 111 connected to an off-chip crystal cell 101 and a temperature measurement unit 102 arranged to measure the temperature of the crystal cell 101. In this example, the crystal cell 101 is a bare resonator device that does not contain any driver circuitry or any internal temperature compensation mechanism. The oscillator drive circuitry is integrated on the SoC 111.
[0082] Although Figure 1 Crystal cell 101 is shown, but in other embodiments, MEMS resonators or other types of resonators or packaged oscillators may replace crystal cell 101 without altering the relevant functionality of the radio device 110 as described herein.
[0083] The radio device 110 may include conventional components such as batteries, sensors, displays, data interfaces, user interfaces, discrete electronic components (e.g., capacitors and inductors), and additional integrated circuit chips, etc. Figure 1 The Chinese characters have been omitted for simplicity.
[0084] SoC 111 includes a processing system 104, which may contain one or more processors and associated memory for executing software to control radio device 110. Processing system 104 may include a microcontroller and / or one or more application processors, such as Arm... TM Cortex TM A processor and / or a digital signal processor (DSP). In some implementations, it may additionally or alternatively include dedicated logic. It may include RAM and flash memory.
[0085] SoC 111 also includes a radio frequency (RF) receiver 105 and an RF transmitter 107 (together provided as a radio transceiver as disclosed herein). They are capable of operating in half-duplex NB-IoT and eMTC modes, where transmit and receive operations are performed at different times, rather than simultaneously. In some implementations, the RF transmitter 105 and RF receiver 107 may share common circuitry or components. They can be connected to various off-chip components (not shown), such as power amplifiers and inductors. They communicate with base station 120 via a common antenna 108.
[0086] SoC 111 also includes a frequency estimator unit 103, a learning unit 109, and a radio frequency (RF) fractional frequency synthesizer 113. It may also include conventional peripherals such as timers, interfaces, security components, power management circuitry, etc. The frequency estimator unit 103 and / or the learning unit 109 may be software components executing on one or more processors of the processing system 104, such as a digital signal processor or application processor. In other embodiments, the frequency estimator unit 103 and / or the learning unit 109 may be implemented using dedicated hardware logic or as a combination of software and hardware.
[0087] Crystal cell 101 and fractional frequency synthesizer 113 together form RF frequency generator 200, which provides radio frequency local oscillator signal f to RF receiver 105 and RF transmitter 107. out Receiver 105 can transmit signal f out The input is fed into a mixer to downmix the incoming radio signal received at antenna 108, and transmitter 107 can use it to upmix the baseband signal (e.g., provided by processing system 104 to RF transmitter 107) into an RF electrical signal for transmission from antenna 108.
[0088] Figure 2 The frequency generator 200 is shown in more detail.
[0089] When energized, crystal cell 101 generates, for example, a frequency f. r =32MHz oscillation reference signal f r This signal is sent to the fractional frequency synthesizer 113. The fractional frequency synthesizer 113 is a high-precision charge-pumped phase-locked loop (PLL) synthesizer that generates the signal from the reference signal f. r The desired output frequency f is obtained out For example, the output signal f at 2GHz out Output frequency f out Typically, this will be set by the processing system 104 according to the radio band that is expected to be transmitted or received thereon.
[0090] The frequency synthesizer 113 includes a phase frequency detector 203, a charge pump 205, a loop filter 207, a voltage-controlled oscillator (VCO) 209, and a fractional frequency divider 211.
[0091] The phase frequency detector 203 receives the reference signal f from the crystal unit 101 r and the feedback signal from the fractional frequency divider 211. It generates an error signal proportional to the difference between the phases of the two signals. The error signal is transmitted to the charge pump 205, which generates positive and negative current pulses that are passed to the loop filter 207. Before the signal is fed to the voltage-controlled oscillator (VCO) 209, the loop filter 207 removes unwanted noise, for example from the phase detector 203. The VCO 209 generates an output signal f with an output frequency f out out .
[0092] The output signal f out is fed to the fractional frequency divider 211 and fed back to the phase frequency detector 203, creating a negative feedback loop. If the output frequency f out drifts, the phase error signal will increase, thereby driving the VCO 209 in the opposite direction and reducing the error.
[0093] The fractional frequency divider 211 is implemented using dedicated transistors and logic, and can be configured via a register interface by software running on the processing system 104. At any given time, the fractional frequency divider 211 divides the output frequency f out by an integer value, such that f out is an integer multiple of the reference frequency f r . However, the fractional frequency divider 211 can dynamically vary this integer value over time, for example between the values N and N+1, such that the average frequency division over time is fractional. If, over B cycles, f out is divided by N+1 for A cycles and by N for B-A cycles, the average division corresponds to the fraction N+A / B.
[0094] Thus, by appropriately controlling the fractional frequency divider 211, the frequency generator 200 can generate a signal f with an output frequency of out
[0095]
[0096] where N, A, and B are non-negative integers satisfying 0 ≤ A < B, and where N and A relate to the integer and fractional components used to set the fractional frequency divider 211, and where B is a fixed value determined by the design of the frequency synthesizer.
[0097] In this way, a large number of output frequencies can be achieved, each separated by a minimum step size value. This allows for tuning a wide range of radio channels with very fine granularity.
[0098] The minimum achievable step size between output frequencies occurs when A = 1 and N = 0. Assume B = 2. 24 The output signal can be generated from the voltage-controlled oscillator 209, and the minimum difference between them is N / B = 32 / 2. 24 MHz, which is approximately 2Hz.
[0099] For example, for f from a fractional frequency synthesizer out = 965MHz expected output frequency and B = 2 24 The value of N can be determined by taking the integer part as N, i.e., N = 30, and the fractional part as A / B, i.e., A / B = 0.15625. The integer and fractional components can then be defined as N + A / B = f. out / f r =965 / 32 = 30.15625Hz. The value of A required to generate an output frequency of 965MHz can be determined as A = 0.15625 * 2. 24 That is, A = 2,621,440. Using these values of A and N, a selected output frequency f can be generated. out = 965MHz. The generated output frequency can be calculated using software running on the processor of processing system 104; however, it can also be calculated using suitable hardware.
[0100] Therefore, this circuit ensures the output frequency f out Maintain at a selected fractional multiple of the frequency of crystal unit 101.
[0101] Although the minimum step size is theoretically determined based on the value of B and the frequency of crystal cell 101, in practice, the system is limited by the stability of crystal cell 101. For example, a typical crystal stability can be + / - 1 ppm, which would be approximately + / - 32 Hz for an exemplary 32 MHz crystal cell 101. If the crystal cell frequency drifts within this range due to temperature variations and increases by 1 ppm, for example, 32 Hz, then applying the fractional frequency operation above yields f. out = 965,000,965Hz Error output frequency f out That is, 965Hz is too high.
[0102] Such a large drift would cause problems in applications such as LTE radio communications, where the half-duplex specifications of eMTC and NB-IoT standards require the user equipment to transmit at a frequency within + / -0.1 ppm relative to the base station frequency. However, the radio device 110 addresses this problem by numerically compensating for any temperature-induced offset in the oscillator output.
[0103] To achieve this, the fractional frequency divider 211 of the fractional frequency synthesizer 113 used in the radio device 110 also receives data input F from the frequency estimator unit 103. est (For example, floating-point values), it uses the following to generate the output frequency f. out .
[0104] Frequency estimator unit 103 is configured to generate an estimate F of the relative frequency shift (i.e., the frequency shift divided by the nominal frequency) caused by the current operating temperature T of crystal unit 101. est The estimated relative frequency offset F is then provided to the fractional frequency synthesizer 113. This estimated relative frequency offset F is used in the fractional frequency divider 211. est To compensate for the signal f output by the crystal unit 101 r This includes any actual temperature-induced frequency shifts that may exist within the system. In this embodiment, the frequency estimator unit 103 is implemented using software executed on the processor of the processing system 104, although in other embodiments it can be implemented using dedicated hardware logic or a combination of software and hardware.
[0105] Frequency generator 200 can output a desired frequency f to radio receiver 105 or radio transmitter 107 as needed. out The local oscillator signal f out .
[0106] The radio device 110 operates differently depending on whether it is in half-duplex transmit mode or half-duplex receive mode. Specifically, when in receive mode, it may sometimes enter a calibration state, while during transmit mode it is in normal operating state (i.e., not in calibration state), and at other times it is in receive mode.
[0107] During the transmission operation, radio device 110 according to Figure 3 The processing shown is performed. In step 301, the temperature measuring unit 102 measures the temperature of the crystal unit 101. In step 303, the temperature measuring unit 102 provides the measured temperature to the frequency estimator unit 103 as an input variable vector X. N Part of it. Input variable vector X N It may also optionally include information related to other variables, such as atmospheric pressure measurements determined from an atmospheric pressure sensor in radio device 110.
[0108] In step 305, the frequency estimator unit 103 receives the variable vector X N As input, it is applied to the frequency drift model H(X) N This is used to determine the relative frequency offset value F for the temperature measurement estimate. est (And optionally, it can be used for other variables, such as atmospheric pressure). Model H(X) N This can be implemented in any suitable manner. In some embodiments, the frequency estimator unit 103 evaluates a polynomial function of temperature, such as a cubic function, wherein the parameters of the polynomial function are stored in the memory of the frequency estimator unit 103. As described below, the parameters may have been received in advance from the learning unit 109. In other embodiments, the model may be stored as a lookup table, which may be more efficient if the temperature measurement unit 102 can output only a relatively small number of distinct values, such as temperatures accurate to 1°C or 5°C.
[0109] In step 307, the relative frequency offset value F est The frequency is supplied to the fractional divider 211 of the frequency synthesizer 113. In step 309, the fractional divider 211 uses it to adjust the default values of N and A (corresponding to the desired output frequency f). out To compensate for the signal f received from crystal unit 101 r The estimated offset in the ratio f. out / F est The integer part of the result is used as the adjusted value of N, while the remainder is multiplied by a fixed value B, and the integer component of the resulting value is used as the adjusted value of A.
[0110] For example, with a desired output frequency of 974MHz and a fixed value B=2 24 Nominal frequency value f r = 32,000,000Hz and relative frequency offset value F est When the value is 32,000,150, the offset frequency is 150 Hz higher than the nominal frequency. Ratio f out / F est =974,000,000 / 32,000,150≈30.437357325, so the value of N can be taken as the integer part, N=30. Then the remainder 0.437357325 is multiplied by the fixed value of B, resulting in the value 0.437357325*B=7,337,638.3107072. Then the integer component of this value is taken as the adjusted value of A, i.e., A=7337638. Then the frequency synthesizer 113 uses these values to output the frequency f. out =F est *(7337638 / 2 24The value is approximately 973,999,999.41Hz, which is 0.59Hz smaller than the expected 974MHz, achieving the expected accuracy of <0.1ppm.
[0111] In step 311, the frequency synthesizer 113 will take the incoming crystal signal f r The resulting adjusted local oscillator RF signal f out Output to RF transmitter 107.
[0112] This process can be repeated during the transmission operation, i.e., looping back to steps 301 and 311, to dynamically adjust the local oscillator signal f in response to the continuous temperature changes of the crystal 101 during radio transmission. out .
[0113] During reception operations, radio device 110 may sometimes enter a calibration state, in which it updates its frequency drift model H(X) using the stable carrier frequency of the radio signal received from base station 120. N It can enter calibration state each time it receives a relevant radio signal, or it can do so based on a schedule and / or other factors.
[0114] RF receiver 105 includes an automatic frequency control (AFC) unit 105a, which shifts the actual relative frequency by F. err The carrier frequency F of the signal received from base station 120 was determined. rec The local oscillation frequency f generated by the fractional frequency synthesizer 113 out The difference between (plus any intermediate frequency, unless the receiver is a zero-IF receiver) and the local oscillator frequency f is expressed as the local oscillator frequency f. out A fraction (e.g., one in a million).
[0115] The relative offset F err The fractional frequency divider 211, provided to the fractional frequency synthesizer 113, is used by the fractional frequency divider 211 during the receive option period to divide the local oscillator signal f. out Apply correction. However, by adjusting the frequency estimator unit 103 according to the current model H(X)... N The estimated relative frequency shift F calculated est The actual relative offset F measured during the receiving operation err Comparison, relative offset F err It is also used to train model H(X) N ), to be used during subsequent sending operations.
[0116] The frequency of the transmitted signal from base station 120 is significantly more precise than the signal generated by the crystal cell 101 used in the radio device 110 of the present invention. For example, a highly stable temperature-controlled crystal oscillator (TCXO) can be used to generate the base station signal because the power and cost requirements of base station 120 are not as limited as those of radio device 110.
[0117] In step 401, RF receiver 105 receives data from base station 120 with carrier frequency F. rec radio signal F rec Receiver 105 uses the initial local oscillator signal f generated by frequency synthesizer 113. out For carrier frequency F rec Tuning is performed. The estimated relative frequency offset F provided by the frequency estimator unit 103 is used. est Generate initial signal f out The current crystal temperature, as measured by temperature measurement unit 102, can be used from the current model H(X). N Calculate the offset.
[0118] In step 403, AFC 105a receives the signal F rec The signal f output from the fractional frequency synthesizer 113 out The comparisons are performed, and an error signal F representing the relative frequency error between them is generated. err Error signal F err The feedback is sent to frequency synthesizer 113, which uses it to adjust the output frequency f as needed. out In order to maintain frequency synchronization with base station 120 in receive mode.
[0119] In step 405, the relative frequency error signal F err Together with the estimated relative frequency offset F generated by the frequency estimator unit 103 based on the current crystal temperature from the temperature measurement unit 102 est This information is also input into subtraction unit 115. Subtraction unit 115 calculates the estimated relative offset error F. est And the actual relative offset error F err The difference between them (if any) is calculated and provided to learning unit 109.
[0120] In step 407, the learning unit 109 acquires the latest crystal temperature measurement value T. It can use this to calculate F. est The current value.
[0121] In some implementations, F err and F est The values can be directly provided to learning unit 109.
[0122] In step 409, learning unit 109 determines F err and F est Whether the difference between the values is higher than a threshold (e.g., 0.5 ppm), and if so, before providing updated model parameters to the frequency estimator unit 103 in step 411, the model H(X) for the current temperature T is updated using a learning algorithm (described in more detail below). N ), used subsequently during transmission operations to employ the updated frequency drift model H(X). N To determine another F est Value. In some other implementations, there may be no comparison with a threshold and the model parameters may always be updated.
[0123] The calibration process can be repeated multiple times at intervals during a single radio reception operation, or it can be performed more occasionally, such as once per hour or once per day, if device 110 is performing a reception operation. In some embodiments, calibration can be performed more frequently (e.g., hourly) when device 110 is first initialized from a new state, until measurements across the minimum range of crystal temperature have been obtained, and thereafter can be performed less frequently (e.g., weekly, monthly, or yearly) to allow the model to adapt to the slow aging of crystal 101. In some embodiments, it can be performed in response to a relative offset error F. err Calibration is performed when the value is determined to be greater than a predetermined threshold. err The possible increase in time intervals depends largely on the conditions that crystal 101 experiences that could accelerate its aging.
[0124] When preparing to receive radio signals, such as when switching from transmit mode to receive mode, the radio device 110 may follow reference... Figure 3 The same process is described, but in the final step 311, the local oscillator signal f is... out The output is sent to RF receiver 105 (instead of RF transmitter 107). In this way, an initial local oscillator signal can be generated, which should closely match the actual arriving carrier signal. Once the radio signal begins to be received, AFC 105a can track the actual carrier frequency, as explained above.
[0125] The frequency drift model H(X) is updated based on locally measured oscillator temperature and accurately received frequency from base station 120. N The parameters of H(X) can be used to develop and maintain a state-of-the-art model of the oscillation frequency of crystal unit 101. Over time, the model will be trained on measurement data points spanning the entire operating temperature range actually experienced by crystal 101. Furthermore, through this continuous learning process, the model H(X) NIt will be updated to reflect the changing characteristics of crystal unit 101 during its lifetime.
[0126] The implementation of the learning algorithm will now be explained in more detail.
[0127] For crystal oscillators, the frequency drift with temperature depends on the crystal cut, specifically the angle at which the crystal is cut relative to the planes of its lattice structure. This frequency change with temperature is as follows: Figure 5 As shown, it displays the relative frequency offset Δf / f with respect to temperature for various cutting angles, in parts per million (referencing a predefined temperature of 27°C, at which, by definition, there is no temperature-dependent offset).
[0128] Figure 5 The frequency shift curves in the diagram illustrate how the relative frequency shift changes with respect to different cut angles relative to the absolute cut angle (“AT” cut angle) at 35°15’ with respect to the crystal’s Z-axis. Each curve represents a different cut angle with an indicated angular difference (in centimeters, i.e., 1 / 60°) relative to the AT cut angle.
[0129] Due to the variability of crystal processing, the desired cutting angle can only be achieved within specific tolerances. Furthermore, in practice, the behavior of crystals with temperature does not perfectly conform to... Figure 5 The curve shown is smooth. Instead, it will deviate slightly from the ideal model. It can have systematic and / or random frequency dips. Furthermore, measurements from temperature sensor 102 and AFC 105a may contain some errors. An example of this variability is shown by curve 501, which illustrates how the relative frequency shift with temperature does not perfectly follow the curve, but rather has some variability specific to each individual crystal. Current empirical modeling methods can help compensate for this variation.
[0130] Figure 5 The shape of the temperature-dependent frequency drift curve shown is derived from the specific material physics of the crystal and depends on the crystal's cutting angle. The shape of the temperature-dependent frequency drift curve can typically be modeled with reasonable accuracy using a polynomial function, typically a second, third, or fourth-order polynomial function. For example, the temperature-dependent frequency drift curve of an AT-cut crystal can be accurately modeled using a third-order polynomial function. In some embodiments, a MEMS resonator can be used instead of a crystal resonator. In this case, the temperature-dependent frequency drift curve will not depend on the cutting angle but rather on the specific frequency-temperature curve of the MEMS resonator used. In such embodiments, the operation performed by the learning unit 109 is equally applicable, but the exact shape of the function used will vary depending on the properties of the resonator.
[0131] At least in some implementations, the relative frequency error Δf / f, which is a function of the temperature near the reference temperature T0, can be modeled by the learning unit 109 using the following formula:
[0132]
[0133] This relationship is typically valid for temperatures between -60°C and T ≤ 120°C. The reference temperature T0 is usually in the range of 20–35°C. In some examples, the reference temperature may be 27.5°C. The ratio of the relative frequency error Δf / f is typically on the order of parts per million (ppm).
[0134] The values of a, b, c, and d are stored in the memory of the learning unit 109 and / or the frequency estimator unit 103, serving as the model H(X) used by the frequency estimator unit 103 to estimate the relative frequency offset during radio transmission. N The parameters are updated at intervals when one or more new samples have been collected from the temperature measurement unit 102 and the RF receiver 105.
[0135] Custom initial values for a, b, c, and d could be measured for each individual resonator, such as crystal 101, but this would incur significant cost and time expenditure. Furthermore, since the values of these coefficients change over time, they are not permanently valid as the resonators age. The learning algorithm aims to determine the accurate values of each coefficient a, b, c, and d for the unique resonators employed in the radio device 110 (e.g., crystal 101 in this embodiment).
[0136] Typically, the temperature dependence of a resonator can be modeled using a polynomial function, depending on its characteristics. For crystal resonators, cubic polynomials are best suited for AT-cut crystal resonators, while quadratic polynomials can be applied to BT-cut crystal resonators. This paper primarily describes cubic polynomials; however, it will be understood that the same approach still applies if the resonator properties differ (e.g., for BT-cut crystal resonators or MEMS resonators), but the polynomial function used may also change. For example, for BT-cut crystal 101, cubic terms may be neglected in the implementation of the learning algorithm (e.g., by considering a = 0). Conversely, some implementations may take an alternative approach and include quartic terms.
[0137] In different embodiments of the radio device 110, the learning unit 109 may use a variety of different methods. These are collectively referred to herein as "learning algorithms". Some non-exhaustive exemplary methods will be described below.
[0138] Bipolynomial method
[0139] In some implementations, the learning unit 109 uses the following approach: since a, b, and c in equation (1) depend on the cutting angle θ of crystal 101, a reference angle θ0 can be chosen for parameterization, where c equals 0. This allows equation (1) to be rewritten as a function of the temperature of crystal 101 and the actual cutting angle relative to the reference cutting angle θ0:
[0140]
[0141] Both p and q are polynomials.
[0142] If two polynomials p1 and p2 of two different angles of the same type of cut are known, then all other polynomials of that cut type, within a suitable temperature range, can be derived from these two polynomials as follows.
[0143] r(T,α)=p1(T,θ1)+(p2(T,θ2)-p1(T,θ1))*α (2)
[0144] Here, θ1 and θ2 are two angles of the same type of cut, and α is a coefficient, typically 0 ≤ α ≤ 1. However, the range of α can vary depending on the desired set of polynomials. While it is not necessary to know the cutting angles in the formula, for this method to succeed, all cutting angles must belong to the same type; for example, the set of polynomials may only apply to AT-cut crystals.
[0145] In an implementation of this approach in learning unit 109, the above relationship is used in conjunction with two polynomials, which may be provided by the crystal manufacturer, defining the minimum and maximum boundary curves of the temperature-dependent frequency error of crystal 101.
[0146] For 0 ≤ α ≤ 1, and for all T values within the relevant range, such as -60℃ ≤ T ≤ 120℃, the polynomial p representing the frequency-temperature curve of crystal unit 101 is... XO (T) will lie between these curves, that is
[0147] min(p1(T),p2(T))≤p XO (T)≤max(p1(T),p2(T)) (3)
[0148] Initially, the polynomial p XO The coefficient of (T) is unknown.
[0149] When the RF receiver 105 of the radio device 110 receives a signal of a known frequency, it can... err The value and the current temperature T of crystal 101 are saved as a measurement pair (F) for that temperature. err The set of these measurements, such as {(F,T).err-0 ,T0),(F err-1 ,T1),…,(F err-N ,T N )} can be collected over time during the receive operation and cached in memory, as described above.
[0150] Based on two polynomials and measurement pairs (F) provided by the crystal manufacturer err-k ,T k Learning Unit 109 can learn the polynomial p by assigning the value α in equation (2) as follows. XO The parameters of (T) = r(T,α)
[0151]
[0152] This results in the following model H(X) for a specific crystal 101. N )
[0153] p XO (T)=p1(T)+(p2(T)-p1(T))*α (5)
[0154] Once multiple n measurement pairs (F) are collected and buffered err (e.g., after multiple receive operations), the learning unit 109 can calculate each α on n sample pairs as follows: k average value
[0155] α ave =(α0+α1+α2+,...,+α) n-1 ) / n (6)
[0156] And this average value α ave Apply to equation (5) to replace the single value α k .
[0157] This method is relatively simple to implement in learning unit 109.
[0158] Least Squares
[0159] Some implementations of learning unit 109 can alternatively employ the least squares method to fit the polynomial. This is done by minimizing the appropriate (Euclidean) distance between the measurement dataset and a polynomial of the type described in equation (1) above.
[0160] At least three measurement points must be collected before the three coefficients a, b, and c can be uniquely determined using the least squares method. If the constant term d is also solved, the minimum number of data points is four. Solving the frequency-temperature curve using the least squares method can provide more data point filtering, potentially improving the quality of the obtained estimate.
[0161] In some implementations, as described in more detail below, learning unit 109 uses gradient descent. In other implementations, learning unit 109 uses an orthogonal polynomial approach utilizing Clenshaw's recursive formula in the final step.
[0162] The least squares method can estimate the relative frequency shift at temperatures close to those of the obtained measurement sample pairs with great accuracy.
[0163] However, when device 110 first begins receiving data after initialization, the measurement points will initially cover only a short temperature range across the entire operating range. In this case, the polynomial p calculated using least squares from these buffered data pairs is used. xo (T) may only be a broad approximation of the true frequency temperature curve.
[0164] To overcome this inaccuracy, in some implementations, three additional auxiliary data points can be added to the buffer for model training. These auxiliary {temperature, T; frequency offset, F} pairs are not measurements, but rather values correlated with the minimum, maximum, and midpoint expected operating temperatures T. min T max and T mid The associated synthetic frequency values.
[0165] The corresponding frequency error F err,min F err,max and F err,mid Calculated by learning module 109
[0166] F err,min =p1(T min )+(p2(T min )-p1(T min ))*γ
[0167] F err,mid =p1(T mid )+(p2(T mid )-p1(T mid ))*γ
[0168] F err,min =p1(T max )+(p2(T max )-p1(T max ))*γ
[0169] Where p1 and p2 are manufacturer-supplied curves used in the inequality as in equation (3), and where γ is the angle weight, which can be determined in the same way as α in equation (4) or (6).
[0170] In some implementations, T can be selected. min T max and T mid The value of makes T min = -60.0℃, T mid = +29.5℃ and T max = +120.0℃. You can choose T. mid This gives it a value close to the temperature at which p1 and p2 have a common root T0, i.e., where p1(T0) = p2(T0) = 0.
[0171] The three auxiliary data points can then be used together with the frequency-temperature pair of a single measurement as a four-point dataset, on which least-squares fitting can be performed, for example, shortly after the initial initialization of device 110.
[0172] As the system collects more data and additional frequency-temperature pairs are added to the buffer, auxiliary values can be removed from the model's training input, where appropriate. This can be done only after certain conditions are met, such as at least ten measurements have been obtained, spanning an interval of at least 20°C. Then, for example, if during operation, device 110 records frequency values at temperatures below -25°C, values with T can be removed from the valid data points. min Associated auxiliary data. Similarly, if device 110 records frequency values at temperatures above 85°C, values associated with T can be removed from the valid data points. max Associated auxiliary data. This can be particularly advantageous when γ = 0.5, in which case learning unit 109 may have difficulty correctly obtaining the final solution.
[0173] Alternatively, when updating the model using measurements, the average value of γ can be calculated from the measurements using equation (6), excluding auxiliary data points. This average value of γ, instead of the initial constant, can then be used to calculate T using the formula above. min T mid and T max The update frequency offset of auxiliary data points can then be included along with the measurement data when fitting a polynomial using the least squares method.
[0174] Gradient descent
[0175] In some implementations, such as the third-order polynomial model H(X) in equation (1) above... N The updated parameters are computed by solving a least-squares problem using gradient descent. This is an iterative process, where the minimum of the cost function is determined sequentially through multiple iterations.
[0176] The calculated values of a, b, c, and d when the cost function is minimized correspond to the values of a, b, c, and d that best match the actual properties of the crystal.
[0177] The least squares function to be solved can be represented by the cost function given below.
[0178]
[0179] in:
[0180] M is the number of samples used by the learning unit 109 to train the model, and is indexed by the i label;
[0181] y i The relative frequency error F generated by the automatic frequency control unit 105a err (Learning Unit 109 can be started from T) i The difference F output by the subtraction unit 115 est –F err Calculate these F err (or it can receive these values directly from AFC unit 105a);
[0182] T i It corresponds to each y i The value of the measured crystal temperature; and
[0183] T0 is the reference temperature for the initial calibration data provided by the crystal manufacturer, for example, for... Figure 5 The data in the table shows that T0 = 27.5℃.
[0184] Minimizing the mean squared error via gradient descent works well because it is a convex function and therefore always finds a global minimum (i.e., no local minimum); it also converges quickly by strongly penalizing large errors.
[0185] In some implementations, the learning model is initialized using a, b, c, d values based on data provided by the resonator manufacturer. In the case of crystal cells, manufacturers typically provide specifications for extreme variations in the a, b, c, and d coefficients for a specific type of crystal (i.e., a specific cut angle).
[0186] Upon initial startup, learning unit 109 can initialize a, b, c, and d to the average (i.e., midpoint) of the extreme values provided by the manufacturer. The extreme values or average values may have been written to the memory of device 110 during production (e.g., in a manufacturing plant).
[0187] In some implementations, the value of d is calibrated during production and can be treated as a constant during the learning process performed by the learning unit 109. However, other implementations may treat d together with a, b, and c as unknown parameters.
[0188] When using gradient descent, minimizing the cost function (i.e. minimizing the mean squared error) requires calculating the gradient of the cost function with respect to each coefficient a, b, and c (and optionally d).
[0189] In some implementations, the learning unit 109 buffers multiple temperature-offset sample pairs acquired over time and uses them all when minimizing the cost function. In other implementations, only the single most recent temperature-offset sample pair is used, resulting in a simpler implementation.
[0190] The gradient is calculated as follows, taking into account the partial derivatives of the cost function with respect to each of a, b, and c using the current values of a, b, and c:
[0191]
[0192]
[0193]
[0194] The calculated gradients are used to determine the direction in which the values of coefficients a, b, and c should change to minimize the error. The magnitude of the change (i.e., the value shift in each iteration) is determined by a parameter called the learning rate. The learning rate adjusts the amount of change in the coefficients during each iteration, and therefore its value can be chosen to prevent coefficients a, b, c, and d from growing too large or too fast. In some examples, the learning rate is set to 0.0001.
[0195] Each time a new sample is obtained, the new values of coefficients a, b, and c are a new b new and c new The following calculations are based on the current value:
[0196]
[0197]
[0198]
[0199] These calculations can be repeated multiple times for each new sample. Each iteration moves the cost function closer to its minimum. In some implementations, the number of iterations per sample is between 3 and 10, which is expected to provide good performance in typical cases.
[0200] After gradually adjusting the values of a, b, and c in each iteration, the resulting values of a, b, and c are stored in memory as updated parameters of model H.
[0201] In some implementations, the update value can be determined by using multiple buffered temperature-offset sample pairs in the gradient descent algorithm. Gradient descent then becomes stochastic gradient descent because the calculated gradient will be the average gradient of the buffered samples. The buffered samples will ideally span the operating temperature range of crystal 101. In some implementations, the buffer has space for eight sample pairs; it can be filled in a first-in, first-out manner, or in a manner that allows samples to expand with temperature, for example by dividing the entire temperature range into multiple subranges and retaining the latest sample in each subrange.
[0202] When device 110 is first initialized, the buffer will be empty. After the first sample pair is collected, gradient descent will be performed using only one sample. As more samples are collected, all available samples in the buffer will be used until the maximum size of the buffer is reached.
[0203] As described above, in some alternative embodiments, the buffer may be at least partially filled at initialization with a set of synthetic sample pairs, which can be calculated based on the average curve of the crystal type for a predetermined temperature value, and / or can use samples around an inflection point (e.g. Figure 5 Rotate 180 degrees (27.5 degrees in the middle) to "mirror" the first one or more samples to be collected to create another combination into a sample pair.
[0204] In some implementations, the buffer may initially contain two pre-calculated sample pairs associated with “extreme” temperature subranges that the radio device is expected to experience, such as -60°C and 120°C. These “extreme” sample pairs may remain in the buffer until new data is recorded within a similar temperature range; for example, once data has been recorded at temperatures T < -20°C, the sample pairs associated with the low-temperature extremes can be deleted.
[0205] Gradient descent with momentum
[0206] In some implementations, the updated model parameters are determined by implementing a gradient descent process with a momentum term. In this approach, previous values of parameters, such as parameter a, and their current values are stored, and each new value of a parameter, such as a, is then calculated based on the current and previous values as follows: new Introducing the exponentially weighted average into the parameter calculation:
[0207]
[0208] The value of the hyperparameter β is set between 0 and 1. It has been found that a value of β = 0.9 works well in some cases.
[0209] Implementing the gradient momentum term allows gradient descent to a newovercomes difficult points, such as local gradient zeros, and helps to more generally stabilize the convergence process.
[0210] Similarly, gradient momentum terms are implemented for parameters b, c to generate new values b new , c new .
[0211] Bounded gradient descent
[0212] In some implementations, when using gradient descent as described above, updated model parameters are determined by implementing maximum and minimum boundary values for coefficients a, b, and c (and optionally d, if it is not a constant). The manufacturer of crystal resonator 101 can provide minimum and maximum values for each of a, b, c, and d.
[0213] Limiting the values of parameters within such minimum and maximum values can ensure that the learned temperature-offset curve does not exceed the original specifications during the learning process.
[0214] Learning unit 109 can therefore apply the following additional rules during each iteration of the gradient descent algorithm:
[0215] If a new > max_a, then a new : = max_a;
[0216] If a new < min_a, then a new : = min_a
[0217] Similar rules can be applied to b and c.
[0218] In addition to temperature, any of the above implementations can be applied to additionally simulate one or more other variables, such as atmospheric pressure or humidity.
[0219] Those skilled in the art will recognize that the present invention has been described by describing one or more specific embodiments thereof, but is not limited to these embodiments; many variations and modifications are possible within the scope of the appended claims.
Claims
1. A radio device, comprising: Radio transceiver; Resonator or interface to resonator; Temperature measurement unit or interface to temperature measurement unit; Fractional frequency synthesizer; as well as Processing system The radio device is configured to repeatedly, at time intervals, as follows: Receive a corresponding temperature signal representing the measured temperature of the resonator from the temperature measurement unit; Using a model stored in the memory of the processing system that correlates frequency offset with temperature, the corresponding estimated frequency offset of the resonator is determined using the corresponding temperature signal, wherein the model includes one or more parameters; Receive the corresponding periodic resonator signal from the resonator; The corresponding periodic resonator signal is provided to the frequency synthesizer; The frequency synthesizer is controlled according to the corresponding estimated frequency offset to generate a periodic local signal from the periodic resonator signal; The periodic local signal is used as a local oscillator signal to transmit the corresponding departing radio signal from the radio transceiver; The base station of the cellular communication network receives a corresponding incoming radio signal at the radio transceiver, wherein the corresponding incoming radio signal includes a periodic component having a corresponding received signal frequency. Determine a corresponding error value representing the difference between the frequency of the corresponding received signal and the frequency of the periodic local signal; and The corresponding error value is used to update, or further update, one or more of the parameters of the model stored in the memory. The radio device is configured to update and further update the model using the corresponding error value over time, thereby causing the model to evolve over time to take into account one or more changes that occur in the temperature-dependent behavior of the resonator.
2. The radio device according to claim 1, wherein, The resonator is a quartz crystal resonator.
3. The radio device according to claim 1 or 2, wherein, The radio transceiver is configured to transmit the corresponding departing radio signals at intervals and receive the corresponding arriving radio signals in accordance with a half-duplex radio protocol.
4. The radio device according to claim 1 or 2, wherein, The radio transceiver implements NB-IoT or half-duplex eMTC protocol.
5. The radio apparatus according to claim 1 or 2, wherein, The periodic local signal is the local oscillator signal input to the mixer in the radio transceiver.
6. The radio apparatus according to claim 1 or 2, wherein, The radio device is a semiconductor chip and includes an interface for connecting to an off-chip resonator and an interface for connecting to an off-chip temperature measurement unit.
7. The radio apparatus according to claim 1 or 2, wherein, The radio device includes the resonator and the temperature measuring unit, wherein the temperature measuring unit is thermally coupled to the resonator.
8. The radio apparatus according to claim 1 or 2, wherein, The one or more parameters are one or more parameters for a predetermined formula, and the processing system is configured to determine the estimated frequency shift by numerically evaluating the formula by inputting the measured temperature.
9. The radio device according to claim 1 or 2, comprising one or more additional environmental sensors, wherein, The model also correlates the frequency shift with one or more additional environmental factors.
10. The radio apparatus according to claim 1 or 2, wherein, The processing system is configured to provide the estimated frequency offset, or a value derived therefrom, as input to the fractional divider of the fractional frequency synthesizer.
11. The radio apparatus according to claim 1 or 2, wherein, The periodic component of the corresponding arriving radio signal at each interval is the carrier frequency of the corresponding arriving radio signal.
12. The radio apparatus according to claim 1 or 2, wherein, The radio transceiver includes an automatic frequency control unit, and the processing system is configured to use the automatic frequency control unit at least in part to generate the corresponding error value at each interval.
13. The radio apparatus according to claim 1 or 2, wherein, The processing system is configured to use gradient descent to minimize the cost function when updating one or more parameters of the model at each interval.
14. The radio apparatus according to claim 1 or 2, wherein, The model is a linear combination of two predetermined temperature polynomial functions, and the processing system is configured to use the corresponding error values to update parameters representing one or more coefficients of the linear combination at each interval.
15. The radio apparatus according to claim 1 or 2, wherein, The processing system is configured to use least-squares processing at each interval to fit a polynomial function to a dataset that includes the corresponding error values and the corresponding associated measured temperatures.
16. The radio apparatus according to claim 1 or 2, wherein, The processing system is configured to use one or more predetermined auxiliary values, in addition to one or more determined error values and measured temperatures, when updating the model.
17. A radio communication system, comprising: The radio device according to claim 1 or 2; as well as A remote radio transceiver, wherein the remote radio transceiver is configured to transmit the incoming radio signal.
18. A method comprising repeatedly at time intervals over time: Receive the temperature signal representing the corresponding measured temperature of the resonator; Using a model that correlates frequency shift with temperature, the corresponding estimated frequency shift of the resonator is determined using the temperature signal, wherein, The model includes one or more parameters; Receive the corresponding periodic resonator signal from the resonator; The corresponding estimated frequency offset is used to control the fractional frequency synthesizer to generate a periodic local signal from the periodic resonator signal; The periodic local signal is used as the local oscillator signal to transmit the corresponding departing radio signal; Receives a corresponding incoming radio signal from a base station of a cellular communication network, wherein the corresponding incoming radio signal includes a periodic component having a corresponding received signal frequency; Determine a corresponding error value representing the difference between the frequency of the corresponding received signal and the frequency of the periodic local signal; and Use the corresponding error value to update, or further update, one or more of the parameters of the model; The method further includes: The model is updated and further updated using the corresponding error values over time, thereby allowing the model to evolve over time to account for one or more changes that occur in the temperature-dependent behavior of the resonator.
Citation Information
Patent Citations
System and Method for Providing Temperature Correction in a Crystal Oscillator
US20080164952A1
Oscillators having arbitrary frequencies and related systems and methods
US20110181366A1
