Transceiver flatness compensation method and device, storage medium and electronic device

By acquiring and analyzing the uplink RF calibration file of the transceiver, fitting the amplitude information of the expected frequency point, and flatness compensation is performed based on this information, solving the problem of unsatisfactory uplink flatness of the transceiver, achieving a higher level channel consistency and sensitivity.

CN119496571APending Publication Date: 2025-02-21ZTE CORP
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311058846.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-08-21
Publication Date
2025-02-21

AI Technical Summary

Technical Problem

In the prior art, the uplink flatness index of the transceiver is not ideal, and the compensation accuracy is low and the calculation complexity is high. There are limitations, making it difficult to effectively improve channel consistency and sensitivity.

Method used

By obtaining the uplink RF calibration file of the transceiver, amplitude information of the desired frequency point is parsed and fitted, and flatness compensation is performed based on this information to ensure that the compensation process does not introduce an average gain.

Benefits of technology

It improves the consistency and sensitivity between multi-channel uplink transceiver channels, improves the flatness index, and solves the problems of low compensation accuracy and high computational complexity.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119496571A_ABST
    Figure CN119496571A_ABST
Patent Text Reader

Abstract

The invention provides a flatness compensation method and device of a transceiver, a storage medium and an electronic device, and the method comprises the steps: obtaining an uplink radio frequency calibration file of the transceiver; analyzing the uplink radio frequency calibration file to obtain uplink channel calibration offline parameters of all channels of the transceiver; fitting amplitude information of an expected frequency point according to the uplink channel calibration offline parameter; and compensating the uplink flatness of the transceiver based on the amplitude information. Through the embodiment of the invention, the problems of low flatness compensation precision, high calculation complexity, compensation value limitation and the like of the existing method are solved, the flatness index is improved, and the performance indexes such as consistency, sensitivity and the like among uplink multiple channels of the transceiver are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of wireless communication technology, and in particular to a flatness compensation method and device for a transceiver, a storage medium, and an electronic device. Background Art

[0002] Synaesthesia integration technology requires future communication systems to actively recognize and analyze channel characteristics while transmitting information through wireless channels. Therefore, the perception accuracy and resolution of channel characteristics are required to be higher, and the requirements for the flatness and consistency of the uplink channel of the transceiver are also higher. However, due to the limitations of the hardware system in the transceiver, the uplink flatness index is not ideal and has a certain degree of discreteness.

[0003] One compensation solution in the related art is to optimize the design of the hardware system to improve the flatness index. Another is to improve the flatness index by performing flatness compensation in the digital domain of the signal without changing the hardware system of the transceiver through the software system. In the related technical solutions, either only the flatness characteristics of the band edge are improved, or the calculation is complex and the compensation accuracy is low, which has limitations and other problems.

[0004] With respect to the above-mentioned problems existing in the related technologies, no efficient and accurate solutions have been found yet. Summary of the invention

[0005] The present invention provides a flatness compensation method and device for a transceiver, a storage medium, and an electronic device, which have solved the above-mentioned technical problems existing in the related art.

[0006] According to one embodiment of the present invention, a method for compensating flatness of a transceiver is provided, characterized in that it includes: acquiring an uplink RF calibration file of the transceiver; parsing the uplink RF calibration file to obtain uplink channel calibration offline parameters of all channels of the transceiver; fitting amplitude information of a desired frequency point according to the uplink channel calibration offline parameters; and compensating the uplink flatness of the transceiver based on the amplitude information.

[0007] Optionally, fitting the amplitude information of the expected frequency point according to the uplink channel calibration offline parameters includes: inverting and normalizing the first gain value in the uplink channel calibration offline parameters to obtain a second gain value for each frequency point; converting the second gain value into an amplitude; using the amplitude to construct a first matrix and a second matrix, and using the first matrix and the second matrix to obtain polynomial fitting coefficients; fitting the amplitude information of the expected frequency point according to the polynomial fitting coefficients.

[0008] Optionally, using amplitude to construct a first matrix and a second matrix, and using the first matrix and the second matrix to obtain polynomial fitting coefficients includes: constructing a first matrix according to the number of offline parameter frequencies, the frequency information of the uplink calibration table and the polynomial order; constructing a second matrix according to the number of offline parameter frequencies and the amplitude of the second gain value; and obtaining the polynomial fitting coefficient W according to the first matrix and the second matrix.

