TDS-CDMA system multi-channel amplitude and gain adjusting method and device
Technical field
The present invention relates to wireless communication transmissions channel management technology, particularly relate to a kind of TDS-CDMA system multi-channel amplitude and gain adjusting method and device.
Background technology
TD SDMA (TD-SCDMA, Time Division-Synchronization Code Division Multiple Access) in the system, in certain time slot, may exist a plurality of with the synthetic transfer channel (CCTrCH of coding frequently, situation about Coded Composite Transport Channel) sending together, the synthetic transfer channel of each coding in the channel is called a physical channel, or abbreviation channel, mutually orthogonal between the spreading code of these channels, at this moment, need to arrange or adjust amplitude and the gain of these CCTrCH channels, want adjusting range and gain on the one hand, to guarantee the transmitting power of these CCTrCH channels; To avoid on the other hand these CCTrCH channel powers excessive, cause the interference to other channels.
Take two channels as example, as shown in Figure 1, two channels are respectively CCTrCH1 and CCTrCH2, before supposing to enter antenna, adjusting respectively two channel magnitude is amp1 and amp2, the two common gain is gain, and physical layer is resolved high-rise order, and the transmitted power that obtains offering CCTrCH1 is P1, the transmitted power that offers CCTrCH2 is P2, so, according to power and amplitude relation, satisfy formula (1) between these parameters:
Can get formula (2) according to formula (1):
Wherein, the yield value gain that obtains in the formula (2) is linear value, generally speaking, control to gain is to realize gain adjusting operation to this time slot transmitted power by gain controller, be written to yield value in the gain controller and be the form with decibels above milliwatt (dBm:Decibels per milliwatt) value, the dBm value of gain is designated as g
Apc, formula (3) is then arranged:
g
apc=10lg(gain) (3)
In the TD-SCDMA system communication process, constantly send mutually through-put power control (TPC according to physical conditions such as load conditions between terminal and the base station, Transmission Power Control) word is adjusted with the next time slot transmission power to communication process.Regulation among the agreement 3GPP TS 25.221V5.6.0 (2005-06), the TPC control word is 00, represent that next time slot need to increase the through-put power of certain channel, and the TPC control word is 11, represents that next time slot need to reduce the through-put power of certain channel.Physical layer can obtain the watt level that next frame need to be adjusted by the TPC control word, is designated as Δ
TPC, general, Δ
TPCTake dBm as unit, correspondingly, the change value of channel power is Δ in the next time slot
P, Δ
PAnd Δ
TPCBetween relation satisfy formula (4):
According to the agreement regulation, can only take particular step size for the adjustment of power, be 1dB, because amplitude is directly proportional with the evolution value of power, so the amplitude adjustment also is definite value, is called amplitude and adjusts step delta
Step,
If in the next time slot, it is 1 relation that amp1 and amp2 continue to satisfy the amp1+amp2 sum, and formula (5) is then arranged:
In the prior art, utilize formula (5) and formula (3), the TPC control word that base station or terminal can be sent according to the other side is adjusted amplitude and the gain of each channel in next time slot.In this method of adjustment, because formula (5) need to carry out repeatedly extracting operation, and tries to achieve after the gain, need to convert thereof into dBm value g
Apc, the mode of described extracting operation and translation operation general using curve realizes that operational precision is low, operand is large.
Summary of the invention
In view of this, main purpose of the present invention is to provide a kind of TD-SCDMA system's multi-channel amplitude and gain adjusting method and device, can avoid the mode of extracting operation or curve that multi-channel amplitude and gain are adjusted, thereby computation reduction improve operational precision.
For achieving the above object, technical scheme of the present invention is achieved in that
The invention provides a kind of TDS-CDMA system multi-channel amplitude and gain adjusting method, comprise step:
Whether the through-put power control word for a plurality of channels that A, judgement are received equates, if so, then keeps the amplitude of each channel constant, and according to through-put power control word adjustment gain, otherwise execution in step B;
B, adjust the amplitude of each channel according to described through-put power control word, and obtain to adjust coefficient according to the relation between each channel magnitude;
C, according to the amplitude of each channel of adjustment coefficient adjustment that obtains, and adjust gain.
In the such scheme, described in the steps A according to through-put power control word adjustment gain be: the decibels above milliwatt value of gain is carried out according to described through-put power control word added one or subtract an operation.
In the such scheme, the amplitude of adjusting each channel according to the through-put power control word described in the step B is: according to described through-put power control word, the amplitude of each channel be multiply by amplitude adjust 1 or-1 power of step-length and obtain each new channel magnitude.
Wherein, described adjustment coefficient is the channel magnitude summation and adjusts step number, describedly to adjust coefficient according to the relation between the amplitude of each channel and be: obtain the amplitude summation of each channel, and to determine to adjust step number be 2 logarithm value for the inverse of channel magnitude summation being asked the end.
The method further comprised before steps A or B: according to channel magnitude summation and the correspondence setting relation table of adjusting step number, correspondingly, the operation of described definite adjustment coefficient realizes by inquiring about described relation table.
In the such scheme, described in the step C according to the adjustment coefficient adjustment that obtains be: the amplitude of each channel after will adjusting by step B respectively divided by the amplitude of each channel after adjusting and, obtain the amplitude after each channel adjustment of reality;
Described adjustment gain is: the decibels above milliwatt value of described gain is deducted 6 times adjustment step number.
The present invention also provides a kind of TDS-CDMA system multi-channel amplitude and gain regulator, and comprise amplitude adjustment unit, adjust coefficient acquiring unit and gain adjusting unit, wherein,
Amplitude adjustment unit, for the amplitude of adjusting a plurality of channels according to a plurality of transmission power control words, or according to adjusting the amplitude adjustment of coefficient to each channel;
Adjust the coefficient acquiring unit, be used for obtaining to adjust coefficient according to the relation between the amplitude of each channel;
Gain adjusting unit is used for the gain according to a plurality of transmission power control words or a plurality of channels of adjustment coefficient adjustment.
TD-SCDMA multi-channel amplitude provided by the present invention and gain adjusting method, adjust the amplitude of each channel according to a plurality of transmission power control words, and according to the amplitude do further adjustment of the relation between each channel magnitude to each channel, therefore can avoid using the mode of extracting operation or curve that multi-channel amplitude and gain are adjusted, realize that simply operation result is accurate and operand is little.
TD-SCDMA system's multi-channel amplitude provided by the present invention and gain regulator, only comprise amplitude adjustment unit, adjust coefficient acquiring unit and gain adjusting unit, just can adjust according to a plurality of transmission power control words the amplitude of each channel, and according to the relation between each channel magnitude the amplitude of each channel is done further to adjust, simple in structure, be easy to realize.
Description of drawings
Fig. 1 is the TD-SCDMA system carries out amplitude and gain adjustment to a plurality of channels schematic diagram;
Fig. 2 is TD-SCDMA system's multi-channel amplitude of the present invention and gain regulator structure chart;
Fig. 3 is TD-SCDMA system's multi-channel amplitude of the present invention and gain adjusting method flow chart.
Embodiment
Basic thought of the present invention is: adjust the amplitude of each channel according to described TPC control word, then obtain to adjust coefficient according to the relation between each channel magnitude; According to adjusting coefficient the amplitude of each channel is done further to adjust again, and adjust gain.
The invention will be further described below in conjunction with the drawings and specific embodiments.
As shown in Figure 2, TD-SCDMA system's multi-channel amplitude of the present invention and gain regulator comprise amplitude adjustment unit, adjust coefficient acquiring unit and gain adjusting unit, wherein,
Amplitude adjustment unit is used for the power according to the whole a plurality of channels of a plurality of channel TPC tones of Chinese characters, or according to adjusting coefficient the amplitude of each channel is done further to adjust.The input of amplitude adjustment unit is a plurality of channel TPC control word Δs
TPC_ 1, Δ
TPC_ 2 ... Δ
TPC_ n, wherein, Δ
TPC_ 1, Δ
TPC_ 2 ... Δ
TPC_ n mails to base station or base station from terminal and mails to the control command of terminal and obtain, and when the needs increasing power, value is 1, and when needs reduced power, value was-1, otherwise value is 0.
The input of described amplitude adjustment unit also may be to adjust coefficient, and in this case, the amplitude of each channel is carried out according to described adjustment coefficient, and the output of described amplitude adjustment unit is the amplitude of each channel, the amplitude of each channel is transferred to adjust the coefficient acquiring unit.
Adjust the coefficient acquiring unit, be used for obtaining to adjust coefficient according to the relation between each channel magnitude, described adjustment coefficient comprises two, is respectively: channel magnitude summation value, adjustment step number n;
Gain adjusting unit, be used for according to a plurality of channel TPC control words or adjust the gain that step number n adjusts a plurality of channels, if namely a plurality of channel TPC control words equate, then direct that each channel is common TPC control word adds in the dBm value of gain, if a plurality of channel TPC control words do not wait, then according to the calculating formula of adjusting step number, ask for the dBm value of gain, with the amplitude adjustment of offsetting each channel impact on overall transmission power, for example adjust step number by the channel magnitude summation being asked certain number obtain the adjustment step number for the logarithm at the end, then the dBm value of gain deducts 3 times of these numbers and multiply by the adjustment step number.
As shown in Figure 3, TD-SCDMA system's multi-channel amplitude of the present invention and gain adjusting method may further comprise the steps:
Step 101: judge whether the TPC control word for a plurality of channels that receives equates, if equate, then keeps the amplitude of each channel constant, according to through-put power control word adjustment gain, otherwise execution in step 102.
Here, described receiving is that terminal or base station receive the opposite end and send the TPC control word, that is: described TPC control word mails to base station or base station from terminal and mails to the control command of terminal and obtain, when the needs increasing power, this control word value is 1, when needs reduce power, value is-1, otherwise value is 0, if n channel arranged, then its TPC control word separately is respectively Δ
TPC_ 1, Δ
TPC_ 2 ... Δ
TPC_ n.
If Δ
TPC_ 1, Δ
TPC_ 2 ... Δ
TPC_ n is equal to each other, and then keeps the amplitude of each channel constant, and adjusts the common gain of each channel according to the through-put power control word, establishes that the amplitude of each channel is respectively amp1, amp2......ampn before adjusting, and the decibels above milliwatt value of gain is g
Apc, each the channel amplitude after then adjusting and the decibels above milliwatt value of gain are amp1_new=amp1, amp2_new=amp2......ampn_new=ampn, g
Apc_ new=g
Apc+ Δ
TPC_ 1, because Δ
TPC_ 1 can only value ± 1 and 0, namely the decibels above milliwatt value of gain carried out according to described TPC control word to add one or subtract operation or an inoperation.
Step 102: the amplitude of adjusting each channel according to described through-put power control word.
The method of described adjustment is: the amplitude of each channel be multiply by the TPC control word power that amplitude is adjusted step-length, obtain each new channel magnitude, namely have
Step 103: obtain to adjust coefficient according to the relation between the amplitude of each channel.
Pass between described each channel magnitude is that the amplitude sum of each channel should be 1, described adjustment coefficient comprises channel magnitude summation value, adjusts step number n, wherein, it is 2 logarithm value that the inverse of adjusting step number n and be the channel magnitude summation is asked the end, be value=amp1_new+amp2_new+......+ampn_new, and
Owing to shift left in the binary computations, the operation of dextroposition is and takes advantage of 2 or except 2 operation, is that 2 logarithm just can in the hope of the figure place that is shifted, namely be adjusted figure place n so ask the end.But n might not be restricted to the inverse of channel magnitude summation is asked the end is 2 logarithm value, and also can ask the end to the inverse of channel magnitude summation is logarithm value of 10 etc., only needs this moment the gain adjustment mode in the corresponding change step 104 to get final product.
Under the physical condition, n might not be integer, so can realize with some mathematical measures asking for of n, for example in order to accelerate the speed of asking for of n, can before this step, preset the relation table of n value and value value, then try to achieve the n value by the operation of inquiring about described relation table.
Step 104: according to the adjustment coefficient that obtains the amplitude of each channel is done further to adjust, and adjust gain.
After the adjustment by step 102, the amplitude summation of each channel also no longer can guarantee to be 1, so need to do further to adjust to the amplitude of each channel, method of adjustment is: the amplitude of each channel after will adjusting by step 102 respectively is divided by the amplitude summation of each channel after adjusting, as each actual channel magnitude after adjusting, namely the actual margin of each channel is amp1_real=amp1_new/value, amp2_real=amp2_new/value, ..., ampn_real=ampn_new/value.Adjustment in this way just can guarantee that actual channel amplitude summation is 1.
In order to offset the amplitude adjustment of each channel, further adjustment is made in the gain of each channel, method of adjustment is: corresponding to being that 2 logarithm value is the situation of n value by the inverse of channel magnitude summation being asked the end in the step 103, the decibels above milliwatt value of described gain is deducted 6 times adjustment step number, i.e. actual gain g
Apc_ real=g
Apc-6*n.If in the step 103 to the inverse of channel magnitude summation ask the end be logarithm value of other numbers as the n value, then actual gain changes thereupon, for example the inverse of channel magnitude summation being asked the end is that 10 logarithm is as n value, then g
Apc_ real=g
Apc-30*n.
The above; it only is preferred embodiment of the present invention; be not for limiting protection scope of the present invention; those skilled in that art should be able to associate; ask for by other means the adjustment step number; or obtain by other means actual gain value, and other is equal to accordingly to change or replace according to technical scheme of the present invention and design thereof and all should belongs to protection scope of the present invention.