This application relates to the field of wireless communication transmission technologies, and in particular, to a signal processing circuit, a signal processing method, and an electronic device.
In wireless communication transmission, a transmit end transmits a radio frequency signal to a receive end, where data information is modulated into the radio frequency signal. The receive end demodulates the received radio frequency signal to obtain the data information.
A common modulation scheme is frequency shift keying (frequency shift keying, FSK). In this modulation technology, data information is modulated into a radio frequency signal in a form of frequency signals with different frequency values. Correspondingly, a common demodulation scheme is as follows: A frequency mixer, a crystal oscillator, and a frequency-to-amplitude converter are disposed at a receive end. The crystal oscillator provides a local oscillator signal for the frequency mixer. The frequency mixer performs frequency mixing on an input radio frequency signal and the local oscillator signal to obtain an intermediate frequency signal, where the intermediate frequency signal carries frequency signals that have different frequencies and that indicate data information. Then the frequency-to-amplitude converter converts the frequency signals with different frequency values that are carried in the intermediate frequency signal into amplitude signals with different amplitude values, where the amplitude signals with different amplitude values indicate corresponding data information. However, during actual application, the local oscillator signal provided by the crystal oscillator has a specific frequency tolerance due to device precision or other causes. The frequency tolerance causes interference to precision of converting a frequency signal into an amplitude signal by the frequency-to-amplitude converter. When a frequency offset is large, the receive end even cannot properly perform demodulation.
Embodiments of this application provide a signal processing circuit, a signal processing method, and an electronic device, to reduce impact of a frequency tolerance of a local oscillator signal on demodulation.
To achieve the foregoing objective, the following technical solutions are used in embodiments of this application.
According to a first aspect, a signal processing circuit is provided. The signal processing circuit includes a controller, a frequency mixer, a frequency generator, a frequency-to-amplitude converter, and an amplitude detector. The frequency generator is coupled to the frequency mixer. The frequency mixer is coupled to the frequency-to-amplitude converter. The frequency-to-amplitude converter is coupled to the amplitude detector. The amplitude detector and the frequency generator are separately coupled to the controller. The frequency generator is configured to output a first local oscillator signal with a frequency tolerance to the frequency mixer. The frequency mixer is configured to input a radio frequency signal and the first local oscillator signal, and perform frequency mixing on the radio frequency signal and the first local oscillator signal to obtain an intermediate frequency signal. The intermediate frequency signal carries a frequency signal. The frequency-to-amplitude converter is configured to obtain a first amplitude signal based on the frequency signal. The amplitude detector is configured to obtain an amplitude value of the first amplitude signal. The controller is configured to: obtain a value of the frequency tolerance based on an amplitude value of the first amplitude signal and an amplitude value of a second amplitude signal, where the second amplitude signal is an amplitude signal corresponding to a frequency signal carried in a second local oscillator signal, and the second local oscillator signal does not carry the frequency tolerance; and control, based on the value of the frequency tolerance, the frequency generator to adjust a frequency value of the output first local oscillator signal.
In this embodiment of this application, in a scenario in which a frequency shift keying technology is used, a frequency-to-amplitude converter needs to be used when a receiving device performs demodulation. The frequency-to-amplitude converter converts an input frequency signal into an output amplitude signal. In an ideal case, a frequency of an input signal is in a linear relationship with an amplitude of an output signal. However, in an actual device, a frequency signal and an amplitude signal are not exactly in a linear relationship. For different frequency-to-amplitude converters, as an electronic component for converting a frequency signal into an amplitude signal, the frequency-to-amplitude converter has a specific linear operation interval regardless of a range of frequency signals to be converted. The frequency-to-amplitude converter can convert only a frequency signal whose frequency is within the linear operation interval into an amplitude signal that is in a linear relationship with the frequency signal. For a frequency signal that exceeds the linear operation interval by a specific range, a frequency value of the frequency signal and an amplitude value of an amplitude signal begin to have a nonlinear relationship. The frequency interval is referred to as a nonlinear operation interval. When a frequency difference between a frequency value of a frequency signal and the linear operation interval is quite large, the frequency-to-amplitude converter even operates within a saturated operation interval. Within the saturated interval, although the frequency value of the frequency signal changes, an amplitude value of an amplitude signal that is obtained through conversion by the frequency-to-amplitude converter may not change correspondingly, or may change slightly. When the frequency tolerance of the first local oscillator signal makes a frequency value of the frequency signal in the intermediate frequency signal fall within the linear operation interval or the nonlinear operation interval, the amplitude value of the first amplitude signal that is obtained through conversion by the frequency-to-amplitude converter and the frequency value of the frequency signal have a specific correspondence. The value of the frequency tolerance may be calculated based on the correspondence (when the frequency value of the frequency signal is within the linear operation interval, the frequency value and the amplitude value are in a linear relationship; or when the frequency value of the frequency signal is within the nonlinear operation interval, there is a specific deviation between the frequency value and the amplitude value, but the value of the frequency tolerance can still be estimated) and an amplitude value corresponding to the second local oscillator signal. The frequency value of the first local oscillator signal is adjusted based on the value of the frequency tolerance to compensate for the frequency tolerance. In this way, both a frequency value of the intermediate frequency signal and the frequency value of the frequency signal are within the linear operation interval of the frequency-to-amplitude converter. This reduces impact of the frequency tolerance on demodulation.
In a possible implementation, for the frequency-to-amplitude converter, when a frequency value of a frequency signal input to the frequency-to-amplitude converter is within a first frequency interval, an amplitude value of a first amplitude signal output by the frequency-to-amplitude converter is in a linear relationship with the frequency value of the frequency signal correspondingly input to the frequency-to-amplitude converter. The frequency tolerance indicates an offset between a frequency value of the first local oscillator signal and the first frequency interval. The controller is specifically configured to: control, based on the value of the frequency tolerance, the frequency generator to adjust a frequency value of the output first local oscillator signal, so that a frequency value of the frequency signal is within the first frequency interval.
In this embodiment of this application, when the frequency value of the frequency signal is not within the first frequency interval (namely, the linear operation interval), to be specific, the frequency value of the frequency signal is within a second frequency interval (namely, the nonlinear operation interval) or a third frequency interval (namely, the saturated interval), a conversion relationship between a frequency value and an amplitude value is not a precise linear relationship. To improve processing precision, in this case, the controller may adjust a device parameter of the frequency-to-amplitude converter to extend the first frequency interval (namely, the linear operation interval) of the frequency-to-amplitude converter, so that the frequency value of the frequency signal is within the first frequency interval. Then the frequency value of the frequency signal is converted to obtain the amplitude value of the first amplitude signal. In this case, the amplitude value and the frequency value are in a linear relationship. The value of the frequency tolerance can be accurately obtained based on the linear relationship.
In a possible implementation, the controller is further configured to: when an absolute value of a difference between the amplitude value of the first amplitude signal and the amplitude value of the second amplitude signal is greater than a first value, control the frequency-to-amplitude converter to extend an interval range of the first frequency interval.
In this embodiment of this application, when the absolute value of the difference between the amplitude value of the first amplitude signal and the amplitude value of the second amplitude signal is greater than the first value, the controller may determine that the frequency value of the frequency signal is not within the first frequency interval. In this case, the frequency-to-amplitude converter may be controlled to extend the interval range of the first frequency interval.
In a possible implementation, the controller is further configured to: when the frequency value of the frequency signal is within the first frequency interval and a first ratio is greater than a second value, control the frequency-to-amplitude converter to narrow the interval range of the first frequency interval, where the first ratio is a ratio of a third value to a fourth value, the third value is a minimum difference between the frequency value of the frequency signal and an interval point frequency of the first frequency interval, and the fourth value is a maximum difference between the frequency value of the frequency signal and an interval center frequency of the first frequency interval.
In this embodiment of this application, the first ratio may describe a degree of proximity between the frequency value of the frequency signal and the interval point frequency within the first frequency interval. A larger first ratio indicates a larger distance between the frequency value of the frequency signal and the interval point frequency. This indicates that the current first frequency interval is large.
In a possible implementation, the controller is further configured to: when a first frequency difference is less than a fifth value, control the frequency-to-amplitude converter to narrow the interval range of the first frequency interval, where the first frequency difference is an absolute value of a difference between a maximum frequency value and a minimum frequency value of a frequency signal carried in the first local oscillator signal.
In this embodiment of this application, the first frequency difference is the difference between the maximum frequency value and the minimum frequency value of the frequency signal. A smaller first frequency difference indicates a smaller difference between different amplitude values of the first amplitude signal obtained through conversion, and indicates that higher demodulation precision is needed for the first amplitude signal. Therefore, when the first frequency difference is less than the preset fifth value, the controller may control the frequency-to-amplitude converter to narrow the interval range of the first frequency interval, to improve demodulation performance.
In a possible implementation, the frequency-to-amplitude converter includes a phase shift circuit and a multiplication circuit. An input end of the phase shift circuit and a first input end of the multiplication circuit are separately coupled to an output end of the frequency mixer and are configured to input the frequency signal. An output end of the phase shift circuit is coupled to a second input end of the multiplication circuit. An output end of the multiplication circuit is coupled to the amplitude detector as an output end of the frequency-to-amplitude converter. The phase shift circuit is configured to perform phase shift on the frequency signal input to the phase shift circuit, to obtain a phase-shifted frequency signal. The multiplication circuit is configured to obtain the first amplitude signal by using the frequency signal input to the multiplication circuit and the phase-shifted frequency signal. The controller is specifically configured to reduce a value of an angle at which the phase shift circuit performs phase shift on the frequency signal, to extend the interval range of the first frequency interval.
In this embodiment of this application, the phase shift circuit has different frequency-phase responsivity for different frequency values of an input frequency signal. In other words, the phase shift circuit has different phase shift angles for frequency signals with different frequency values. A phase of a frequency signal obtained through phase shift by the phase shift circuit is different from a phase of a frequency signal that exists before the phase shift. The two frequency signals that exist before and after the phase shift may be input to the multiplication circuit for multiplication and then undergo low-pass filtering to obtain an amplitude value of the first amplitude signal. The controller reduces the value of the angle at which the phase shift circuit performs phase shift on the frequency signal, so that a linear operation interval of the phase shift circuit can be extended. In this way, the phase shift circuit can perform phase shift on a frequency signal within a larger frequency interval range, so that the frequency-to-amplitude converter can perform frequency-to-amplitude conversion on a frequency signal within a larger frequency interval. This extends the first frequency interval.
In a possible implementation, the frequency-to-amplitude converter includes a phase shift circuit and a multiplication circuit. An input end of the phase shift circuit and a first input end of the multiplication circuit are separately coupled to an output end of the frequency mixer, to input the frequency signal. An output end of the phase shift circuit is coupled to a second input end of the multiplication circuit. After low-pass filtering is performed, an output end of the multiplication circuit is coupled to the amplitude detector as an output end of the frequency-to-amplitude converter. The phase shift circuit is configured to perform phase shift on the frequency signal input to the phase shift circuit, to obtain the phase-shifted frequency signal. The multiplication circuit is configured to obtain the first amplitude signal by using the frequency signal input to the multiplication circuit and the phase-shifted frequency signal. The controller is specifically configured to increase a value of an angle at which the phase shift circuit performs phase shift on the frequency signal, to narrow the interval range of the first frequency interval.
In this embodiment of this application, the phase shift circuit has different frequency-phase responsivity for different frequency values of an input frequency signal. In other words, the phase shift circuit has different phase shift angles for frequency signals with different frequency values. A phase of a frequency signal obtained through phase shift by the phase shift circuit is different from a phase of a frequency signal that exists before the phase shift. Two frequency signals with different phases may be input to the multiplication circuit for multiplication and then undergo low-pass filtering to obtain an amplitude value of the first amplitude signal. A plurality of phase-shifted frequency signals that are obtained through phase shift by the phase shift circuit and then output by the phase shift circuit may be multiplied by the frequency signal that exists before the phase shift to obtain a plurality of first amplitude signals with different amplitude values. The controller increases the value of the angle at which the phase shift circuit performs phase shift on the frequency signal, so that a size of a linear operation interval of the phase shift circuit can be reduced. In this way, the phase shift circuit can perform phase shift on a frequency signal within a smaller frequency interval range, so that the frequency-to-amplitude converter can perform frequency-to-amplitude conversion on a frequency signal within a smaller frequency interval. This narrows the first frequency interval.
In a possible implementation, the phase shift circuit includes a first capacitor, a second capacitor, a first inductor, and a first adjustable resistor. A first end of the first capacitor is coupled to the output end of the frequency mixer as an input end of the phase shift circuit. A second end of the first capacitor is coupled to a first end of the second capacitor, a first end of the first inductor, and a first end of the first adjustable resistor. A second end of the second capacitor, a second end of the first inductor, and a second end of the first adjustable resistor are grounded. The second end of the first capacitor is coupled to the multiplication circuit as an output end of the phase shift circuit. The controller is specifically configured to adjust a resistance of the first adjustable resistor, to adjust the value of the angle at which the phase shift circuit performs phase shift on the frequency signal.
In this embodiment of this application, the phase shift circuit includes the first capacitor and a resonant circuit that are connected in series. A coupling point between the first capacitor and the resonant circuit is coupled to the second input end of the multiplication circuit as the output end of the phase shift circuit. The resonant circuit includes the second capacitor, the first inductor, and the first adjustable resistor that are connected in parallel. A resonance frequency of the resonant circuit is as follows:
where f3 is a resonance frequency value, L is an inductance of the first inductor, and C is a capacitance of the second capacitor. A phase shift angle of the phase shift circuit for a frequency signal with an input frequency value of f3 is 90°. A calculation formula for a phase shift angle Δφ(f) for a frequency signal with another input frequency value is as follows:
In the formula, f is a frequency value of a frequency signal input to the phase shift circuit, f3 is a resonance frequency value, and is a frequency value of a frequency signal obtained through 90°-phase-shift by the phase shift circuit, and Qp is a phase shift slope of the phase shift circuit, and determines a range of phase shift angles for frequency signals with different frequency values. Qp=2πf3RC, where R is a resistance of the first adjustable resistor, and C is a capacitance of the second capacitor. Therefore, the phase shift slope of the phase shift circuit can be adjusted by adjusting a value of the resistance of the first adjustable resistor. It can be learned from the foregoing formula that the phase shift circuit can perform phase shift on a frequency signal only by a specific phase interval range. A larger phase shift slope indicates a smaller available range of the frequency value f. On the contrary, a smaller phase shift slope indicates a larger available range of the frequency value f. Therefore, a range of a linear operation interval within which the phase shift circuit can perform phase shift may be adjusted by adjusting the phase shift slope of the phase shift circuit. In this way, a range of the linear operation interval, namely, a range of the first frequency interval, of the frequency-to-amplitude converter is adjusted.
In a possible implementation, the frequency-to-amplitude converter further includes a first comparator. A first input end of the first comparator is coupled to the output end of the phase shift circuit. A second input end of the first comparator is configured to input a reference voltage. An output end of the first comparator is coupled to the second input end of the multiplication circuit.
In this embodiment of this application, the first comparator compares a phase-shifted frequency signal input to the first input end with the reference voltage. When a signal amplitude (namely, a voltage value) of the phase-shifted frequency signal is greater than or equal to the reference voltage, the first comparator outputs a signal with a fixed first amplitude value. When a signal amplitude of the phase-shifted frequency signal is less than the reference voltage, the first comparator outputs a signal with a fixed second amplitude value. The signal with the fixed first amplitude value and/or the signal with the fixed first amplitude value that are output by the first comparator form a first shaped signal.
In a possible implementation, a center frequency value of the intermediate frequency signal is equal to the interval center frequency of the first frequency interval.
In this embodiment of this application, during actual application, a frequency value of the frequency signal carried in the first local oscillator signal usually changes by using the first local oscillator signal as a center frequency, for example, during modulation and demodulation of binary data information. The center frequency value of the intermediate frequency signal is 1 MHz. The frequency signal carried in the first local oscillator signal has two different frequency values: a frequency value f0 and a frequency value f1. A value of the frequency value f0 may be as follows: 1 MHz−0.01 MHz=0.99 MHz. A value of the frequency value f1 may be as follows: 1 MHz+0.01 MHz=1.01 MHz. In fourth-order frequency shift keying, eighth-order frequency shift keying, or other modulation schemes, more frequency values may alternatively be added to correspond to values for different modulation orders. In this case, when the center frequency value of the intermediate frequency signal is the interval center frequency f3 of the first frequency interval, it can be better ensured that all frequency values of the frequency signal fall within the first frequency interval during adjustment of a size of the interval range of the first frequency interval. In addition, signal amplitudes of a phase-shifted frequency signal obtained by the phase shift circuit by performing phase shift on the frequency signal are consistent. Therefore, when a first amplitude signal is obtained through multiplication by the multiplication circuit, absolute values of signal amplitudes of the first amplitude information that correspond to the frequency values are also consistent. For example, if an amplitude value corresponding to the frequency value f3 is 0, an amplitude value corresponding to the frequency value f0 may be −1, and an amplitude value corresponding to the frequency value f1 may be 1. Absolute values of the signal amplitudes corresponding to the two frequency values are both 1. In this case, the obtained first amplitude signal is also a regularly symmetric signal. A data information result obtained by an amplitude converter by converting the first amplitude signal is also more accurate.
In a possible implementation, the signal processing circuit further includes an amplitude converter. The amplitude converter is coupled to the output end of the frequency-to-amplitude converter and is configured to obtain corresponding data information based on the amplitude value of the first amplitude signal.
In this embodiment of this application, an implementation principle of the amplitude converter is similar to an implementation principle of an analog-to-digital converter. The amplitude converter converts the first amplitude signal, namely, an analog signal, into data information, namely, a digital signal, based on different amplitude values of the first amplitude signal.
In a possible implementation, the signal processing circuit further includes a low-pass filter. An input end of the amplitude detector and an input end of the amplitude converter are coupled to the output end of the frequency-to-amplitude converter through the low-pass filter.
In this embodiment of this application, a first amplitude signal obtained by some frequency-to-amplitude converters by converting a frequency value into an amplitude value may have a high-frequency component. The high-frequency component causes interference to operation of the amplitude converter. Therefore, the low-pass filter is used to filter out the high-frequency component.
In a possible implementation, the signal processing circuit further includes a first band-pass filter. The frequency-to-amplitude converter is coupled to the output end of the frequency mixer through the first band-pass filter. The controller is further configured to increase bandwidth of the first band-pass filter or reduce bandwidth of the first band-pass filter based on the value of the frequency tolerance.
In this embodiment of this application, intermediate frequency signals may be classified into three types: a broadband intermediate frequency signal, a mid-band intermediate frequency signal, and a narrowband intermediate frequency signal. During actual application, the broadband intermediate frequency signal and the mid-band intermediate frequency signal usually can share a band-pass filter because a difference between frequency values is small. With the first band-pass filter disposed, different operation modes may be selected. To be specific, the first band-pass filter is used to filter out an intermediate frequency signal other than the mid-band intermediate frequency signal, or filter out an intermediate frequency signal other than the broadband intermediate frequency signal.
In a possible implementation, the signal processing circuit further includes a first amplifier. An input end of the first band-pass filter is coupled to the output end of the frequency mixer through the first amplifier.
In this embodiment of this application, the first amplifier is configured to amplify the intermediate frequency signal output by the frequency mixer, to improve signal quality of the intermediate frequency signal.
In a possible implementation, the signal processing circuit further includes a receiving unit. The receiving unit is configured to receive the radio frequency signal and output the radio frequency signal to the frequency mixer.
In this embodiment of this application, the receiving unit is configured to receive the radio frequency signal and output the received radio frequency signal to the frequency mixer.
In a possible implementation, the receiving unit includes a second band-pass filter and a second amplifier. The second band-pass filter is coupled to the frequency mixer through the second amplifier. The second band-pass filter is configured to receive the radio frequency signal.
In this embodiment of this application, the radio frequency signal received by the receiving unit may include a signal from another channel, and the second band-pass filter is used to filter out the signal from the another channel. The second amplifier amplifies the radio frequency signal to improve signal quality of the radio frequency signal, so that processing effect of performing, by the frequency mixer, down-conversion on the radio frequency signal based on the first local oscillator signal to obtain the intermediate frequency signal is better.
According to a second aspect, an embodiment of this application further provides a signal processing circuit. The signal processing circuit includes a phase shift circuit, a multiplication circuit, and a shaping circuit. An input end of the phase shift circuit and a first input end of the multiplication circuit each are configured to input one data signal. The data signal carries a frequency signal. An output end of the phase shift circuit is coupled to a first input end of the shaping circuit. An output end of the shaping circuit is coupled to a second input end of the multiplication circuit. An output end of the multiplication circuit serves as an output end of the signal processing circuit. The phase shift circuit is configured to perform phase shift on one data signal input to the phase shift circuit, to obtain a phase-shifted data signal. The shaping circuit is configured to obtain a first shaped signal based on the phase-shifted carrier signal, where the first shaped signal includes a plurality of fixed amplitude values. The multiplication circuit is configured to obtain an amplitude signal based on one data signal input to the multiplication circuit and the first shaped signal, where an amplitude value of the amplitude signal indicates a frequency value corresponding to the frequency signal.
In this embodiment of this application, the data signal may be a baseband signal, an intermediate frequency signal, a radio frequency signal, or the like.
In a possible implementation, the shaping circuit further includes a first comparator. A first input end of the first comparator is coupled to the output end of the phase shift circuit. A second input end of the first comparator is configured to input a reference voltage. An output end of the first comparator is coupled to the second input end of the multiplication circuit.
In a possible implementation, the phase shift circuit includes a first capacitor, a second capacitor, a first inductor, and a first resistor. A first end of the first capacitor is configured to input one data signal as the input end of the phase shift circuit. A second end of the first capacitor is coupled to a first end of the second capacitor, a first end of the first inductor, and a first end of the first resistor. A second end of the second capacitor, a second end of the first inductor, and a second end of the first resistor are grounded. The second end of the first capacitor is coupled to the shaping circuit as the output end of the phase shift circuit.
According to a third aspect, an embodiment of this application further provides a signal processing method based on a signal processing circuit. The signal processing circuit includes a frequency mixer, a frequency generator, a frequency-to-amplitude converter, and an amplitude detector. The frequency generator is coupled to the frequency mixer. The frequency mixer is coupled to the frequency-to-amplitude converter. The frequency-to-amplitude converter is coupled to the amplitude detector. The frequency generator is configured to output a first local oscillator signal with a frequency tolerance to the frequency mixer. The frequency mixer is configured to input a radio frequency signal and the first local oscillator signal, and perform frequency mixing on the radio frequency signal and the first local oscillator signal to obtain an intermediate frequency signal. The intermediate frequency signal carries a frequency signal. The frequency-to-amplitude converter is configured to obtain a first amplitude signal based on the frequency signal. The amplitude detector is configured to obtain an amplitude value of the first amplitude signal. The method includes: obtaining a value of the frequency tolerance based on an amplitude value of the first amplitude signal and an amplitude value of a second amplitude signal, where the second amplitude signal is an amplitude signal corresponding to a frequency signal carried in a second local oscillator signal, and the second local oscillator signal does not carry the frequency tolerance; and controlling, based on the value of the frequency tolerance, the frequency generator to adjust a frequency of the output first local oscillator signal.
In a possible implementation, for the frequency-to-amplitude converter, when a frequency value of a frequency signal input to the frequency-to-amplitude converter is within a first frequency interval, an amplitude value of a first amplitude signal output by the frequency-to-amplitude converter is in a linear relationship with the frequency value of the frequency signal correspondingly input to the frequency-to-amplitude converter. The frequency tolerance indicates an offset between a frequency value of the first local oscillator signal and the first frequency interval. The method specifically includes: controlling, based on the value of the frequency tolerance, the frequency generator to adjust a frequency value of the output first local oscillator signal, so that a frequency value of the frequency signal is within the first frequency interval.
In a possible implementation, the method further includes: when an absolute value of a difference between the amplitude value of the first amplitude signal and the amplitude value of the second amplitude signal is greater than a first value, controlling the frequency-to-amplitude converter to extend an interval range of the first frequency interval.
In a possible implementation, the method further includes: when the frequency value of the frequency signal is within the first frequency interval and a first ratio is greater than a second value, controlling the frequency-to-amplitude converter to narrow the interval range of the first frequency interval, where the first ratio is a ratio of a third value to a fourth value, the third value is a minimum difference between the frequency value of the frequency signal and an interval point frequency of the first frequency interval, and the fourth value is a maximum difference between the frequency value of the frequency signal and an interval center frequency of the first frequency interval.
In a possible implementation, the method further includes: when a first frequency difference is less than a fifth value, controlling the frequency-to-amplitude converter to narrow the interval range of the first frequency interval, where the first frequency difference is an absolute value of a difference between a maximum frequency value and a minimum frequency value of a frequency signal carried in the first local oscillator signal.
In a possible implementation, the frequency-to-amplitude converter includes a phase shift circuit and a multiplication circuit. An input end of the phase shift circuit and a first input end of the multiplication circuit are separately coupled to an output end of the frequency mixer and are configured to input the frequency signal. An output end of the phase shift circuit is coupled to a second input end of the multiplication circuit. An output end of the multiplication circuit is coupled to the amplitude detector as an output end of the frequency-to-amplitude converter. The phase shift circuit is configured to perform phase shift on the frequency signal input to the phase shift circuit, to obtain a phase-shifted frequency signal. The multiplication circuit is configured to obtain the first amplitude signal by using the frequency signal input to the multiplication circuit and the phase-shifted frequency signal. The method specifically includes: reducing a value of an angle at which the phase shift circuit performs phase shift on the frequency signal, to extend the interval range of the first frequency interval.
In a possible implementation, the frequency-to-amplitude converter includes a phase shift circuit and a multiplication circuit. An input end of the phase shift circuit and a first input end of the multiplication circuit are separately coupled to an output end of the frequency mixer and are configured to input the frequency signal. An output end of the phase shift circuit is coupled to a second input end of the multiplication circuit. An output end of the multiplication circuit is coupled to the amplitude detector as an output end of the frequency-to-amplitude converter. The phase shift circuit is configured to perform phase shift on the frequency signal input to the phase shift circuit, to obtain a phase-shifted frequency signal. The multiplication circuit is configured to obtain the first amplitude signal by using the frequency signal input to the multiplication circuit and the phase-shifted frequency signal. The method specifically includes: increasing a value of an angle at which the phase shift circuit performs phase shift on the frequency signal, to narrow the interval range of the first frequency interval.
In a possible implementation, the phase shift circuit includes a first capacitor, a second capacitor, a first inductor, and a first adjustable resistor. A first end of the first capacitor is coupled to the output end of the frequency mixer as an input end of the phase shift circuit. A second end of the first capacitor is coupled to a first end of the second capacitor, a first end of the first inductor, and a first end of the first adjustable resistor. A second end of the second capacitor, a second end of the first inductor, and a second end of the first adjustable resistor are grounded. The second end of the first capacitor is coupled to the multiplication circuit as an output end of the phase shift circuit. The method specifically includes: adjusting a resistance of the first adjustable resistor, to adjust the value of the angle at which the phase shift circuit performs phase shift on the frequency signal.
In a possible implementation, the signal processing circuit further includes a first band-pass filter. The frequency-to-amplitude converter is coupled to the output end of the frequency mixer through the first band-pass filter. The method further includes: increasing bandwidth of the first band-pass filter or reducing bandwidth of the first band-pass filter based on the value of the frequency tolerance.
According to a fourth aspect, an embodiment of this application further provides an electronic device. The electronic device includes the signal processing circuit described in the first aspect, or includes the signal processing circuit described in the second aspect.
In some possible implementations, the electronic device is a transmitting device.
According to a fifth aspect, an embodiment of this application further provides a chip system. The chip system includes at least one processor and at least one interface circuit. The at least one processor and the at least one interface circuit may be interconnected through a line. The processor is configured to support the chip system in implementing the method described in the third aspect. The at least one interface circuit may be configured to receive a signal from another apparatus (for example, a memory), or send a signal to another apparatus (for example, a communication interface). The chip system may include a chip, and may further include another discrete component.
According to a sixth aspect, an embodiment of this application further provides a computer-readable storage medium. The computer-readable storage medium includes instructions. When the instructions are run on the foregoing chip system or electronic device, the chip system or the electronic device is enabled to perform the method described in the third aspect.
According to a seventh aspect, an embodiment of this application further provides a computer program product including instructions. When the instructions are run on the foregoing chip system or electronic device, the chip system or the electronic device is enabled to perform the method described in the third aspect.
For technical effect of the second aspect, the third aspect, the fourth aspect, the fifth aspect, the sixth aspect, and the seventh aspect, refer to related descriptions in the first aspect and the second aspect. Therefore, details are not described again.
It should be noted that the terms “first”, “second”, and the like in embodiments of this application are merely used to distinguish between features of a same type, and cannot be understood as an indication of relative importance, a quantity, a sequence, or the like.
The term “example”, “for example”, or the like in embodiments of this application is used to give an example, an illustration, or a description. Any embodiment or design scheme described as an “example” or “for example” in this application should not be construed as being more preferred or more advantageous than another embodiment or design scheme. To be precise, the term “example”, “for example”, or the like is intended to present a related concept in a specific manner.
The terms “coupling” and “connection” in embodiments of this application should be understood in a broad sense. For example, the “connection” may be a physical direct connection, or may be an indirect connection implemented through an electronic component, for example, a connection implemented through a resistor, an inductor, a capacitor, or another electronic component.
First, some basic concepts in embodiments of this application are described.
In signal wireless communication, data information that needs to be transmitted is carried in a radio frequency signal through modulation, and the radio frequency signal is transmitted to a receiving device through a transmitting device. The receiving device demodulates the received radio frequency signal to obtain the data information carried in the radio frequency signal, to complete wireless communication transmission of data.
A common modulation method is frequency shift keying (frequency shift keying, FSK) modulation. In frequency shift keying modulation, data information is modulated into a radio frequency signal in a form of frequency signals with different frequency values. A receiving device obtains the different frequency values of the frequency signals from the radio frequency signal, and performs demodulation by using the different frequency values to obtain corresponding data information.
An embodiment of this application provides a receiving device. As shown in
For example, data information that needs to be transmitted is binary data information, a frequency signal with a frequency value of f0 indicates data 0, and a frequency signal with a frequency value of f indicates data 1. In this case, for example, when binary data information 01101 needs to be transmitted, as shown in
In this embodiment of this application, the receiving device 1 also demodulates the data information through frequency shift keying. Advantages of frequency shift keying are a simple implementation and strong anti-noise and anti-attenuation capabilities. Frequency shift keying is usually used in an application scenario with medium- and low-speed data transmission. However, in application, a crystal oscillator (crystal oscillator, CO) is usually used as the frequency generator 13 to provide a local oscillator signal. However, the crystal oscillator usually causes a frequency tolerance (frequency tolerance, FT) due to impact of a technique, ambient temperature, and other factors. In addition, in most application scenarios with medium- and low-speed data transmission, a low-cost crystal oscillator is usually used. However, the low-cost crystal oscillator usually causes a quite large frequency tolerance. Therefore, a frequency value of the intermediate frequency signal obtained by the frequency mixer 12 by performing frequency mixing on the radio frequency signal and the local oscillator signal also deviates from an expected value due to the frequency tolerance of the local oscillator signal, and a frequency value of the frequency signal carried in the intermediate frequency signal also deviates due to the deviation of the frequency value of the intermediate frequency signal. The frequency-to-amplitude converter 14 is configured to convert the frequency value of the frequency signal into an amplitude value of an amplitude signal. Usually, a conversion correspondence between the frequency value and the amplitude value is a linear relationship only within a specific frequency interval. The frequency interval is also referred to as a linear operation interval of the frequency-to-amplitude converter 14. For a frequency value that is far greater than or less than a range of the frequency interval, an amplitude value obtained by using the frequency-to-amplitude converter 14 cannot accurately indicate a corresponding frequency value, and even no correct amplitude value may be obtained by using the frequency-to-amplitude converter 14.
For example, a center frequency value of an intermediate frequency signal obtained through down-conversion is 1 MHz. A frequency value of a frequency signal f1 is 1.01 MHz, and a frequency value of f0 is 0.99 MHz. The linear operation interval of the frequency-to-amplitude converter 14 is 0.98 MHz to 1.02 MHz. As shown in
To address impact of a frequency tolerance of a local oscillator signal on demodulation, an embodiment of this application further provides a receiving device. As shown in
The receiving unit 31 is configured to receive a radio frequency signal, and output the radio frequency signal to the frequency mixer 32. The radio frequency signal carries a frequency signal that indicates data information. The frequency generator 33 is configured to output a first local oscillator signal to the frequency mixer 32. A frequency tolerance is present on the first local oscillator signal. The frequency mixer 32 is configured to input the radio frequency signal and the first local oscillator signal, perform down-conversion on the radio frequency signal and the first local oscillator signal to obtain an intermediate frequency signal, and output the intermediate frequency signal to the frequency-to-amplitude converter 34, where the intermediate frequency signal carries the frequency signal. The frequency-to-amplitude converter 34 is configured to convert the frequency signal carried in the intermediate frequency signal into a first amplitude signal, where different amplitude values of the first amplitude signal indicate different frequency values of the frequency signal. The amplitude converter 35 is configured to convert the different amplitude values of the first amplitude signal into corresponding data information. The amplitude detector 36 is configured to obtain an amplitude value of the first amplitude signal, and feed back the amplitude value to the controller 37. The controller 37 is configured to calculate a value of the frequency tolerance based on the amplitude value of the first amplitude signal and an amplitude value of a second amplitude signal, and control, based on the value of the frequency tolerance, the frequency generator 33 to adjust a frequency of the output first local oscillator signal.
For example, in a scenario in which a frequency shift keying technology is used, the frequency-to-amplitude converter 34 needs to be used when the receiving device 2 performs demodulation. However, a frequency signal and an amplitude signal are not parameters in an exact linear correspondence. As shown in
In this embodiment of this application, the amplitude detector 36 obtains the amplitude value of the first amplitude signal output by the frequency-to-amplitude converter 34, and compares the amplitude value with the amplitude value of the second amplitude signal. If a frequency value of the intermediate frequency signal is within the first frequency interval (namely, the linear operation interval), the value of the frequency tolerance may be calculated based on a difference obtained through comparison. If a frequency value of the intermediate frequency signal is within the second frequency interval (namely, the nonlinear operation interval), the value of the frequency tolerance may also be estimated. The frequency value of the first local oscillator signal is adjusted based on the obtained value of the frequency tolerance, to reduce impact of the frequency tolerance on modulation.
In some possible implementations, as shown in
In some possible implementations, as shown in
For example, when the phase shift circuit 341 shown in
where f3 is a resonance frequency value, and indicates that a phase shift angle of the phase shift circuit 341 for a frequency signal with an input frequency value of f3 is 90°. A calculation formula for a phase shift angle Δφ(f) for a frequency signal with another input frequency value is as follows:
In the formula, f is a frequency value of a frequency signal input to the phase shift circuit 341, f3 is a frequency value of a frequency signal on which the phase shift circuit 341 can perform 90°-phase-shift, Qp is a phase shift slope of the phase shift circuit 341 and indicates a range of phase shift angles for frequency signals with different frequency values, and Qp=2πf3RC. R is a resistance of the first adjustable resistor 3414, and C is a capacitance of the second capacitor 3413. Therefore, the phase shift slope of the phase shift circuit 341 can be adjusted by adjusting a value of the resistance of the first adjustable resistor 3414. It can be learned from the foregoing formula that the phase shift circuit 341 can perform phase shift on a frequency signal only by a specific phase interval range. A larger phase shift slope indicates a smaller available range of the frequency value f. On the contrary, a smaller phase shift slope indicates a larger available range of the frequency value f. Therefore, a range of a linear operation interval within which the phase shift circuit 341 can perform phase shift may be adjusted by adjusting the phase shift slope of the phase shift circuit. In this way, a range of the linear operation interval, namely, a range of the first frequency interval, of the frequency-to-amplitude converter 34 is adjusted.
For example, as shown in
In some possible implementations, as shown in
For example, as shown in
For example, a data signal input to the frequency-to-amplitude converter 34 shown in
In this embodiment of this application, the phase shift circuit 341 has different frequency-amplitude responses for different frequency values of a frequency signal. This is manifested as that different frequency values correspond to different signal amplitudes of a phase-shifted frequency signal.
In some possible implementations, as shown in
For example, a first amplitude signal obtained by some frequency-to-amplitude converters 34 by converting a frequency value into an amplitude value may have a high-frequency component. The high-frequency component causes interference to operation of the amplitude converter 35. Therefore, the low-pass filter 38 is used to filter out the high-frequency component.
In some possible implementations, as shown in
For example, intermediate frequency signals may be classified into three types: a broadband intermediate frequency signal, a mid-band intermediate frequency signal, and a narrowband intermediate frequency signal. During actual application, the broadband intermediate frequency signal and the mid-band intermediate frequency signal usually can share a band-pass filter because a difference between frequency values is small. With the first band-pass filter 39 disposed, different operation modes may be selected. To be specific, the first band-pass filter 39 is used to filter out an intermediate frequency signal other than the mid-band intermediate frequency signal, or filter out an intermediate frequency signal other than the broadband intermediate frequency signal.
In some possible implementations, as shown in
In this embodiment of this application, the first amplifier 30 is configured to amplify an intermediate frequency signal output by the frequency mixer 32, to improve signal quality of the intermediate frequency signal.
In some possible implementations, as shown in
In this embodiment of this application, the received radio frequency signal may include a signal from another channel, and the second band-pass filter 311 is used to filter out the signal from the another channel. The second amplifier 312 amplifies the radio frequency signal to improve signal quality of the radio frequency signal, so that processing effect of performing, by the frequency mixer 32, down-conversion on the radio frequency signal based on the first local oscillator signal to obtain the intermediate frequency signal is better.
In some possible implementations, the receiving device 2 further includes a receive antenna, and the receive antenna is coupled to the receiving unit 31. The receive antenna is configured to receive a radio frequency signal and output the radio frequency signal to the receiving unit 31.
The receiving device 2 including the structures shown in
Step S110: The amplitude detector 36 obtains an amplitude value of a first amplitude signal output by the frequency-to-amplitude converter 34.
In some possible implementations, in this embodiment of this application, in a scenario in which a frequency shift keying technology is used, the frequency-to-amplitude converter 34 needs to be used when the receiving device 2 performs demodulation. However, a frequency signal and a first amplitude signal are not parameters in an exact linear correspondence. As shown in
Step S110 may include the following step S111 and step S112 shown in
Step S111: The controller 37 determines whether a frequency value of a frequency signal is within the first frequency interval.
For example, when the amplitude value of the first amplitude signal is not equal to an amplitude value of a second amplitude signal or a difference between the amplitude value of the first amplitude signal and the amplitude value of the second amplitude signal is greater than a first value, the controller 37 may determine that the frequency value of the frequency signal is not within the first frequency interval (namely, the linear operation interval). The first value is a preset value, and may be adjusted based on different application scenarios. During actual application, a higher requirement for precision indicates that the first value may be set to a smaller value.
Step S112: The controller 37 controls the frequency-to-amplitude converter 34 to extend the first frequency interval.
In some possible implementations, the frequency value of the frequency signal is not within the first frequency interval (namely, the linear operation interval). To be specific, the frequency value of the frequency signal is within the second frequency interval (namely, the nonlinear operation interval) or the third frequency interval (namely, the saturated interval). When the frequency value of the frequency signal is not within the first frequency interval, a conversion relationship between a frequency value and an amplitude value is not a linear relationship. To improve processing precision, in this case, the controller 37 may adjust a device parameter of the frequency-to-amplitude converter 34 to extend the first frequency interval (namely, the linear operation interval) of the frequency-to-amplitude converter 34, so that the frequency value of the frequency signal is within the first frequency interval. Then the frequency value of the frequency signal is converted to obtain the amplitude value of the first amplitude signal. In this case, the amplitude value and the frequency value are in a linear relationship.
For example, when an absolute value of the difference between the amplitude value of the first amplitude signal and the amplitude value of the second amplitude signal is greater than the first value, the controller 37 may determine that the frequency value of the frequency signal is not within the first frequency interval. In this case, the frequency-to-amplitude converter may be controlled to extend an interval range of the first frequency interval.
In some possible implementations, when the frequency-to-amplitude converter 34 shown in
For example, when the phase shift circuit 341 shown in
where f3 is a frequency value, and indicates that a phase shift angle of the phase shift circuit 341 for a frequency signal with an input frequency value of f3 is 90°. A calculation formula for a phase shift angle Δφ(f) for a frequency signal with another input frequency value is as follows:
In the formula, f is a frequency value of a frequency signal input to the phase shift circuit 341, f3 is a frequency value of a frequency signal on which the phase shift circuit 341 can perform 90°-phase-shift, Qp is a phase shift slope of the phase shift circuit 341 and indicates a range of phase shift angles for frequency signals with different frequency values, and Qp=2πf3RC. R is a resistance of the first adjustable resistor 3414, and C is a capacitance of the second capacitor 3413. Therefore, the phase shift slope of the phase shift circuit 341 can be adjusted by adjusting a value of the resistance of the first adjustable resistor 3414. It can be learned from the foregoing formula that the phase shift circuit 341 can perform phase shift on a frequency signal only by a specific phase interval range. A larger phase shift slope indicates a smaller available range of the frequency value f. On the contrary, a smaller phase shift slope indicates a larger available range of the frequency value f. Therefore, a range of a linear operation interval within which the phase shift circuit 341 can perform phase shift may be adjusted by adjusting the phase shift slope of the phase shift circuit. In this way, a range of the linear operation interval, namely, a range of the first frequency interval, of the frequency-to-amplitude converter 34 is adjusted.
Step S120: The controller 37 obtains the value of the frequency tolerance based on the amplitude value of the first amplitude signal and the amplitude value of the second amplitude signal.
For example, if the first frequency interval of the frequency-to-amplitude converter 34 is not extended, when a frequency value of a frequency signal carried in the first local oscillator signal is within the first frequency interval, the frequency value of the frequency signal is in a linear relationship with the amplitude value of the first amplitude signal, and a difference between a frequency value of the first local oscillator signal and a frequency value of the second local oscillator signal may be calculated based on the difference between the amplitude value of the first amplitude signal and the amplitude value of the second amplitude signal. The first local oscillator signal and the second local oscillator signal may be local oscillator signals with a same frequency value or different frequency values. When the frequency value of the frequency signal carried in the first local oscillator signal is within the second frequency interval (namely, the nonlinear operation interval), the value of the frequency tolerance may be estimated based on the difference between the amplitude value of the first amplitude signal and the amplitude value of the second amplitude signal, and a frequency of the first local oscillator signal output by the frequency generator 33 may also be adjusted based on the estimated value of the frequency tolerance.
For example, if the frequency signal carried in the first local oscillator signal is within the second frequency interval (namely, the nonlinear operation interval) or the third frequency interval (namely, the saturated interval), the first frequency interval is extended, so that the frequency signal carried in the first local oscillator signal is within the first frequency interval. Then the value of the frequency tolerance is obtained based on the difference between the amplitude value of the first amplitude signal and the amplitude value of the second amplitude signal.
In some possible implementations, as shown in
For example, the controller 37 may increase the bandwidth of the first band-pass filter 39 when extending the first frequency interval (namely, the linear operation interval) of the frequency-to-amplitude converter 34.
For example, the controller 37 may determine, based on the value of the frequency tolerance, whether the frequency signal is to be filtered out by the first band-pass filter 39, and if it is determined that the frequency signal is to be filtered out by the first band-pass filter 39, increase the bandwidth of the first band-pass filter 39.
In this embodiment of this application, when the frequency tolerance is large, there may be a possibility that the frequency signal is to be filtered out by the first band-pass filter 39. In this case, after calculating the value of the frequency tolerance, the controller 37 increases the bandwidth of the first band-pass filter 39, so that the frequency signal is not to be filtered out by the first band-pass filter 39.
In some possible implementations, the second local oscillator signal is a preset ideal local oscillator signal without a frequency tolerance. An amplitude value of a second amplitude signal that may be obtained by the frequency-to-amplitude converter 34 by converting the second local oscillator signal is obtained through theoretical calculation.
In some possible implementations, the second local oscillator signal is a local oscillator signal that has an accurate frequency value and that is obtained through calibration by using a precision device, and the local oscillator signal is input to the frequency-to-amplitude converter 34 to obtain an amplitude value of a corresponding second amplitude signal.
In some possible implementations, when transmitted data information is binary information, the frequency value f0 corresponds to a value 0, and the frequency value f1 corresponds to a value 1. In this case, the amplitude detector 36 may detect a maximum amplitude value and a minimum amplitude value of the first amplitude signal. The maximum amplitude value is a wave peak of the first amplitude signal, and corresponds to the frequency value f1. The minimum amplitude value is a wave trough of the first amplitude signal, and corresponds to the frequency value f0. The controller 37 calculates a first average value of the maximum amplitude value and the minimum amplitude value of the first amplitude signal. Then a difference between the first average value and a second average value is obtained through comparison, to obtain the value of the frequency tolerance. The second average value is an average value of a maximum amplitude value and a minimum amplitude value of the second amplitude signal.
Step S130: The controller 37 controls, based on the value of the frequency tolerance, the frequency generator 33 to adjust a frequency of the output first local oscillator signal.
In some possible implementations, the controller 37 controls, based on the value of the frequency tolerance, the frequency generator 33 to adjust the frequency of the output first local oscillator signal, so that all frequency values of the frequency signal are within the first frequency interval.
In this embodiment of this application, a frequency tolerance is present on the first local oscillator signal, and the frequency generator 33 is controlled to apply a specific frequency compensation amount to the frequency of the first local oscillator signal to compensate for the frequency tolerance. Directions of the frequency compensation amount and the frequency tolerance are opposite, and frequency values may be equal, but the frequency values are not necessarily equal. During actual application, the frequency tolerance does not necessarily need to be completely compensated for. Provided that the frequency compensation amount can make the frequency value of the frequency signal in the first local oscillator signal fall within the first frequency interval, normal operation of this embodiment of this application can be performed.
In some possible implementations, as shown in
For example, in this embodiment of this application, the directions of the frequency compensation amount and the frequency tolerance are opposite, and the frequency values of the frequency compensation amount and the frequency tolerance are equal.
In this embodiment of this application, it can be learned from the foregoing descriptions that the resonance frequency of the resonant circuit in the phase shift circuit 341 is as follows: ω0=2πf3, where f3 is a frequency value, and indicates that a phase shift angle of the phase shift circuit 341 for an input frequency signal with a frequency value of f3 is 90°. During actual application, the frequency value of the frequency signal carried in the first local oscillator signal usually changes by using the first local oscillator signal as a center frequency, for example, during modulation and demodulation of binary data information. If the center frequency value of the intermediate frequency signal is 1 MHz, a value of the frequency value f0 may be as follows: 1 MHz−0.01 MHz=0.99 MHz; and a value of the frequency value f1 may be as follows: 1 MHz+0.01 MHz=1.01 MHz. In a quaternary or hexadecimal system, more frequency values may alternatively be added to correspond to values in different systems. In this case, as shown in
The receiving device 2 including the structures shown in
Step S210: The controller 37 controls the frequency-to-amplitude converter 34 to narrow an interval range of a first frequency interval.
In some possible manners, when a frequency value of a frequency signal is within the first frequency interval and a first ratio is greater than a second value, the frequency-to-amplitude converter is controlled to narrow the interval range of the first frequency interval. The first ratio is a ratio of a third value to a fourth value. The third value is a minimum difference between the frequency value of the frequency signal and an interval point frequency of the first frequency interval. The fourth value is a maximum difference between the frequency value of the frequency signal and an interval center frequency of the first frequency interval.
For example, as shown in
In this embodiment of this application, as shown in
In some possible implementations, when a first frequency difference is less than a fifth value, the frequency-to-amplitude converter is controlled to narrow the interval range of the first frequency interval. The first frequency difference is an absolute value of a difference between a maximum frequency value and a minimum frequency value of a frequency signal carried in a first local oscillator signal.
In this embodiment of this application, the first frequency difference is the difference between the maximum frequency value and the minimum frequency value of the frequency signal. For example, as shown in
For an implementation of controlling, by the controller 37, the frequency-to-amplitude converter 34 to narrow the interval range of the first frequency interval, refer to the foregoing implementation of controlling, by the controller 37, the frequency-to-amplitude converter 34 to extend the interval range of the first frequency interval. Therefore, details are not described herein again.
For example, when the frequency-to-amplitude converter 34 shown in
In this embodiment of this application, the first frequency interval is extended to obtain a precise value of a frequency tolerance, and after compensation is performed on the first local oscillator signal based on the value of the frequency tolerance, the first frequency interval may be narrowed, to achieve better demodulation performance. Similarly, when the first frequency interval is not extended, if it is detected that the interval range of the first frequency interval is relatively large or the absolute value of the difference between the maximum frequency value and the minimum frequency value of the frequency signal is small, the controller 37 may alternatively control the frequency-to-amplitude converter 34 to narrow the range of the first frequency interval, to improve demodulation performance.
For example, before the frequency tolerance of the first local oscillator signal is compensated for, the controller 37 increases bandwidth of the first band-pass filter 39 shown in
In this embodiment of this application, in the receiving device with the structures shown in
As shown in
An embodiment of this application further provides a computer-readable storage medium. The computer-readable storage medium includes instructions. When the instructions are run on the foregoing chip system or receiving device, the chip system or the receiving device is enabled to perform the functions or the steps in the foregoing method embodiments, for example, perform the methods shown in
An embodiment of this application further provides a computer program product including instructions. When the instructions are run on the foregoing chip system or electronic device, the chip system or the electronic device is enabled to perform the functions or the steps in the foregoing method embodiments, for example, perform the methods shown in
For technical effect of the chip system, the computer-readable storage medium, and the computer program product, refer to the technical effect of the foregoing method embodiments.
The controller in embodiments of this application may be a chip. For example, the controller may be a field programmable gate array (field programmable gate array, FPGA), an application-specific integrated chip (application-specific integrated circuit, ASIC), a system on chip (system on chip, SoC), a central controller (central processing unit, CPU), a network controller (network processor, NP), a digital signal processing circuit (digital signal processor, DSP), a micro controller unit (micro controller unit, MCU), a programmable controller (programmable logic device, PLD), or another integrated chip.
It should be understood that sequence numbers of the foregoing processes do not mean execution sequences in embodiments of this application. The execution sequences of the processes should be determined based on functions and internal logic of the processes, and should not constitute any limitation on implementation processes of embodiments of this application.
A person of ordinary skill in the art may be aware that modules and algorithm steps in examples described with reference to embodiments disclosed in this specification can be implemented by electronic hardware or a combination of computer software and electronic hardware. Whether the functions are performed by hardware or software depends on particular applications and design constraints of technical solutions. A person skilled in the art may use different methods to implement the described functions for each particular application, but it should not be considered that the implementation goes beyond the scope of this application.
It can be clearly understood by a person skilled in the art that, for ease and brevity of description, for detailed working processes of the foregoing system, apparatus, and module, reference may be made to corresponding processes in the foregoing method embodiments. Details are not described herein again.
In several embodiments provided in this application, it should be understood that the disclosed system, device, and method may be implemented in other manners. For example, the described device embodiments are merely examples. For example, division into the modules is merely logical function division, and may be other division in an actual implementation. For example, a plurality of modules or components may be combined or may be integrated into another device, or some features may be ignored or not performed. In addition, the shown or discussed mutual couplings or direct couplings or communication connections may be implemented through some interfaces. The indirect couplings or communication connections between the devices or modules may be implemented in electronic, mechanical, or other forms.
The modules described as separate components may or may not be physically separate, and components shown as modules may or may not be physical modules, to be specific, may be located in one device, or may be distributed in a plurality of devices. Some or all of the modules may be selected according to actual requirements to achieve objectives of solutions of embodiments.
In addition, functional modules in embodiments of this application may be integrated into one device, or each of the modules may exist alone physically, or two or more modules may be integrated into one device.
All or some of the foregoing embodiments may be implemented by software, hardware, firmware, or any combination thereof. When a software program is used to implement the embodiments, some or all of the embodiments may be implemented in a form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or some of processes or functions according to embodiments of this application are generated. The computer may be a general-purpose computer, a dedicated computer, a computer network, or another programmable apparatus. The computer instructions may be stored in a computer-readable storage medium or may be transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website, computer, server, or data center to another website, computer, server, or data center in a wired (for example, a coaxial cable, an optical fiber, or a digital subscriber line (Digital Subscriber Line, DSL)) or wireless (for example, infrared, radio, or microwave) manner. The computer-readable storage medium may be any usable medium accessible to a computer, or a data storage device, for example, a server or a data center, integrating one or more usable media. The usable medium may be a magnetic medium (for example, a floppy disk, a hard disk drive, or a magnetic tape), an optical medium (for example, a DVD), a semiconductor medium (for example, a solid-state drive (Solid-State Drive, SSD)), or the like.
The foregoing descriptions are merely specific implementations of this application, but are not intended to limit the protection scope of this application. Any variation or replacement readily figured out by a person skilled in the art within the technical scope disclosed in this application shall fall within the protection scope of this application. Therefore, the protection scope of this application shall be subject to the protection scope of the claims.
| Number | Date | Country | Kind |
|---|---|---|---|
| 202211010623.8 | Aug 2022 | CN | national |
| 202211214385.2 | Sep 2022 | CN | national |
This application is a continuation of International Application No. PCT/CN2023/112038, filed on Aug. 9, 2023, which claims priority to Chinese Patent Application No. 202211010623.8, filed on Aug. 23, 2022 and Chinese Patent Application No. 202211214385.2, filed on Sep. 30, 2022. All of the aforementioned patent applications are hereby incorporated by reference in their entireties.
| Number | Date | Country | |
|---|---|---|---|
| Parent | PCT/CN2023/112038 | Aug 2023 | WO |
| Child | 19057225 | US |