[0009] Optionally, fitting the amplitude information of the expected frequency point according to the polynomial fitting coefficients includes: mapping each term of the polynomial fitting coefficients with the corresponding power of the frequency point information to be calculated to obtain multiple mapping results; and determining the sum of the multiple mapping results as the amplitude information of the expected frequency point.

[0010] Optionally, compensating the uplink flatness of the transceiver based on the amplitude information includes: extracting amplitude information of multiple frequency points based on the center frequency and bandwidth of the current carrier to be calculated; calculating the average power of the multiple frequency points; normalizing the single-point amplitude according to the average power to obtain a normalized amplitude; and multiplying the normalized amplitude by the signal frequency domain to compensate the frequency domain.

[0011] Optionally, before compensating the uplink flatness of the transceiver based on the amplitude information, the method also includes: obtaining a threshold value for uplink flatness compensation, and calculating a third gain value at the RB level; determining whether the third gain value exceeds the threshold value; if the third gain value does not exceed the threshold value, determining to compensate for the uplink flatness of the transceiver based on the amplitude information.

[0012] According to another embodiment of the present invention, a flatness compensation device for a transceiver is provided, including: an acquisition module, used to acquire an uplink RF calibration file of the transceiver; a parsing module, used to parse the uplink RF calibration file to obtain uplink channel calibration offline parameters of all channels of the transceiver; a fitting module, used to fit amplitude information of an expected frequency point according to the uplink channel calibration offline parameters; and a compensation module, used to compensate for the uplink flatness of the transceiver based on the amplitude information.

[0013] Optionally, the fitting module includes: an inversion unit, used to invert and normalize the first gain value in the uplink channel calibration offline parameter to obtain a second gain value for each frequency point; a conversion unit, used to convert the second gain value into an amplitude; a construction unit, used to construct a first matrix and a second matrix using the amplitude, and use the first matrix and the second matrix to obtain polynomial fitting coefficients; a fitting module, used to fit the amplitude information of the expected frequency point according to the polynomial fitting coefficients.

[0014] Optionally, the construction unit includes: a first construction subunit, used to construct a first matrix according to the number of offline parameter frequencies, the frequency information of the uplink calibration table and the polynomial order; a second construction subunit, used to construct a second matrix according to the number of offline parameter frequencies and the amplitude of the second gain value; and a calculation subunit, used to obtain the polynomial fitting coefficient W according to the first matrix and the second matrix.

[0015] Optionally, the fitting unit includes: a mapping subunit, used to map each term of the polynomial fitting coefficient with the corresponding power of the frequency point information to be calculated to obtain multiple mapping results; and a fitting subunit, used to determine the sum of the multiple mapping results as the amplitude information of the expected frequency point.

[0016] Optionally, the compensation module includes: an extraction unit, used to extract the amplitude information of multiple frequency points based on the center frequency and bandwidth of the current carrier to be calculated; a calculation unit, used to calculate the average power of multiple frequency points; a processing unit, used to normalize the single-point amplitude according to the average power to obtain a normalized amplitude; and a compensation unit, used to multiply the normalized amplitude by the signal frequency domain to compensate the frequency domain.

[0017] Optionally, the device also includes: a gain module, used to obtain a threshold value for uplink flatness compensation and calculate a third gain value at the RB level before the compensation module compensates for the uplink flatness of the transceiver based on the amplitude information; a judgment module, used to judge whether the third gain value exceeds the threshold value; and a determination module, used to determine to compensate for the uplink flatness of the transceiver based on the amplitude information if the third gain value does not exceed the threshold value.

[0018] According to yet another embodiment of the present invention, a storage medium is provided, wherein a computer program is stored in the storage medium, wherein the computer program is configured to execute the method of any one of claims 1 to 7 when run.

[0019] According to another embodiment of the present invention, there is provided an electronic device, comprising a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the method in any one of claims 1 to 7.

