5G high-precision sliding window average power statistics method, device, equipment and medium
By adopting the average power statistics method of high-precision sliding windows in the 5G communication system, the problem of unsatisfactory accuracy of the digital domain average power algorithm in the prior art is solved, and accurate statistics and real-time updates of the average power of each link in the 5G communication system are achieved, improving the accuracy and real-timeness of the algorithm.
Patent Information
- Application Number
- CN202510045910.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-13
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2045-01-13
AI Technical Summary
In the existing 5G communication systems, the accuracy of the digital domain average power algorithm is not ideal, and it is impossible to accurately characterize the average power of uplink IQ data, downlink IQ data and feedback IQ data. Especially in the TDD mode, there is a problem of statistically no IQ data time slots, which affects the algorithm accuracy.
The average power statistics method of 5G high-precision sliding windows is used to calculate the average power of downlink IQ data, uplink IQ data and feedback IQ data by setting the subframe ratio register and counter. The average power of each link is calculated using sliding window A and sliding window B, and the maximum average power is converted into digital domain power in dbfs units.
The accuracy of the digital domain average power algorithm in the 5G communication system is improved, and the average power of each link can be accurately characterized, the problem of statistical time slots without IQ data is avoided, and the real-time and accuracy of the algorithm are enhanced.
Smart Images

