A kind of method and apparatus of whole channel primary searching
Technical field
The present invention relates to the whole channel primary searching technology of code division multiple access (CDMA) system terminal, particularly relate to a kind of whole channel primary searching automatic gain control (AGC) method of adjustment and based on the device of this method.
Background technology
Growing along with wireless communication technology, it is more and more to use portable terminal to carry out the user of radio communication, and simultaneously, also when the river rises the boat goes up to the requirement of wireless communication technology and portable terminal to have mobile terminal user.Such as, for the user that frequent commercial affairs are gone on business or traveled, the communication capacity of travelling carriage under roaming state is very important.In cdma system, when travelling carriage roams to the another one country from a country, and when the planning of the frequency spectrum between two countries there are differences, perhaps during the long-time out of reach of travelling carriage, in order to search out new network timely, travelling carriage must carry out Cell searching in full frequency band, whether have available network resources in the whole frequency for confirmation.
Roam to the situation of other country for travelling carriage, travelling carriage needs to finish a full frequency band search at least just can search out available network; For the situation of the long-time out of reach of travelling carriage, travelling carriage must constantly repeat the process of full frequency band search, until coming back to network coverage area.Usually, the process of full frequency band search is consuming time longer, will cause the operating mobile station decrease in efficiency.In addition, no matter be above-mentioned which kind of situation, when carrying out the full frequency band search, travelling carriage is in running order all the time, and this will cause consuming excessively of travelling carriage battery, thereby reduce greatly the stand-by time of travelling carriage and the useful life of battery.So, improve the speed of full frequency band search, be the key issue that improves operating mobile station efficient and service efficiency.
At present existing several different methods improves the speed of full frequency band search, wherein a kind of is the method for utilizing received signal intensity indication (RSSI), its principle is: in general, near near the working frequency points other idle frequency of RSSI power ratio RSSI power is higher usually, therefore, before the search available cell, the RSSI performance number (being designated hereinafter simply as the RSSI value) of the frequency of full frequency band is sorted, promptly, at first measure the RSSI value of all frequencies in the full frequency band scope, according to the result who measures, according to the size of RSSI value all frequencies are sorted, be the priority of all frequency point setting Cell searchings then according to ranking results, sequencing according to frequency priority is carried out Cell searching, that is to say that when the search available cell, the frequency that RSSI power is strong has precedence over the low frequency of power.
But, the excursion of the RSSI value of working frequency points is very big, with the TD-SCDMA terminal is example, the RSSI maximum of its received signal is-25 decibels above milliwatts (dBm), minimum value is-108dBm, excursion reaches 83 decibels (dB), in addition, also there is very big excursion in RSSI value between the different frequent points of frequency range, and still, the sample quantization figure place of analog to digital converter (ADC) is generally 4 to 12 at present, the variation of RSSI value might exceed the expression scope of ADC, so, need to adjust automatic gain control (AGC) yield value usually the RSSI value is adjusted, make adjusted RSSI value within the ADC quantizing range.
To the RSSI value adjust be to rssi measurement to value add that AGC adjusts increment, when RSSI value scope is excessive, carry out the AGC adjustment after, its span will be dwindled, and be convenient to the RSSI value is quantized and analog-to-digital conversion.Otherwise, if RSSI value scope is too small, carries out the AGC adjustment its span is enlarged, be convenient to its value is quantized and analog-to-digital conversion.
In whole channel primary searching, the method for adjustment of most of AGC is to adopt fixing AGC yield value at present, and promptly in whole full frequency band frequency point sequencer procedure, for the RSSI value of all frequencies, the AGC yield value remains constant.
The method of the AGC yield value that this employing is single has distinct disadvantage, before carrying out the full frequency band frequency point measurement, portable terminal can't be determined the RSSI watt level of real work frequency, so, when the signal power of real work frequency is bigger, if it is excessive that the AGC yield value is provided with, then the RSSI value of real work frequency is with saturated; Otherwise too small if the AGC yield value is provided with when the signal power of working frequency points is smaller, then the number of significant digit of the RSSI value of working frequency points will be very few.In the above two kinds of cases, frequency is measured can't reach certain certainty of measurement, and real working frequency points might can't come to be disturbed before the frequency, makes that the resultant error that sorts according to frequency RSSI value is bigger, even loses meaning.Its final result is that the whole channel primary searching process is had to spend the more time and got rid of disturbing frequency, the successful turn-on time that this has just increased whole Cell searching greatly, becomes the Cell searching bottleneck of performance.
The method of adjustment of another kind of AGC is that the RSSI value to each frequency takes multiple measurements, and adjusts the AGC yield value of this frequency according to the rssi measurement result of certain frequency last time, in the AGC yield value is stabilized in a reasonable range.
The advantage of this method is to provide than first method measured value more accurately, but also has open defect: at first, each frequency is taken multiple measurements the excessive cycle that will cause full frequency band frequency point to be measured, poor in timeliness; Secondly, the AGC yield value difference between each frequency is introduced measure error easily; The 3rd, this method is not considered the correlation that exists between the frequency, and it is rationally utilized; At last, this method is subjected to the influence of noise and decline easily.
Summary of the invention
Main purpose of the present invention is to provide a kind of method of whole channel primary searching, adjusts the AGC yield value by mode flexibly and fast, improves the speed and the accuracy rate of whole channel primary searching.
Another object of the present invention is to provide a kind of whole channel primary searching device, realize the AGC yield value is carried out flexibly and adjustment fast.
The objective of the invention is to be achieved through the following technical solutions:
A kind of method of whole channel primary searching comprises the steps:
A, automatic gain is set, and to adjust the AGC initial yield value be current AGC yield value;
The received signal intensity indicating RSSI value of frequency adopts current AGC yield value that all detected RSSI values are adjusted in B, the measurement full frequency band, and calculates AGC according to all adjusted RSSI values of gain and adjust increments;
C, judge whether the absolute value that AGC adjusts increment adjusts thresholding less than the AGC gain that is provided with, if, execution in step D then, otherwise, the AGC of current AGC yield value and calculating is adjusted the increment sum as new AGC yield value, judge whether new AGC yield value exceeds the maximum range of AGC, if, execution in step D then, otherwise, new AGC yield value as current AGC yield value, is returned step B then.
D, all RSSI values that the last time is measured gained sort, and according to ranking results the priority of each frequency are set, and carry out Cell searching according to priority orders then.
Wherein, this method further comprises: the RSSI desired value is set,
The described calculating of step B AGC adjustment increment is poor for maximum RSSI value in this measurement frequency and RSSI desired value.
Wherein, described target RSSI value can be configured such that the RSSI value is unsaturated and make the RSSI value have the arbitrary value of default number of significant digit.
Preferably, described target RSSI value is 0dB.
Wherein, described AGC initial yield value can be configured such that the undersaturated arbitrary value of maximum RSSI value.
Preferably, described AGC initial yield value is 40dB.
Wherein, this method further comprises: the AGC gain is set adjusts thresholding,
Wherein, in step B, the RSSI value of measuring frequency in the full frequency band is: measure the RSSI value of all frequencies in the full frequency band, or the RSSI value of frequency uniformly-spaced in the measurement full frequency band.
A kind of device 20 of whole channel primary searching comprises radio-frequency module 21, measures order module 22, control module 23 and cell search module 24, wherein,
Radio-frequency module 21 receives radio frequency signal by the antenna of portable terminal, and exports radiofrequency signal to measurement order module 22;
Measure the radiofrequency signal that order module 22 received RF modules 21 transmit, measure the RSSI value of frequency in the full frequency band, adopt current AGC yield value that all detected RSSI values are adjusted, and calculate the AGC value according to all adjusted RSSI values of gain and adjust increment, RSSI value to frequency in the full frequency band sorts, according to ranking results the priority of each frequency is set, and exports priority and ranking results to cell search module 24;
Cell search module 24 is carried out Cell searching according to the ordering and the priority result that measure order module 22 outputs;
Control module 23 is provided with radio-frequency module 21 and measures the radio frequency carrier frequency and the AGC initial yield value of order module 22,
When measuring AGC value that order module 22 calculates and adjust the absolute value of increment and adjust thresholding, send the ordering index signal to measurement order module 22 less than the AGC gain that is provided with;
When the absolute value of AGC adjustment increment is not less than the AGC gain adjustment thresholding of setting, the AGC of current AGC yield value and calculating is adjusted the increment sum as new AGC yield value, if new AGC yield value exceeds the maximum range of AGC, then send the ordering index signal to measuring order module (22), otherwise, new AGC yield value as current AGC yield value, and is sent the measurement index signal to measuring order module (22).
Wherein, described measurement order module 22 comprises rssi measurement unit 221, AGC incremental computations unit 222 and RSSI sequencing unit 223,
Rssi measurement unit 221 receives the measurement index signal of control units 23, the RSSI value of frequency in the full frequency band is measured, and with result transmission to AGC incremental computations unit 222;
The measurement result that AGC incremental computations unit 222 transmits according to rssi measurement unit 221 is calculated AGC value and is adjusted increment, and the AGC value adjustment increment that will calculate gained exports control device 23 to;
RSSI sequencing unit 223 receives the ordering index signal of control module 23, the RSSI value of frequency sorts in the full frequency band that rssi measurement unit 221 is sent, according to ranking results the priority of each frequency is set, exports priority and ranking results to cell search module 24 then.
The method of whole channel primary searching of the present invention, set the AGC gain initial value, and the RSSI value of fixing frequency in this AGC yield value measurement full frequency band, and calculate the adjustment increment of AGC in the full frequency band measuring process that next time may carry out according to the measurement result of RSSI value, thereby obtain new AGC yield value, repeat above-mentioned steps and satisfy termination condition until AGC adjustment increment, stop the last RSSI value of measuring of AGC adjustment process and basis this moment and carry out the sequencer procedure of full frequency band frequency point power, the result according to ordering carries out Cell searching then.Adopt method of the present invention, not only can give prominence to working frequency points, make the accuracy of Cell searching increase, and can improve the speed of Cell searching.Device of the present invention is based on method of the present invention, measures precisely and advantage fast so device of the present invention has, thereby improves the satisfaction of mobile phone users.
Description of drawings
Fig. 1 is the method flow diagram of the whole channel primary searching of one embodiment of the present invention;
Fig. 2 is the structure drawing of device according to whole channel primary searching of the present invention.
Embodiment
In order to make the purpose, technical solutions and advantages of the present invention clearer, the present invention is further described below in conjunction with the drawings and specific embodiments.
Method of the present invention is to adopt fixing AGC yield value to measure the RSSI value of frequency in the full frequency band, and calculate AGC according to the RSSI value that measures and adjust increment, obtain new AGC yield value, repeat above-mentioned steps and satisfy termination condition until AGC adjustment increment, stop the AGC adjustment process this moment and also carry out the sequencer procedure of full frequency band frequency point power according to the RSSI value that measures for the last time, the result according to ordering carries out Cell searching then.
Fig. 1 is the method flow diagram according to whole channel primary searching of the present invention, as can be seen from Figure 1, the present invention includes following steps:
Step 101: the AGC initial yield value of portable terminal is set, is used for the frequency of full frequency band is measured for the first time, the AGC initial yield value is set to current AGC yield value.
The AGC initial yield value can be configured such that the undersaturated arbitrary value of maximum RSSI value, in the present embodiment, the AGC initial yield value is set to 40dB, and this is a preferred value, because this initial value is unlikely to make maximum RSSI value saturated usually.
Step 102: all frequencies of full frequency band are detected the RSSI value continuously and adopt current AGC yield value to the adjustment that gains of all detected RSSI values.
The computing formula of the RSSI value of frequency i is:
Wherein, ‖ ‖
2Expression modulus of complex number side; K is the chip sequence number, and its span is 0 to N; N is the average length of chip; For Frequency Division Duplexing (FDD) (UTRA FDD) pattern of general land wireless access, r
i(k) any segment base band complex signal that receives on frequency i for portable terminal is for time division duplex (UTRA TDD) pattern of general land wireless access, r
i(k) a segment base band complex signal that has valid data that receives on frequency i for portable terminal; RSSI
iReceived signal intensity indication for frequency i.
Adopt current AGC yield value to RSSI
iThe value that gains after adjusting is RSSI
i'.
Step 103: the adjustment increment that calculates AGC.
In the present embodiment, utilize this to measure the adjustment increment that all RSSI values that obtain are calculated AGC, the computing formula that AGC adjusts increment is: Δ AGC
Next=RSSI
Target' RSSI
Max' (dB)
Wherein, RSSI
Target' be the maximum RSSI value of the frequency of the expectation that sets in advance, promptly target RSSI value can be configured such that target RSSI value that the RSSI value is unsaturated and make the RSSI value have the arbitrary value of enough number of significant digit, in the present embodiment, is set to 0dB, RSSI
Max' be the maximum of in step 102, measuring in the frequency RSSI value in the full frequency band scope.
Step 104: judge that whether AGC adjusts the absolute value of increment less than the AGC gain adjustment thresholding that sets in advance, if then execution in step 107; Otherwise, execution in step 105.
It is to consider the influence of measure error and noise and decline and the tolerance limit of the AGC yield value set that thresholding is adjusted in AGC gain, and in the present embodiment, it is 15dB that threshold setting is adjusted in the AGC gain, that is to say, if RSSI
Max' satisfy-15dBm≤RSSI
Max'≤15dBm thinks that then current AGC yield value satisfies measurement requirement.
Step 105: adjust the new AGC yield value of incremental computations according to current AGC yield value with the AGC that calculates, new AGC yield value is made as current AGC yield value.
The computing formula of new AGC yield value is: AGC
Next=AGC
Last+ Δ AGC
Next
Wherein, AGC
LastBe the AGC yield value that is provided with in the last full frequency band rssi measurement process, Δ AGC
NextThe AGC that calculates for step 103 adjusts increment, AGC
NextBe to measure set new AGC yield value for carrying out in the full frequency band next time frequency RSSI value.
Step 106: judge whether current AGC yield value exceeds the maximum range of AGC, if then execution in step 107; Otherwise, return step 102, utilize new current AGC yield value to measure next time.
Usually, the maximum range of AGC is determined by hardware condition.
Step 107: carry out full frequency band frequency point ordering, and according to ranking results the priority of each frequency is set, execution in step 108 then.
Can adopt of the frequency ordering of known arbitrarily sort method, such as bubbling method or dichotomy etc. to full frequency band.After ordering, the result according to ordering is provided with frequency priority, that is to say, and the priority height of the forward frequency of sorting position, the frequency priority after sorting position leans on is low.
Step 108: the priority orders according to frequency in the full frequency band is carried out Cell searching.
In the present embodiment, the basic step of Cell searching is: the result according to ordering carries out successively by the frequency point cell search procedure, till successfully searching the frequency that first can be resident.Concrete search technique is identical with prior art, does not repeat them here.
In the step 102 of the foregoing description, RSSI value to full frequency band frequency point is measured one by one, promptly measure the RSSI value of each frequency, in other embodiments of the invention, also can carry out interval measurement to the RSSI value of full frequency band frequency point, that is to say, do not measure the RSSI value of all frequencies, but the RSSI value of some equally spaced frequency is measured.Preferably, the bandwidth of system is depended at the interval of measurement usually, is the system of 3.84M chips/sec for spreading rate, and its system bandwidth is about about 5MHz, can adopt the measurement interval of 200KHz, 400KHz, 800KHz or 1600KHz usually; And be the system of 1.28M chips/sec for spreading rate, its system bandwidth is about about 1.6MHz, and the measurement that can adopt 200KHz or 400KHz usually is at interval.
The advantage that equally spaced frequency in the full frequency band is measured is to shorten to a certain extent the time of Cell searching.
In the above-described embodiments, AGC adjustment increment is poor for target RSSI value and this maximum RSSI value that measures, in other embodiments of the invention, adopts similar approach to calculate AGC and adjusts increment.For instance, in another embodiment, set in advance the step value that AGC adjusts,, in finishing full frequency band, after the measurement of frequency RSSI value, adopt the adjustment increment of method calculating AGC same as the previously described embodiments such as 20dB.If this AGC adjusts the absolute value of increment greater than adjusting step-length, then the AGC yield value is readjusted according to the size of adjusting step-length, be that the AGC yield value adds or deduct step value, obtain new AGC yield value, repeat then above-mentioned steps until the absolute value of adjusting increment less than adjusting step-length, measurement result to the last RSSI value sorts, and carries out Cell searching according to ranking results then.
Based on said method, the present invention also provides a kind of whole channel primary searching device.Fig. 2 is the structure chart of this device, and as shown in the figure, cell search apparatus 20 comprises radio-frequency module 21, measures order module 22, control module 23 and cell search module 24.
Wherein, radio-frequency module 21 receives radio frequency signal by the antenna of portable terminal, and exports radiofrequency signal to measurement order module 22; Measure the radio frequency signal of order module 22 received RF modules 21 outputs, the RSSI value of the interior frequency of measurement full frequency band, calculating AGC adjust increment and according to the RSSI value frequency in the full frequency band are sorted, and ranking results are exported to the cell search module 24 of portable terminal; Control module 23 control radio-frequency modules 21 and the work of measuring order module 22, and the running parameter of setting radio-frequency module 21 and measurement order module 22, for example radio frequency carrier frequency and AGC initial yield value, control module 23 receives the AGC adjustment increment of measuring order module 22 outputs and determines whether to carry out ordering, if then send the ordering index signal to measuring order module 22; Otherwise, measure index signal to measuring order module 22, continue to measure the RSSI value of frequency in the full frequency band.
In measuring order module 22, be provided with rssi measurement unit 221, AGC incremental computations unit 222 and RSSI sequencing unit 223.Rssi measurement unit 221 carries out the measurement of full frequency band frequency point RSSI value according to the radio frequency signal that radio-frequency module 21 transmits, and exports the RSSI value of measuring to AGC incremental computations unit 222 and RSSI sequencing unit 223 then; Increment is adjusted according to the AGC that the RSSI value calculates full frequency band frequency point measurement next time in AGC incremental computations unit 222, then AGC is adjusted increment size and export control module 23 to, judge that by control module 23 AGC adjusts increment and whether satisfies termination condition, if, then to RSSI sequencing unit 223 output ordering index signals, the output valve that activates 223 pairs of rssi measurement unit 221 of RSSI sequencing unit sorts entirely, and according to the result of ordering to each frequency point setting priority, the result that will sort then with priority exports cell search module 24 to; Otherwise index signal is measured in 221 outputs to the rssi measurement unit, and indication rssi measurement unit 221 utilizes new AGC yield value to measure the RSSI value of full frequency band frequency point.
In concrete implementation process, can carry out suitable improvement, to adapt to the concrete needs of concrete condition to the method according to this invention and device.Therefore be appreciated that according to the specific embodiment of the present invention just to play an exemplary role, not in order to restriction protection scope of the present invention.