[0020] Through the embodiment of the present invention, an uplink radio frequency calibration file of a transceiver is obtained, the uplink radio frequency calibration file is parsed, and uplink channel calibration offline parameters of all channels of the transceiver are obtained. The amplitude information of the expected frequency point is fitted according to the uplink channel calibration offline parameters, and the uplink flatness of the transceiver is compensated based on the amplitude information. The embodiment of the present invention fits the amplitude of the full receiving bandwidth according to the offline parameters to ensure that the flatness compensation does not introduce the average gain, thereby solving the problems of low flatness compensation accuracy, high calculation complexity, and limitations of compensation values ​​in the related art, improving the flatness index, and enhancing the consistency and sensitivity between the uplink multi-channels of the transceiver. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0022] Figure 1 is a hardware structure block diagram of a transceiver according to an embodiment of the present invention;

[0023] Figure 2 is a flow chart of flatness compensation of a transceiver according to an embodiment of the present invention;

[0024] Figure 3 is a hardware schematic diagram of a transceiver in an embodiment of the present invention;

[0025] Figure 4 It is a flow chart of fitting the amplitude of the 1M interval of the full receiving bandwidth according to the offline parameters in an embodiment of the present invention;

[0026] Figure 5 Flowchart of extracting the amplitude information of the corresponding carrier and performing reverse complementation in an embodiment of the present invention

[0027] Figure 6 4 is an overall flow chart of flatness compensation of a transceiver according to an embodiment of the present invention. DETAILED DESCRIPTION

[0028] In order to enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in the field without creative work should fall within the scope of protection of the present application. It should be noted that the embodiments in the present application and the features in the embodiments can be combined with each other without conflict.

[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0030] Example 1

[0031] The method embodiment provided in the first embodiment of the present application can be executed in a base station, an antenna, a transceiver or a similar computing device. Taking the operation on the transceiver as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a transceiver according to an embodiment of the present invention. Figure 1 As shown, the transceiver may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data. Optionally, the above transceiver may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the above transceiver. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0032] The memory 104 can be used to store transceiver programs, for example, software programs and modules of application software, such as a transceiver program corresponding to a flatness compensation method of a transceiver in an embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the transceiver program stored in the memory 104, that is, to implement the above method. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the transceiver via a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0033] The transmission device 106 is used to receive or send data via a system software. Specific examples of the above-mentioned system software may include BSP and DSP software. In one example, the BSP may obtain uplink calibration parameters through the transmission device 106. In one example, the BSP may send uplink calibration gain information of all channels, including frequency points and gain information, to the DSP through a message through the transmission device 106.

[0034] In this embodiment, a flatness compensation method for a transceiver is provided. Figure 2 is a flow chart of a flatness compensation method for a transceiver according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0035] Step S202, obtaining an uplink radio frequency calibration file of the transceiver;

[0036] Optionally, the method of obtaining the uplink radio frequency calibration file of the transceiver is to obtain uplink calibration parameters through BSP, BSP is one of the system software between the mainboard hardware and the operating system, and the uplink radio frequency calibration file can be a txt format file, such as RxRssi.txt.

[0037] Figure 3 It is a hardware schematic diagram of the transceiver in the embodiment of the present invention, including four parts: an uplink digital signal processing link, an uplink analog signal processing link, a downlink digital signal processing link and a downlink analog signal processing link. The uplink refers to the physical channel of the signal from the terminal to the base station, and the terminal transmits and the base station receives. The downlink refers to the physical channel of the signal from the base station to the terminal, and the base station transmits and the terminal receives. The analog signal is a constantly changing physical quantity representation of a signal and information, and the digital signal is a dispersion of a signal and an independent variable and a dependent variable. The present application does not change the uplink analog link design, and completes the uplink flatness compensation on the uplink digital signal processing link. Specifically, the uplink RF calibration file in the transceiver is used to calculate the uplink flatness compensation coefficient using a certain high-order fitting algorithm, and then the uplink receiving channel frequency domain is compensated.

[0038] Step S204, parsing the uplink radio frequency calibration file to obtain uplink channel calibration offline parameters of all channels of the transceiver;

[0039] Optionally, the method of parsing the uplink RF calibration file is that after the transceiver is powered on, the BSP parses the uplink RF calibration file according to the set data format, and sends the uplink calibration gain information of all channels, including frequency points and gain information, to the DSP through a message. The DSP is responsible for processing the digital signal, and the BSP and the DSP transmit information through messages. The sending method can be sending through a newly added message interface.

