[summary of the invention]
One of object of the present invention is to overcome above-mentioned deficiency, and a kind of communication relay device standing wave calibrating method is provided, and sets up the comparable data of communication relay device standing wave calibration with the calculating of lower complexity and the input of lower cost.
Communication relay device another object of the present invention is to the communication relay device standing wave calibration steps that provides a kind of and aforementioned standing wave calibrating method corresponding, so that can be realized standing wave calibration rapidly.
For realizing object of the present invention, the present invention adopts following technical scheme:
Communication relay device standing wave calibrating method of the present invention, it comprises the steps:
1) according to the bandwidth of operation requirement of communication relay device, this bandwidth of operation is divided into some frequency sub-band, determines the working frequency points of each frequency sub-band;
2) for each antenna port, provide emitting voltage signal with different working frequency points, default multiple transmitting powers, obtain this emitting voltage signal and corresponding reflected voltage signal and carry out carrying out after digitized sampling following subprocess:
2.1 ask for the statistics magnitude of voltage of emitting voltage signal to be proportional to the corresponding relation of data length of emitting voltage signal;
2.2 differences of asking between reflection power value corresponding to this reflected voltage signal and transmission power level corresponding to emitting voltage signal are converted to return loss, and this return loss is converted into standing-wave ratio;
3) by each antenna port in step 2) corresponding relation that exists between standing-wave ratio, return loss, statistics magnitude of voltage under the different frequency different transmission power that obtains is stored in the master controller of communication relay device for standing-wave ratio calibration with tables of data form.
Disclose according to one embodiment of present invention, step 3) in, corresponding relation by described return loss and statistics between corresponding relation, return loss and the standing-wave ratio between magnitude of voltage is stored in the master controller of communication relay device for standing-wave ratio calibration with tables of data form independently respectively, between two tables of data, is associated with return loss.In order to submit the correlation between standing-wave ratio, return loss and statistics magnitude of voltage to, forming when tables of data, make it level and smooth for return loss under each working frequency points with adding up the corresponding relation constructor curve between magnitude of voltage and curve is carried out to matching.
Disclose according to another embodiment of the present invention step 3) in, what only by described standing-wave ratio and statistics, the corresponding relation between magnitude of voltage was stored in the master controller of communication relay device for standing-wave ratio calibration with tables of data form.In order to submit standing-wave ratio and the correlation of statistics between magnitude of voltage to, in the time forming tables of data, make it level and smooth for standing-wave ratio under each working frequency points with adding up the corresponding relation constructor curve between magnitude of voltage and curve is carried out to matching.
Adapt to the needs of programming, step 2) repeat as follows the execution of described subprocess:
21, determine the current antenna port of calibrating;
22,, for current antenna port, carry out operation as follows:
A, determine current working frequency points of calibrating;
B, for current working frequency, be in default multiple transmitting powers described in emitting voltage signal initial setting, carry out operation as follows:
B1, carry out described subprocess 2.1-2.2;
B2, to change described transmitting power be another in described default multiple transmitting powers, returns to step b1 and circulate, until all default multiple transmitting powers are called complete;
C, change current working frequency are another working frequency points, return to step b and circulate, until each working frequency points of communication relay device is called complete;
23, changing current antenna port is another antenna port, returns to step 22 and circulates, until each antenna port of communication relay device is all called complete.
Concrete, the digitized sampling of described reflected voltage signal and emitting voltage signal is carried out in an analog to digital converter, and subprocess 2.1-2.2 carries out in a chip, the counting of the register of this chip has characterized the data length of described emitting voltage signal, and described statistics magnitude of voltage is proportional to this register counting.
Preferably, step 2) in realize the simulation to antenna port by mismatch load.
Communication relay device standing wave calibration steps of the present invention, it comprises the steps: corresponding to aforesaid standing wave calibrating method
1) obtain the emitting voltage signal that needs the antenna port of calibrating, by this signal digitalization sampling;
2) ask for the statistics magnitude of voltage of the digitized sampling the data obtained length that is proportional to emitting voltage signal;
3) search to be pre-stored in communication relay device master controller, to have established between standing-wave ratio and statistics magnitude of voltage directly or indirectly in one or more tables of data of corresponding relation, add up magnitude of voltage and step 2) statistics magnitude of voltage between the record of difference minimum, this is recorded to corresponding standing-wave ratio and is defined as the standing-wave ratio of this antenna port.
Disclose according to one embodiment of present invention, set up respectively two tables of data of direct corresponding relation because existing between described standing-wave ratio and return loss, between return loss and statistics magnitude of voltage, between two tables of data, set up the indirect corresponding relation between standing-wave ratio and statistics magnitude of voltage taking return loss as association, step 3) carry out based on these two tables of data.
Disclose according to another embodiment of the present invention, have a unique tables of data of setting up direct corresponding relation between described standing-wave ratio and statistics magnitude of voltage, step 3) carry out based on this unique tables of data.
In like manner, based on the correspondence of last method, the digitized sampling of described emitting voltage signal is carried out in an analog to digital converter, and step 2) in a chip, carry out, the counting of the register of this chip has characterized the data length of described emitting voltage signal, and described statistics magnitude of voltage is proportional to this register counting.
Compared with prior art, tool of the present invention has the following advantages:
1, the present invention carries out standing wave calibration to it in the time that communication relay device dispatches from the factory, and in the time that communication relay device moves, utilize the standing wave calibration steps corresponding with standing wave calibrating method to carry out standing wave calibration, simplify complexity when later stage standing wave is calibrated, disposable operation when standing wave is calibrated while dispatching from the factory, brings the facility that in follow-up operation process, standing wave is calibrated;
2, in the time that standing wave is calibrated, by emitting voltage signal is carried out to voltage statistic, and corresponding relation between the statistics magnitude of voltage of each working frequency points and return loss and even standing-wave ratio is carried out to curve, curvilinear function can be led, improve the correlation between statistics magnitude of voltage and return loss and even standing-wave ratio, calculated more facility is provided for program;
3, when calibration in, is by being stored in the corresponding relation between statistics magnitude of voltage and return loss and even standing-wave ratio in internal memory with the form of spreadsheet, statistics magnitude of voltage in the time that standing wave is calibrated in retrieve data table is to determine a record, and the corresponding relation according to this record is retrieved to standing-wave ratio, middle or quote return loss, howsoever, computational efficiency when the table mode of searching has improved standing wave detection, calibration greatly, has reduced the data processing time of the master controller of communication relay device;
4, because of described above and advantage, make each method of the present invention reduce the hardware index request of the master controller of corresponding computing chip and communication relay device, can take the chip with low cost such as FPGA, DSP to realize, thereby also reduce the holistic cost of communication relay device.
[embodiment]
Below in conjunction with drawings and Examples, the present invention is further illustrated:
The present invention follows in the time dispatching from the factory the advanced moving standing wave of communication relay device is calibrated, and the rule of communication relay device being carried out standing wave calibration in the time that communication relay device moves, therefore, has corresponding property between standing wave calibrating method of the present invention and standing wave calibration steps.
Refer to Fig. 1, in the local circuit theory diagram of a communication relay device of the present invention, the down link that has disclosed communication relay device is by coupler 61 the transmitting that the final stage amplifier tube 41 of a route digital pre-distortion power amplifying system exports that be coupled, utilized the reflected signal of a route up link reflection simultaneously, this transmits and is switched and be transferred in a power splitter 64 by time slot by a time slot switch 62 with reflected signal, described in this power splitter 64 generals, transmit and be respectively distributed into two-way output with reflected signal, wherein a road is fed in the feedback frequency conversion link 65 of described digital pre-distortion power system, another road is assigned in the RMS power detection pipe 66 that price is comparatively cheap.Transmit with reflected signal after power detection pipe 66 detects, become respectively emitting voltage signal and reflected voltage signal, be respectively and characterize the analog signal transmitting with the voltage magnitude of reflected signal, these two analog signals are further converted to number format by analog to digital converter 67 digitized sampling, then be transferred in a computing unit of being realized by fpga chip 68, by realizing in this computing unit 68 after the part computing function of standing wave calibrating method of the present invention and method for detecting standing wave, by one, the control unit such as computer (not shown) has coordinated other function of standing wave calibrating method of the present invention and method for detecting standing wave with the master controller (not shown) of communication relay device again.
In an exemplary embodiments of the present invention, standing wave calibrating method of the present invention comprises following concrete steps:
1, known, according to the bandwidth of operation requirement of communication relay device, the bandwidth of operation of communication system is divided, be divided into the frequency sub-band of several segmentations, then determine the center frequency point of each frequency sub-band, be its working frequency points.
2, calibrate for each antenna port of communication relay device.Specifically first set an initial antenna port and calibrate, then successively follow-up antenna port is calibrated, until the calibration of all antenna ports is complete.For the simulation of antenna port, set gradually different mismatch loads by described control unit and realize.
For each antenna port, must calibrate for multiple frequency sub-band of communication relay device.Specifically first in described multiple working frequency points, choosing one is set as current working frequency and calibrates.Then set successively follow-up working frequency points and calibrate, until all working frequency points are scaled complete.
For each working frequency points, need, for the default multiple transmitting powers that transmit, final emitting voltage signal to be formed under different transmitting powers.Well-known, transmit and reflected signal between there is definite proportional relation with power magnitude is different, return loss is the poor of reflected voltage signal and emitting voltage signal, shows as following formula:
RL(dB)=P
indBm-P
refdBm
Visible, by asking for the emitting voltage signal (P of certain antenna port
in) and reflected voltage signal (P
ref) difference of the power that characterized separately, just can obtain the concrete numerical value of described return loss (RL).This computational process realizes in described computing unit 68.
In computing unit 68, except calculate described in transmit and reflected signal between difference, also described emitting voltage signal is carried out to voltage magnitude and adds up.The figure place of described analog to digital converter is set, and for example number of significant digit n is 12, and the chip of computing unit 68 reads the emitting voltage signal data of analog to digital converter in due order, and the number of times reading is documented in the register of chip.The counting of register has obviously characterized the data length in emitting voltage signal, specifically depends on the Frame length in the signal frame of emitting voltage signal.
The statistics of the magnitude of voltage to emitting voltage signal is carried out with following formula:
Wherein V is the statistics magnitude of voltage of emitting voltage signal, the decimal system counting that a is register, V
p-pfor the maximum of ADC quantizes peak-to-peak voltage value, T is the time of reading a register, N
samplefor the sampling rate of ADC real work, index n refers to the valid data figure place of analog to digital converter.Can be found out by above formula, between described statistics magnitude of voltage and the counting of register, have proportional relation, because the counting of register has characterized emitting voltage signal data length, therefore, described statistics magnitude of voltage is proportional to the data length of emitting voltage signal.
Computing unit 68 is that the emitting voltage signal under each transmitting power effect is recorded corresponding statistics magnitude of voltage and corresponding return loss, confirmed the corresponding relation between statistics magnitude of voltage and the return loss of the emitting voltage signal under a particular transmission power, by that analogy, established the corresponding relation between statistics magnitude of voltage and the return loss of the emitting voltage signal under each default transmitting power effect under each specific works frequency of each port.
For each antenna port, by it, the statistics magnitude of voltage under the multiple transmitting power effects under each working frequency points and the corresponding relation between return loss are incident upon on coordinate system, characterize return loss with transverse axis, characterize statistics magnitude of voltage with the longitudinal axis, each point is carried out to line, built a function curve, as shown in Figure 2, this function obviously can not be led.In order to further illustrate this unsmooth relation, can further consult Fig. 3, Fig. 3, taking each return loss as basis, will set up corresponding relation between each working frequency points of the each return loss of correspondence and each statistics magnitude of voltage, and is projected in formation image on coordinate.In like manner can find out that by Fig. 3 its curve shortcoming forming is level and smooth.
Therefore, computing unit 68 further carries out curve fitting to this function curve, makes it to lead, and improves the correlation between return loss and statistics magnitude of voltage, and the specific algorithm of matching is as follows:
In Fig. 2, abscissa is expressed as x, characterizes return loss; Ordinate is expressed as y, characterizes statistics magnitude of voltage.The one-dimension array of working frequency points is expressed as: [y
1, y
2, y
3... .y
n], y
m(1≤M≤N), transmit power data is abstract is (x
1, y
1) ... (x
m, y
m), first calculate the value suc as formula (1)-Shi (8)
P=x
1+x
2+x
3+...+x
M (1)
Q=x
1 2+x
2 2+...+x
M 2 (2)
R=x
1 3+x
2 3+...+x
M 3 (3)
S=x
1 4+x
2 4+...+x
M 4 (4)
T=y
1+y
2+...+y
M (5)
U=x
1y
1+x
2y
2+...+x
My
M (6)
V=x
1 2y
1+x
2 2y
2+...+x
M 2y
M (7)
D=N*Q*S+2*P*Q*R-Q
3-P
2*S-N*R
2(8)
Then determine the equation of final conic section according to formula (1) formula (8), establish this equation expression formula and be
y=ax
2+bx+c (9)
Can obtain so:
a=(N*Q*V+P*R*T+P*Q*U-Q
2*T-P
2*V-N*R*U)/D (10)
b=(N*S*U+P*Q*V+Q*R*T-Q
2*U-P*S*T-N*R*V)/D (11)
c=(Q*S*T+Q*R*U+P*R*V-Q
2*V-P*S*U-R
2*T)/D (12)
Then by (x
1, y
1) ... (x
m, y
m) in abscissa bring respectively above-mentioned quadratic equation into, just can obtain the figure of the smoothed curve after conic fitting as shown in Figure 4 and Figure 5.Fig. 4, Fig. 5 are corresponding with Fig. 2, Fig. 3 respectively, and the latter belongs to the former improvement effect after data fitting.
Practical engineering application shows, this curve fitting algorithm can better meet actual needs, can improve the standing wave accuracy of detection requirement of wireless broadband base station.
By the curve after matching as shown in Figure 4 and Figure 5, visible, the function after matching can be led, and curve smoothing has improved the correlation between statistics magnitude of voltage and return loss greatly.
For ease of further determining the corresponding relation between statistics magnitude of voltage and standing-wave ratio, in computing unit 68, often draw in a return loss, directly return loss is converted to standing-wave ratio according to known transformational relation, each statistics magnitude of voltage has a return loss corresponding with it, and then has a standing-wave ratio in contrast should.
For the facility of programming, the subprocess of computing unit in this step 68 being carried out to the calibration of each antenna port carries out programming with following form:
1), determine the current antenna port of calibrating;
2), for current antenna port, carry out as follows operation:
A, determine current working frequency points of calibrating;
B, for current working frequency, be in default multiple transmitting powers described in emitting voltage signal initial setting, carry out operation as follows:
B1, carry out described subprocess 2.1-2.2;
B2, to change described transmitting power be another in described default multiple transmitting powers, returns to step b1 and circulate, until all default multiple transmitting powers are called complete;
C, change current working frequency are another working frequency points, return to step b and circulate, until each working frequency points of communication relay device is called complete;
3), to change current antenna port be another antenna port, return to step 22 and circulate, until each antenna port of communication relay device is all called complete.
Certainly, the mode of programming is flexibly, can adopt with upper type, realizes with while statement, also can realize by for statement, is as the criterion with the design that obtains optimal algorithm.
3, after the curve computing of corresponding relation between the statistics magnitude of voltage under the different transmission power effect under each working frequency points that completes all antenna ports and return loss, standing-wave ratio, by described control unit, the corresponding relation after this curve is stored in the master controller of communication relay device inside with the form of tables of data, so that follow-up standing wave calibration steps is shown to search.
Corresponding relation between statistics magnitude of voltage and return loss, standing-wave ratio is realized respectively with two tables of data under the control of control unit, sets up associated between two tables of data with return loss.Also, one of tables of data is recorded the corresponding relation between statistics magnitude of voltage and return loss, two corresponding relations of recording between return loss and standing-wave ratio of tables of data, and return loss is two associated data territories between table.Two tables of data are all stored in the master controller of communication relay device for searching.For the tables of data that characterizes corresponding relation between statistics magnitude of voltage and return loss, established by computing unit 68.For the tables of data that characterizes corresponding relation between return loss, because the corresponding relation between return loss and standing-wave ratio is known reckoning, therefore, the foundation of this tables of data itself can be processed flexibly.In the present embodiment, between return loss and standing-wave ratio, the tables of data of corresponding relation is just formed in the time dispatching from the factory, and and described statistics magnitude of voltage and standing-wave ratio between corresponding relation tables of data together controlled unit process and be stored in the master controller (master controller includes internal or external memory cell, lower with) of communication relay device.And in another embodiment of the present invention, can in the time moving, set up the tables of data of corresponding relation between an interim return loss and standing-wave ratio by the computing of self by communication relay device, realize and needn't specify in computing unit 68.Can further simplify thus the amount of calculation of described computing unit 68.
As previously mentioned, can form a more complete tables of data that is stored in communication relay device master controller by gathering statistics magnitude of voltage under the various transmitting powers of the multiple working frequency points of many antenna ports and the corresponding relation between return loss, while being convenient to communication relay device follow-up operation, quote.Build the mode of this tables of data, in form, can realize with three-dimensional data table.Shown in table specific as follows: set multiple data fields, be respectively " return loss ", " f1 ", " f2 " ... for each line item of tables of data, every a line represents corresponding relation between the statistics magnitude of voltage of multiple different operating frequencies of certain particular port and same return loss.Wherein, " f1 " is for recording the statistics magnitude of voltage under first particular job frequency, " f2 " is for recording second statistics magnitude of voltage under particular job frequency, by that analogy ... " return loss " data field is for recording the concrete numerical value of the return loss corresponding with these statistics magnitudes of voltage.
Table 1: the tables of data that characterizes corresponding relation between statistics magnitude of voltage and return loss
As previously mentioned, have known corresponding relation between return loss and standing-wave ratio, following table further illustrates according to a constructed tables of data of its corresponding relation for reference:
Table 2: the tables of data that characterizes corresponding relation between standing-wave ratio and return loss
Standing-wave ratio |
Return loss (dB) |
1.3 |
17.7 |
1.4 |
15.5 |
1.5 |
14.0 |
1.6 |
12.7 |
1.7 |
11.7 |
1.8 |
10.9 |
1.9 |
10.2 |
2 |
9.5 |
2.1 |
9.0 |
2.2 |
8.5 |
2.3 |
8.1 |
2.4 |
7.7 |
2.5 |
7.4 |
Visible, by the relevance combination of above-mentioned two tables of data, can table look-up and determine the standing-wave ratio of certain antenna port by statistics magnitude of voltage.The foundation of the tables of data that these two tables of data especially characterize corresponding relation between statistics magnitude of voltage and return loss in the master controller of communication relay device, indicate the realization of standing wave calibrating method of the present invention, the master controller of communication relay device is able to the parameter setting according to those table update communication relay devices.
Be adapted to this standing wave calibrating method, corresponding standing wave calibration steps provided by the invention coordinates realization at the master controller of communication relay device with described computing unit 68, while being applicable to communication relay device operation.Communication relay device, under the control of its master controller, carries out standing wave detection in the mode of repeating query to its each antenna port.Concrete standing wave calibration steps for each antenna port is realized by following step:
1, line cap every day of calibrating for needs, for being obtained by coupler 61 and by the emitting voltage signal of power detection pipe detection, adopt described analog to digital converter to carry out digitized sampling to this emitting voltage signal, to provide digitized emitting voltage signal to do further computing to described computing unit 68.
2, in computing unit 68, identical data statistical approach in utilization and calibrating method, emitting voltage signal is carried out to magnitude of voltage statistics, to ask for the statistics magnitude of voltage of the digitized sampling Len got that is proportional to emitting voltage signal, this statistics magnitude of voltage is offered to master controller.
3, because corresponding two tables of data being stored in when calibration in the respective memory unit of master controller of communication relay device (between return loss and standing-wave ratio the data of corresponding relation can be in the time that communication relay device starts initialization form), so, in the memory cell of master controller, established the indirectly corresponding relation between standing-wave ratio and statistics magnitude of voltage by two tables of data.The statistics magnitude of voltage that master controller provides taking computing unit 68 is retrieval reference, between described sign statistics magnitude of voltage and return loss, in the tables of data of corresponding relation, retrieves.Concrete search method is by the each statistics magnitude of voltage in each line item of this tables of data relatively and should be as the difference between the statistics magnitude of voltage of retrieval reference, the record that compares difference minimum is defined as retrieving required PRELIMINARY RESULTS, due to determining of this record, also in this record, determined with this return loss as the statistics magnitude of voltage of retrieval reference.
Further utilize this fixed return loss to determine standing-wave ratio.Specifically utilizing this return loss in the tables of data of described sign standing-wave ratio and return loss corresponding relation, to search comparison as retrieval reference.With the identical method of aforementioned retrieval, by relatively each line item in return loss and this tables of data as retrieval reference being carried out to subtraction comparison, the record of difference minimum is confirmed as retrieving required PRELIMINARY RESULTS, and the standing-wave ratio extracting from this record is just finalized the standing-wave ratio into current antenna port.
By above steps, standing-wave ratio calibration is just achieved.
In another embodiment of the present invention, the tables of data of corresponding relation between tables of data, return loss and the standing-wave ratio of corresponding relation between described statistics magnitude of voltage and return loss, both associated merging, return loss is as an associated intermediate variable.Particularly, in the time of calibration, computing unit 68 is further directly extrapolated corresponding standing-wave ratio after asking for corresponding return loss, between described statistics magnitude of voltage and return loss, in the tables of data of corresponding relation, increase by row for recording the standing-wave ratio being associated with return loss, or save return loss, directly only record the corresponding relation between standing-wave ratio and statistics magnitude of voltage, become individual data table.
This data table stores in the memory cell of master controller after, when moving standing wave calibration is gone forward side by side in communication relay device operation, carry out difference comparison by statistics magnitude of voltage that computing unit 68 is provided and each statistics magnitude of voltage of this tables of data, difference is the standing-wave ratio that records corresponding standing-wave ratio and be current antenna port at hour place, has more directly realized thus the calibration of standing-wave ratio.
Similarly the flexible change based on computer program design should be known by those skilled in the art.
In sum, the present invention provides corresponding standing wave calibrating method and standing wave calibration steps for communication relay device, curve data with the form of tables of data after to matching is stored, standing-wave ratio calibration while being convenient to follow-up operation, when calibration, amount of calculation is few, greatly improve detection efficiency, reduced the hardware cost adopting, be applicable in broadband system.
Although the present invention only provides above embodiment, but, those skilled in the art are reading over after this specification, in conjunction with common practise, should be able to associate more embodiment, but such embodiment is the spirit of unconventional the claims in the present invention not, any type of being equal to, replaces or embodiment that simple modification all should be considered as being included by the present invention.