Disclosure of Invention
Based on this, it is necessary to provide a frequency offset compensation method, apparatus, device and storage medium for the problem that the related information obtained when demodulating the radio frequency signal is inaccurate.
In a first aspect, a method of frequency offset compensation, the method comprising:
acquiring frequency domain channel response sets corresponding to at least two demodulation reference signals; at least two demodulation reference signals are transmitted within a preset time period;
determining a reference phase difference value of at least two demodulation reference signals according to frequency domain channel response sets corresponding to the at least two demodulation reference signals;
determining a phase difference value to be compensated of each data signal according to the symbol position of each demodulation reference signal, the symbol position of each data signal and a reference phase difference value;
and performing frequency offset compensation on each data signal according to the phase difference value to be compensated.
In one embodiment, the determining a reference phase difference value of the at least two demodulation reference signals according to the frequency domain channel response sets corresponding to the at least two demodulation reference signals includes:
determining the frequency domain phase difference value of each demodulation reference signal according to the frequency domain channel response of each frequency domain channel response set on each frequency domain channel;
and determining a reference phase difference value according to the phase difference values of the frequency domains.
In one embodiment, the determining the frequency-domain phase difference value of each demodulation reference signal according to each frequency-domain channel response includes:
and performing conjugate multiplication on the responses of each two adjacent frequency domain channels to obtain the frequency domain phase difference value of each demodulation reference signal.
In one embodiment, the determining the reference phase difference value according to the phase difference values of the frequency domains includes:
and taking the average value of the phase difference values of the frequency domains as a reference phase difference value.
In one embodiment, the determining the reference phase difference value according to the phase difference values of the frequency domains includes:
acquiring the amplitude of the radio frequency signal on each frequency domain channel;
and taking the frequency domain channel with the radio frequency signal amplitude larger than the threshold value as a target frequency domain channel, and determining a reference phase difference value according to the frequency domain phase difference value of the target frequency domain channel.
In one embodiment, the determining the phase difference value to be compensated for each data signal according to the symbol position of each demodulation reference signal, the symbol position of each data signal, and the reference phase difference value includes:
determining adjacent demodulation reference signals corresponding to the data signals according to the symbol position indexes of the demodulation reference signals and the symbol position indexes of the data signals; the difference between the symbol position index of each data signal and the symbol position index of the corresponding adjacent demodulation reference signal is minimum;
determining a phase compensation coefficient of each data signal according to the symbol position of each data signal and the symbol position of the corresponding adjacent demodulation reference signal;
and determining the phase difference value to be compensated of each data signal according to the phase compensation coefficient and the reference phase difference value.
In one embodiment, when the number of the demodulation reference signals in the at least two demodulation reference signals is greater than 2, the determining a reference phase difference value of the at least two demodulation reference signals according to the frequency domain channel response sets corresponding to the at least two demodulation reference signals includes:
determining an adjacent phase difference value corresponding to each adjacent demodulation reference signal according to a frequency domain channel response set corresponding to each adjacent two demodulation reference signals in the at least two demodulation reference signals;
and determining a reference phase difference value according to each adjacent phase difference value and the symbol position of each demodulation reference signal.
In a second aspect, an apparatus for frequency offset compensation, the apparatus comprising:
an obtaining module, configured to obtain frequency domain channel response sets corresponding to at least two demodulation reference signals; at least two demodulation reference signals are transmitted within a preset time period;
a first determining module, configured to determine a reference phase difference value of at least two demodulation reference signals according to a frequency domain channel response set corresponding to the at least two demodulation reference signals;
the second determining module is used for determining the phase difference value to be compensated of each data signal according to the symbol position of each demodulation reference signal, the symbol position of each data signal and the reference phase difference value;
and the compensation module is used for carrying out frequency offset compensation on each data signal according to the phase difference value to be compensated.
In a third aspect, a computer device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method steps of the above frequency offset compensation method when executing the computer program.
In a fourth aspect, a computer-readable storage medium has stored thereon a computer program which, when being executed by a processor, carries out the method steps of the above-mentioned frequency offset compensation method.
The frequency offset compensation method, the device, the equipment and the storage medium obtain the frequency domain channel response sets corresponding to at least two demodulation reference signals, wherein the at least two demodulation reference signals are sent by the same antenna interface in a preset time period, the reference phase difference values of the at least two demodulation reference signals are determined according to the frequency domain channel response sets corresponding to the at least two demodulation reference signals, the phase difference value to be compensated of each data signal is determined according to the symbol position of each demodulation reference signal, the symbol position of the data signal and the reference phase difference value, and finally, the frequency offset compensation is carried out on each data signal according to the phase difference value to be compensated, so that the carrier frequency corresponding to each data signal is obtained by compensation according to the at least two demodulation reference signals, and the difference value between the carrier frequency of a receiving end and the carrier frequency of a sending end is reduced, and the accuracy of the information obtained when the radio frequency signal is demodulated according to the carrier frequency is improved.
Detailed Description
The frequency offset compensation method, device, equipment and storage medium provided by the application aim at solving the problem that information obtained by demodulating a radio frequency signal by a traditional method is inaccurate. The following describes in detail the technical solutions of the present application and how the technical solutions of the present application solve the above technical problems by embodiments and with reference to the drawings. The following several specific embodiments may be combined with each other, and details of the same or similar concepts or processes may not be repeated in some embodiments.
The frequency offset compensation method provided by the present application may be applied to an application scenario as shown in fig. 1, where the base station 102 and the terminal 104 are connected to each other through a network, specifically, the connection may be a wired network connection or a wireless network connection. The base station is used for sending downlink information to the terminal, and the terminal is used for sending uplink information to the base station. The communication protocol between the base station and the terminal can be used in a 2G/3G/4G/5G network. The base station 102 and the terminal 104 can implement message transmission and interaction based on the network protocol architecture. The terminal 104 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and this embodiment is not limited thereto.
It should be noted that, in the frequency offset compensation method provided in the embodiment of the present application, an execution main body may be a frequency offset compensation apparatus, and the apparatus may be implemented as part or all of a frequency offset compensation device in a software, hardware, or a combination of software and hardware. It should be noted that the frequency offset compensation apparatus may be part or all of the base station in fig. 1, or may be part or all of the terminal in fig. 1, which is not limited in this embodiment of the present application.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments.
Fig. 2 is a flow chart illustrating a frequency offset compensation method according to an embodiment. The embodiment relates to a specific process of frequency offset compensation of each data signal according to at least two demodulation reference signals. As shown in fig. 2, the method comprises the steps of:
s101, acquiring frequency domain channel response sets corresponding to at least two demodulation reference signals; at least two demodulation reference signals are transmitted within a preset time period.
Generally, when data interaction is performed between a base station and a terminal, data transmission is performed in a resource block manner. For example, a resource block may be as shown in fig. 2a, wherein the horizontal direction represents the distribution of resources in the time domain, and the vertical direction represents the distribution of resources in the frequency domain. In general, when data transmission is performed, a data signal separated by several symbol resources transmits a demodulation reference signal of one symbol resource. As shown in fig. 2, for each transmitted data signal of two symbol resources, a demodulation reference signal of one symbol resource is transmitted. Specifically, the data signal, which is sent at intervals of several symbol resources, is determined according to a communication protocol, and this is not limited in this embodiment of the present application. In the process of data interaction between the base station and the terminal, as can be known from the above description, a signal sent by the sending end to the receiving end may include a demodulation reference signal, and usually in a preset time period, for example, within one timeslot, the signal sent by the sending end to the receiving end may include a plurality of demodulation reference signals, when the signal received by the receiving end includes the at least two demodulation reference signals, channel estimation may be performed on the at least two demodulation reference signals to obtain a frequency domain channel response set corresponding to each demodulation reference signal, where the frequency domain channel response set includes frequency domain channel responses of the demodulation reference signals on each frequency domain resource block. The channel estimation may be a process of estimating a signal obtained by the received data through a preset channel model according to a preset model parameter of the channel model.
In the process of acquiring the channel responses corresponding to the at least two demodulation reference signals, the at least two demodulation reference signals are transmitted within a preset time period. For example, at least two demodulation reference signals may be sent by a terminal within a preset time period, generally, a terminal in communication with a base station is a mobile phone device, only one antenna is usually arranged on the mobile phone device, and in some special mobile phone devices, multiple antennas may exist, and at least two demodulation reference signals sent by the terminal may be sent from the same antenna on the mobile phone device or sent from different antennas on the mobile phone device; the at least two demodulation reference signals may also be transmitted by the same antenna interface on the base station within a preset time period, which is not limited in this embodiment of the present application.
S102, determining a reference phase difference value of at least two demodulation reference signals according to frequency domain channel response sets corresponding to the at least two demodulation reference signals.
When the frequency domain channel response sets corresponding to the at least two demodulation reference signals are obtained, the reference phase difference value of the at least two demodulation reference signals, that is, the phase difference value between the demodulation reference signals, may be determined according to the frequency domain channel response sets of the at least two demodulation reference signals. When the at least two demodulation reference signals are two, the reference phase difference value may be a phase difference value between the two demodulation reference signals; when the at least two modulation reference signals are multiple, the reference phase difference value may be a phase difference value between two pairs; or the phase difference value between the first demodulation reference signal and the last demodulation reference signal; the phase difference value between every two phase differences may also be weighted and averaged to obtain the phase difference value, which is not limited in the embodiment of the present application.
S103, determining the phase difference value to be compensated of each data signal according to the symbol position of each demodulation reference signal, the symbol position of each data signal and the reference phase difference value.
As can be seen from the above description, the communication protocol may determine the data signals spaced by several symbol resources, and transmit the demodulation reference signals, that is, the terminal may determine the symbol position of each demodulation reference signal and the symbol position of the data signal by determining which communication protocol is used for transmitting data this time. For example, the terminal may obtain the symbol position index of each demodulation reference signal and the symbol position index of the data signal according to the communication protocol used for transmitting data this time, and further determine the symbol position of each demodulation reference signal and the symbol position of the data signal according to the symbol position index of each demodulation reference signal and the symbol position index of the data signal. When the symbol position of each demodulation reference signal and the symbol position of the data signal are obtained, the phase difference value to be compensated of each data signal can be determined according to the symbol position of each demodulation reference signal, the symbol position of the data signal and the reference phase difference value, wherein the phase difference value to be compensated can be used for compensating the phase of the frequency domain channel response of each data signal. For example, the symbol position of the demodulation reference signal and the symbol position of the data signal determined according to the communication protocol are shown in fig. 2a, the symbol position of the first demodulation reference signal is the 3 rd symbol resource, the second demodulation reference signal is the 6 th symbol resource, and the difference between the symbol position of each data signal and the symbol position of each demodulation reference signal is determined according to the symbol position of each data signal, and further the phase difference value to be compensated for each data signal is determined according to the difference between the symbol position of each data signal and the symbol position of the demodulation reference signal and the reference phase difference value.
And S104, performing frequency offset compensation on each data signal according to the phase difference value to be compensated.
When the phase difference to be compensated corresponding to each data signal is obtained, the frequency to be compensated corresponding to the phase difference to be compensated can be determined according to the corresponding relationship between the phase and the frequency, so as to determine the frequency to be compensated of each data signal, and further perform frequency offset compensation on each data signal according to the frequency to be compensated of each data signal.
The frequency offset compensation method comprises the steps that a terminal obtains frequency domain channel response sets corresponding to at least two demodulation reference signals, wherein at least two demodulation reference signals are transmitted by the same antenna interface within a preset time period, and determining a reference phase difference value of the at least two demodulation reference signals according to the frequency domain channel response sets corresponding to the at least two demodulation reference signals, further determining the phase difference value to be compensated of each data signal according to the symbol position of each demodulation reference signal, the symbol position of the data signal and the reference phase difference value, and finally determining the phase difference value to be compensated of each data signal according to the phase difference value to be compensated, performing frequency offset compensation on each data signal, so that the carrier frequency corresponding to each data signal is obtained by compensation according to at least two demodulation reference signals, reducing the difference between the carrier frequency of the receiving end and the carrier frequency of the transmitting end, and the accuracy of the information obtained when the radio frequency signal is demodulated according to the carrier frequency is improved.
Fig. 3 is a schematic flow chart of a frequency offset compensation method in another embodiment, which relates to a specific process of how to determine a reference phase difference value of at least two demodulation reference signals according to channel responses corresponding to the at least two demodulation reference signals, and as shown in fig. 3, one possible implementation method of the above S102 "determining a reference phase difference value of at least two demodulation reference signals according to channel responses corresponding to the at least two demodulation reference signals" includes the following steps:
s201, determining the frequency domain phase difference value of each demodulation reference signal according to the frequency domain channel response of each frequency domain channel response set on each frequency domain channel.
Continuing with fig. 2a, the horizontal direction represents the distribution of resources in the time domain and the vertical direction represents the distribution of resources in the frequency domain. In one symbol resource, resources on a plurality of frequency domain channels may be included, and in general, when acquiring a set of frequency domain channel responses of the demodulation reference signal, frequency domain channel responses of the demodulation reference signal on the respective frequency domain channels may be acquired respectively. For example, by
Representing a frequency domain channel response of the first demodulation reference signal on a 1 st frequency domain channel; by using
Indicating … … the frequency domain channel response of the first demodulation reference signal on the 2 nd frequency domain channel
Indicating the frequency domain channel response of the first demodulation reference signal on the nth frequency domain channel. The frequency domain channel response set of the first demodulation reference signal on each frequency domain channel can be obtained by
L,
And (4) showing. By using
Representing the frequency domain channel response of the second demodulation reference signal on the 1 st frequency domain channel; by using
Indicating … … the frequency domain channel response of the second demodulation reference signal on the 2 nd frequency domain channel
Indicating the frequency domain channel response of the second demodulation reference signal on the nth frequency domain channel. The frequency domain channel response of the second demodulation reference signal on each frequency domain channel can be set
L,
And (4) showing.
The frequency domain phase difference value may refer to a phase difference value of each demodulation reference signal on each frequency domain channel. For example, when the at least two demodulation reference signals are 2 demodulation reference signals, each demodulation reference signal includes 12 frequency-domain channels, 12 frequency-domain phase difference values exist between the first demodulation reference signal and the second demodulation reference signal. On the basis of the foregoing embodiments, when the frequency domain channel responses of the demodulation reference signals on the frequency domain channels are determined, the frequency domain phase difference values of the demodulation reference signals may be determined according to the frequency domain channel responses corresponding to the demodulation reference signals.
Optionally, conjugate multiplication is performed on each two adjacent frequency domain channel responses to obtain a frequency domain phase difference value of each demodulation reference signal.
Specifically, when the frequency domain phase difference value of each demodulation reference signal is determined according to each frequency domain channel response, two adjacent frequency domain channel responses may be subjected to conjugate multiplication to obtain the frequency domain phase difference value of each demodulation reference signal. Wherein, the two adjacent frequency domain channel responses may be two demodulation reference signals adjacent in the time domain. For example, as shown in fig. 2a, the at least two demodulation reference signals are 4 demodulation reference signals, and the first demodulation reference signal and the second demodulation reference signal are adjacent demodulation reference signals; the second demodulation reference signal and the third demodulation reference signal are adjacent demodulation reference signals; the third demodulation reference signal and the fourth demodulation reference signal are adjacent demodulation signals. That is, the frequency domain channel response corresponding to the first demodulation reference signal and the frequency domain channel response corresponding to the second demodulation reference signal are adjacent frequency domain channel responses; the frequency domain channel response corresponding to the second demodulation reference signal and the frequency domain channel response corresponding to the third demodulation reference signal are adjacent frequency domain channel responses; and the frequency domain channel response corresponding to the third demodulation reference signal and the frequency domain channel response corresponding to the fourth demodulation reference signal are adjacent frequency domain channel responses. And performing conjugate multiplication on the responses of the two adjacent frequency domain channels to obtain the frequency domain phase difference value of each demodulation reference signal. For example, when the at least two demodulation reference signals are 2 demodulation reference signals, the channel response of the first demodulation reference signal can be obtained
And (4) showing. The channel response of the second demodulation reference signal can be obtained
And (4) showing. Then, the two adjacent frequency domain channel responses are subjected to conjugate multiplication to obtain the frequency domain phase difference value of each demodulation reference signal, that is, the frequency domain phase difference value of each demodulation reference signal is
S202, determining a reference phase difference value according to the phase difference values of the frequency domains.
Based on the above embodiment, when obtaining the phase difference values of each frequency domain, the reference phase difference value may be determined according to the phase difference values of each frequency domain. Optionally, an average value of the phase difference values in the frequency domains is used as the reference phase difference value. Of course, the noise signal with small amplitude of the radio frequency signal on the frequency domain channel may be deleted, and the other remaining frequency domain channels may be used as the target frequency domain channel to determine the reference phase difference value. Optionally, the reference phase difference value is determined by the embodiment shown in fig. 4, and as shown in fig. 4, one possible implementation method of the above S203 "determining the reference phase difference value according to the phase difference values in the frequency domains" includes the following steps:
s301, obtaining the radio frequency signal amplitude on each frequency domain channel.
S302, the frequency domain channel with the radio frequency signal amplitude larger than the threshold value is used as a target frequency domain channel, and a reference phase difference value is determined according to the frequency domain phase difference value of the target frequency domain channel.
In order to improve the accuracy of calculating the phase difference value, the amplitude of the radio frequency signal on each frequency domain channel can be obtained first, then whether the amplitude of the radio frequency signal is greater than the threshold Th is judged according to the preset threshold Th of the I/Q data, and when the I/Q values of the frequency domain channel response are all less than the threshold Th, the channel response of the frequency domain resource block is not added into the statistical average value of the calculated phase difference value. When the I/Q values of the frequency domain channel responses are all greater than the threshold Th, the frequency domain channel is taken as the target frequency domain channel, and the average value of the target frequency domain channel responses is taken as the reference phase difference value, for example, when the number of target frequency domain channels determined according to the threshold is M, the reference phase difference value may beTo pass through the formula
M is less than or equal to N, wherein L represents the index difference value of two reference symbols.
According to the frequency offset compensation method, the terminal determines the frequency domain phase difference value of each demodulation reference signal according to the frequency domain channel response of each frequency domain channel response set on each frequency domain channel, and further determines the reference phase difference value according to each frequency domain phase difference value, so that the reference phase difference value can also be obtained according to the frequency domain channel responses on different frequency domain channels, the accuracy of the obtained reference phase difference value is improved, the accuracy of the phase difference value to be compensated of each data signal determined according to the reference phase difference value is improved, and the accuracy of frequency offset compensation of each data signal according to the phase difference value to be compensated of each data signal is improved.
The above embodiments mainly describe a specific process of how the terminal determines the reference phase difference value according to at least two demodulation reference signals, and on the basis of the above embodiments, the terminal may determine the phase difference value to be compensated for each data signal according to the symbol position of each demodulation reference signal, the symbol position of the data signal, and the reference phase difference value, which is described in detail below with reference to fig. 5.
Fig. 5 is a schematic flow chart of a frequency offset compensation method in another embodiment, which relates to a specific process of determining a phase difference value to be compensated for each data signal according to a symbol position of each demodulation reference signal, a symbol position of a data signal, and a reference phase difference value, as shown in fig. 5, one possible implementation method of the above-mentioned S103 "determining a phase difference value to be compensated for each data signal according to a symbol position of each demodulation reference signal, a symbol position of a data signal, and a reference phase difference value" includes the following steps:
s401, determining adjacent demodulation reference signals corresponding to each data signal according to the symbol position index of each demodulation reference signal and the symbol position index of the data signal; the difference between the symbol position index of each data signal and the symbol position index of the corresponding adjacent demodulation reference signal is the smallest.
As can be seen from the foregoing embodiments, when the symbol position index of each demodulation reference signal and the symbol position index of the data signal are obtained, the demodulation reference signal with the smallest difference between the symbol position index and the symbol position index of the data signal may be determined as the neighboring demodulation reference signal of the data signal according to the symbol position index of each demodulation reference signal and the symbol position index of the data signal. For example, when at least two demodulation reference signals are 3, their corresponding symbol position indexes are 3,5, and 8, respectively; correspondingly, there are 5 data signals with symbol position indexes of 1,2,4,6 and 7, wherein the difference between the data signal with symbol position index of 1 and the demodulation reference signal with symbol position index of 3 is the smallest, and then the demodulation reference signal with symbol position index of 3 is taken as the adjacent demodulation reference signal of the data signal with symbol position index of 1. It should be noted that, when the difference between the symbol position index of one data signal and the symbol position indexes of two demodulation reference signals is equal to each other and is smaller than the symbol position indexes of other demodulation reference signals, the demodulation reference signal with the smallest difference between one symbol position index is randomly determined as the adjacent demodulation reference signal of the data signal.
S402, determining a phase compensation coefficient of each data signal according to the symbol position of each data signal and the symbol position of the corresponding adjacent demodulation reference signal.
And S403, determining the phase difference value to be compensated of each data signal according to the phase compensation coefficient and the reference phase difference value.
When the symbol position of each data signal and the symbol position of each demodulation reference signal are obtained, the phase compensation coefficient of each data signal can be determined according to the symbol position of each data signal and the symbol position of the adjacent demodulation reference signal corresponding to the symbol position of each data signal. For example, a difference between the symbol position index of each data signal and the symbol position index of the corresponding demodulation reference signal may be used as the phase compensation coefficient for each data signal. Continuing as shown in fig. 2 a. The symbol position indexes of the 4 demodulation reference signals are 2, 5,8 and 11, and according to that the difference between the symbol position indexes of each data signal and the adjacent demodulation reference signals is { -2, -1,1, -1,1, -1,1, -1,1, 2}, respectively, K { -2, -1,1, -1,1, 2} can be used as the phase compensation coefficient of each data signal. And further determining the phase difference value to be compensated of each data signal according to the phase compensation coefficient and the reference phase difference value. For example, the phase difference to be compensated of each data signal may be determined according to the formula K × fi, where K is the phase compensation coefficient of each data signal, and fi is the reference phase difference. The phase difference value to be compensated of each data signal can be determined according to the formula exp (-1i K fi), where K is the phase compensation coefficient of each data signal and fi is the reference phase difference value. In another case, for example, the equalized data signals are phase compensated, and the phase difference to be compensated for each data signal can be determined by exp (1i × K × fi). The received signal Y ═ HX, where H denotes frequency domain channel response, X denotes transmitted data signal, and the channel equalization is to change Y/H ═ X, that is, the equalized data signal is obtained.
The terminal determines the adjacent demodulation reference signals corresponding to each data signal according to the symbol position of each demodulation reference signal and the symbol position index of the data signal, wherein the difference between the symbol position index of each data signal and the symbol position index of the corresponding adjacent demodulation reference signal is minimum, and determines the phase compensation coefficient of the frequency domain channel response of each data signal according to the symbol position of each data signal and the symbol position of the corresponding adjacent demodulation reference signal, and further determines the phase difference to be compensated of the frequency channel response of each data signal according to the phase compensation coefficient and the reference phase difference, so that the determined phase difference to be compensated of each data signal is determined according to the phase compensation coefficient determined by the data signal and the corresponding adjacent demodulation reference signal, thereby further improving the accuracy of the phase difference to be compensated of each data signal, and then the accuracy of frequency offset compensation of each data signal according to the phase difference value to be compensated is improved.
In one embodiment, when the number of demodulation reference signals in the at least two demodulation reference signals is greater than 2, the reference phase difference value may be determined by the embodiment shown in fig. 6.
Fig. 6 is a schematic flow chart of a frequency offset compensation method in another embodiment, where this embodiment relates to a specific process how to determine a reference phase difference value of at least two demodulation reference signals according to channel responses corresponding to the at least two demodulation reference signals when the number of demodulation reference signals in the at least two demodulation reference signals is greater than 2, as shown in fig. 6, one possible implementation method of the above S102 "determining a reference phase difference value of at least two demodulation reference signals according to a set of frequency domain channel responses corresponding to the at least two demodulation reference signals" includes the following steps:
s501, determining an adjacent phase difference value corresponding to each adjacent demodulation reference signal according to a frequency domain channel response set corresponding to each adjacent two demodulation reference signals in the at least two demodulation reference signals.
And S502, determining a reference phase difference value according to each adjacent phase difference value and the symbol position of each demodulation reference signal.
When there are a plurality of at least two demodulation reference signals, the adjacent phase difference value corresponding to each adjacent demodulation reference signal in the at least two demodulation reference signals may be determined according to the frequency domain channel response set corresponding to each adjacent two demodulation reference signals. For example, when the at least two demodulation reference signals are 4 demodulation reference signals, and the corresponding symbol position indexes thereof are d1, d2, d3 and d4, respectively, the adjacent phase difference value between the first demodulation reference signal and the second demodulation reference signal can be obtained according to the obtained adjacent phase difference value between the demodulation reference signals
Indicating that the adjacent phase difference between the second demodulation reference signal and the third demodulation reference signal is
Indicating that the adjacent phase difference value between the third demodulation reference signal and the fourth demodulation reference signal
And (4) showing.
After determining the adjacent phase difference values, a reference phase difference value may be determined based on each adjacent phase difference value and the symbol position of each demodulation reference signal, e.g., based on a formula
And determining a reference phase difference value, wherein fi is the reference phase difference value, and d1, d2, d3 and d4 are respectively symbol position indexes of the demodulation reference signals.
According to the frequency offset compensation method, the terminal determines the adjacent phase difference value corresponding to each adjacent demodulation reference signal according to the frequency domain channel response set corresponding to each adjacent two demodulation reference signals in the at least two demodulation reference signals, and further determines the reference phase difference value according to each adjacent phase difference value and the symbol position of each demodulation reference signal, so that the accuracy of the reference phase difference value is further improved, the accuracy of the phase difference value to be compensated of each data signal determined according to the reference phase difference value is further improved, and the accuracy of performing frequency offset compensation on each data signal according to the phase difference value to be compensated of each data signal is further improved.
It should be understood that although the various steps in the flow charts of fig. 2-6 are shown in order as indicated by the arrows, the steps are not necessarily performed in order as indicated by the arrows. The steps are not performed in the exact order shown and described, and may be performed in other orders, unless explicitly stated otherwise. Moreover, at least some of the steps in fig. 2-6 may include multiple sub-steps or multiple stages that are not necessarily performed at the same time, but may be performed at different times, and the order of performance of the sub-steps or stages is not necessarily sequential, but may be performed in turn or alternating with other steps or at least some of the sub-steps or stages of other steps.
Fig. 7 is a schematic structural diagram of a frequency offset compensation apparatus provided in an embodiment, as shown in fig. 7, the frequency offset compensation apparatus includes: an obtaining module 10, a first determining module 20, a second determining module 30 and a compensating module 40, wherein:
an obtaining module 10, configured to obtain frequency domain channel response sets corresponding to at least two demodulation reference signals; at least two demodulation reference signals are transmitted within a preset time period;
a first determining module 20, configured to determine a reference phase difference value of at least two demodulation reference signals according to a frequency domain channel response set corresponding to the at least two demodulation reference signals;
a second determining module 30, configured to determine a phase difference value to be compensated for each data signal according to a symbol position of each demodulation reference signal, a symbol position of the data signal, and a reference phase difference value;
and the compensation module 40 is configured to perform frequency offset compensation on each data signal according to the phase difference to be compensated.
The frequency offset compensation apparatus provided in the embodiment of the present application may implement the method embodiment, and its implementation principle and technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of a frequency offset compensation apparatus provided in another embodiment, and based on the embodiment shown in fig. 7, as shown in fig. 8, the first determining module 20 includes: a first determining unit 201 and a second determining unit 202, wherein:
the first determining unit 201 is configured to determine a frequency domain phase difference value of each demodulation reference signal according to the frequency domain channel response of each frequency domain channel response set on each frequency domain channel;
the second determining unit 202 is configured to determine a reference phase difference value according to each frequency domain phase difference value.
In an embodiment, the first determining unit 201 is specifically configured to perform conjugate multiplication on each two adjacent frequency domain channel responses to obtain a frequency domain phase difference value of each demodulation reference signal.
In an embodiment, the second determining unit 202 is specifically configured to use an average value of the frequency domain phase difference values as the reference phase difference value.
In an embodiment, the second determining unit 202 is specifically configured to obtain the amplitude of the radio frequency signal on each frequency domain channel; and taking the frequency domain channel with the radio frequency signal amplitude larger than the threshold value as a target frequency domain channel, and determining a reference phase difference value according to the frequency domain phase difference value of the target frequency domain channel.
In an embodiment, the second determining module 30 is specifically configured to determine, according to the symbol position index of each demodulation reference signal and the symbol position index of the data signal, a neighboring demodulation reference signal corresponding to each data signal; the difference between the symbol position index of each data signal and the symbol position index of the corresponding adjacent demodulation reference signal is minimum; determining a phase compensation coefficient of each data signal according to the symbol position of each data signal and the symbol position of the corresponding adjacent demodulation reference signal; and determining the phase difference value to be compensated of each data signal according to the phase compensation coefficient and the reference phase difference value.
In an embodiment, when the number of the demodulation reference signals in the at least two demodulation reference signals is greater than 2, the first determining module 20 is specifically configured to determine an adjacent phase difference value corresponding to each adjacent demodulation reference signal according to a frequency domain channel response set corresponding to each adjacent two demodulation reference signals in the at least two demodulation reference signals; and determining a reference phase difference value according to each adjacent phase difference value and the symbol position of each demodulation reference signal.
The frequency offset compensation apparatus provided in the embodiment of the present application may implement the method embodiment, and its implementation principle and technical effect are similar, which are not described herein again.
For a specific limitation of the frequency offset compensation apparatus, reference may be made to the above limitation of the frequency offset compensation method, which is not described herein again. The modules in the frequency offset compensation device can be implemented wholly or partially by software, hardware and a combination thereof. The modules can be embedded in a hardware form or independent from a processor in the computer device, and can also be stored in a memory in the computer device in a software form, so that the processor can call and execute operations corresponding to the modules.
In one embodiment, a computer device is provided, which may be a terminal device, and its internal structure diagram may be as shown in fig. 9. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device comprises a nonvolatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of an operating system and computer programs in the non-volatile storage medium. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program is executed by a processor to implement a method of frequency offset compensation. The display screen of the computer equipment can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer equipment can be a touch layer covered on the display screen, a key, a track ball or a touch pad arranged on the shell of the computer equipment, an external keyboard, a touch pad or a mouse and the like.
Those skilled in the art will appreciate that the architecture shown in fig. 9 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, there is provided a terminal device comprising a memory and a processor, the memory storing a computer program, the processor implementing the following steps when executing the computer program:
acquiring frequency domain channel response sets corresponding to at least two demodulation reference signals; at least two demodulation reference signals are transmitted within a preset time period;
determining a reference phase difference value of at least two demodulation reference signals according to frequency domain channel response sets corresponding to the at least two demodulation reference signals;
determining a phase difference value to be compensated of each data signal according to the symbol position of each demodulation reference signal, the symbol position of each data signal and a reference phase difference value;
and performing frequency offset compensation on each data signal according to the phase difference value to be compensated.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining the frequency domain phase difference value of each demodulation reference signal according to the frequency domain channel response of each frequency domain channel response set on each frequency domain channel; and determining a reference phase difference value according to the phase difference values of the frequency domains.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and performing conjugate multiplication on the responses of each two adjacent frequency domain channels to obtain the frequency domain phase difference value of each demodulation reference signal.
In one embodiment, the processor, when executing the computer program, further performs the steps of: and taking the average value of the phase difference values of the frequency domains as a reference phase difference value.
In one embodiment, the processor, when executing the computer program, further performs the steps of: acquiring the amplitude of the radio frequency signal on each frequency domain channel; and taking the frequency domain channel with the radio frequency signal amplitude larger than the threshold value as a target frequency domain channel, and determining a reference phase difference value according to the frequency domain phase difference value of the target frequency domain channel.
In one embodiment, the processor, when executing the computer program, further performs the steps of: determining adjacent demodulation reference signals corresponding to the data signals according to the symbol position indexes of the demodulation reference signals and the symbol position indexes of the data signals; the difference between the symbol position index of each data signal and the symbol position index of the corresponding adjacent demodulation reference signal is minimum; determining a phase compensation coefficient of each data according to the symbol position of each data signal and the symbol position of the corresponding adjacent demodulation reference signal; and determining the phase difference value to be compensated of each data signal according to the phase compensation coefficient and the reference phase difference value.
In one embodiment, when the number of demodulation reference signals in the at least two demodulation reference signals is greater than 2, the processor when executing the computer program further realizes the following steps: determining an adjacent phase difference value corresponding to each adjacent demodulation reference signal according to a frequency domain channel response set corresponding to each adjacent two demodulation reference signals in the at least two demodulation reference signals; and determining a reference phase difference value according to each adjacent phase difference value and the symbol position of each demodulation reference signal.
The implementation principle and technical effect of the computer device provided in this embodiment are similar to those of the method embodiments described above, and are not described herein again.
In one embodiment, a computer-readable storage medium is provided, having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring frequency domain channel response sets corresponding to at least two demodulation reference signals; at least two demodulation reference signals are transmitted within a preset time period;
determining a reference phase difference value of at least two demodulation reference signals according to frequency domain channel response sets corresponding to the at least two demodulation reference signals;
determining a phase difference value to be compensated of each data signal according to the symbol position of each demodulation reference signal, the symbol position of each data signal and a reference phase difference value;
and performing frequency offset compensation on each data signal according to the phase difference value to be compensated.
In one embodiment, the computer program when executed by the processor implements the steps of: determining the frequency domain phase difference value of each demodulation reference signal according to the frequency domain channel response of each frequency domain channel response set on each frequency domain channel; and determining a reference phase difference value according to the phase difference values of the frequency domains.
In one embodiment, the computer program when executed by the processor implements the steps of: and performing conjugate multiplication on the responses of each two adjacent frequency domain channels to obtain the frequency domain phase difference value of each demodulation reference signal.
In one embodiment, the computer program when executed by the processor implements the steps of: and taking the average value of the phase difference values of the frequency domains as a reference phase difference value.
In one embodiment, the computer program when executed by the processor implements the steps of: acquiring the amplitude of the radio frequency signal on each frequency domain channel; and taking the frequency domain channel with the radio frequency signal amplitude larger than the threshold value as a target frequency domain channel, and determining a reference phase difference value according to the frequency domain phase difference value of the target frequency domain channel.
In one embodiment, the computer program when executed by the processor implements the steps of: determining adjacent demodulation reference signals corresponding to the data signals according to the symbol position indexes of the demodulation reference signals and the symbol position indexes of the data signals; the difference between the symbol position index of each data signal and the symbol position index of the corresponding adjacent demodulation reference signal is minimum; determining a phase compensation coefficient of each data signal according to the symbol position of each data signal and the symbol position of the corresponding adjacent demodulation reference signal; and determining the phase difference value to be compensated of each data signal according to the phase compensation coefficient and the reference phase difference value.
In one embodiment, when the number of demodulation reference signals in the at least two demodulation reference signals is greater than 2, the computer program when executed by the processor implements the steps of: determining an adjacent phase difference value corresponding to each adjacent demodulation reference signal according to a frequency domain channel response set corresponding to each adjacent two demodulation reference signals in the at least two demodulation reference signals; and determining a reference phase difference value according to each adjacent phase difference value and the symbol position of each demodulation reference signal.
The implementation principle and technical effect of the computer-readable storage medium provided by this embodiment are similar to those of the above-described method embodiment, and are not described herein again.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments described above can be implemented by hardware instructions of a computer program, which can be stored in a non-volatile computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the embodiments provided herein may include non-volatile and/or volatile memory, among others. Non-volatile memory can include read-only memory (ROM), Programmable ROM (PROM), Electrically Programmable ROM (EPROM), Electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDRSDRAM), Enhanced SDRAM (ESDRAM), Synchronous Link DRAM (SLDRAM), Rambus Direct RAM (RDRAM), direct bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).
The technical features of the embodiments described above may be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the embodiments described above are not described, but should be considered as being within the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The above-mentioned embodiments only express several embodiments of the present application, and the description thereof is more specific and detailed, but not construed as limiting the scope of the invention. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present patent shall be subject to the appended claims.