Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Example one
An embodiment of the present invention provides a signal gain compensation method, as shown in fig. 1, the method includes:
step 101: and determining a preset fixed gain value corresponding to the working frequency band according to the working frequency band of the wireless signal.
Step 102: and processing the wireless signal to obtain a full amplitude modulation gain value DBFS of the wireless signal.
Step 103: and determining a compensation gain value according to a preset fixed gain value corresponding to the wireless signal and the DBFS.
Step 104: and determining a total gain value by using the compensation gain value and the fixed gain value, and performing signal gain compensation on the wireless signal by using the total gain value.
In implementation, according to different index requirements of signal gain when the digital communication device normally operates in different operating frequency bands, a preset fixed gain value corresponding to the operating frequency band can be determined, where the preset fixed gain value is a fixed gain value preset by a user for each operating frequency band supported by the digital communication device, and the preset fixed gain value meets the index requirements.
In implementation, the working frequency band of the wireless signal may be each working frequency band supported by the digital communication device, or may be a sub-frequency band in each working frequency band supported by the digital communication device, that is, each frequency band supported by the digital communication device may be refined, each frequency band is refined into a plurality of sub-frequency bands, and when performing gain compensation on the wireless signal, the gain compensation of the wireless signal may be determined according to the sub-frequency band where the wireless signal is located, that is, the gain compensation of each sub-frequency band may be performed on the wireless signal for each sub-frequency band of each frequency band supported by the digital communication device.
As an alternative implementation, the preset fixed gain value includes two parameter values:
one parameter value is a signal attenuation value which is initially set by a user and corresponds to a working frequency band where a wireless signal is located, and the signal attenuation value is named as a host ATT;
the other parameter value is a signal attenuation value of the working frequency band of the wireless signal set according to the wireless signal debugging and is named as scaling ATT;
and determining the preset fixed gain value corresponding to each working frequency band according to the sum of the host ATT and the calibration ATT.
In an embodiment, the full-am gain DBFS is a standard gain defined by a wireless communication standard corresponding to the wireless signal in the operating frequency band. The digital communication device can determine a DBFS in different operating bands, for example, the DBFS of the digital communication device operating in the T800 band is-12 DBFS.
In an implementation, the compensation gain value may be determined as a single gain value, or a gain error range of the wireless signal may be set so that the determined compensation gain value is within the allowable gain error range, that is, the compensation gain value may be a plurality of compensation gain values within the allowable gain error range, and specifically, whether the determined compensation gain value is one or a plurality of compensation gain values may be set by a user.
As an alternative embodiment, the compensation gain value may be determined according to the following formula:
the full amplitude modulation gain value DBFS is equal to the preset fixed gain value + the original gain value + the compensation gain value.
The original gain value is a gain value carried by the wireless signal, and the original gain value of the wireless signal can be obtained by calculating the wireless signal.
Specifically, the wireless signal is input to a digital communication device, the input analog wireless signal is converted into a digital signal according to an a/D module in the digital communication device, and the DBFS and the original gain value of the operating frequency band of the wireless signal can be determined by the following method, which is as follows:
determining a DBFS: and determining the frequency band of the wireless signal according to the digital signal, determining the working frequency band of the digital communication equipment, and determining the DBFS of the wireless signal in the frequency band.
Determining the original gain value: the digital communication equipment samples the power of the wireless signal to obtain a sampling value, and the sampling value is converted into an original gain value according to a standard formula.
And determining a preset fixed gain value, an original gain value and the DBFS corresponding to the wireless signal, and determining a compensation gain value.
As an optional implementation manner, the wireless signal is an uplink wireless signal or a downlink wireless signal.
In implementation, the DBFS, the preset fixed gain value and the original gain value of the working frequency band where the uplink wireless signal is located, and the DBFS, the preset fixed gain value and the original gain value of the working frequency band where the downlink wireless signal is located can be respectively determined according to the determined working frequency band where the wireless signal is located, so that the compensation gain value of the uplink wireless signal in the frequency band and the compensation gain value of the downlink wireless signal in the frequency band can be respectively determined.
In practice, the above total gain value is determined according to the following formula:
the compensation gain value + the fixed gain value is the total gain value.
The digital communication equipment can simultaneously determine the extra gain compensation of the uplink signal and the extra gain compensation of the downlink signal according to the working frequency band of the wireless signal, thereby realizing the gain compensation of the wireless signal and enhancing the quality of the transmission signal of the digital communication equipment.
In practice, the gain is to be expected, and the obtained total gain value is finally set to the corresponding device, for example, the total gain value of the downlink wireless signal is stored in the data field (e.g., the device PE4320), and the total gain value of the uplink wireless signal is stored in the data field (e.g., the device PE 4320).
As an optional implementation manner, before determining the preset fixed gain value corresponding to the operating frequency band, the method further includes:
according to the working frequency band of the wireless signal, searching a compensation gain value corresponding to the working frequency band from a locally stored data table;
when the compensation gain value corresponding to the working frequency band is not found, determining a preset fixed gain value corresponding to the working frequency band;
after determining the total gain value by using the compensation gain value and the fixed gain value, the method further comprises the following steps:
and storing the determined mapping relation between the compensation gain value and the working frequency band in a data table.
As an optional implementation manner, according to a sub-band of an operating frequency band of a digital communication device where a wireless signal is located, a compensation gain value of the sub-band corresponding to the operating frequency band is searched from a locally stored data table;
when the compensation gain value corresponding to the sub-frequency band of the working frequency band is determined not to be searched, determining a preset fixed gain value of the sub-frequency band corresponding to the working frequency band;
after determining the total gain value by using the compensation gain value and the fixed gain value, the method further comprises the following steps:
and storing the determined mapping relation between the compensation gain value and the sub-frequency band of the working frequency band in a data table.
As an optional implementation manner, the sub-band of the operating frequency band may be divided by a user, and the number of the sub-bands divided by the operating frequency band and the frequency range in which the sub-band is located are determined.
As an optional implementation manner, the operating frequency of the wireless signal meets a preset error range of the operating frequency band of the wireless communication device, and the operating frequency band of the wireless signal is determined to be the operating frequency band of the wireless communication device.
Specifically, each operating frequency band of the wireless communication device may not be a continuous frequency, and when the frequency of the wireless signal does not belong to any operating frequency band but satisfies a preset error range in one of the operating frequency bands S, the operating frequency band of the wireless signal is considered as the operating frequency band S.
In implementation, the wireless signal first searches a mapping relationship between an operating frequency band or a sub-frequency band of the operating frequency band and a compensation gain value stored in the data table, determines the compensation gain value of the wireless signal when the data table stores the compensation gain value of the operating frequency band or the sub-frequency band in which the wireless signal is located, and determines the compensation gain value of the wireless signal according to a determination method of the compensation gain value if the compensation gain value of the operating frequency band or the sub-frequency band in which the wireless signal is located is not found.
In implementation, the mapping relationship between the compensation gain value and the operating frequency band is stored in a data table, and any one of the following manners may be selected for implementation:
the first method is as follows: one working frequency band corresponds to one compensation gain value;
the second method comprises the following steps: one working frequency band is divided into a plurality of working sub-frequency bands, and each working sub-frequency band corresponds to one compensation gain value;
specifically, the operating frequency band may be averagely subdivided into a plurality of operating frequency sub-bands, or the divided operating frequency sub-bands may be determined according to the set operating frequency ranges of different frequency sub-bands.
As an optional implementation manner, when determining to find the compensation gain value corresponding to the operating frequency band, the method further includes: and performing signal gain compensation on the wireless signal by using the total gain value.
According to the method for storing the mapping relation between the compensation gain value and the working frequency band in the data table, the efficiency of calculating the compensation gain value of the wireless signal and determining the total gain value of the wireless signal is improved, when the compensation gain value needs to be modified, the method can be directly operated in the data table, and is convenient and fast.
The following takes the frequency band of the digital communication device as the T800 frequency band, wherein the working frequency of the uplink wireless signal is 858.5MHz, and the working frequency of the downlink wireless signal is 813.5MHz as an example, the present invention is explained in detail with reference to fig. 3, and the specific implementation steps are shown in fig. 2.
Step 200: the digital communication device receives a wireless signal input by an antenna signal.
Specifically, the wireless signal may be divided into an uplink wireless signal and a downlink wireless signal according to the signal transmission and signal reception directions of the wireless signal with respect to the same terminal or device, where the uplink wireless signal is a wireless signal transmitted from the terminal or device, and the downlink wireless signal is a wireless signal received from the terminal or device.
Step 201: after the wireless signals are amplified by the power amplifier PA, the analog wireless signals are converted into digital wireless signals according to the analog-to-digital conversion function of the AD9370 module.
Specifically, as shown in fig. 3:
when the wireless signal is an uplink wireless signal: the uplink wireless signal 301 converts an analog wireless signal into a digital wireless signal according to the AD9370 module 303;
when the wireless signal is a downlink wireless signal: the downlink wireless signal 302 converts the analog wireless signal into a digital wireless signal according to the AD9370 module 304.
Step 202: and the digital communication equipment reads the digital wireless signals and identifies the working frequency band of the digital wireless signals.
Step 203: and judging whether the gain compensation value corresponding to the working frequency band is found from the locally stored data table, executing the step 204 when the gain compensation value corresponding to the working frequency band is determined not to be found, and executing the step 208 otherwise.
Step 204: according to the working frequency band of the digital wireless signal, setting the local oscillation frequency of the digital wireless signal in the AD9370 module so as to enable the digital communication equipment to work in the T800 frequency band;
specifically, when the wireless signal is an uplink wireless signal, setting the local oscillation frequency of the uplink wireless signal to 858.5 MHz;
when the wireless signal is a downlink wireless signal, setting the local oscillation frequency of the downlink wireless signal to 813.5 MHz;
205: determining DBFS to be A (A is-12 DBFS) according to a full amplitude modulation gain value DBFS corresponding to the wireless signal defined by a wireless communication standard in a T800 frequency band;
step 206: sampling the power of a wireless signal according to an FPGA module in digital communication equipment to obtain a sampling value, and converting the sampling value into an original gain value C according to a standard formula;
step 207: the preset fixed gain value that has been set on the PE4302 device is read.
Specifically, when the wireless signal is an uplink wireless signal, reading a preset fixed gain value D of the uplink wireless signal;
and when the wireless signal is a downlink wireless signal, reading a preset fixed gain value E of the downlink wireless signal.
Step 208: determining a compensation gain value according to the following equation:
the full amplitude modulation gain value DBFS is equal to the preset fixed gain value + the original gain value + the compensation gain value.
Specifically, when the wireless signal is an uplink wireless signal, determining the uplink wireless signal compensation gain value F as: f ═ a-D-C;
when the wireless signal is a downlink wireless signal, determining a downlink wireless signal compensation gain value G as follows: G-a-E-C.
Step 209: and setting the compensation gain value in a data table corresponding to the working frequency band.
Specifically, when the wireless signal is an uplink wireless signal, setting the uplink wireless signal compensation gain value F in a data table of a corresponding working frequency band;
and when the wireless signal is a downlink wireless signal, setting the compensation gain value G of the downlink wireless signal in the data table of the corresponding working frequency band.
Step 210: inquiring a compensation gain value corresponding to the working frequency band in the data table, according to a formula: and determining the total gain value of the wireless signal according to the total gain value.
Specifically, when the wireless signal is an uplink wireless signal, the total gain value H of the uplink wireless signal is D + F;
when the wireless signal is a downlink wireless signal, the total gain value I of the downlink wireless signal is E + G.
Step 211: the total gain value of the wireless signal is set to the corresponding gain compensation device.
Specifically, when the wireless signal is an uplink wireless signal, setting a total gain value H of the uplink wireless signal into the PE4302 device;
and when the wireless signal is a downlink wireless signal, setting the total gain value I of the downlink wireless signal into the PE4302 device.
Step 212, reading the total gain value in the gain compensation device, and performing signal gain compensation on the wireless signal by using the total gain value.
Example two
Based on the same inventive concept, embodiments of the present invention provide a signal gain compensation device, and specific implementations of the device may refer to the description of the method embodiment section, and repeated details are not repeated. The apparatus comprises:
a processor and a memory, wherein the memory stores program code that, when executed by the processor, causes the processor to perform the steps of:
determining a preset fixed gain value corresponding to a working frequency band of a wireless signal according to the working frequency band;
processing the wireless signal to obtain a full amplitude modulation gain value DBFS of the wireless signal;
determining a compensation gain value according to a preset fixed gain value corresponding to a wireless signal and the DBFS;
and determining a total gain value by using the compensation gain value and the fixed gain value, and performing signal gain compensation on the wireless signal by using the total gain value.
As an optional implementation, the processor is further configured to:
determining an original gain value of the wireless signal in the working frequency band;
determining a compensation gain value according to a preset fixed gain value corresponding to a wireless signal and the DBFS, including:
and determining a compensation gain value according to a preset fixed gain value corresponding to the wireless signal, the original gain value and the DBFS.
As an optional implementation manner, the full-amplitude-modulation gain value DBFS is a standard gain value corresponding to the wireless signal defined by the wireless communication standard in the operating frequency band.
As an optional implementation manner, the wireless signal is an uplink wireless signal or a downlink wireless signal.
As an optional implementation manner, the preset fixed gain value includes:
and the sum of the signal attenuation value initially set by the user corresponding to the working frequency band of the wireless signal and the signal attenuation value set according to the regulation and the measurement.
As an alternative embodiment, determining the compensation gain value includes:
and summing the fixed gain value and the original gain value to obtain a gain summation value, and determining a compensation gain value according to the difference value of the DBFS and the gain summation value.
As an optional implementation manner, before determining the preset fixed gain value corresponding to the operating frequency band, the method further includes:
according to the working frequency band of the wireless signal, searching a compensation gain value corresponding to the working frequency band from a locally stored data table;
when the compensation gain value corresponding to the working frequency band is not found, determining a preset fixed gain value corresponding to the working frequency band;
after determining the total gain value by using the compensation gain value and the fixed gain value, the method further comprises the following steps:
and storing the determined mapping relation between the compensation gain value and the working frequency band in a data table.
As an optional implementation manner, when determining to find the compensation gain value corresponding to the operating frequency band, the method further includes:
and performing signal gain compensation on the wireless signal by using the total gain value.
EXAMPLE III
Based on the same inventive concept, the embodiment of the present invention further provides a signal gain compensation apparatus, and the specific implementation of the apparatus can refer to the description of the method embodiment section, and repeated details are not repeated. As shown in fig. 4, the apparatus includes:
a fixed gain determining unit 401, configured to determine a preset fixed gain value corresponding to an operating frequency band of a wireless signal according to the operating frequency band;
a DBFS determining unit 402, configured to process the wireless signal to obtain a full amplitude modulation gain DBFS of the wireless signal;
a compensation gain determining unit 403, configured to determine a compensation gain value according to a preset fixed gain value corresponding to the wireless signal and the DBFS;
a total gain determining unit 404, configured to determine a total gain value by using the compensation gain value and the fixed gain value, and perform signal gain compensation on the wireless signal by using the total gain value.
As an optional implementation, the apparatus is further configured to:
determining an original gain value of the wireless signal in the working frequency band;
determining a compensation gain value according to a preset fixed gain value corresponding to a wireless signal and the DBFS, including:
and determining a compensation gain value according to a preset fixed gain value corresponding to the wireless signal, the original gain value and the DBFS.
As an optional implementation manner, the full-amplitude-modulation gain value DBFS is a standard gain value corresponding to the wireless signal defined by the wireless communication standard in the operating frequency band.
As an optional implementation manner, the wireless signal is an uplink wireless signal or a downlink wireless signal.
As an optional implementation manner, the preset fixed gain value includes:
and the sum of the signal attenuation value initially set by the user corresponding to the working frequency band of the wireless signal and the signal attenuation value set according to the regulation and the measurement.
As an alternative embodiment, determining the compensation gain value includes:
and summing the fixed gain value and the original gain value to obtain a gain summation value, and determining a compensation gain value according to the difference value of the DBFS and the gain summation value.
As an optional implementation manner, before determining the preset fixed gain value corresponding to the operating frequency band, the method further includes:
according to the working frequency band of the wireless signal, searching a compensation gain value corresponding to the working frequency band from a locally stored data table;
when the compensation gain value corresponding to the working frequency band is not found, determining a preset fixed gain value corresponding to the working frequency band;
after determining the total gain value by using the compensation gain value and the fixed gain value, the method further comprises the following steps:
and storing the determined mapping relation between the compensation gain value and the working frequency band in a data table.
As an optional implementation manner, when determining to find the compensation gain value corresponding to the operating frequency band, the method further includes:
and performing signal gain compensation on the wireless signal by using the total gain value.
Example four
The present invention also provides a computer storage medium, and the specific implementation of the computer storage medium can refer to the description of the method embodiment section, and repeated details are not repeated.
The computer storage medium has stored thereon a computer program that, when executed by a processor, performs the steps of:
determining a preset fixed gain value corresponding to a working frequency band of a wireless signal according to the working frequency band;
processing the wireless signal to obtain a full amplitude modulation gain value DBFS of the wireless signal;
determining a compensation gain value according to a preset fixed gain value corresponding to a wireless signal and the DBFS;
and determining a total gain value by using the compensation gain value and the fixed gain value, and performing signal gain compensation on the wireless signal by using the total gain value.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.