Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail below with reference to the accompanying drawings. However, it will be appreciated by those of ordinary skill in the art that numerous technical details are set forth in order to provide a better understanding of the present application in various embodiments of the present invention. However, the technical solution claimed in the present application can be implemented without these technical details and various changes and modifications based on the following embodiments.
The first embodiment of the invention relates to a frequency sweeping method of a user terminal. The specific flow is shown in figure 1.
In step 101, data of a frequency band to be swept is received, and first data of a preset duration is received in the frequency band to be swept with a predetermined bandwidth range.
Specifically, according to the system bandwidth supported by the user terminal, the frequency band to be swept is divided into a plurality of frequency units, for example, M frequency units, and a second frequency unit with a preset duration is received and stored in an ith frequency unitData DiAnd each D to be storediAs the first data, the preset time is generally about 6ms, and i is 1, 2.
Further, if the system bandwidth supported by the ue is 10MHz, and the size of each frequency unit is W equals to 10MHz, when the total bandwidth of the frequency band to be swept is 90MHz, the number of the frequency units is 9, that is, 90MHz/10MHz equals to 9, and then, in the 1 st frequency unit, the second data D with the preset duration is received and stored1Receiving and storing second data D with preset duration in the 2 nd frequency unit2Sequentially until the second data D with preset time length is received and stored in the 9 th frequency unit9According to each stored DiFirst data is obtained. According to the system bandwidth supported by the user terminal, the frequency band to be swept is divided, so that the user terminal receives the data of the supported system bandwidth in real time, and the data of the whole frequency band to be swept is comprehensively received.
In step 102, a first power spectrum of the frequency band to be swept is calculated, the first data is transformed to the frequency domain, and the first power spectrum of the frequency band to be swept is calculated according to the transformed frequency domain data.
Specifically, the first energy E of each frequency unit is calculated in turn
ijThen, each first energy E is applied
ijSequentially connected to obtain a first power spectrum of the frequency band to be swept, wherein the first energy E of the frequency unit
ijThe method comprises the following steps: for frequency unit D
iPerforming fast Fourier transform on the preset number N to obtain first frequency domain data of the frequency unit
Then according to
Calculating to obtain the first energy E of the frequency unit
ijWherein j is 1, 2.
Further, D for frequency unit
iAll carry out the fast Fourier transform of the preset point number N to obtain the first frequency of the frequency unitDomain data
The process comprises the following specific steps: first to D
iDividing N sampling points as units to obtain a plurality of data units, performing fast Fourier transform on each data unit by a preset point number N to obtain second frequency domain data of each data unit, and sequentially connecting the second frequency domain data of each data unit to obtain D
iOf the first frequency domain data
Where N generally needs to be a power of 2, e.g., 2048, 1024, 512, 256, 128, etc. Because the frequency point resolution of LTE, WCDMA and GSM is 200KHz, the proper N is selected on the premise that the sampling rate meets the sampling theorem by combining the system bandwidth supported by the user terminal, so that the frequency resolution R of the processing result is less than or equal to 200KHz, and then the power spectrum with the frequency resolution of 200KHz is obtained by an interpolation method. It should be noted that the above process is only given, and the data D of one of the frequency units is used
iTransformed to first frequency domain data
The above processing is also applied to the process of converting the data of other frequency units into the first frequency domain data.
More specifically, the first energy E of each frequency unit is calculated in turnijThe process comprises the following specific steps: according to DiCalculating D for the second frequency domain data of each data unitiOf respective data units ofijThen, D is addediRespective second energy UijThe energy values of the corresponding points are accumulated to obtain the first energy E of the corresponding frequency unitij. It should be noted that the above process is only given, and the data D of one of the frequency units is calculatediFirst energy E ofijThe above calculation process is also used in the calculation process of the first energy of the data of other frequency units.
In particularIn practical application, a suitable data processing method may be selected according to specific situations, for example, the data of each frequency unit of the frequency band to be swept may be received and stored in sequence according to step 101, then the frequency domain transformation processing is performed on the data of each frequency unit according to step 102, and finally the first power spectrum of the frequency band to be swept is obtained, or the following data processing method may be adopted: after the data of the first frequency unit is received and stored according to step 101, the frequency domain transformation process is performed on the data of the first frequency unit according to step 102 to obtain the first energy E of the first frequency unit1jThen, returning to step 101, receiving and storing the data of the second frequency unit, and after receiving the data of the second frequency unit, according to step 102, performing the above-mentioned frequency domain transformation process on the data of the second frequency unit to obtain the first energy E of the second frequency unit2jSequentially and repeatedly carrying out the steps until the data reception of all the frequency units and the first energy E are completedijCalculating, finally, each first energy EijAnd sequentially connecting to obtain a first power spectrum of the frequency band to be swept.
In step 103, it is detected whether there is narrowband interference, if so, step 104 is performed, otherwise, step 105 is performed.
Specifically, whether the first power spectrum has narrowband interference is detected, if the first power spectrum has narrowband interference, step 104 is executed to remove the narrowband interference, otherwise step 105 is executed to calculate each central frequency point of the frequency band to be scanned and a second power spectrum with fixed bandwidth left and right of the central frequency point.
Further, the principle of detecting whether the first power spectrum has the narrowband interference is that if the power on a certain power spectrum is significantly larger or smaller than the left and right, a relatively sharp peak or notch is formed, which may be considered as the narrowband strong interference, and assuming that the power spectrum energy value of each 200kHz frequency point is psd (i), it is determined that the relative threshold of the peak or notch is psdThr without loss of generality, one feasible determination method is: respectively calculating the energy value psd (i) of the frequency point and the energy values of the meanLen power spectrums on the left side of the frequency pointThe sum ratio LJudge (i) and the ratio RJudge (i) of the sum of the energy values of the meanLen power spectrums on the right side of the frequency point are respectively compared with the relative thresholds psdThr according to the LJudge (i) and the RJudge (i) to judge whether a convex peak or a concave pit is formed, if the LJudge (i) and the RJudge (i) are both more than or equal to the relative thresholds psdThr, a convex peak is formed, namely the frequency point is narrow-band interference, if the LJudge (i) and the RJudge (i) are both less than or equal to the relative thresholds psdThr, a concave pit is formed, namely the frequency point is narrow-band interference, wherein,
meanLen typically takes a positive integer of around 1 to 5.
In step 104, narrowband interference is rejected.
Specifically, when the presence of narrowband interference is detected, the narrowband interference is rejected, for example, if there is an overlap between the WCDMA band 5 and the GSM network, the effect of GSM can be rejected when performing a frequency sweep of WCDMA. Without loss of generality, one simple way to reject the influence of narrowband interference is to modify the power spectrum energy value psd (i) where the peak or the notch is located into psd '(i), where psd' (i) is the average energy value of the meanLen power spectra around the peak or the notch,
in step 105, each central frequency point of the frequency band to be scanned and a second power spectrum with fixed bandwidth left and right of the central frequency point are calculated.
Specifically, according to the first power spectrum, each central frequency point of a frequency band to be scanned and a second power spectrum with a fixed bandwidth left and right of the central frequency point are calculated, and a plurality of central frequency points are arranged in the frequency band to be scanned, so that a jth central frequency point of the frequency band to be scanned and a second power spectrum with a fixed bandwidth left and right of the jth central frequency point need to be calculated, wherein j is 1, 2.
In step 106, a score of the similarity of the second power spectrum and the preset power spectrum is calculated.
Specifically, scoring is performed according to the similarity between the second power spectrum and the preset power spectrum, wherein the higher the similarity is, the higher the score is, that is, the more similar the power spectrum of a certain frequency point and the power spectrums with fixed bandwidths on the left and right of the certain frequency point are to the power spectrum of the central frequency point of a certain communication system, the higher the score is.
Furthermore, the similarity can be scored according to various indexes, such as pass band flatness, edge roll-off degree, RSSI power and the like, and the similarity can also be scored by taking the various indexes as a whole to give a comprehensive score. The scoring process is briefly described below by taking pass band flatness, edge roll-off and RSSI power level as examples, wherein the score of pass band flatness is expressed by FlatScore, the score of roll-off is expressed by DropScore, and the score of RSSI power level is expressed by rsssiscore.
First, a calculation process of the pass band flatness score, platscore, is introduced, assuming that a preset power spectrum of a certain frequency band of a certain communication system of a frequency band to be swept is psdnormpower (i), and without loss of generality, the pass band flatness score, platscore (i) of a second power spectrum is:
psdPattern(i,k)=psdNormPattern(k)×accPsd(i),k=0~accLen-1,
psdWinAcc(i,k)=accPsd(i+k-accLen/2),k=0~accLen-1,
the accLen represents the number of 200kHz frequency points in a passband, is determined by the passband width of each communication system, and is mainly carried out according to accPsd (i) when the score of the similarity between the second power spectrum and the preset power spectrum is calculated, namely, the scoring process is mainly carried out around accPsd (i).
Then, a calculation process of a roll-off score DropScore is introduced, the roll-off score represents the score of the slope of the second power spectrum of the bandwidth edge frequency point of each communication system, wherein the larger the slope, the higher the score is, and the generality is not lost, and a feasible scoring process is as follows:
AvgPsd(i)=accPsd(i)/accLen,
DropScore(i)=leftDrop(i)+rightDrop(i),
wherein, dropLen represents the number of 200kHz frequency points in a bandwidth edge frequency band and is determined by the width of a sideband of each communication system.
Finally, a calculation process of the score RssiScore of the RSSI power is introduced, the higher the average RSSI of the bandwidth where the central frequency point is located is, the higher the score of the RSSI power is, and the generality is not lost, and a feasible scoring process is as follows:
RssiScore(i)=AvgPsd(i)
it should be noted that, according to actual needs, a flexible and variable scoring scheme may be selected, when any one of the pass band flatness, the edge roll-off degree, or the RSSI power level is selected as the scoring scheme, only the score of the selected indication is needed, when the three indexes are selected as a whole and used as the scoring scheme, the scores of the indexes need to be calculated respectively and then summed, that is, the final score (i) is: score (i) ═ flatscore (i) + dropscore (i) + rsissore (i). Certainly, the user may also add other indexes to enrich the scoring mechanism, for example, it is easy to misjudge the small bandwidth under LTE, and therefore, a punitive score may be added to the small bandwidth.
In step 107, a list of frequency points is created.
Specifically, according to the order of the scores from large to small, a frequency point list of each central frequency point is created, so that the user terminal preferentially selects the central frequency point with a high score to perform cell residence attempt.
Compared with the prior art, in the embodiment, in a frequency band to be swept with a preset bandwidth range, first data with preset duration are received, the first data are converted into a frequency domain, a first power spectrum of the frequency band to be swept is calculated according to the converted frequency domain data, and the received data are converted into the frequency domain, so that frequency sweeping is carried out in the frequency domain, the limitation of the actual bandwidth of each communication system in the time domain is effectively avoided, the RSSI of a larger frequency band is obtained, and the frequency sweeping efficiency is improved. Whether the first power spectrum has the narrow-band interference or not is detected, when the narrow-band interference is detected, the narrow-band interference is removed, the narrow-band interference in the frequency band to be scanned is effectively identified and removed, and the accuracy of the frequency sweeping result of the center frequency point is guaranteed. According to the first power spectrum, each central frequency point of the frequency band to be swept and a second power spectrum with the fixed bandwidth at the left and right sides of the central frequency point are calculated, and the central frequency points of various communication systems in the frequency band to be swept are swept in a whole network in a mode of counting the power spectrum in a frequency domain, so that the implementation mode of frequency sweeping is more flexible, and the frequency sweeping efficiency is further improved. And according to the similarity between the second power spectrum and the preset power spectrum, scoring is carried out, wherein the higher the similarity is, the higher the score is, so that the accuracy of the whole network frequency sweeping is ensured, and according to the sequence of the scores from large to small, a frequency point list of each central frequency point is created, so that the user terminal preferentially selects the central frequency point with the high score to carry out cell residence attempt, the success rate of residence of the user terminal is improved, and the residence time is shortened.
The second embodiment of the invention relates to a frequency sweeping method of a user terminal. The second embodiment is further improved on the basis of the first embodiment, and the main improvement is that: in the second embodiment of the present invention, the method further includes: the frequency point list is adjusted according to the actual situation, as shown in fig. 2.
In step 201, data of a frequency band to be swept is received, and first data of a preset duration is received in the frequency band to be swept with a predetermined bandwidth range.
In step 202, a first power spectrum of the frequency band to be swept is calculated, the first data is transformed to the frequency domain, and the first power spectrum of the frequency band to be swept is calculated according to the transformed frequency domain data.
In step 203, detecting whether a narrow-band interference exists, if so, executing step 204 to remove the narrow-band interference, otherwise, executing step 205 to calculate each central frequency point of the frequency band to be scanned and a second power spectrum of the fixed bandwidth left and right of the central frequency point.
In step 204, narrowband interference is rejected.
In step 205, each central frequency point of the frequency band to be scanned and a second power spectrum with a fixed bandwidth around the central frequency point are calculated.
In step 206, a score of the similarity of the second power spectrum to the preset power spectrum is calculated.
In step 207, a list of frequency points is created.
In step 208, the frequency point list is adjusted.
Specifically, the frequency point list is adjusted according to the actual situation, wherein the adjustment of the frequency point list is mainly divided into two steps: firstly, setting a threshold according to a frequency point sequencing result, deleting a frequency point with a value lower than the threshold, wherein each communication system can independently set a corresponding threshold, then, carrying out iteration according to a PLMN searching result, when a certain frequency point searches a cell of a certain communication system, confirming that the frequency point is a central frequency point, and deleting the frequency point which is positioned in the same communication system and the same bandwidth and is about the frequency point in a frequency point list, thereby adjusting the frequency point list according to an actual condition, enabling a user terminal to more accurately and effectively carry out cell residence, and further improving the residence efficiency of the user terminal.
In the embodiment, a reasonable adjustment scheme is formulated according to actual conditions, and the frequency point list is adjusted, so that the user terminal can more accurately and effectively perform cell residence, and the residence efficiency of the user terminal is further improved.
The steps of the above methods are divided for clarity, and the implementation may be combined into one step or split some steps, and the steps are divided into multiple steps, so long as the steps contain the same logical relationship, which is within the protection scope of the present patent; it is within the scope of the patent to add insignificant modifications to the algorithms or processes or to introduce insignificant design changes to the core design without changing the algorithms or processes.
A third embodiment of the present invention relates to a frequency sweeping apparatus for a user terminal, as shown in fig. 3, including: the receiving module 31, the first calculating module 32, the detecting module 33, the interference eliminating module 34, the second calculating module 35, the scoring module 36, and the table building module 37, wherein the receiving module 31 specifically includes: the receiving sub-module 311 and the synthesizing sub-module 312, the first calculating module 32 specifically includes: a first frequency domain transform submodule 321, a first computation submodule 322 and a first connection submodule 323, the first frequency domain transform submodule 321 further includes: a unit division sub-module 3211, a second frequency domain transform sub-module 3212, and a second connection sub-module 3213.
The receiving module 31 is configured to receive first data of a preset duration in a frequency band to be swept with a predetermined bandwidth range.
A receiving submodule 311, configured to receive and store the second data D with a preset duration in the ith frequency unit in sequenceiThe frequency unit is a frequency unit of the frequency band to be swept, which is divided according to a first preset bandwidth, wherein i is 1, 2.
A synthesis submodule 312 for storing each of the DiAs the first data.
The first calculating module 32 is configured to transform the first data of the receiving module 31 to a frequency domain, and calculate a first power spectrum of the to-be-swept frequency band according to the transformed frequency domain data.
A first frequency
domain transform submodule 321 for transforming each D
iAll carry out the fast Fourier transform of the preset number N to obtain each D
iOf the first frequency domain data
Wherein N is a positive integer.
A unit division submodule 3211 for pair DiAnd dividing the N sampling points as units to obtain a plurality of data units.
The second frequency domain transform submodule 3212 is configured to perform N fast fourier transform on the data units to obtain second frequency domain data of each data unit.
A second connecting
submodule 3213, configured to sequentially connect the second frequency domain data of each data unit to obtainTo D
iOf the first frequency domain data
A
first computation submodule 322 for computing a difference between
Sequentially calculating the first energy E of each frequency unit
ijWherein j is 1, 2.
A first connection submodule 323 for applying a respective first energy EijAnd sequentially connecting to obtain a first power spectrum of the frequency band to be swept.
A detecting module 33, configured to detect whether there is a narrowband interference in the first power spectrum of the first calculating module 32.
And the interference elimination module 34 is configured to eliminate the narrowband interference when the detection module 33 detects that the narrowband interference exists in the first power spectrum.
The second calculating module 35 is configured to calculate each central frequency point of the frequency band to be scanned and a second power spectrum of the fixed bandwidth around the central frequency point.
And the scoring module 36 is configured to score according to a similarity between the second power spectrum and a preset power spectrum, where the higher the similarity is, the higher the score is.
And the table building module 37 is configured to create a frequency point list of each central frequency point according to the sequence of the score values from large to small.
It should be understood that this embodiment is a system example corresponding to the first embodiment, and may be implemented in cooperation with the first embodiment. The related technical details mentioned in the first embodiment are still valid in this embodiment, and are not described herein again in order to reduce repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the first embodiment.
It should be noted that each module referred to in this embodiment is a logical module, and in practical applications, one logical unit may be one physical unit, may be a part of one physical unit, and may be implemented by a combination of multiple physical units. In addition, in order to highlight the innovative part of the present invention, elements that are not so closely related to solving the technical problems proposed by the present invention are not introduced in the present embodiment, but this does not indicate that other elements are not present in the present embodiment.
The fourth embodiment of the invention relates to a frequency sweeping device of a user terminal. The fourth embodiment is further improved on the basis of the third embodiment, and the main improvement lies in that: in the fourth embodiment of the present invention, the receiving module 31, the first calculating module 32, the detecting module 33, the interference canceling module 34, the second calculating module 35, the scoring module 36, the table building module 37 and the adjusting module 38 specifically include: the receiving sub-module 311 and the synthesizing sub-module 312, the first calculating module 32 specifically includes: a first frequency domain transform submodule 321, a first computation submodule 322 and a second connection submodule 323, the first frequency domain transform submodule 321 further includes: a unit division sub-module 3211, a second frequency domain transform sub-module 3212, and a third connection sub-module 3213, as shown in fig. 4.
The receiving module 31 is configured to receive first data of a preset duration in a frequency band to be swept with a predetermined bandwidth range.
A receiving submodule 311, configured to receive and store the second data D with a preset duration in the ith frequency unit in sequenceiThe frequency unit is a frequency unit of a frequency band to be swept, which is divided according to a first preset bandwidth, wherein i is 1, 2.
A synthesis submodule 312 for storing each DiAs the first data.
The first calculating module 32 is configured to transform the first data of the receiving module 31 to a frequency domain, and calculate a first power spectrum of the to-be-swept frequency band according to the transformed frequency domain data.
A first frequency
domain transform submodule 321 for transforming each D
iAll carry out the fast Fourier transform of the preset number N to obtain each D
iOf the first frequency domain data
Wherein N is a positive integer.
A unit division submodule 3211 for pair DiAnd dividing the N sampling points as units to obtain a plurality of data units.
The second frequency domain transform submodule 3212 is configured to perform N fast fourier transform on the data units to obtain second frequency domain data of each data unit.
A second connecting
submodule 3213, configured to sequentially connect the second frequency domain data of each data unit to obtain D
iOf the first frequency domain data
A
first computation submodule 322 for computing a difference between
Sequentially calculating the first energy E of each frequency unit
ijWherein j is 1, 2.
A first connection submodule 323 for applying a respective first energy EijAnd sequentially connecting to obtain a first power spectrum of the frequency band to be swept.
A detecting module 33, configured to detect whether there is a narrowband interference in the first power spectrum of the first calculating module 32.
And the interference elimination module 34 is configured to eliminate the narrowband interference when the detection module 33 detects that the narrowband interference exists in the first power spectrum.
The second calculating module 35 is configured to calculate each central frequency point of the frequency band to be scanned and a second power spectrum of the fixed bandwidth around the central frequency point.
And the scoring module 36 is configured to score according to a similarity between the second power spectrum and a preset power spectrum, where the higher the similarity is, the higher the score is.
And the table building module 37 is configured to create a frequency point list of each central frequency point according to the sequence of the score values from large to small.
And an adjusting module 38, configured to adjust the frequency point list of the table building module 37.
Since the second embodiment corresponds to the present embodiment, the present embodiment can be implemented in cooperation with the second embodiment. The related technical details mentioned in the second embodiment are still valid in this embodiment, and the technical effects that can be achieved in the second embodiment can also be achieved in this embodiment, and are not described herein again in order to reduce the repetition. Accordingly, the related-art details mentioned in the present embodiment can also be applied to the second embodiment.
Those skilled in the art can understand that all or part of the steps in the method of the foregoing embodiments may be implemented by a program to instruct related hardware, where the program is stored in a storage medium and includes several instructions to enable a device (which may be a single chip, a chip, etc.) or a processor (processor) to execute all or part of the steps of the method described in the embodiments of the present application. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
It will be understood by those of ordinary skill in the art that the foregoing embodiments are specific examples for carrying out the invention, and that various changes in form and details may be made therein without departing from the spirit and scope of the invention in practice.