[0040] Step S206, fitting the amplitude information of the expected frequency point according to the uplink channel calibration offline parameters;

[0041] Step S208: compensating for uplink flatness of the transceiver based on the amplitude information.

[0042] Through the above steps, the uplink RF calibration file of the transceiver is obtained, the uplink RF calibration file is parsed, the uplink channel calibration offline parameters of all channels of the transceiver are obtained, the amplitude information of the expected frequency point is fitted according to the uplink channel calibration offline parameters, and the uplink flatness of the transceiver is compensated based on the amplitude information. The embodiment of the present invention fits the amplitude of the full receiving bandwidth according to the offline parameters to ensure that the flatness compensation does not introduce the average gain, solves the problems of low flatness compensation accuracy, high calculation complexity, and limitations of compensation values ​​in the existing method, improves the flatness index, and improves the performance indicators such as consistency and sensitivity between uplink multi-channels of the transceiver.

[0043] Figure 4 FIG. 1 is a flow chart of using the uplink channel calibration offline parameter to fit the amplitude of the full receiving bandwidth 1M interval in an embodiment of the present invention, such as Figure 4 As shown, the process includes the following steps:

[0044] S11, inverting and normalizing the first gain value in the uplink channel calibration offline parameter to obtain a second gain value for each frequency point;

[0045] In one example, the receiving calibration table is the channel gain value of each frequency point of each channel, in dB, and the gain value is negated. Only the relative value of different frequency points of the same channel is concerned, not the absolute gain, to ensure the dynamic range of the calculation, and the gain of each frequency point of the same channel is reset to zero. The specific calculation method is to average the gain of all frequency points of the current channel, subtract the gain value of each frequency point from the average, and make a record to calculate the public

[0046]

[0047] The formula is: GaindBf k =GaindBAvg-GaindBOrgf k , where the parameter GaindBOrgf k The parameter GaindBAvg is the average gain of all frequency points of the current channel; the parameter GaindBf is the average gain of all frequency points of the current channel. k is the second gain value after zeroing.

[0048] S12, converting the second gain value into an amplitude;

[0049] In one example, the calculation formula for converting the second gain value into the amplitude is: The second gain value is the inverted and zeroed first gain value.

[0050] S13, constructing a first matrix and a second matrix using the amplitude, and obtaining polynomial fitting coefficients using the first matrix and the second matrix, and fitting the amplitude information of the expected frequency point according to the polynomial fitting coefficients;

[0051] In one example, the first matrix (R L*(K+1) ) and the second matrix (Z L*1 ), and using the first matrix and the second matrix to obtain the polynomial fitting coefficients include:

[0052] The first matrix is ​​constructed using the following formula: Wherein, f is a frequency point in the uplink calibration table, L is the number of offline parameter frequency points, K is the polynomial order, L ≥ K + 1;

[0053] The second matrix is ​​constructed using the following formula:

[0054] Where L is the number of offline parameter frequency points, GainAbs is the amplitude of the second gain value;

[0055] The polynomial fitting coefficient W is obtained by using the following formula according to the first matrix and the second matrix: W = (R H R) -1 (R H Z), K is the polynomial order.

[0056] The amplitude information of the expected frequency point is calculated based on the frequency point information to be calculated and the polynomial fitting coefficient, and each item of the polynomial fitting coefficient is mapped to the corresponding power of the frequency point information to be calculated to obtain multiple mapping results; and the sum of the multiple mapping results is determined as the amplitude information of the expected frequency point.

[0057] In one example, fitting the amplitude information of the expected frequency point according to the polynomial fitting coefficient includes: fitting the amplitude information of the expected frequency point using the following formula: GainAbsf m : Wherein, fm is the frequency point information to be calculated, wk is the polynomial fitting coefficient W, and K is the polynomial order.

[0058] Figure 5 is a flow chart of extracting the amplitude information of the corresponding carrier and performing reverse complementation in an embodiment of the present invention, such as Figure 5 As shown, the process includes the following steps:

[0059] S21, extracting amplitude information of multiple frequency points according to the center frequency point and bandwidth of the current carrier to be calculated, and calculating the average power of the multiple frequency points;