Figure CN119485452B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of wireless communication technology, and in particular to a 5G high-precision sliding window average power statistics method, device, equipment and medium. Background Art
[0002] In 5G communication systems, the accuracy of the algorithm for statistical digital domain average power not only directly determines the accuracy of the algorithm derived from the digital domain power, but also indirectly affects the accuracy of the means of locating problems by observing the average power. Traditional power statistics only generally calculate the average power of all sampling points in the entire 10msNR wireless frame. First of all, it cannot characterize the accurate average power of uplink IQ data, downlink IQ data, and feedback IQ data. Secondly, under a specific subcarrier spacing, the average power of all points in a symbol cannot be characterized, and the accuracy is obviously insufficient. Finally, when calculating the average power in the time division multiplexing TDD mode, the time slots without IQ data will also be counted, which greatly affects the accuracy of the algorithm. Summary of the invention
[0003] The purpose of the present invention is to overcome the deficiencies in the prior art and provide a 5G high-precision sliding window average power statistics method, device, equipment and medium to solve the technical problem that the accuracy of the existing statistical digital domain average power algorithm is not ideal.
[0004] To achieve the above object, the present invention is implemented by adopting the following technical solutions:
[0005] In a first aspect, the present invention provides a 5G high-precision sliding window average power statistics method, comprising:
[0006] Set a subframe ratio register, and obtain the time occupied by the downlink, the guard interval, and the uplink in the 10ms NR radio frame based on the subframe ratio register;
[0007] Set a counter to count the time lengths of downlink, guard interval and uplink, and set a sliding window A based on the counting result with the time length of the minimum unit symbol symbol;
[0008] Calculate the delayed cross-correlation of the downlink IQ data and the feedback IQ data, and set the sliding window B according to the number of beats of the delayed cross-correlation and the sliding window A;
[0009] The average power of the downlink IQ data and the uplink IQ data is calculated based on the sliding window A, and the average power of the feedback IQ data is calculated based on the sliding window B;
[0010] The average power with the largest value is converted into digital domain power in dbfs as the average power statistical result of the 10ms NR wireless frame.
[0011] Optionally, the setting of the subframe ratio register, and obtaining the time occupied by the downlink, the guard interval, and the uplink in the 10msNR radio frame based on the subframe ratio register includes:
[0012] Define a 1-bit period register to distinguish the period of the subframe ratio. A value of 0 indicates a single period, and a value of 1 indicates a double period.
[0013] Define a 4-bit downlink time slot register to indicate the number of downlink time slots in each cycle;
[0014] Define a 4-bit uplink time slot register to indicate the number of uplink time slots in each cycle;
[0015] Define a 4-bit downlink symbol register in a special time slot, indicating the number of downlink symbols in a special time slot in each cycle;
[0016] Define a 4-bit special time slot guard interval register to indicate the number of guard intervals in the special time slot in each cycle;
[0017] Define a 4-bit uplink symbol register in a special time slot, indicating the number of uplink symbols in a special time slot in each cycle;
[0018] By determining the period of subframe allocation, the number of downlink time slots, the number of uplink time slots, the number of downlink symbols in special time slots, the number of guard intervals in special time slots, and the number of uplink symbols in special time slots, the time occupied by downlink, guard interval, and uplink in a 10msNR wireless frame can be obtained.
[0019] Optionally, setting a counter to count the time lengths of the downlink, the guard interval, and the uplink, and setting a sliding window A based on the counting result with the time length of the minimum unit symbol symbol includes:
[0020] Set a first counter to count the downlink time length starting from the start position of the frame header of the 10msNR wireless frame;
[0021] Set a second counter, taking the end position of the next row as the starting point, to count the time length of the protection interval;
[0022] A third counter is set to count the length of the uplink time with the end position of the protection interval as the starting point;
[0023] A 10ms NR wireless frame contains 20 time slots in total, each time slot contains 14 symbols, symbol 0 contains cp and has a length of 4448, and the length of symbols 1 to 13 is 4384. Based on the counting result, 280 sliding windows A are set with the time length of the minimum unit symbol symbol.
[0024] Optionally, calculating the delayed cross-correlation of the downlink IQ data and the feedback IQ data includes:
[0025] The downlink IQ data and the feedback IQ data are sampled in a grabbing manner, and the delayed cross-correlation of the downlink IQ data and the feedback IQ data is calculated based on the sampling results using the cross-correlation function xcorr in the mathematical tool matlab.
[0026] Optionally, the calculating the average power of the downlink IQ data and the uplink IQ data based on the sliding window A includes:
[0027] The average power of each sliding window A is counted at the end of each sliding window A in sequence. After obtaining the average power of the current sliding window A, it is compared with the average power of the previous sliding window A, and the average power with the larger value is retained as the average power of the current sliding window A. Finally, the average power of each sliding window A and the average power with the largest value are output;
[0028] Calculating the average power of the feedback IQ data based on the sliding window B includes:
[0029] The average power of each sliding window B is counted at the end of each sliding window B in sequence. After obtaining the average power of the current sliding window B, it is compared with the average power of the previous sliding window B, and the average power with the larger value is retained as the average power of the current sliding window B. Finally, the average power of each sliding window B and the average power with the largest value are output.
[0030] Optionally, the average power of each sliding window A is:
[0031]
[0032] In the formula, For the The average power of a sliding window A, For the The number of data points in a sliding window A, For the The first In-phase data value and quadrature data value of IQ data;
[0033] The average power of each sliding window B is:
[0034]
[0035] In the formula, For the The average power of sliding window B, For the The number of data points in the sliding window B, For the The first The in-phase data value and the quadrature data value of the IQ data.
[0036] Optionally, converting the average power having the largest value into digital domain power in dbfs includes:
[0037]
[0038] In the formula, is the maximum average power in sliding window A The corresponding digital domain power, is the maximum power value that can support statistics;
[0039]
[0040] In the formula, is the average power with the largest value in sliding window B The corresponding digital domain power.
[0041] In a second aspect, the present invention provides a 5G high-precision sliding window average power statistics device, comprising:
[0042] A time acquisition module is configured to set a subframe ratio register, and acquire the time occupied by the downlink, the guard interval and the uplink in the 10ms NR wireless frame based on the subframe ratio register;
[0043] A first sliding window setting module is configured to set a counter to count the time lengths of the downlink, the guard interval and the uplink, and to set a sliding window A based on the counting result with the time length of the minimum unit symbol symbol;
[0044] A second sliding window setting module is configured to calculate the delayed cross-correlation of the downlink IQ data and the feedback IQ data, and set the sliding window B according to the number of beats of the delayed cross-correlation and the sliding window A;
[0045] An average power calculation module is configured to calculate the average power of downlink IQ data and uplink IQ data based on sliding window A, and calculate the average power of feedback IQ data based on sliding window B;
[0046] The digital power conversion module is configured to convert the average power into digital domain power in dbfs.
[0047] In a third aspect, the present invention provides an electronic device, including a processor and a storage medium;
[0048] The storage medium is used to store instructions;
[0049] The processor is used to operate according to the instructions to execute the steps according to the above method.
[0050] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above method when executed by a processor.
[0051] Compared with the prior art, the present invention has the following beneficial effects:
[0052] The present invention provides a 5G high-precision sliding window average power statistics method, device, equipment and medium. 1) In TDD mode, the symbol symbol is used as a sliding window to count the average power of all sampling points in the sliding window, thereby improving the accuracy of the algorithm. 2) In TDD mode, by comparing the maximum value of the average power of all sliding windows in the downlink, uplink and feedback link, the accuracy of the algorithm is improved. 3) In TDD mode, downlink IQ data and feedback IQ data are calculated respectively by using the downlink time slot, and uplink IQ data is calculated by using the uplink time slot, thereby avoiding the situation where the overall power statistics value is low due to the statistics of the time slot without IQ data, thereby improving the accuracy of the algorithm. 4) By calculating the cross-correlation of the downlink IQ data and the feedback IQ data, and considering the time lag of the feedback IQ data relative to the downlink IQ data at the same time, the correct relationship between the downlink IQ data and the corresponding feedback IQ data can be accurately reflected, thereby improving the accuracy and authenticity of the algorithm. 5) It is updated every 10ms, and the real average power of the downlink, uplink and feedback link can be reflected in real time, thereby improving the accuracy and real-time performance of the algorithm. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] Figure 1 It is a flow chart of the 5G high-precision sliding window average power statistics method provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The present invention will be further described below in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present invention, and cannot be used to limit the protection scope of the present invention.
[0055] Embodiment 1:
[0056] In a first aspect, an embodiment of the present invention provides a 5G high-precision sliding window average power statistics method, comprising the following steps:
[0057] Step S1, set the subframe ratio register, and obtain the time occupied by the downlink, protection interval and uplink in the 10msNR wireless frame based on the subframe ratio register.
[0058] Specifically in this implementation, setting the subframe ratio register includes:
[0059] Define a 1-bit period register to distinguish the period of the subframe ratio. A value of 0 indicates a single period, and a value of 1 indicates a double period.
[0060] Define a 4-bit downlink time slot register to indicate the number of downlink time slots in each cycle;
[0061] Define a 4-bit uplink time slot register to indicate the number of uplink time slots in each cycle;
[0062] Define a 4-bit downlink symbol register in a special time slot, indicating the number of downlink symbols in a special time slot in each cycle;
[0063] Define a 4-bit special time slot guard interval register to indicate the number of guard intervals in the special time slot in each cycle;
[0064] A 4-bit uplink symbol register in a special time slot is defined to indicate the number of uplink symbols in a special time slot in each cycle.
[0065] Specifically in this implementation, the time occupied by the downlink, the guard interval, and the uplink in the 10ms NR radio frame is obtained based on the subframe ratio register, including:
[0066] By determining the period of subframe allocation, the number of downlink time slots, the number of uplink time slots, the number of downlink symbols in special time slots, the number of guard intervals in special time slots, and the number of uplink symbols in special time slots, the time occupied by downlink, guard interval, and uplink in a 10msNR wireless frame can be obtained.
[0067] Taking the frequency of subcarrier spacing as 30khz as an example, the period register is configured as 1'b0, the downlink time slot register is configured as 4'h7, the uplink time slot register is configured as 4'h2, the downlink symbol register in the special time slot is configured as 4'h6, the protection interval register in the special time slot is configured as 4'h4, and the uplink symbol register in the special time slot is configured as 4'h4, which means that the subframe ratio is 7:3 of a single cycle, of which the special time slot is 6:4:4, and there are two repeated 5ms subframes in the 10msNR wireless frame, that is, the subframe ratio of the entire 10msNR wireless frame is 7D1S2U7D1S2U, where D represents the downlink time slot, S represents the special time slot, and U represents the uplink time slot. There are 6 downlink symbols, 4 protection intervals and 4 uplink symbols in S.
[0068] When using a clock frequency of 122.88Mhz for statistics, the unit clock cycle is 8.138ns, the length of symbol symbol0 is (4096+288+64)=4448 clock cycles, the length of symbol symbol1~symbol13 is (4096+288)=4384 clock cycles, the length of a time slot is 61440 clock cycles, and the downlink time length in a 5ms of a 10msNR wireless frame is: [61440 *7+(64+288+4096)+(4096+288)*5]*8.138ns=456448*8.138ns=3.715ms, the protection interval length is: (4096+288)*4*8.138ns=17536*8.138ns=0.142ms, and the uplink time length is [(4096+288)*4+61440*2]*8.138ns=140416*8.138ns=1.143ms.
[0069] Step S2: Set a counter to count the time lengths of the downlink, the guard interval, and the uplink, and set a sliding window A based on the counting result and the time length of the minimum unit symbol symbol.
[0070] On the premise that the time length of downlink, protection interval and uplink is known, the duration and specific position of the downlink, protection interval and uplink in the complete 10ms can be determined according to the starting position of the 10msNR radio frame header.
[0071] Taking the first 5ms of a 10ms NR radio frame as an example, set the counter:
[0072] Set a first counter (count 0~456447) to count the length of downlink time starting from the start position of the frame header of the 10msNR wireless frame;
[0073] Set the second counter (count 0~17535), starting from the end position of the next line, and count the length of the protection interval;
[0074] A third counter (count 0 to 140415) is set to count the length of the uplink time starting from the end position of the protection interval.
[0075] Specifically in this embodiment, setting the sliding window A based on the time length of the minimum unit symbol symbol based on the counting result includes:
[0076] A 10ms NR wireless frame contains 20 time slots in total, each time slot contains 14 symbols, symbol 0 contains cp and has a length of 4448, and the length of symbols 1 to 13 is 4384. Based on the counting result, 280 sliding windows A are set with the time length of the minimum unit symbol symbol.
[0077] Step S3: Calculate the delayed cross-correlation of the downlink IQ data and the feedback IQ data, and set the sliding window B according to the number of beats of the delayed cross-correlation and the sliding window A.
[0078] Since the downlink IQ data in the transmission direction passes through the digital link, then the RF link, then the link of the signal amplifier PA, then returns to the RF link, and finally returns to the digital link to become the IQ data in the feedback direction, the feedback IQ data has a time lag relative to the downlink IQ data. Therefore, at the same moment, the feedback IQ data corresponding to the downlink IQ data is inconsistent. It is necessary to calculate the cross-correlation of the downlink IQ data and the feedback IQ data, that is, calculate the downlink IQ data at the current moment, and how much delay on the link it takes to obtain its corresponding feedback IQ data.
[0079] Specifically in this embodiment, the downlink IQ data and the feedback IQ data are sampled in a grabbing manner, and the delayed cross-correlation of the downlink IQ data and the feedback IQ data is calculated based on the sampling results using a cross-correlation function xcorr in a mathematical tool matlab.
[0080] There are many specific ways to capture data, such as writing data into registers in sequence, reading them out through the operating system PS, generating a bing file, or capturing data using hardware's double-rate synchronous dynamic random access memory DDR. This method is not within the scope of this patent.
[0081] Then, the frame header starting position of the 10msNR wireless frame, the downlink counter and the sliding window are delayed by the number of beats of the cross-correlation value to obtain a new starting position, a new downlink time slot counter and a new sliding window, which are used to accurately calculate the average power of the feedback IQ data corresponding to the downlink IQ data.
[0082] Step S4: Calculate the average power of the downlink IQ data and the uplink IQ data based on the sliding window A, and calculate the average power of the feedback IQ data based on the sliding window B.
[0083] When counting the average power of downlink IQ data and uplink IQ data, the starting position of the 10msNR wireless frame header is used as the reference, and when counting the average power of feedback IQ data, the new starting position is used as the reference. Since the starting position of the 10msNR wireless frame is aligned with the position of the air interface, its starting position is certain, so its downlink, protection interval and uplink duration and location are also certain, so the average power of the downlink IQ data is counted at the downlink position, and the average power of the uplink IQ data is calculated at the uplink position. At the same time, the feedback IQ data corresponding to the downlink IQ data is delayed in time, and the IQ data cannot be advanced in the time domain, so relatively, the starting position of the 10msNR wireless frame header is delayed by the number of beats of the above-mentioned cross-correlation value, which can be said to advance the feedback IQ data by the number of beats of the cross-correlation value, so when calculating the feedback IQ data, the new starting position is used as the reference.
[0084] The power of each IQ data is counted separately, and the power sum of all IQ data is counted in each sliding window. First, the power of each IQ data is counted. The specific calculation formula is Here, I represents 16-bit in-phase data I, whose highest bit is the sign bit, and Q represents 16-bit orthogonal data. The specific calculation can be calculated separately by Xilinx multiplier and Then, the calculated value is added through the Xilinx adder. and Then, the power sum of 4096 IQ data is counted in each sliding window. Because it is easier to implement division by multiples of 2 in digital devices such as field programmable gate arrays (FPGAs), for example, to implement the operation of dividing by 4096, you only need to shift the required data right by 10 bits. So here, we discard the redundant IQ data and only select 4096 points. The specific calculation formula is Since the sliding window is divided according to the time length of the symbol, the power sum is calculated based on the power sum of 4096 IQ data in each symbol in the 10msNR wireless frame.
[0085] In each sliding window, the power sum of the IQ data is divided by the number of IQ data points in the sliding window. The power sum of the IQ data obtained in step 5 is divided by 4096, and the power sum of the IQ data is shifted right by 10 bits to obtain the average power sum of the IQ data of all sliding windows in the 10msNR wireless frame, that is, the average power.
[0086] At the end of each sliding window, the maximum value of the average power of each sliding window is compared, and the maximum value of the average power is output at the end of the downlink time slot and the end of the uplink time slot. When calculating the average power of downlink IQ data, first at the end of the first sliding window based on the 10msNR wireless frame header, the average power of the first sliding window is output, and then at the end of each subsequent sliding window, the larger value of the average power obtained by statistics of the current sliding window and the previous sliding window is compared, and at the end of the downlink counter, that is, at the end of the last sliding window of the downlink, the maximum value of the average power is output. This maximum value is the maximum value of the average power of the downlink IQ data counted in all downlink sliding windows; when calculating the average power of uplink IQ data, first at the end of the first sliding window of the uplink, the average power of the first sliding window is output, and then at the end of each subsequent sliding window, the current sliding window is compared with the previous sliding window. The larger value of the average power obtained by statistics is output, and at the end of the uplink counter, that is, at the end of the last uplink sliding window, the maximum value of the average power is output, and this maximum value is the maximum value of the average power of the uplink IQ data counted in all uplink sliding windows; when calculating the average power of the feedback IQ data, first at the end of the first sliding window based on the new starting position, the average power of the first sliding window is output, and then at the end of each subsequent sliding window, the larger value of the average power obtained by statistics of the current sliding window and the previous sliding window is compared, and at the end of the new downlink counter, the maximum value of the average power is output, and this maximum value is the maximum value of the average power of the feedback IQ data counted in all downlink sliding windows based on the new starting position.
[0087] Specifically in this implementation mode: calculating the average power of downlink IQ data and uplink IQ data based on sliding window A includes:
[0088] The average power of each sliding window A is counted at the end of each sliding window A in sequence. After obtaining the average power of the current sliding window A, it is compared with the average power of the previous sliding window A, and the average power with the larger value is retained as the average power of the current sliding window A. Finally, the average power of each sliding window A and the average power with the largest value are output.
[0089] The average power of each sliding window A is:
[0090]
[0091] In the formula, For the The average power of a sliding window A, For the The number of data points in a sliding window A, For the The first The in-phase data value and the quadrature data value of the IQ data.
[0092] Calculating the average power of the feedback IQ data based on the sliding window B includes:
[0093] The average power of each sliding window B is counted at the end of each sliding window B in sequence. After obtaining the average power of the current sliding window B, it is compared with the average power of the previous sliding window B, and the average power with the larger value is retained as the average power of the current sliding window B. Finally, the average power of each sliding window B and the average power with the largest value are output.
[0094] The average power of each sliding window B is:
[0095]
[0096] In the formula, For the The average power of sliding window B, For the The number of data points in the sliding window B, For the The first The in-phase data value and the quadrature data value of the IQ data.
[0097] Step S5: Convert the average power with the largest value into digital domain power in dbfs as the average power statistics result of the 10ms NR wireless frame.
[0098] Specifically in this implementation, the digital domain power is:
[0099]
[0100] In the formula, is the maximum average power in sliding window A The corresponding digital domain power, is the maximum power value that can support statistics;
[0101]
[0102] In the formula, is the average power with the largest value in sliding window B The corresponding digital domain power.
[0103] When the bit width of IQ data is 16 bits, or The maximum value of is, excluding the highest sign bit, which is the multiplication of two 15-bit numbers, that is, a 30-bit number. The maximum value of is the sum of two 30-bit numbers, that is, a 31-bit number. The maximum sum of the squares of the IQ data obtained through the above analysis is a 31-bit number, so the formula For 2 31 , that is, the formula is simplified to .
[0104] Embodiment 2:
[0105] An embodiment of the present invention provides a 5G high-precision sliding window average power statistics device, including:
[0106] A time acquisition module is configured to set a subframe ratio register, and obtain the time occupied by the downlink, the guard interval and the uplink in the 10ms NR radio frame based on the subframe ratio register;
[0107] A first sliding window setting module is configured to set a counter to count the time lengths of the downlink, the guard interval and the uplink, and to set a sliding window A based on the counting result with the time length of the minimum unit symbol symbol;
[0108] A second sliding window setting module is configured to calculate the delayed cross-correlation of the downlink IQ data and the feedback IQ data, and set the sliding window B according to the number of delay cross-correlation and the sliding window A;
[0109] An average power calculation module is configured to calculate the average power of downlink IQ data and uplink IQ data based on sliding window A, and calculate the average power of feedback IQ data based on sliding window B;
[0110] The digital power conversion module is configured to convert the average power into digital domain power in dbfs.
[0111] Embodiment three:
[0112] Based on the 5G high-precision sliding window average power statistics method provided in Example 1, an embodiment of the present invention provides an electronic device, including a processor and a storage medium;
[0113] The storage medium is used to store instructions;
[0114] The processor is used to operate according to the instructions to execute the steps according to the above method.
[0115] Embodiment 4:
[0116] Based on the 5G high-precision sliding window average power statistics method provided in Example 1, an embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, which implements the steps of the above method when executed by a processor.
[0117] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0118] The present invention is described with reference to flowcharts and / or block diagrams of methods, devices (systems), and computer program products according to embodiments of the present invention. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0119] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0120] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0121] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the technical principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A 5G high-precision sliding window average power statistics method, characterized in that: include: Set a subframe ratio register, and obtain the time occupied by the downlink, the guard interval, and the uplink in the 10ms NR radio frame based on the subframe ratio register; Set a counter to count the time lengths of downlink, guard interval and uplink, and set a sliding window A based on the counting result with the time length of the minimum unit symbol symbol; Calculate the delayed cross-correlation of the downlink IQ data and the feedback IQ data, and set the sliding window B according to the number of beats of the delayed cross-correlation and the sliding window A; The average power of the downlink IQ data and the uplink IQ data is calculated based on the sliding window A, and the average power of the feedback IQ data is calculated based on the sliding window B; The average power with the largest value is converted into digital domain power in dbfs as the average power statistical result of the 10ms NR wireless frame.
2. The 5G high-precision sliding window average power statistics method according to claim 1 is characterized in that: The subframe ratio register is set, and the time occupied by the downlink, the guard interval, and the uplink in the 10ms NR wireless frame is obtained based on the subframe ratio register, including: Define a 1-bit period register to distinguish the period of the subframe ratio. A value of 0 indicates a single period, and a value of 1 indicates a double period. Define a 4-bit downlink time slot register to indicate the number of downlink time slots in each cycle; Define a 4-bit uplink time slot register to indicate the number of uplink time slots in each cycle; Define a 4-bit downlink symbol register in a special time slot, indicating the number of downlink symbols in a special time slot in each cycle; Define a 4-bit special time slot guard interval register to indicate the number of guard intervals in the special time slot in each cycle; Define a 4-bit uplink symbol register in a special time slot, indicating the number of uplink symbols in a special time slot in each cycle; By determining the period of subframe allocation, the number of downlink time slots, the number of uplink time slots, the number of downlink symbols in special time slots, the number of guard intervals in special time slots, and the number of uplink symbols in special time slots, the time occupied by downlink, guard interval, and uplink in a 10msNR wireless frame can be obtained.
3. The 5G high-precision sliding window average power statistics method according to claim 1 is characterized in that: The setting of the counter to count the time lengths of the downlink, the guard interval, and the uplink, and setting the sliding window A based on the counting result with the time length of the minimum unit symbol symbol includes: Set a first counter to count the downlink time length starting from the start position of the frame header of the 10msNR wireless frame; Set a second counter, taking the end position of the next row as the starting point, to count the time length of the protection interval; A third counter is set to count the length of the uplink time with the end position of the protection interval as the starting point; A 10ms NR wireless frame contains 20 time slots in total, each time slot contains 14 symbols, symbol 0 contains cp and has a length of 4448, and the length of symbols 1 to 13 is 4384. Based on the counting result, 280 sliding windows A are set with the time length of the minimum unit symbol symbol.
4. The 5G high-precision sliding window average power statistics method according to claim 1 is characterized in that: The calculating the delayed cross-correlation of the downlink IQ data and the feedback IQ data comprises: The downlink IQ data and the feedback IQ data are sampled in a grabbing manner, and the delayed cross-correlation of the downlink IQ data and the feedback IQ data is calculated based on the sampling results using the cross-correlation function xcorr in the mathematical tool matlab.
5. The 5G high-precision sliding window average power statistics method according to claim 1 is characterized in that: Calculating the average power of downlink IQ data and uplink IQ data based on sliding window A includes: The average power of each sliding window A is counted at the end of each sliding window A in sequence. After obtaining the average power of the current sliding window A, it is compared with the average power of the previous sliding window A, and the average power with the larger value is retained as the average power of the current sliding window A. Finally, the average power of each sliding window A and the average power with the largest value are output; Calculating the average power of the feedback IQ data based on the sliding window B includes: The average power of each sliding window B is counted at the end of each sliding window B in sequence. After obtaining the average power of the current sliding window B, it is compared with the average power of the previous sliding window B, and the average power with the larger value is retained as the average power of the current sliding window B. Finally, the average power of each sliding window B and the average power with the largest value are output.
6. The 5G high-precision sliding window average power statistics method according to claim 5 is characterized in that: The average power of each sliding window A is: ; In the formula, For the The average power of a sliding window A, For the The number of data points in a sliding window A, For the The first In-phase data value and quadrature data value of IQ data; The average power of each sliding window B is: ; In the formula, For the The average power of sliding window B, For the The number of data points in the sliding window B, For the The first The in-phase data value and the quadrature data value of the IQ data.
7. The 5G high-precision sliding window average power statistics method according to claim 1 is characterized in that: The step of converting the average power with the largest value into digital domain power in dbfs comprises: ; In the formula, is the average power with the largest value in sliding window A The corresponding digital domain power, The maximum power value to support statistics; ; In the formula, is the maximum average power in sliding window B The corresponding digital domain power.
8. A 5G high-precision sliding window average power statistics device, characterized in that: include: A time acquisition module is configured to set a subframe ratio register, and acquire the time occupied by the downlink, the guard interval and the uplink in the 10ms NR wireless frame based on the subframe ratio register; A first sliding window setting module is configured to set a counter to count the time lengths of the downlink, the guard interval and the uplink, and to set a sliding window A based on the counting result with the time length of the minimum unit symbol symbol; A second sliding window setting module is configured to calculate the delayed cross-correlation of the downlink IQ data and the feedback IQ data, and set the sliding window B according to the number of beats of the delayed cross-correlation and the sliding window A; An average power calculation module is configured to calculate the average power of downlink IQ data and uplink IQ data based on sliding window A, and calculate the average power of feedback IQ data based on sliding window B; The digital power conversion module is configured to convert the average power with the largest value into digital domain power in dbfs as the average power statistical result of the 10ms NR wireless frame.
9. An electronic device, characterized in that: including processor and storage medium; The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-5.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Digital predistortion method and device for TD-SCDMA system
CN101784108A
Signal monitoring and optimizing method and system
CN103441805A