A signal power statistical method, device, apparatus and storage medium
Patent Information
- Application Number
- CN202611304948.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-26
- Publication Date
- 2026-09-22
AI Technical Summary
[0004]本申请实施例提供一种信号功率统计方法、装置、设备及存储介质,以解决相关技术中统计粒度僵化且频域筛选能力不足,导致功率统计灵活性和准确性较差的技术问题
[0015]本申请实施例中,通过获取包含时域信号的类型、频域位置范围、目标时标以及统计粒度的配置信息,并对时域信号进行傅里叶变换得到频域数据流,进而基于时域信号的类型和频域位置范围对频域数据流中的资源元素进行筛选得到目标资源元素,对目标资源元素的频域IQ数据进行平方累加运算并在统计周期结束且时标匹配时锁存结果,解决了现有技术中统计粒度僵化、频域筛选能力不足的问题,实现了对不同类型信号在不同统计粒度下的频域资源元素的针对性筛选,提高了功率统计的灵活性与准确性;同时,功率统计过程可以在傅里叶变换之后,通过预设的硬件电路完成计算,无需经由内存中转和处理器软件干预,降低了处理器的负载与系统总线的带宽压力,并能够满足物理层对功率反馈的实时性要求。
Smart Images

Figure CN122802958A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a signal power statistics method, apparatus, device, and storage medium. Background Technology
[0002] In 5G New Radio (NR), signal power statistics are a crucial foundation for implementing functions such as automatic gain control (AGC) and received signal strength measurement. Taking the base station receiver as an example, the continuous time-domain signal received by the antenna is converted into a frequency-domain data stream after Fourier transform. The base station needs to perform power statistics on specific types of signals (such as demodulation reference signals, sounding reference signals, and uplink shared channel signals) within this frequency-domain data stream to implement subsequent control and measurement processing based on the statistical results.
[0003] However, existing power statistics schemes have the following drawbacks in the processing: First, the statistical granularity is rigid. Existing schemes usually accumulate power at a fixed time slot level, which cannot flexibly adapt to different statistical granularities such as symbol level, time slot level, or frame level according to statistical needs. This makes it difficult for the statistical results to accurately reflect the instantaneous power within a specific time interval, thus failing to meet the flexibility requirements of practical applications. Second, the frequency domain filtering capability is insufficient. Existing schemes mostly accumulate the full bandwidth frequency domain data after Fourier transform directly, lacking the ability to selectively filter resource elements based on signal type and its specific location in the frequency domain. This results in the statistical results being mixed with a large amount of noise and interference signals, leading to poor accuracy and specificity of the power statistics results. Summary of the Invention
[0004] This application provides a signal power statistics method, apparatus, device, and storage medium to address the technical problems in related technologies where rigid statistical granularity and insufficient frequency domain filtering capabilities lead to poor flexibility and accuracy in power statistics. This application filters resource elements in the frequency domain data stream based on the time-domain signal and frequency-domain location range in the configuration information, and performs a square accumulation operation on the filtered target resource elements. When the statistical period corresponding to the statistical granularity ends and the current timescale matches the target timescale, the square accumulation operation value corresponding to the statistical period is latched. This achieves targeted filtering and flexible, accurate power statistics for frequency domain resource elements of different types of signals at different statistical granularities.
[0005] In a first aspect, embodiments of this application provide a signal power statistics method, comprising: Obtain configuration information, which includes the type of time-domain signal to be power calculated, frequency domain location range, target time scale, and statistical granularity. Perform a Fourier transform on the time-domain signal to obtain frequency-domain data; Acquire a frequency domain data stream consisting of frequency domain data, wherein the frequency domain data stream includes multiple resource elements; Based on the type of time-domain signal and the range of its frequency-domain location, resource elements in the frequency-domain data stream are filtered to obtain target resource elements; The frequency domain IQ data of the target resource element is subjected to a square accumulation operation. When the statistical period corresponding to the statistical granularity ends and the current time scale matches the target time scale, the square accumulation operation value corresponding to the statistical period is latched and the square accumulation operation value is used as the power statistics result.
[0006] Optionally, the time-domain signal includes a demodulation reference signal or a probe reference signal. Based on the type and frequency domain location range of the time-domain signal, resource elements in the frequency-domain data stream are filtered to obtain target resource elements, including: Acquire the pre-stored comb pattern corresponding to the demodulated reference signal or the probe reference signal; The offset position of resource elements within the frequency domain location range is determined based on the comb pattern; Based on the offset position, the resource elements in the frequency domain data stream are filtered to obtain the target resource element.
[0007] Optionally, determining the offset position of resource elements within the frequency domain location range based on the comb pattern includes: Based on the comb pattern, determine the comb spacing parameters and the initial offset parameters; Based on the comb spacing parameter and the starting offset parameter, the subcarrier offset position of the resource element within the frequency domain location range is determined.
[0008] Optionally, resource elements in the frequency domain data stream are filtered based on their offset positions to obtain target resource elements, including: Based on the offset position, a corresponding enable signal is generated for each resource element in the frequency domain data stream; Resource elements whose enable signals are in a valid state in the frequency domain data stream are identified as target resource elements.
[0009] Optionally, the time-domain signal includes the physical uplink shared channel signal or the physical uplink control channel signal. Based on the type and frequency domain location range of the time-domain signal, resource elements in the frequency domain data stream are filtered to obtain target resource elements, including: Based on the frequency domain location range, determine the target resource block interval corresponding to the physical uplink shared channel signal or the physical uplink control channel signal; Based on the target resource block range, resource elements in the frequency domain data stream are filtered to obtain the target resource elements.
[0010] Optionally, after the sum of squares corresponding to the latching statistical period, the following may also be included: The accumulator corresponding to the zero-square accumulation operation; Determine the next statistical period corresponding to the statistical granularity, and in the next statistical period, continue to obtain the target resource element from the frequency domain data stream, and perform square accumulation operation on the frequency domain IQ data of the target resource element.
[0011] Optionally, after the sum of squares corresponding to the latching statistical period, the following may also be included: Write the latched square accumulation value into a read-only register; Instruct the processor to read the sum of squares from the read-only register.
[0012] In a second aspect, embodiments of this application provide a signal power statistics device, comprising: The acquisition module is used to acquire configuration information, which includes the type of time-domain signal to be calculated, the frequency domain location range, the target time scale, and the statistical granularity. The transformation module is used to perform Fourier transform on the time-domain signal to obtain frequency-domain data; The acquisition module is also used to acquire a frequency domain data stream consisting of frequency domain data, wherein the frequency domain data stream includes multiple resource elements; The filtering module is used to filter resource elements in the frequency domain data stream based on the type of time domain signal and the frequency domain location range to obtain target resource elements; The arithmetic module is used to perform square accumulation operations on the frequency domain IQ data of the target resource element; The latch module is used to latch the sum of squares corresponding to the statistical period when the statistical period corresponding to the statistical granularity ends and the current time scale matches the target time scale, and use the sum of squares as the power statistics result.
[0013] In a third aspect, embodiments of this application provide an electronic device, including: a memory and one or more processors; Memory, used to store one or more programs; When one or more programs are executed by one or more processors, the one or more processors implement the signal power statistics method as described in the first aspect.
[0014] In a fourth aspect, embodiments of this application provide a storage medium for storing computer-executable instructions, which, when executed by a computer processor, are used to perform the signal power statistics method as described in the first aspect.
[0015] In this embodiment, configuration information including the type of time-domain signal, frequency domain location range, target time scale, and statistical granularity is obtained. A Fourier transform is performed on the time-domain signal to obtain a frequency-domain data stream. Then, resource elements in the frequency-domain data stream are filtered based on the type of time-domain signal and the frequency domain location range to obtain target resource elements. The frequency-domain IQ data of the target resource elements is squared and accumulated, and the result is latched at the end of the statistical period and when the time scale matches. This solves the problems of rigid statistical granularity and insufficient frequency-domain filtering capability in the prior art, enabling targeted filtering of frequency-domain resource elements for different types of signals at different statistical granularities, improving the flexibility and accuracy of power statistics. Simultaneously, the power statistics process can be completed after the Fourier transform through a preset hardware circuit, without the need for memory transfer and processor software intervention, reducing the processor load and system bus bandwidth pressure, and meeting the physical layer's real-time requirements for power feedback. Attached Figure Description
[0016] Figure 1 A flowchart illustrating a signal power statistics method provided in this application embodiment; Figure 2 A flowchart illustrating a method for filtering target resource elements based on a comb pattern, provided in this application embodiment; Figure 3 A flowchart illustrating a method for filtering target resource elements based on resource block intervals, provided in this application embodiment; Figure 4 This is a schematic diagram of the structure of a signal power statistics device provided in an embodiment of this application; Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0017] To make the objectives, technical solutions, and advantages of this application clearer, specific embodiments of this application will be described in further detail below with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are merely for explaining this application and not for limiting it. It should also be noted that, for ease of description, only the parts relevant to this application are shown in the drawings, not all of them. Before discussing exemplary embodiments in more detail, it should be mentioned that some exemplary embodiments are described as processes or methods depicted as flowcharts. Although the flowcharts describe operations (or steps) as sequential processes, many of these operations can be performed in parallel, concurrently, or simultaneously. Furthermore, the order of the operations can be rearranged. The process can be terminated when its operation is completed, but additional steps not included in the drawings may also be present. The above processes can correspond to methods, functions, procedures, subroutines, subroutines, etc.
[0018] The signal power statistics method provided in this application embodiment can be executed by a signal power statistics circuit. The signal power statistics circuit is the hardware circuit that implements the aforementioned signal power statistics device, and may include units such as a configuration register file, a frequency domain resource element filtering unit, an IQ squared accumulation unit, and an output unit, and can be integrated into base station equipment.
[0019] Figure 1 A flowchart of a signal power statistics method provided in this application embodiment is shown below. Figure 1 The signal power statistics method includes: Step S101: Obtain configuration information, which includes the type of time-domain signal to be calculated, frequency domain location range, target time scale, and statistical granularity.
[0020] Among them, the time-domain signal refers to the signal received by the base station antenna in the time domain for power calculation. The types of time-domain signals include demodulation reference signals, sounding reference signals, physical uplink shared channel signals, and physical uplink control channel signals, etc.; the frequency domain location range refers to the range of the resource element to be calculated in the frequency domain, which can be represented by the starting resource block number and the resource block length; the target time stamp refers to the position identifier of the target time in the protocol frame structure for which the power statistics results are expected, which includes the target frame number, target time slot number, and target symbol number, etc.; the statistical granularity refers to the length of the time window spanned by the power accumulation operation, including the symbol level, time slot level, and frame level.
[0021] In one embodiment, before the statistics begin, the processor in the base station device sends control words corresponding to configuration information to the configuration register file in the power statistics circuit via a serial peripheral interface. The type, frequency range, target time scale, and statistical granularity of the time-domain signal to be calculated are written into the corresponding configuration registers. The configuration register file stores system parameters issued by the physical layer scheduler and configuration parameters issued by the processor. System parameters may include frame number, timeslot number, symbol number, channel type, and resource block range, while configuration parameters may include target frame number, target timeslot number, target symbol number, statistical granularity, and channel type. The physical layer scheduler can be a scheduling unit located at the physical layer (e.g., L1 layer) in a fifth-generation mobile communication system, used to send system parameters related to the protocol frame structure to the power statistics circuit.
[0022] For example, if it is necessary to calculate the power of the demodulation reference signal on symbol 3 within time slot 5, the processor configures the target frame number to the frame number of the current frame, the target time slot number to 5, the target symbol number to 3, the type of time domain signal to demodulation reference signal, and the statistical granularity to symbol level through the serial peripheral interface before the time slot begins.
[0023] In another alternative implementation, the processor can also write the control word corresponding to the configuration information into the configuration register file in the power statistics circuit via any one of the following methods: internal integrated circuit bus, parallel data bus, or memory-mapped register. Here, a memory-mapped register refers to a register that maps the configuration register file to the processor's address space. The processor can complete the distribution of configuration information by performing read and write operations on the corresponding address, thus eliminating the need for a dedicated serial peripheral interface.
[0024] Therefore, by acquiring and configuring the parameters required for power statistics in advance before the start of power statistics, subsequent frequency domain filtering and power accumulation operations can be carried out for signals of specific types, specific frequency domain locations, and specific time locations, thus achieving more flexible and accurate power statistics.
[0025] Step S102: Perform a Fourier transform on the time-domain signal to obtain frequency-domain data.
[0026] Frequency domain data refers to the data distributed in the frequency domain obtained after the time domain signal is Fourier transformed.
[0027] In one embodiment, a preset Fast Fourier Transform (FFT) module can be used to perform a Fast Fourier Transform on the continuous time-domain signal received by the antenna, converting the time-domain signal into frequency-domain data distributed by subcarriers. For example, the FFT module can employ a 2048-point Fast Fourier Transform to transform the time-domain sampling sequence into frequency-domain data corresponding to 2048 subcarriers, with each subcarrier corresponding to a complex-form frequency-domain sample value.
[0028] For example, for an orthogonal frequency division multiplexing symbol containing 2048 time-domain sampling points, the fast Fourier transform module outputs 2048 complex frequency-domain sample values, which correspond to the frequency-domain data on 2048 subcarriers.
[0029] In another alternative implementation, a Discrete Fourier Transform (DFT) or a Fast Fourier Transform (FFT) with a number of points other than 2048 can be used to transform the time-domain signal. For example, the FFT module can use a 512-point, 1024-point, or 4096-point FFT, correspondingly outputting frequency-domain data on 512, 1024, or 4096 subcarriers. The number of transformation points can be flexibly configured according to the system bandwidth and subcarrier spacing. Furthermore, the Fourier transform can also be implemented in software, i.e., the processor executes the Fourier transform program to complete the conversion from time-domain signal to frequency-domain data; this embodiment does not limit this approach.
[0030] Therefore, by converting the time-domain signal into frequency-domain data through Fourier transform, it is possible to perform targeted screening and power statistics on specific resource elements in the frequency domain, thereby avoiding blind power accumulation of the entire time-domain signal.
[0031] Step S103: Obtain a frequency domain data stream composed of frequency domain data, wherein the frequency domain data stream includes multiple resource elements.
[0032] Among them, frequency domain data stream refers to the data stream formed by sequentially outputting frequency domain data according to the arrangement order of resource element grid; resource element refers to the smallest unit of frequency domain resources of 5G mobile communication new radio interface. One resource element corresponds to one orthogonal frequency division multiplexing symbol on one subcarrier. Each resource element carries a pair of frequency domain IQ (In-phase / Quadrature) data.
[0033] In one embodiment, a frequency domain data stream composed of frequency domain data can be obtained from the downstream of the Fast Fourier Transform module through a preset power statistics circuit. This frequency domain data stream is output sequentially in units of resource elements. The frequency domain data corresponding to each resource element is 32-bit frequency domain IQ data, where the lower 16 bits are the in-phase component and the higher 16 bits are the quadrature component. The resource elements in the frequency domain data stream arrive at the power statistics circuit sequentially according to their subcarrier indices in ascending order.
[0034] For example, for the result of a 2048-point Fast Fourier Transform, the frequency domain data stream outputs 2048 resource elements with subcarrier indices from 0 to 2047 in sequence. The frequency domain IQ data of each resource element is 32 bits, of which the lower 16 bits correspond to the in-phase component and the higher 16 bits correspond to the quadrature component.
[0035] Therefore, by acquiring frequency domain data streams in units of resource elements, power statistics can be filtered and calculated at the smallest granularity of resource elements.
[0036] Step S104: Based on the type of time-domain signal and the range of frequency-domain location, filter the resource elements in the frequency-domain data stream to obtain the target resource elements.
[0037] The target resource element refers to the resource element in the frequency domain data stream that belongs to the time domain signal to be calculated and is located within the frequency domain position range.
[0038] In one embodiment, the power statistics circuit includes a preset frequency domain resource element filtering unit. The frequency domain resource element filtering unit filters resource elements in the frequency domain data stream based on the type of the time domain signal and the frequency domain location range in the configuration information. Specifically, when the type of the time domain signal is a demodulation reference signal or a probe reference signal, the frequency domain resource element filtering unit, in conjunction with a pre-stored comb pattern, determines the offset position of the resource element within the frequency domain location range, allowing only resource elements located at specific offset positions to participate in the calculation; when the type of the time domain signal is a physical uplink shared channel signal or a physical uplink control channel signal, the frequency domain resource element filtering unit determines the target resource block interval based on the frequency domain location range, allowing only resource elements located within the target resource block interval to participate in the calculation. The filtering process generates resource element enable signals, and resource elements with valid enable signals are identified as target resource elements.
[0039] For example, if the power of the demodulated reference signal on symbol 3 in time slot 5 is to be counted, the frequency domain resource element filtering unit combines the comb pattern corresponding to the demodulated reference signal and retains only the resource elements located at the offset position indicated by the comb pattern within the configured resource block range, while filtering out resource elements such as physical uplink shared channel data and noisy subcarriers.
[0040] Therefore, by filtering resource elements in the frequency domain data stream based on signal type and frequency domain location range, the resource elements of the target signal can be accurately extracted, eliminating interference from data channels and noise, thereby significantly improving the accuracy and relevance of power statistics results.
[0041] Step S105: Perform a square accumulation operation on the frequency domain IQ data of the target resource element. When the statistical period corresponding to the statistical granularity ends and the current time scale matches the target time scale, latch the square accumulation operation value corresponding to the statistical period and use the square accumulation operation value as the power statistics result.
[0042] Among them, frequency domain IQ data refers to the in-phase and quadrature components corresponding to the target resource element; square accumulation operation refers to the operation of accumulating the sum of the squares of the in-phase component and the squares of the quadrature component of each target resource element; statistical period refers to the time window that corresponds to the statistical granularity and spans the power accumulation operation; square accumulation operation value refers to the power accumulation result of all target resource elements within the same statistical period.
[0043] In one embodiment, the power statistics circuit includes a preset IQ square accumulation unit and an output unit. The IQ square accumulation unit performs a square accumulation operation on the frequency domain IQ data of each target resource element. Specifically, the IQ square accumulation unit splits the 32-bit frequency domain IQ data of the target resource element into a lower 16-bit in-phase component I and a higher 16-bit quadrature component Q, and performs a square operation on the in-phase component I and the quadrature component Q respectively to obtain the square of the in-phase component. Square of orthogonal components Then square the in-phase components. Square of orthogonal components The single-sample power of the target resource element is obtained by summing them. + The power of each sample is accumulated into a variable-width accumulator. When the statistical period corresponding to the statistical granularity ends, the output unit determines whether the current timescale matches the configured target timescale. If the current timescale matches the target timescale, the accumulator latches the current square accumulation value and outputs it as the power statistical result. If the current timescale does not match the target timescale, the accumulator does not latch the current square accumulation value and clears the accumulator at the end of the statistical period, then continues accumulating in the next statistical period.
[0044] For example, if the statistical granularity is configured at the symbol level, then the statistical period is the time window of the current symbol. Suppose that the in-phase component I of a target resource element is 1234, and the quadrature component Q is 567, then the single-sample power of this target resource element is... + That is, 1522756 + 321489 = 1844245. Within the statistical period corresponding to this symbol, the IQ square accumulation unit accumulates the single-sample power of all target resource elements within this symbol into the accumulator. When the end of this symbol is detected, i.e., the falling edge of the valid signal, the output unit determines whether the current symbol number, time slot number, and frame number match the target symbol number, target time slot number, and target frame number. If they match, the value of the latched accumulator is used as the power statistical result of the target signal within this symbol. If the statistical granularity is configured at the time slot level, the statistical period is the time window of the current time slot. The IQ square accumulation unit accumulates the single-sample power of all target resource elements within this time slot into the accumulator. When the end of this time slot is detected, the value of the latched accumulator is used as the power statistical result of the target signal within this time slot. If the statistical granularity is configured as frame level, the statistical period is the time window of the current frame. The IQ squared accumulator unit accumulates the single sample power of all target resource elements in the frame into the accumulator. When the end of the frame is detected, the value of the latched accumulator is used as the power statistical result of the target signal in the frame.
[0045] In another alternative implementation, the IQ squared accumulation unit can also use a lookup table method or a coordinate rotation digital calculation algorithm to calculate the single-sample power of the target resource element. + The lookup table method can pre-store the square values corresponding to different values of the in-phase component I and the quadrature component Q, and obtain the values by looking up the table. and Then add them together; coordinate rotation numerical calculation algorithms can approximate the calculation through iterative rotation. + In addition, when the output unit latches the sum of squares, a double buffer register can be used for latching. That is, at the end of a statistical cycle, the sum of squares is written to the first buffer register, and at the same time as the sum of squares is performed in the next statistical cycle, the value in the first buffer register is written to the second buffer register, thereby avoiding interference of the latching process with subsequent summation operations.
[0046] Therefore, by performing square accumulation on the frequency domain IQ data of the target resource element based on the selection of frequency domain resource elements, and latching the result at the end of the statistical period and when the time stamp is matched, accurate power statistics of a specific signal within a specific time window are achieved, taking into account both the accuracy and real-time performance of power statistics.
[0047] In this embodiment, by acquiring configuration information including signal type, frequency domain location range, target time scale, and statistical granularity before power statistics begin, Fourier transform is performed on the time domain signal to obtain a frequency domain data stream. Target resource elements are then filtered based on signal type and frequency domain location range. Subsequently, the frequency domain IQ data of the target resource elements are squared and accumulated, and the results are latched when the statistical period ends and the time scale matches. This solves the problems of rigid statistical granularity and insufficient frequency domain filtering capability in the prior art, and realizes targeted filtering and flexible and accurate power statistics of frequency domain resource elements of different types of signals at different statistical granularities.
[0048] Figure 2 This is a flowchart illustrating a method for filtering target resource elements based on a comb pattern, provided in an embodiment of this application. In one embodiment, the time-domain signal includes a demodulation reference signal or a probe reference signal. (Reference) Figure 2 In step S104 above, resource elements in the frequency domain data stream are filtered based on the type of the time-domain signal and the frequency-domain location range to obtain target resource elements, including: Step S1041A: Obtain the pre-stored comb pattern corresponding to the demodulation reference signal or the detection reference signal.
[0049] The comb pattern refers to the distribution pattern of the demodulation reference signal or the probe reference signal in the frequency domain, which occupies subcarriers at fixed intervals. The demodulation reference signal or the probe reference signal does not occupy every consecutive subcarrier, but is distributed on some subcarriers according to fixed comb intervals.
[0050] In one embodiment, the frequency domain resource element filtering unit reads the comb pattern corresponding to the demodulated reference signal or the probe reference signal from the storage unit. Since the demodulated reference signal or the probe reference signal has a defined comb distribution structure in the protocol, the comb pattern can be pre-stored in the storage unit of the power statistics circuit for direct reading during filtering.
[0051] For example, for a demodulation reference signal configured with a comb spacing of 2 (e.g., a comb-2 demodulation reference signal), the corresponding comb pattern indicates that the demodulation reference signal occupies only resource elements with even (or odd) subcarrier indices, that is, one resource element is occupied for every other subcarrier.
[0052] Therefore, by acquiring the pre-stored comb pattern, the distribution pattern of the demodulation reference signal or the detection reference signal in the frequency domain can be accurately determined, providing a basis for subsequently determining the offset position of resource elements.
[0053] Step S1042A: Determine the offset position of the resource element within the frequency domain position range based on the comb pattern.
[0054] Here, offset position refers to the subcarrier position of the target resource element relative to the starting position of the comb pattern in the frequency domain.
[0055] In one embodiment, the frequency domain resource element filtering unit determines the comb spacing parameter and the starting offset parameter based on the comb pattern, and then determines the subcarrier offset position of the resource element within the frequency domain location range based on the comb spacing parameter and the starting offset parameter. Specifically, the comb spacing parameter represents the interval of subcarriers occupied by the demodulation reference signal or the probe reference signal, and the starting offset parameter represents the subcarrier offset amount at the beginning of the comb pattern within the frequency domain location range; based on the comb spacing parameter and the starting offset parameter, the subcarrier offset positions corresponding to all resource elements belonging to the demodulation reference signal or the probe reference signal within the frequency domain location range can be determined.
[0056] For example, if the comb spacing parameter is 2, the starting offset parameter is 1, and the subcarrier index corresponding to the starting resource block of the frequency domain location range is 0, then the resource elements belonging to the demodulation reference signal within that frequency domain location range are located at odd-numbered subcarrier positions such as subcarrier indices 1, 3, 5, 7, etc. For the probe reference signal, if the comb spacing parameter of its corresponding comb pattern is 4 (i.e., comb-4), the starting offset parameter is 2, and the subcarrier index corresponding to the starting resource block of the frequency domain location range is 0, then the resource elements belonging to the probe reference signal within that frequency domain location range are located at subcarrier positions such as subcarrier indices 2, 6, 10, 14, etc.
[0057] Therefore, by determining the subcarrier offset position of resource elements through the comb pattern, the specific position of the demodulation reference signal or the detection reference signal in the frequency domain can be accurately located, avoiding blind screening of full-bandwidth resources.
[0058] In one embodiment, the step S1042A above, which determines the offset position of the resource element within the frequency domain location range based on the comb pattern, specifically includes: Step S1042A1: Determine the comb spacing parameters and the starting offset parameters based on the comb pattern.
[0059] Among them, the comb spacing parameter can be a parameter that characterizes the spacing of the subcarrier occupied by the demodulation reference signal or the probe reference signal, and the starting offset parameter characterizes the subcarrier offset at the beginning of the comb pattern within the frequency domain position range. Both are directly determined by the comb pattern.
[0060] Step S1042A2: Determine the subcarrier offset position of the resource element within the frequency domain location range based on the comb spacing parameter and the starting offset parameter.
[0061] The frequency domain resource element screening unit starts with the initial offset parameter and uses the comb spacing parameter as the step size to sequentially determine the subcarrier offset position corresponding to each resource element belonging to the demodulation reference signal or the probe reference signal within the frequency domain position range.
[0062] Step S1043A: Based on the offset position, filter the resource elements in the frequency domain data stream to obtain the target resource elements.
[0063] In one embodiment, the frequency domain resource element filtering unit generates a corresponding enable signal for each resource element in the frequency domain data stream based on the offset position, and determines the resource elements in the frequency domain data stream whose enable signals are valid as target resource elements. Specifically, for each resource element arriving sequentially in the frequency domain data stream, the frequency domain resource element filtering unit determines whether the subcarrier offset position of the resource element belongs to the aforementioned determined offset position. If so, the enable signal corresponding to the resource element is set to valid; otherwise, the enable signal corresponding to the resource element is set to invalid.
[0064] For example, if the determined offset positions are subcarrier indices 1, 3, 5, 7, etc., then for the resource elements that arrive in sequence, the frequency domain resource element filtering unit generates a valid enable signal for the resource elements located at subcarrier indices 1, 3, 5, 7, etc., and generates an invalid enable signal for the resource elements located at other subcarrier indices, so that only the resource elements with odd subcarrier indices are retained as target resource elements to participate in the subsequent square accumulation operation.
[0065] Therefore, by using a comb pattern combined with offset position to filter resource elements, the resource elements corresponding to the demodulation reference signal or the detection reference signal can be accurately extracted, eliminating interference from the data channel and noisy subcarriers, and further improving the accuracy and relevance of power statistics.
[0066] In one embodiment, step S1043A above, which filters resource elements in the frequency domain data stream based on the offset position to obtain target resource elements, specifically includes: Step S1043A1: Generate a corresponding enable signal for each resource element in the frequency domain data stream according to the offset position.
[0067] The enable signal is an indication signal that indicates whether a resource element is a target resource element. For each resource element arriving sequentially in the frequency domain data stream, the frequency domain resource element filtering unit determines whether the subcarrier offset position of the resource element belongs to the aforementioned determined offset position. If so, the enable signal corresponding to the resource element is set to an active state; otherwise, the enable signal corresponding to the resource element is set to an inactive state.
[0068] Step S1043A2: Determine the resource elements in the frequency domain data stream whose enable signals are in an active state as target resource elements.
[0069] For example, the frequency domain resource element screening unit marks resource elements with an active enable signal as target resource elements, allowing only target resource elements to enter the subsequent square accumulation operation.
[0070] Figure 3 This is a flowchart illustrating a method for filtering target resource elements based on resource block intervals, provided as an embodiment of this application. In another embodiment, the time-domain signal includes a physical uplink shared channel signal or a physical uplink control channel signal. (See reference...) Figure 3 In step S104 above, resource elements in the frequency domain data stream are filtered based on the type of the time-domain signal and the frequency-domain location range to obtain target resource elements, including: Step S1041B: Determine the target resource block interval corresponding to the physical uplink shared channel signal or the physical uplink control channel signal based on the frequency domain location range.
[0071] The target resource block interval refers to the resource block interval occupied by the physical uplink shared channel signal or the physical uplink control channel signal in the frequency domain, which can be determined by the starting resource block number and the resource block length.
[0072] In one embodiment, the frequency domain resource element filtering unit reads the frequency domain location range (i.e., the starting resource block number and the resource block length) from the configuration information, and determines the target resource block interval corresponding to the physical uplink shared channel signal or the physical uplink control channel signal accordingly. Since the physical uplink shared channel signal or the physical uplink control channel signal occupies several resource blocks consecutively in the frequency domain, a comb pattern is not required, and the target resource block interval can be determined solely based on the frequency domain location range.
[0073] For example, if the starting resource block number in the configuration information is 10 and the resource block length is 20, then the target resource block interval is the frequency domain range corresponding to resource block numbers 10 to 29. Each resource block contains 12 subcarriers, so the target resource block interval corresponds to subcarrier indices 120 to 359. For physical uplink control channel signals, if the starting resource block number in the configuration information is 0 and the resource block length is 2, then the target resource block interval is the frequency domain range corresponding to resource block numbers 0 to 1, corresponding to subcarrier indices 0 to 23. That is, physical uplink control channel signals typically occupy a small number of resource blocks at the edge of the system bandwidth.
[0074] Therefore, by directly determining the target resource block range through the frequency domain location range, it is possible to quickly locate the occupied range of the physical uplink shared channel signal or the physical uplink control channel signal in the frequency domain.
[0075] Step S1042B: Based on the target resource block interval, filter the resource elements in the frequency domain data stream to obtain the target resource elements.
[0076] In one embodiment, the frequency domain resource element filtering unit determines whether the subcarrier index corresponding to each resource element arriving sequentially in the frequency domain data stream falls within the target resource block interval. It sets the enable signal corresponding to the resource element that falls within the target resource block interval to an active state and sets the enable signal corresponding to the resource element that does not fall within the target resource block interval to an inactive state. Thus, the resource element with an active enable signal can be determined as the target resource element.
[0077] For example, if the target resource block interval corresponds to subcarrier indices 120 to 359, the frequency domain resource element filtering unit only generates a valid enable signal for resource elements with subcarrier indices between 120 and 359, and generates an invalid enable signal for resource elements outside this interval. Thus, only the resource elements corresponding to the physical uplink shared channel signal or the physical uplink control channel signal are retained to participate in the subsequent square accumulation operation.
[0078] Therefore, by filtering based on the target resource block interval, the resource elements corresponding to the physical uplink shared channel signal or the physical uplink control channel signal can be accurately extracted, eliminating the influence of band edge noise and interference subcarriers, and improving the accuracy of power statistics.
[0079] In one embodiment, after latching the squared cumulative value corresponding to the statistical period in step S105 above, the method further includes: Step S106: Clear the accumulator corresponding to the square accumulation operation.
[0080] The accumulator refers to a variable-width storage unit in the IQ squared accumulator unit used to accumulate the single-sample power of each target resource element within the same statistical period.
[0081] In one embodiment, after latching the sum of squares, the IQ sum of squares unit clears the accumulator value to zero so that accumulation can restart in the next statistical period. In another embodiment, at the end of each statistical period, regardless of whether the sum of squares is latched, the IQ sum of squares unit clears the accumulator value to zero so that accumulation can restart in the next statistical period.
[0082] Step S107: Determine the next statistical period corresponding to the statistical granularity, and in the next statistical period, continue to obtain the target resource element from the frequency domain data stream, and perform square accumulation operation on the frequency domain IQ data of the target resource element.
[0083] Specifically, after the accumulator is cleared, the power statistics circuit determines the start and end boundaries of the next statistical period based on the statistical granularity, and repeats the filtering and square accumulation operation of resource elements within the next statistical period. For example, if the statistical granularity is at the symbol level, after latching the statistical result of the current symbol and clearing the accumulator, the power statistics circuit takes the next symbol as the new statistical period and continues to perform square accumulation operation on the target resource elements within that symbol.
[0084] Therefore, by clearing the accumulator after latching the result and continuing the operation in the next statistical cycle, continuous and cyclical statistics of power in different statistical cycles are achieved, so that the power statistics results can be continuously updated as the time window progresses, thereby meeting the requirements of continuous power feedback for functions such as automatic gain control and received signal strength measurement.
[0085] In one embodiment, after latching the squared cumulative value corresponding to the statistical period in step S105 above, the method further includes: Step S108: Write the latched square accumulation value into a read-only register.
[0086] Here, a read-only register refers to a register used by the processor to temporarily store the latched sum of squares. In one embodiment, after latching the sum of squares, the latched sum of squares is written to the read-only register, so that the power statistics result can be obtained by the processor.
[0087] Step S109: Instruct the processor to read the sum of squares from the read-only register.
[0088] In one embodiment, after the output unit writes the latched square accumulation value into a read-only register, it triggers an interrupt to notify the processor to read the square accumulation value in the read-only register. The processor then obtains the power statistics result to perform subsequent processing such as automatic gain control or received signal strength measurement.
[0089] For example, after completing the power statistics of the demodulated reference signal on symbol 3 in time slot 5, the output unit writes the statistically obtained power value into a read-only register and sends an interrupt signal to the processor. After responding to the interrupt, the processor reads the power value in the read-only register for subsequent gain adjustment or measurement.
[0090] Therefore, by writing the power statistics results into a read-only register and notifying the processor to read them, the power statistics results are decoupled from the processor. The processor only needs to read the results after receiving the notification, without having to participate in the filtering and accumulation process of frequency domain IQ data, thereby reducing the processor's load.
[0091] Figure 4 This is a schematic diagram of a signal power statistics device provided in an embodiment of this application. (Reference) Figure 4 The signal power statistics device includes: The acquisition module 41 is used to acquire configuration information, which includes the type of time-domain signal to be calculated, the frequency domain location range, the target time scale, and the statistical granularity. Transformation module 42 is used to perform Fourier transform on the time-domain signal to obtain frequency-domain data; The acquisition module 41 is also used to acquire a frequency domain data stream composed of frequency domain data, wherein the frequency domain data stream includes multiple resource elements; The filtering module 43 is used to filter resource elements in the frequency domain data stream based on the type of time domain signal and the frequency domain location range to obtain target resource elements; The calculation module 44 is used to perform square accumulation operation on the frequency domain IQ data of the target resource element; The latch module 45 is used to latch the square accumulation operation value corresponding to the statistical period when the statistical period corresponding to the statistical granularity ends and the current time scale matches the target time scale, and use the square accumulation operation value as the power statistical result.
[0092] In one embodiment, the time-domain signal includes a demodulation reference signal or a probe reference signal, and the filtering module 43 is used for: Acquire the pre-stored comb pattern corresponding to the demodulated reference signal or the probe reference signal; The offset position of resource elements within the frequency domain location range is determined based on the comb pattern; Based on the offset position, the resource elements in the frequency domain data stream are filtered to obtain the target resource element.
[0093] In one embodiment, the filtering module 43 is used for: Based on the comb pattern, determine the comb spacing parameters and the initial offset parameters; Based on the comb spacing parameter and the starting offset parameter, the subcarrier offset position of the resource element within the frequency domain location range is determined.
[0094] In one embodiment, the filtering module 43 is used for: Based on the offset position, a corresponding enable signal is generated for each resource element in the frequency domain data stream; Resource elements whose enable signals are in a valid state in the frequency domain data stream are identified as target resource elements.
[0095] In one embodiment, the time-domain signal includes a physical uplink shared channel signal or a physical uplink control channel signal, and the filtering module 43 is used for: Based on the frequency domain location range, determine the target resource block interval corresponding to the physical uplink shared channel signal or the physical uplink control channel signal; Based on the target resource block range, resource elements in the frequency domain data stream are filtered to obtain the target resource elements.
[0096] In one embodiment, the signal power statistics device further includes: The clear module is used to clear the accumulator corresponding to the square accumulation operation; The determination module is used to determine the next statistical period corresponding to the statistical granularity; The acquisition module is also used to continue acquiring target resource elements from the frequency domain data stream in the next statistical period; The arithmetic module is also used to perform square accumulation operations on the frequency domain IQ data of the target resource element.
[0097] In one embodiment, the signal power statistics device further includes: The write module is used to write the latched square accumulation value into a read-only register; The notification module is used to notify the processor to read the sum of squares from the read-only register.
[0098] It is worth noting that in the above-described embodiments of the signal power statistics device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the protection scope of the embodiments of this application.
[0099] This application also provides an electronic device that can integrate the signal power statistics device provided in this application. Figure 5 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. (Reference) Figure 5 The electronic device includes: an input device 53, an output device 54, a memory 52, and one or more processors 51; the memory 52 is used to store one or more programs; when one or more programs are executed by one or more processors 51, the one or more processors 51 implement the signal power statistics method provided in the above embodiments. The input device 53, output device 54, memory 52, and processor 51 can be connected via a bus or other means. Figure 5 Taking the example of a connection between China and Israel via a bus.
[0100] The memory 52, as a computing device-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as program instructions / modules corresponding to the signal power statistics method provided in any embodiment of this application (e.g., the acquisition module, transformation module, filtering module, calculation module, and latching module in the signal power statistics device). The memory 52 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and at least one application program required for a function; the data storage area may store data created based on the use of the device. Furthermore, the memory 52 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 52 may further include memory remotely located relative to the processor 51, and these remote memories can be connected to the device via a network. Examples of such networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof.
[0101] Input device 53 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the device. Output device 54 may include display devices such as a display screen.
[0102] The processor 51 executes various functional applications and data processing of the device by running software programs, instructions and modules stored in the memory 52, thereby realizing the above-mentioned signal power statistics method.
[0103] The signal power statistics device, equipment, and computer provided above can be used to execute the signal power statistics method provided in any of the above embodiments, and have corresponding functions and beneficial effects.
[0104] This application embodiment also provides a storage medium storing computer-executable instructions, which, when executed by a computer processor, are used to perform the signal power statistics method provided in the above embodiment. The signal power statistics method includes: Obtain configuration information, which includes the type of time-domain signal to be power calculated, frequency domain location range, target time scale, and statistical granularity. Perform a Fourier transform on the time-domain signal to obtain frequency-domain data; Acquire a frequency domain data stream consisting of frequency domain data, wherein the frequency domain data stream includes multiple resource elements; Based on the type of time-domain signal and the range of its frequency-domain location, resource elements in the frequency-domain data stream are filtered to obtain target resource elements; The frequency domain IQ data of the target resource element is subjected to a square accumulation operation. When the statistical period corresponding to the statistical granularity ends and the current time scale matches the target time scale, the square accumulation operation value corresponding to the statistical period is latched and the square accumulation operation value is used as the power statistics result.
[0105] Storage medium – any type of memory device or storage device. The term “storage medium” is intended to include: mounting media, such as CD-ROM, floppy disk, or magnetic tape devices; computer system memory or random access memory, such as DRAM, DDRRAM, SRAM, EDORAM, Rambus RAM, etc.; non-volatile memory, such as flash memory, magnetic media (e.g., hard disk or optical storage); registers or other similar types of memory elements, etc. Storage medium may also include other types of memory or combinations thereof. Furthermore, storage medium may reside in a first computer system in which the program is executed, or it may reside in a different second computer system connected to the first computer system via a network (such as the Internet). The second computer system can provide program instructions to the first computer for execution. The term “storage medium” can include two or more storage media that may reside in different locations (e.g., in different computer systems connected via a network). Storage medium may store program instructions (e.g., specifically implemented as a computer program) executable by one or more processors.
[0106] Of course, the computer-executable instructions stored in the storage medium provided in the embodiments of this application are not limited to the signal power statistics method provided above, but can also perform related operations in the signal power statistics method provided in any embodiment of this application.
[0107] The signal power statistics device, equipment, and storage medium provided in the above embodiments can execute the signal power statistics method provided in any embodiment of this application. For technical details not described in detail in the above embodiments, please refer to the signal power statistics method provided in any embodiment of this application.
[0108] The above description is merely a preferred embodiment and the technical principles employed in this application. This application is not limited to the specific embodiments provided herein, and various obvious changes, readjustments, and substitutions that can be made by those skilled in the art will not depart from the scope of protection of this application. Therefore, although this application has been described in detail through the above embodiments, this application is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of this application, the scope of which is determined by the scope of the claims.
Claims
1. A signal power statistical method, characterized in that, include: Obtain configuration information, wherein the configuration information includes the type of time-domain signal to be power calculated, the frequency domain location range, the target time scale, and the statistical granularity; Perform a Fourier transform on the time-domain signal to obtain frequency-domain data; Obtain a frequency domain data stream composed of the frequency domain data, wherein the frequency domain data stream includes multiple resource elements; Based on the type of the time-domain signal and the range of the frequency-domain location, resource elements in the frequency-domain data stream are filtered to obtain target resource elements; The frequency domain IQ data of the target resource element is subjected to a square accumulation operation. When the statistical period corresponding to the statistical granularity ends and the current time scale matches the target time scale, the square accumulation operation value corresponding to the statistical period is latched and the square accumulation operation value is used as the power statistics result.
2. The signal power statistics method according to claim 1, characterized in that, The time-domain signal includes a demodulation reference signal or a probe reference signal. The process of filtering resource elements in the frequency-domain data stream based on the type of the time-domain signal and the frequency-domain location range to obtain target resource elements includes: Obtain the pre-stored comb pattern corresponding to the demodulated reference signal or the probe reference signal; The offset position of the resource element within the frequency domain position range is determined based on the comb pattern. Based on the offset position, the resource elements in the frequency domain data stream are filtered to obtain the target resource element.
3. The signal power statistics method according to claim 2, characterized in that, Determining the offset position of resource elements within the frequency domain location range based on the comb pattern includes: Based on the comb pattern, determine the comb spacing parameter and the starting offset parameter; Based on the comb spacing parameter and the starting offset parameter, the subcarrier offset position of the resource element within the frequency domain location range is determined.
4. The signal power statistics method according to claim 2, characterized in that, The step of filtering resource elements in the frequency domain data stream based on the offset position to obtain the target resource element includes: Based on the offset position, a corresponding enable signal is generated for each resource element in the frequency domain data stream; The resource elements in the frequency domain data stream whose enable signals are in a valid state are identified as the target resource elements.
5. The signal power statistics method according to claim 1, characterized in that, The time-domain signal includes a physical uplink shared channel signal or a physical uplink control channel signal. The process of filtering resource elements in the frequency-domain data stream based on the type of the time-domain signal and the frequency-domain location range to obtain target resource elements includes: Based on the frequency domain location range, determine the target resource block interval corresponding to the physical uplink shared channel signal or the physical uplink control channel signal; Based on the target resource block interval, the resource elements in the frequency domain data stream are filtered to obtain the target resource elements.
6. The signal power statistics method according to claim 1, characterized in that, After latching the sum of squares corresponding to the statistical period, the method further includes: Clear the accumulator corresponding to the square accumulation operation; Determine the next statistical period corresponding to the statistical granularity, and in the next statistical period, continue to obtain the target resource element from the frequency domain data stream, and perform the square accumulation operation on the frequency domain IQ data of the target resource element.
7. The signal power statistics method according to claim 1, characterized in that, After latching the sum of squares corresponding to the statistical period, the method further includes: Write the latched sum of squares into a read-only register; The processor is instructed to read the sum of squares from the read-only register.
8. A signal power statistics device, characterized in that, include: The acquisition module is used to acquire configuration information, wherein the configuration information includes the type, frequency domain location range, target time scale, and statistical granularity of the time domain signal to be power calculated; The transformation module is used to perform a Fourier transform on the time-domain signal to obtain frequency-domain data; The acquisition module is further configured to acquire a frequency domain data stream composed of the frequency domain data, wherein the frequency domain data stream includes multiple resource elements; The filtering module is used to filter resource elements in the frequency domain data stream based on the type of the time domain signal and the frequency domain location range to obtain target resource elements; The calculation module is used to perform a square accumulation operation on the frequency domain IQ data of the target resource element; The latching module is used to latch the square accumulation operation value corresponding to the statistical period when the statistical period corresponding to the statistical granularity ends and the current time scale matches the target time scale, and use the square accumulation operation value as the power statistics result.
9. An electronic device, characterized in that, include: Memory and one or more processors; The memory is used to store one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the signal power statistics method as described in any one of claims 1-7.
10. A storage medium for storing computer-executable instructions, characterized in that, The computer-executable instructions, when executed by a computer processor, are used to perform the signal power statistics method as described in any one of claims 1-7.