[0060] In an example, it is assumed that the amplitude information of N points is extracted according to the carrier information:

[0061] GainAbsf0, GainAbsf2ΛGainAbsf N-1 .

[0062] In one example, the average power of N frequency points is calculated as:

[0063]

[0064]

[0065] Among them, GainAbsf k is the frequency f k The amplitude information of is, N is the number of frequency points.

[0066] S22, normalizing the single-point amplitude according to the average power to obtain a normalized amplitude, multiplying the normalized amplitude by the signal frequency domain, and compensating the frequency domain.

[0067] In one example, the single-point amplitude is normalized according to the average power to obtain the normalized amplitude, which includes:

[0068] The following formula is used to normalize the single point k amplitude to obtain the normalized amplitude of single point k: GainAbsNomf k : Among them, GainAbsf k is the frequency f k The amplitude information of , N is the number of frequency points, and GainPwrAvg is the average power.

[0069] In the implementation of this example, before compensating the uplink flatness of the transceiver based on the amplitude information, the method also includes: obtaining a threshold value for uplink flatness compensation, and calculating a third gain value at the RB level, determining whether the third gain value exceeds the threshold value, and if the third gain value does not exceed the threshold value, determining to compensate the uplink flatness of the transceiver based on the amplitude information.

[0070] In one example, the uplink frequency domain compensation has 6dB dynamics, including the power difference between uplink channels, the coupling network converted to RB level power compensation, and the uplink flatness compensation, which cannot exceed 6dB in total. The RB level gain is calculated, and the threshold value is set to 5dB. If the threshold value is exceeded, flatness compensation is not performed.

[0071] Figure 6It is an overall flow chart of the flatness compensation of the transceiver in the embodiment of the present invention. After the transceiver is powered on, the BSP parses the uplink RF calibration file according to the set data format, and sends the uplink calibration gain information of all channels to the DSP through a message, and then determines whether the compensation function of the system is turned on. If the compensation function is turned on, the DSP first inverts and zeroes the gain offline parameters, and then converts the zeroed gain into amplitude. By constructing a matrix to obtain the fitting coefficient, the amplitude information of all frequency points is finally obtained, and the uplink flatness is inverted using the flatness compensation module. If the compensation function is not turned on, the process is directly terminated.

[0072] The present invention is a method of using the uplink radio frequency calibration file in the transceiver, using a certain high-order fitting algorithm to calculate the uplink flatness compensation coefficient, and then performing frequency domain compensation on the uplink receiving channel. The compensation coefficient generated by the uplink calibration file fitting in the present invention has the advantages of high accuracy and high reliability. The content in the uplink radio frequency calibration file truly represents the actual gain characteristics of the uplink of the transceiver at certain frequency points. The measured results show that the compensation coefficient generated after high-order fitting is very close to the actual characteristics of the link. In addition, compared with the method of calculating the compensation coefficient using the received uplink signal, the method of generating the coefficient using the calibration file is not easily interfered by the external environment. The present invention realizes flatness compensation in the uplink receiving band by means of frequency domain compensation. Each compensation coefficient generated by this scheme will correspond to a frequency point in the receiving band, so compensation in the entire receiving band can be realized, and it has the advantage of high compensation accuracy.

[0073] The uplink compensation value calculated by this solution is accurate, reliable, and has a better flatness compensation effect, achieving flatness compensation within the entire receiving band without changing the hardware architecture of the existing transceiver. Through this invention, the signal characteristics received on the baseband side are closer to the characteristics of the real space signal, which improves the perception accuracy and perception resolution of the channel characteristics.

[0074] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course can also be implemented by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0075] Example 2

[0076] In this embodiment, a flatness compensation device for a transceiver is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made are not repeated. As used below, the term "module" can implement a combination of software and hardware of a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation of hardware, or a combination of software and hardware, can also be conceived.

[0077] An embodiment of the present invention further provides a flatness compensation device for a transceiver, the device comprising:

[0078] An acquisition module 70, used to acquire an uplink radio frequency calibration file of a transceiver;

[0079] The parsing module 72 is used to parse the uplink radio frequency calibration file to obtain the uplink channel calibration offline parameters of all channels of the transceiver;

