A kind of signal gain compensation method and equipment
Technical field
The present invention relates to gain compensating method more particularly to a kind of signal gain compensation method and equipment.
Background technique
With the construction of mobile communications network and the fast development of Client application demand, the function of digital communication equipment is needed
Summing signal quality requirement is increasingly promoted.On digital communication equipment product, it is desirable that a digital communication equipment is more in addition to supporting
Outside kind frequency range, moreover it is possible to which the operation frequency range of automatic identification Contemporary Digital communication equipment increases uplink signal according to current operating band
Benefit and downlink signal gain carry out additional gain compensation.Major part digital communication equipment only supports single frequency band or two or three at present
The signal gain of frequency range compensates, and is compensated using pre-set fixed gain uplink signal gain and downlink signal gain.
And digital communication equipment can support nearly 40 kinds of different frequency ranges, and the uplink letter of every kind of frequency range in the prior art
Number gain and downlink signal gain are different, so general gain mode is no longer satisfied digital communication equipment to a variety of at present
The gain compensation of frequency range.
Summary of the invention
The present invention provides a kind of signal gain compensation method and equipment, can support for digital communication equipment more
The different frequency range of kind provides compensating gain corresponding with different frequency range, ensures that digital communication equipment can to uplink, downlink signal
Accurate compensating gain is enough obtained, the transmission quality of signal is improved.
The present invention provides a kind of signal gain compensation method, this method comprises:
According to the working frequency range of wireless signal, the default current gain value of the corresponding working frequency range is determined;
The wireless signal is handled, the full amplitude modulation yield value DBFS of the wireless signal is obtained;
According to the corresponding default current gain value of wireless signal and the DBFS, compensation gain value is determined;
Overall gain value is determined using the compensation gain value and current gain value, using the overall gain value to described wireless
Signal carries out signal gain compensation.
The present invention provides a kind of signal gain compensation equipment, which includes: processor and memory, wherein described
Memory is stored with program code, when said program code is executed by the processor, so that the processor is for executing
Following steps:
According to the working frequency range of wireless signal, the default current gain value of the corresponding working frequency range is determined;
The wireless signal is handled, the full amplitude modulation yield value DBFS of the wireless signal is obtained;
According to the corresponding default current gain value of wireless signal and the DBFS, compensation gain value is determined;
Overall gain value is determined using the compensation gain value and current gain value, using the overall gain value to described wireless
Signal carries out signal gain compensation.
A kind of signal gain compensation method provided in an embodiment of the present invention and equipment, have the advantages that
By calculating the compensating gain of different frequency range wireless signal, the benefit of targetedly overall gain value is carried out to each frequency range
Repay, it is ensured that the transmission quality of signal, can the multiple frequency range to equipment carry out gain compensation, save resource, save
Cost.
Detailed description of the invention
Fig. 1 is a kind of signal gain compensation method flow chart.
Fig. 2 is a kind of signal gain compensation method specific steps figure.
Fig. 3 is a kind of signal gain compensation method functional block diagram.
Fig. 4 is a kind of signal gain compensation device figure.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that described embodiments are only a part of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
Embodiment one
The embodiment of the invention provides a kind of signal gain compensation methodes, as shown in Figure 1, this method comprises:
Step 101: according to the working frequency range of wireless signal, determining the default current gain value of corresponding above-mentioned working frequency range.
Step 102: above-mentioned wireless signal being handled, the full amplitude modulation yield value DBFS of above-mentioned wireless signal is obtained.
Step 103: according to the corresponding default current gain value of wireless signal and above-mentioned DBFS, determining compensation gain value.
Step 104: determining overall gain value using above-mentioned compensation gain value and current gain value, utilize above-mentioned overall gain value pair
Above-mentioned wireless signal carries out signal gain compensation.
In implementation, according to digital communication equipment when different working frequency range works normally, for the difference of signal gain
Index request can determine the default current gain value of corresponding above-mentioned working frequency range, the default current gain value be meet it is above-mentioned
Index request is directed to the pre-set fixed yield value of each working frequency range that digital communication equipment is supported by user.
In implementation, the working frequency range of above-mentioned wireless signal can be each working frequency range of digital communication equipment support,
It can be the frequency sub-band in each working frequency range of digital communication equipment support, it can support above-mentioned digital communication equipment
Each frequency range is refined, and each frequency range is refined as multiple frequency sub-band, can basis when carrying out gain compensation to wireless signal
Frequency sub-band where wireless signal determines the gain compensation of above-mentioned wireless signal, it can supports digital communication equipment every
Each frequency sub-band of a frequency range carries out the gain compensation of each frequency sub-band to wireless signal respectively.
As an alternative embodiment, above-mentioned default current gain value includes two parameter values:
One parameter value is the signal pad value of the corresponding user's initial setting up of working frequency range where wireless signal, is named as
Host A TT;
Another parameter value is declined with according to the signal of working frequency range where the wireless signal to the setting of wireless signal commissioning
Depreciation is named as calibration ATT;
According to above-mentioned host A TT above-mentioned default current gain value corresponding with the sum of ATT each working frequency range of determination is calibrated.
In implementation, above-mentioned full amplitude modulation yield value DBFS is the above-mentioned wireless signal that defines of wireless communication standard in above-mentioned work
Corresponding nominal gain value when frequency range.Digital communication equipment can determine a DBFS in different working frequency range, for example, digital
DBFS of the communication device works in T800 frequency range is -12DBFS.
In implementation, it can determine that compensation gain value is single yield value, the gain error model of wireless signal can also be set
It encloses, so that the compensation gain value determined is within the scope of the above-mentioned gain error of permission, i.e., compensation gain value is also possible to above-mentioned
Multiple compensation gain values within the scope of gain error, specifically determining compensation gain value is single or multiple can be selected by user
Setting.
As an alternative embodiment, compensation gain value can be determined according to the following formula:
Full amplitude modulation yield value DBFS=presets current gain value+original gain value+compensation gain value.
Original gain value is the yield value that wireless signal carries, can be by above-mentioned to obtaining after wireless signal progress operation
The original gain value of wireless signal.
Specifically, be input to digital communication equipment to above-mentioned wireless signal, according to the A/D module in digital communication equipment,
The analog wireless signals of input are converted into digital signal, work frequency where capable of determining above-mentioned wireless signal by the following method
The DBFS and original gain value, method of section are as follows:
Determine DBFS: frequency range where determining above-mentioned wireless signal according to above-mentioned digital signal can determine that digital communication is set
Standby working frequency range, so that it is determined that DBFS of the above-mentioned wireless signal in the frequency range.
Determine original gain value: digital communication equipment carries out sampling to the power of wireless signal and obtains sampled value, according to mark
Above-mentioned sampled value is converted into original gain value by quasi- formula.
It determines the corresponding default current gain value of wireless signal, original gain value and above-mentioned DBFS, can determine compensation
Yield value.
As an alternative embodiment, above-mentioned wireless signal is up-link wireless signal or downstream wireless signals.
In implementation, up-link wireless signal place can be determined respectively according to the working frequency range where determining wireless signal
The DBFS of the working frequency range, current gain value, original gain value and the working frequency range where downstream wireless signals are preset
DBFS presets current gain value, original gain value, so as to determine up-link wireless signal in the compensating gain of the frequency range respectively
Value and downstream wireless signals the frequency range compensation gain value.
In implementation, above-mentioned overall gain value is determined according to the following formula:
Compensation gain value+current gain value=overall gain value.
Digital communication equipment can be according to the working frequency range where wireless signal, while determining the additional gain of uplink signal
The additional gain of compensation and downlink signal compensates, and realizes and carries out gain compensation to wireless signal, enhances digital communication equipment
Transmit the quality of signal.
In implementation, gain will play desired effect, eventually the overall gain value of acquisition is arranged into corresponding device, example
Such as, downstream wireless signals overall gain value is stored in data field (such as device PE4320), up-link wireless signal gain value is deposited
It is placed on data field (such as device PE4320).
As an alternative embodiment, determining that the default current gain value of corresponding above-mentioned working frequency range is also wrapped before
It includes:
According to the working frequency range of wireless signal, the compensation of corresponding above-mentioned working frequency range is searched from the tables of data being locally stored
Yield value;
It determines when not finding the corresponding compensation gain value of above-mentioned working frequency range, determines the default solid of corresponding above-mentioned working frequency range
Determine yield value;
After determining overall gain value using above-mentioned compensation gain value and current gain value, further includes:
The mapping relations of determining above-mentioned compensation gain value and above-mentioned working frequency range are stored in tables of data.
As an alternative embodiment, according to the son frequency of the digital communication equipment working frequency range where wireless signal
Section searches the compensation gain value of the frequency sub-band of corresponding above-mentioned working frequency range from the tables of data being locally stored;
When determining the corresponding compensation gain value of frequency sub-band for not finding above-mentioned working frequency range, corresponding above-mentioned working frequency range is determined
Frequency sub-band default current gain value;
After determining overall gain value using above-mentioned compensation gain value and current gain value, further includes:
The mapping relations of the frequency sub-band of determining above-mentioned compensation gain value and above-mentioned working frequency range are stored in tables of data.
As an alternative embodiment, the frequency sub-band of above-mentioned working frequency range can draw working frequency range by user
Point, the number and the frequency range where frequency sub-band for determining the frequency sub-band that working frequency range divides.
It is preset as an alternative embodiment, the working frequency of wireless signal meets wireless telecom equipment working frequency range
In error range, determine that the working frequency range of wireless signal is the working frequency range of above-mentioned wireless telecom equipment.
Specifically, each working frequency range of wireless telecom equipment may not be continuous frequency, the frequency where wireless signal
Rate is not belonging to any one working frequency range, but meets the default error range in a wherein working frequency range S, then it is assumed that the wireless communication
Working frequency range where number is above-mentioned working frequency range S.
In implementation, above-mentioned wireless signal first looks for the son of the working frequency range stored in above-mentioned tables of data or working frequency range
The mapping relations of frequency range and compensation gain value determine working frequency range or above-mentioned son where having wireless signal in above-mentioned tables of data
When the compensation gain value of frequency range, the compensation gain value of wireless signal is determined, if not finding work frequency where above-mentioned wireless signal
When section or the compensation gain value of above-mentioned frequency sub-band, the compensation according to the determination method of above-mentioned compensation gain value, to wireless signal
Yield value is determined.
In implementation, the mapping relations of compensation gain value and working frequency range are stored in tables of data, can choose with lower section
Any mode in formula is implemented:
The corresponding compensation gain value of one: one working frequency range of mode;
Two: one working frequency range of mode are divided into multiple work frequency sub-band, and the corresponding compensation of each work frequency sub-band increases
Benefit value;
Specifically, multiple work frequency sub-band can be averagely refined as according to by above-mentioned working frequency range, it can also be according to setting
Different frequency sub-band operating frequency range determine divide work frequency sub-band.
As an alternative embodiment, determining when finding the corresponding compensation gain value of working frequency range, further includes: utilize
Above-mentioned overall gain value carries out signal gain compensation to above-mentioned wireless signal.
The mapping relations of compensation gain value and working frequency range are stored in the method in tables of data by above-mentioned utilize, and improve meter
Wireless signal compensation gain value is calculated, and determines the efficiency of the overall gain value of wireless signal, when compensation gain value needs to modify,
It can directly be operated in tables of data, it is convenient and efficient.
Below with frequency range where digital communication equipment for T800 frequency range, wherein working frequency where up-link wireless signal is
858.5MHz, for working frequency where downstream wireless signals is 813.5MHz, referring to Fig. 3, the present invention is described in detail,
Specific implementation step is as shown in Figure 2.
Step 200: digital communication equipment receives the wireless signal inputted by aerial signal.
Specifically, being sent with receiving side signal relative to the signal of the same terminal or equipment to not according to wireless signal
Together, wireless signal can be divided into up-link wireless signal and downstream wireless signals, up-link wireless signal is from the terminal or equipment
The wireless signal of transmission, downstream wireless signals are from the terminal or the received wireless signal of equipment.
Step 201: after above-mentioned wireless signal is amplified by power amplifier PA, according to the analog-to-digital conversion function of AD9370 module
Can, analog wireless signals are converted into digital wireless signal.
Specifically, as shown in Figure 3:
When wireless signal is up-link wireless signal: up-link wireless signal 301 will simulate wireless communication according to AD9370 module 303
Number be converted to digital wireless signal;
When wireless signal is downstream wireless signals: downstream wireless signals 302 will simulate wireless communication according to AD9370 module 304
Number be converted to digital wireless signal.
Step 202: digital communication equipment reads above-mentioned digital wireless signal, identifies the work where digital wireless signal
Frequency range.
Step 203: judging the gain compensation that corresponding above-mentioned working frequency range whether is found from the tables of data being locally stored
Value executes step 204 when determining the gain compensation value for not finding corresponding above-mentioned working frequency range, no to then follow the steps 208.
Step 204: according to the working frequency range where digital wireless signal, to the sheet of digital wireless signal in AD9370 module
Vibration frequency is configured, so that digital communication equipment work is in T800 frequency range;
Specifically, the local frequency of setting up-link wireless signal is 858.5MHz when wireless signal is up-link wireless signal;
When wireless signal is downstream wireless signals, the local frequency that downstream wireless signals are arranged is 813.5MHz;
Step: 205: the above-mentioned wireless signal defined according to wireless communication standard corresponding full amplitude modulation in T800 frequency range increases
Beneficial value DBFS determines that DBFS is A (A=-12DBFS);
Step 206: sampling being carried out according to power of the FPGA module in digital communication equipment to wireless signal and obtains sampling
Value, is converted into original gain value C for above-mentioned sampled value according to normalized form;
Step 207: reading the default current gain value for being already provided at PE4302 device.
Specifically, reading up-link wireless signal when wireless signal is up-link wireless signal and presetting current gain value D;
When wireless signal is downstream wireless signals, reads downstream wireless signals and preset current gain value E.
Step 208: according to the following formula, determine compensation gain value:
Full amplitude modulation yield value DBFS=presets current gain value+original gain value+compensation gain value.
Specifically, determining up-link wireless signal compensation yield value F are as follows: F=A-D- when wireless signal is up-link wireless signal
C;
When wireless signal is downstream wireless signals, downstream wireless signals compensation gain value G is determined are as follows: G=A-E-C.
Step 209: above-mentioned compensation gain value being arranged in the tables of data of corresponding working frequency range.
Specifically, when wireless signal is up-link wireless signal, by up-link wireless signal compensation yield value F setting in corresponding work
Make in the tables of data of frequency range;
When wireless signal is downstream wireless signals, by downstream wireless signals compensation gain value G setting in corresponding working frequency range
Tables of data in.
Step 210: compensation gain value corresponding with working frequency range in above-mentioned tables of data is inquired, according to formula: compensating gain
Value+current gain value=overall gain value determines wireless signal overall gain value.
Specifically, when wireless signal is up-link wireless signal, up-link wireless signal gain value H=D+F;
When wireless signal is downstream wireless signals, downstream wireless signals overall gain value I=E+G.
Step 211: wireless signal overall gain value is arranged into corresponding gain compensation device.
Specifically, when wireless signal is up-link wireless signal, by up-link wireless signal gain value H setting to PE4302 device
In part;
When wireless signal is downstream wireless signals, downstream wireless signals overall gain value I is arranged into PE4302 device.
Step 212, the overall gain value in gain compensation device is read, letter is carried out to wireless signal using above-mentioned overall gain value
Number gain compensation.
Embodiment two
Based on the same inventive concept, a kind of signal gain compensation equipment, the tool of the equipment are provided in the embodiment of the present invention
Body is implemented to can be found in the description of embodiment of the method part, and overlaps will not be repeated.The equipment includes:
Processor and memory, wherein above-mentioned memory is stored with program code, when above procedure code is by above-mentioned place
When managing device execution, so that above-mentioned processor is for executing following steps:
According to the working frequency range of wireless signal, the default current gain value of corresponding above-mentioned working frequency range is determined;
Above-mentioned wireless signal is handled, the full amplitude modulation yield value DBFS of above-mentioned wireless signal is obtained;
According to the corresponding default current gain value of wireless signal and above-mentioned DBFS, compensation gain value is determined;
Overall gain value is determined using above-mentioned compensation gain value and current gain value, using above-mentioned overall gain value to above-mentioned wireless
Signal carries out signal gain compensation.
As an alternative embodiment, above-mentioned processor, is also used to:
Determine wireless signal in the original gain value of above-mentioned working frequency range;
According to the corresponding default current gain value of wireless signal and above-mentioned DBFS, compensation gain value is determined, comprising:
According to the corresponding default current gain value of wireless signal, original gain value and above-mentioned DBFS, compensation gain value is determined.
As an alternative embodiment, above-mentioned full amplitude modulation yield value DBFS is the above-mentioned nothing that wireless communication standard defines
Line signal corresponding nominal gain value in above-mentioned working frequency range.
As an alternative embodiment, above-mentioned wireless signal is up-link wireless signal or downstream wireless signals.
As an alternative embodiment, above-mentioned default current gain value, comprising:
The signal pad value of the corresponding user's initial setting up of working frequency range where wireless signal and the letter being arranged according to commissioning
The sum of number pad value.
As an alternative embodiment, determining compensation gain value, comprising:
Above-mentioned current gain value, original gain value are summed to obtain gain summing value, pass through above-mentioned DBFS and above-mentioned gain
The difference of summing value determines compensation gain value.
As an alternative embodiment, determining that the default current gain value of corresponding above-mentioned working frequency range is also wrapped before
It includes:
According to the working frequency range of wireless signal, the compensation of corresponding above-mentioned working frequency range is searched from the tables of data being locally stored
Yield value;
It determines when not finding the corresponding compensation gain value of above-mentioned working frequency range, determines the default solid of corresponding above-mentioned working frequency range
Determine yield value;
After determining overall gain value using above-mentioned compensation gain value and current gain value, further includes:
The mapping relations of determining above-mentioned compensation gain value and above-mentioned working frequency range are stored in tables of data.
As an alternative embodiment, determining when finding the corresponding compensation gain value of working frequency range, further includes:
Signal gain compensation is carried out to above-mentioned wireless signal using above-mentioned overall gain value.
Embodiment three
Based on the same inventive concept, a kind of signal gain compensation device is additionally provided in the embodiment of the present invention, the device
Specific implementation can be found in the description of embodiment of the method part, and overlaps will not be repeated.As shown in figure 4, the device includes:
It determines fixed gain unit 401, for the working frequency range according to wireless signal, determines corresponding above-mentioned working frequency range
Default current gain value;
Determine DBFS unit 402, for handling above-mentioned wireless signal, the full amplitude modulation for obtaining above-mentioned wireless signal increases
Beneficial value DBFS;
It determines compensating gain unit 403, is used for according to the corresponding default current gain value of wireless signal and above-mentioned DBFS, really
Determine compensation gain value;
It determines overall gain unit 404, for determining overall gain value using above-mentioned compensation gain value and current gain value, utilizes
Above-mentioned overall gain value carries out signal gain compensation to above-mentioned wireless signal.
As an alternative embodiment, above-mentioned apparatus is also used to:
Determine wireless signal in the original gain value of above-mentioned working frequency range;
According to the corresponding default current gain value of wireless signal and above-mentioned DBFS, compensation gain value is determined, comprising:
According to the corresponding default current gain value of wireless signal, original gain value and above-mentioned DBFS, compensation gain value is determined.
As an alternative embodiment, above-mentioned full amplitude modulation yield value DBFS is the above-mentioned nothing that wireless communication standard defines
Line signal corresponding nominal gain value in above-mentioned working frequency range.
As an alternative embodiment, above-mentioned wireless signal is up-link wireless signal or downstream wireless signals.
As an alternative embodiment, above-mentioned default current gain value, comprising:
The signal pad value of the corresponding user's initial setting up of working frequency range where wireless signal and the letter being arranged according to commissioning
The sum of number pad value.
As an alternative embodiment, determining compensation gain value, comprising:
Above-mentioned current gain value, original gain value are summed to obtain gain summing value, pass through above-mentioned DBFS and above-mentioned gain
The difference of summing value determines compensation gain value.
As an alternative embodiment, determining that the default current gain value of corresponding above-mentioned working frequency range is also wrapped before
It includes:
According to the working frequency range of wireless signal, the compensation of corresponding above-mentioned working frequency range is searched from the tables of data being locally stored
Yield value;
It determines when not finding the corresponding compensation gain value of above-mentioned working frequency range, determines the default solid of corresponding above-mentioned working frequency range
Determine yield value;
After determining overall gain value using above-mentioned compensation gain value and current gain value, further includes:
The mapping relations of determining above-mentioned compensation gain value and above-mentioned working frequency range are stored in tables of data.
As an alternative embodiment, determining when finding the corresponding compensation gain value of working frequency range, further includes:
Signal gain compensation is carried out to above-mentioned wireless signal using above-mentioned overall gain value.
Example IV
The present invention also provides a kind of computer storage medium, the specific implementation of the computer storage medium can be found in method reality
The description of example part is applied, overlaps will not be repeated.
It is stored with computer program in above-mentioned computer storage medium, following step is realized when which is executed by processor
It is rapid:
According to the working frequency range of wireless signal, the default current gain value of corresponding above-mentioned working frequency range is determined;
Above-mentioned wireless signal is handled, the full amplitude modulation yield value DBFS of above-mentioned wireless signal is obtained;
According to the corresponding default current gain value of wireless signal and above-mentioned DBFS, compensation gain value is determined;
Overall gain value is determined using above-mentioned compensation gain value and current gain value, using above-mentioned overall gain value to above-mentioned wireless
Signal carries out signal gain compensation.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention
Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more,
The shape for the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.)
Formula.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The equipment for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of equipment, the commander equipment realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the present invention is also intended to include these modifications and variations.