[0080] A fitting module 74, configured to fit the amplitude information of the desired frequency point according to the uplink channel calibration offline parameters;

[0081] The compensation module 76 is used to compensate the uplink flatness of the transceiver based on the amplitude information.

[0082] Optionally, the fitting module includes: an inversion unit, used to invert and normalize the first gain value in the uplink channel calibration offline parameter to obtain a second gain value for each frequency point; a conversion unit, used to convert the second gain value into an amplitude; a construction unit, used to construct a first matrix and a second matrix using the amplitude, and use the first matrix and the second matrix to obtain polynomial fitting coefficients; a fitting module, used to fit the amplitude information of the expected frequency point according to the polynomial fitting coefficients.

[0083] Optionally, the construction unit includes: a first construction subunit, used to construct a first matrix according to the number of offline parameter frequencies, the frequency information of the uplink calibration table and the polynomial order; a second construction subunit, used to construct a second matrix according to the number of offline parameter frequencies and the amplitude of the second gain value; and a calculation subunit, used to obtain the polynomial fitting coefficient W according to the first matrix and the second matrix.

[0084] Optionally, the fitting unit includes: a mapping subunit, used to map each term of the polynomial fitting coefficient with the corresponding power of the frequency point information to be calculated to obtain multiple mapping results; and a fitting subunit, used to determine the sum of the multiple mapping results as the amplitude information of the expected frequency point.

[0085] Optionally, the compensation module includes: an extraction unit, used to extract the amplitude information of multiple frequency points based on the center frequency and bandwidth of the current carrier to be calculated; a calculation unit, used to calculate the average power of multiple frequency points; a processing unit, used to normalize the single-point amplitude according to the average power to obtain a normalized amplitude; and a compensation unit, used to multiply the normalized amplitude by the signal frequency domain to compensate the frequency domain.

[0086] Optionally, the device also includes: a gain module, used to obtain a threshold value for uplink flatness compensation and calculate a third gain value at the RB level before the compensation module compensates for the uplink flatness of the transceiver based on the amplitude information; a judgment module, used to judge whether the third gain value exceeds the threshold value; and a determination module, used to determine to compensate for the uplink flatness of the transceiver based on the amplitude information if the third gain value does not exceed the threshold value.

[0087] It should be noted that the above modules can be implemented by software or hardware. For the latter, it can be implemented in the following ways, but not limited to: the above modules are all located in the same processor; or the above modules are located in different processors in any combination.

[0088] Example 3

[0089] An embodiment of the present invention further provides a storage medium, in which a computer program is stored, wherein the computer program is configured to execute the steps of any of the above method embodiments when running.

[0090] Optionally, in this embodiment, the above storage medium may be configured to store a computer program for executing:

[0091] S1, obtaining the uplink radio frequency calibration file of the transceiver;

[0092] S2, parsing the uplink radio frequency calibration file to obtain uplink channel calibration offline parameters of all channels of the transceiver;

[0093] S3, fitting the amplitude information of the expected frequency point according to the uplink channel calibration offline parameters;

[0094] S4, compensating for uplink flatness of the transceiver based on the amplitude information.

[0095] Optionally, in this embodiment, the above-mentioned storage medium may include but is not limited to: a USB flash drive, a read-only memory (ROM), a random access memory (RAM), a mobile hard disk, a magnetic disk or an optical disk, and other media that can store computer programs.

[0096] An embodiment of the present invention further provides an electronic device, including a memory and a processor, wherein a computer program is stored in the memory, and the processor is configured to run the computer program to execute the steps in any one of the above method embodiments.

[0097] Optionally, the electronic device may further include a transmission device and an input / output device, wherein the transmission device is connected to the processor, and the input / output device is connected to the processor.

[0098] Optionally, in this embodiment, the processor may be configured to perform the following steps through a computer program:

[0099] S1, obtaining the uplink radio frequency calibration file of the transceiver;

[0100] S2, parsing the uplink radio frequency calibration file to obtain uplink channel calibration offline parameters of all channels of the transceiver;

[0101] S3, fitting the amplitude information of the expected frequency point according to the uplink channel calibration offline parameters;

[0102] S4, compensating for uplink flatness of the transceiver based on the amplitude information.

[0103] Optionally, the specific examples in this embodiment may refer to the examples described in the above embodiments and optional implementation modes, and this embodiment will not be described in detail here.

[0104] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0105] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0106] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic, for example, the division of units is only a logical function division, and there may be other division methods in actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0107] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0108] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0109] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art or all or part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for a computer device (which can be a personal computer, server or network device, etc.) to execute all or part of the steps of each embodiment method of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk, etc., which can store program code.

[0110] The above are only preferred implementations of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for compensating flatness of a transceiver, characterized in that: include: Obtain the uplink RF calibration file of the transceiver; Parsing the uplink radio frequency calibration file to obtain uplink channel calibration offline parameters of all channels of the transceiver; Fitting amplitude information of a desired frequency point according to the uplink channel calibration offline parameters; An uplink flatness of the transceiver is compensated based on the amplitude information.

2. The method according to claim 1, characterized in that The amplitude information of the expected frequency point is fitted by using the uplink channel calibration offline parameters, including: The first gain value in the uplink channel calibration offline parameter is inverted and normalized to zero to obtain a second gain value for each frequency point; converting the second gain value into an amplitude value; The first matrix and the second matrix are constructed by using the amplitude, and the polynomial fitting coefficients are obtained by using the first matrix and the second matrix; The amplitude information of the expected frequency point is fitted according to the polynomial fitting coefficients.

3. The method according to claim 2, characterized in that Using the amplitude to construct the first matrix and the second matrix, and using the first matrix and the second matrix to obtain the polynomial fitting coefficients include: Constructing a first matrix according to the frequency information of the uplink calibration table, the number of offline parameter frequencies and the polynomial order; Construct the second matrix according to the number of offline parameter frequencies and the amplitude of the second gain value: The polynomial fitting coefficients are obtained according to the first matrix and the second matrix.

4. The method according to claim 2, characterized in that The amplitude information of the expected frequency point is fitted according to the polynomial fitting coefficients, including: Mapping each item of the polynomial fitting coefficient with the corresponding power of the frequency point information to be calculated to obtain multiple mapping results; The sum of the multiple mapping results is determined as the amplitude information of the expected frequency point.

5. The method according to claim 1, characterized in that Compensating the uplink flatness of the transceiver based on the amplitude information includes: Extract the amplitude information of multiple frequency points according to the center frequency point and bandwidth of the current carrier to be calculated; Calculate the average power of multiple frequency points; The single-point amplitude is normalized according to the average power to obtain the normalized amplitude; Multiply the normalized amplitude by the signal frequency domain to compensate the frequency domain.

6. The method according to claim 1, characterized in that Before compensating the uplink flatness of the transceiver based on the amplitude information, the method further includes: Obtaining a threshold value for uplink flatness compensation and calculating a third gain value at the RB level; Determining whether the third gain value exceeds a threshold value; If the third gain value does not exceed the threshold value, it is determined to compensate the uplink flatness of the transceiver based on the amplitude information.

7. A flatness compensation device for a transceiver, characterized in that: include: An acquisition module, used to acquire an uplink radio frequency calibration file of a transceiver; A parsing module, used for parsing the uplink radio frequency calibration file to obtain uplink channel calibration offline parameters of all channels of the transceiver; A fitting module, used for fitting the amplitude information of the expected frequency point according to the uplink channel calibration offline parameters; A compensation module is used to compensate for uplink flatness of the transceiver based on the amplitude information.

8. The device according to claim 7, characterized in that The fitting module comprises: A negation unit, used for negating and returning to zero the first gain value in the uplink channel calibration offline parameter to obtain a second gain value for each frequency point; A conversion unit, used for converting the second gain value into an amplitude; A construction unit, used to construct a first matrix and a second matrix using the amplitude, and to obtain polynomial fitting coefficients using the first matrix and the second matrix; The fitting module is used to fit the amplitude information of the expected frequency point according to the polynomial fitting coefficients.

9. A storage medium, characterized in that: A computer program is stored in the storage medium, wherein the computer program is configured to execute the method according to any one of claims 1 to 6 when executed.

10. An electronic device comprising a memory and a processor, characterized in that: A computer program is stored in the memory, and the processor is configured to run the computer program to perform the method according to any one of claims 1 to 6.