Frequency sweeping method, electronic equipment and computer readable medium

By adjusting the gain value to optimize the time domain data and combining the time domain detection algorithm, the problem of the new air interface standard scanning frequency is solved, and higher accuracy and lower error detection rate are achieved, reducing the frequency scanning time.

CN120474640APending Publication Date: 2025-08-12SANECHIPS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410166135.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-02-04
Publication Date
2025-08-12

AI Technical Summary

Technical Problem

In the prior art, the frequency sweeping method of the new air interface standard takes a long time, making it difficult to meet the frequency sweeping needs at different field strengths, and the preset gain control gear is limited, resulting in repeated detection increasing the frequency sweeping time.

Method used

By adjusting the gain value of the previous or last detected, the time domain data of the frequency point to be detected is optimized, and the time domain detection algorithm is combined to determine whether the frequency point is effective, reducing repeated detection and noise interference.

Benefits of technology

It improves the accuracy of frequency sweeping, reduces the error detection rate, reduces the influence of noise and interference signals, and shortens the frequency sweeping time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120474640A_ABST
    Figure CN120474640A_ABST
Patent Text Reader

Abstract

The invention provides a frequency sweeping method, electronic equipment and a computer readable medium, and the method comprises the steps: obtaining time domain data corresponding to an i-th to-be-detected frequency point and obtained after adjustment based on a first gain value for the i-th to-be-detected frequency point; wherein the first gain value is a gain value obtained by adjusting a second gain value used by the (i-1) th to-be-detected frequency point in the detection process of the (i-1) th to-be-detected frequency point, or a gain value obtained by adjusting a third gain value used by the ith to-be-detected frequency point in the previous detection process of the ith to-be-detected frequency point; performing synchronous signal detection on time domain data obtained after adjustment based on the first gain value and corresponding to the ith to-be-detected frequency point to obtain a detection peak value corresponding to the ith to-be-detected frequency point; and under the condition that the detection peak value corresponding to the i-th frequency point to be detected is greater than or equal to a first peak value threshold, determining the i-th frequency point to be detected as an effective frequency point.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of communication technology, and in particular to a frequency scanning method, an electronic device, and a computer-readable medium. Background Art

[0002] New Radio (NR) and later standards have a larger spectrum range than Long Term Evolution (LTE). Synchronization signals are distributed on frequencies with Global Synchronization Channel Numbers (GSCN). Terminals need to scan the entire frequency band to find frequencies with synchronization signals. They then select the frequency with the strongest synchronization signal to search for a cell and connect to it before data transmission can begin. Current frequency scanning methods take a long time. Summary of the Invention

[0003] Embodiments of the present application provide a frequency scanning method, an electronic device, and a computer-readable medium.

[0004] In a first aspect, an embodiment of the present application provides a frequency scanning method, comprising: for the i-th frequency point to be detected, obtaining time domain data corresponding to the i-th frequency point to be detected obtained after adjustment based on a first gain value; wherein i is an integer greater than or equal to 1; the first gain value is a gain value obtained by adjusting the second gain value used for the i-1-th frequency point to be detected during the detection of the i-1-th frequency point to be detected, or a gain value obtained by adjusting the third gain value used for the i-th frequency point to be detected during the last detection of the i-th frequency point to be detected; performing synchronization signal detection on the time domain data corresponding to the i-th frequency point to be detected obtained after adjustment based on the first gain value to obtain a detection peak value corresponding to the i-th frequency point to be detected; judging whether the detection peak value corresponding to the i-th frequency point to be detected is greater than or equal to a first peak threshold; and determining that the i-th frequency point to be detected is a valid frequency point when the detection peak value corresponding to the i-th frequency point to be detected is greater than or equal to the first peak threshold.

[0005] In a second aspect, an embodiment of the present application provides an electronic device, comprising: at least one processor; a memory, wherein at least one program is stored in the memory, and when the at least one program is executed by the at least one processor, any one of the above-mentioned frequency scanning methods is implemented.

[0006] In a third aspect, an embodiment of the present application provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, any one of the above-mentioned frequency scanning methods is implemented.

[0007] The frequency scanning method provided in the embodiment of the present application directly performs synchronous signal detection on the frequency point to be detected, has higher accuracy, reduces the false detection rate, and reduces the impact of noise and interference signals on the detection results; and, before performing synchronous signal detection, adjusts the amplitude of the time domain data based on the gain value used for the previous frequency point to be detected or the gain value used for the previous detection, so that the amplitude of the time domain data is within a reasonable range, thereby reducing the time consumption of frequency scanning. BRIEF DESCRIPTION OF THE DRAWINGS

[0008] Figure 1 A flowchart of a frequency sweeping method provided in one embodiment of the present application;

[0009] Figure 2 A schematic diagram of the composition of a 5G Modem chip provided as an example in an embodiment of the present application;

[0010] Figure 3 A flowchart of a frequency sweeping method provided as an example of an embodiment of the present application;

[0011] Figure 4 A block diagram of the composition of an electronic device provided in another embodiment of the present application. DETAILED DESCRIPTION

[0012] In order to enable those skilled in the art to better understand the technical solution of the present application, the frequency scanning method, electronic device, and computer-readable medium provided in the present application are described in detail below with reference to the accompanying drawings.

[0013] Example embodiments will be described more fully hereinafter with reference to the accompanying drawings, but the example embodiments may be embodied in different forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided so that this application will be thorough and complete and will fully convey the scope of this application to those skilled in the art.

[0014] In the absence of conflict, the various embodiments of the present application and the various features therein may be combined with each other.

[0015] As used herein, the term "and / or" includes any and all combinations of at least one of the associated listed items.

[0016] The terms used herein are used only to describe specific embodiments and are not intended to limit this application. As used herein, the singular forms "a," "an," and "the" are also intended to include the plural forms, unless the context clearly indicates otherwise. It will also be understood that when the terms "comprising" and / or "made of" are used in this specification, the presence of the features, wholes, steps, operations, elements, and / or components is specified, but the presence or addition of at least one other feature, whole, step, operation, element, component, and / or group thereof is not excluded.

[0017] Unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art. It will also be understood that terms such as those defined in commonly used dictionaries should be interpreted as having a meaning consistent with their meaning in the context of the relevant art and this application, and will not be interpreted as having an idealized or overly formal meaning unless expressly defined as such herein.

[0018] At present, the technology based on the detection of synchronization signals (including the primary synchronization signal (PSS) and the secondary synchronization signal (SSS)) requires the automatic gain control module to adjust the amplitude of the input digital signal to an appropriate amplitude, and use the time domain or frequency domain detection algorithm to determine whether there is a valid synchronization signal block (SSB) at the current GSCN frequency point, thereby determining whether it is a valid frequency point. Related technologies generally meet the frequency scanning requirements under different field strengths by presetting automatic gain control gears, but the number of preset gears is limited, and it is difficult to meet all the requirements in strong, medium and weak scenarios. Moreover, if the preset gear is not appropriate, repeated detection is required at one frequency point, and a different gear is selected each time to determine the most appropriate signal gain, which greatly increases the time consumption of frequency scanning.

[0019] Figure 1 A flowchart of a frequency scanning method provided in one embodiment of the present application.

[0020] First, refer to Figure 1 The present invention provides a frequency sweeping method that can be applied to full-band frequency sweeping scenarios, that is, scenarios where multiple continuous frequency points in the full band need to be detected, and can also be applied to discrete frequency sweeping scenarios. The method includes:

[0021] Step 100, for the i-th frequency point to be detected, obtain the time domain data corresponding to the i-th frequency point to be detected after adjustment based on the first gain value; wherein i is an integer greater than or equal to 1; the first gain value is the gain value obtained by adjusting the second gain value used for the i-1-th frequency point to be detected during the detection process of the i-1-th frequency point to be detected, or the gain value obtained by adjusting the third gain value used for the i-th frequency point to be detected during the last detection process of the i-th frequency point to be detected.

[0022] In some exemplary embodiments, the i-th frequency point to be detected may be a continuous frequency point in at least one frequency band to be scanned, or may be a discrete frequency point.

[0023] In some exemplary embodiments, before obtaining time domain data corresponding to the i-th frequency point to be detected and adjusted based on the first gain value, the method further includes: obtaining at least one frequency band to be scanned, and performing a merging and overlapping process on the at least one frequency band to be scanned. By performing the merging and overlapping process on the frequency bands to be scanned, repeated scanning of the same frequency point is reduced.

[0024] In some exemplary embodiments, when different frequency bands to be scanned are merged and overlapped, the overlapping frequency bands are retained in only one frequency band to be scanned, and the overlapping frequency bands are deleted from other frequency bands to be scanned.

[0025] In some exemplary embodiments, when different frequency bands to be scanned are merged and overlapped, frequency bands to be scanned with the same overlapping frequency bands may be merged into one frequency band to be scanned, so that the merged frequency band to be scanned has no repeated frequency points to be detected.

[0026] In some exemplary embodiments, when detecting the frequency points in the frequency band to be scanned, the frequency points may be detected in descending order of frequency, or may be detected in descending order of frequency.

[0027] In some exemplary embodiments, for the first frequency point to be detected in the frequency band to be scanned, the first gain value may be a preset default value.

[0028] In some exemplary embodiments, the time domain data corresponding to the i-th frequency point to be detected and obtained after adjustment based on the first gain value may be a synchronization signal block (SSB) period. For example, in 5G, an SSB period may be 5ms, 10ms, 20ms, 40ms, 80ms, 160ms, etc. During the initial frequency scanning or initial cell search phase, the SSB period is unknown and may be defaulted to 20ms.

[0029] In some exemplary embodiments, when applied to a full-band scanning scenario, the first gain value is a gain value obtained by adjusting the second gain value used for the i-1th frequency point to be detected during the detection of the i-1th frequency point to be detected.

[0030] In some exemplary embodiments, when applied to a discrete frequency sweep scenario, the first gain value is a gain value obtained by adjusting the third gain value used for the i-th frequency point to be detected during the last detection of the i-th frequency point to be detected.

[0031] Step 101 : performing synchronous signal detection on time domain data corresponding to the i-th frequency point to be detected and obtained after adjustment based on the first gain value to obtain a detection peak value corresponding to the i-th frequency point to be detected.

[0032] In some exemplary embodiments, when synchronization signal detection is performed on the time domain data corresponding to the i-th frequency point to be detected and obtained after adjustment based on the first gain value, peak position information corresponding to the i-th frequency point to be detected is also obtained.

[0033] In some exemplary embodiments, the peak position information corresponding to the i-th frequency point to be detected refers to the position information of the detection peak corresponding to the i-th frequency point to be detected in the time domain data, for example, the position in milliseconds in 20 ms.

[0034] In some exemplary embodiments, any detection algorithm such as a time domain correlation algorithm and a circular correlation algorithm can be used to perform synchronous signal detection on the time domain data corresponding to the i-th frequency point to be detected after adjustment based on the first gain value to obtain the detection peak value corresponding to the i-th frequency point to be detected.

[0035] Step 102 , determining whether the detection peak value corresponding to the i-th frequency point to be detected is greater than or equal to a first peak value threshold; if the detection peak value corresponding to the i-th frequency point to be detected is greater than or equal to the first peak value threshold, determining the i-th frequency point to be detected as a valid frequency point.

[0036] In some exemplary embodiments, after determining that the i-th frequency point to be detected is a valid frequency point, the method further includes: saving a first gain value, and using the saved first gain value as a gain value used when detecting the i-th frequency point to be detected.

[0037] In some exemplary embodiments, when the detection peak value corresponding to the i-th frequency point to be detected is greater than or equal to the first peak threshold, before determining that the i-th frequency point to be detected is a valid frequency point, the method also includes: determining the number N of symbols of the peak position information corresponding to the i-th frequency point to be detected in the time domain data corresponding to the i-th frequency point to be detected; wherein N is an integer greater than or equal to 1; obtaining the time domain mean power (Meanpower) value of the N-th symbol in the time domain data corresponding to the i-th frequency point to be detected; judging whether the time domain mean value of the N-th symbol is within a preset interval; and determining that the i-th frequency point to be detected is a valid frequency point when the time domain mean power value of the N-th symbol in the time domain data corresponding to the i-th frequency point to be detected is within a preset interval.

[0038] In some exemplary embodiments, determining the number N of symbols of the peak position information corresponding to the i-th frequency point to be detected in the time domain data corresponding to the i-th frequency point to be detected includes: according to the formula Determine the number of symbols N of the peak position information corresponding to the i-th frequency point to be detected in the time domain data corresponding to the i-th frequency point to be detected; where A is the peak position information corresponding to the i-th frequency point to be detected, and ΔA is the number of seconds contained in one symbol.

[0039] In some exemplary embodiments, the method further includes: when the time domain average power value of the Nth symbol in the time domain data corresponding to the i-th frequency point to be detected is not within a preset interval, adjusting the first gain value according to the time domain average power value of the Nth symbol in the time domain data corresponding to the i-th frequency point to be detected; continuing to execute the step of obtaining the time domain data corresponding to the i-th frequency point to be detected after adjustment based on the adjusted first gain value until the number of synchronization signal detections for the i-th frequency point to be detected is greater than or equal to a detection number threshold, or determining that the i-th frequency point to be detected is a valid frequency point or an invalid frequency point.

[0040] In some exemplary embodiments, each time the first gain value is adjusted, the adjusted first gain value is saved.

[0041] In some exemplary embodiments, after the detection of the i-th frequency point to be detected is completed, the first gain value after the last adjustment is saved, and the first gain value after the last adjustment is used as the gain value used when detecting the i-th frequency point to be detected.

[0042] In some exemplary embodiments, when the number of synchronization signal detections for the i-th frequency point to be detected is greater than or equal to a detection number threshold, or when the i-th frequency point to be detected is determined to be a valid frequency point or an invalid frequency point, it indicates that the detection of the i-th frequency point to be detected is completed.

[0043] In some exemplary embodiments, adjusting the first gain value according to the time domain average power value of the Nth symbol in the time domain data corresponding to the i-th frequency point to be detected includes at least one of the following: reducing the first gain value when the time domain average power value of the Nth symbol is greater than a preset interval range; increasing the first gain value when the time domain average power value of the Nth symbol is less than a preset interval range.

[0044] In some exemplary embodiments, after performing synchronous signal detection on the time domain data corresponding to the i-th frequency point to be detected and obtained after adjustment based on the first gain value to obtain the detection peak value corresponding to the i-th frequency point to be detected, the method also includes: obtaining the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected; judging whether the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected is within a preset interval; and when the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected is within the preset interval, determining that the i-th frequency point to be detected is an invalid frequency point.

[0045] In some exemplary embodiments, when the detection peak value corresponding to the i-th frequency point to be detected is less than the first peak threshold, after performing synchronous signal detection on the time domain data corresponding to the i-th frequency point to be detected obtained after adjustment based on the first gain value to obtain the detection peak value corresponding to the i-th frequency point to be detected, the method also includes: obtaining the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected; judging whether the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected is within a preset interval; and when the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected is within the preset interval, determining that the i-th frequency point to be detected is an invalid frequency point.

[0046] In some exemplary embodiments, after determining that the i-th frequency point to be detected is an invalid frequency point, the method further includes: saving the first gain value, and using the saved first gain value as the gain value used when detecting the i-th frequency point to be detected.

[0047] In some exemplary embodiments, the method further includes: when the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected is not within a preset interval, adjusting the first gain value according to the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected; continuing to execute the step of obtaining the time domain data corresponding to the i-th frequency point to be detected after adjustment based on the adjusted first gain value until the number of synchronization signal detections for the i-th frequency point to be detected is greater than or equal to a detection number threshold, or determining that the i-th frequency point to be detected is a valid frequency point or an invalid frequency point.

[0048] In some exemplary embodiments, the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected includes: a time domain average power value of each symbol in the time domain data corresponding to the i-th frequency point to be detected.

[0049] In some exemplary embodiments, adjusting the first gain value according to the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected includes: determining a first average value of the time domain average power values of all symbols in the time domain data corresponding to the i-th frequency point to be detected; adjusting the first gain value according to the first average value; or, determining a first maximum value of the time domain average power values of all symbols in the time domain data corresponding to the i-th frequency point to be detected; and adjusting the first gain value according to the first maximum value.

[0050] In some exemplary embodiments, adjusting the first gain value according to the first average value includes at least one of the following: reducing the first gain value when the first average value is greater than a preset interval range; and increasing the first gain value when the first average value is less than the preset interval range.

[0051] In some exemplary embodiments, adjusting the first gain value according to the first maximum value includes at least one of the following: reducing the first gain value when the first maximum value is greater than a preset interval range; increasing the first gain value when the first maximum value is less than the preset interval range.

[0052] In some exemplary embodiments, the preset interval range used when adjusting the first gain value according to the first average value is different from the preset interval range used when adjusting the first gain value according to the first maximum value.

[0053] In some exemplary embodiments, the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected includes: after the time domain data corresponding to the i-th frequency point to be detected is converted into frequency domain data, the received signal strength indicator value of each resource unit in the frequency domain data.

[0054] In some exemplary embodiments, adjusting the first gain value based on the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected includes: determining a second average value of the received signal strength indication values of all resource units in the frequency domain data; adjusting the first gain value based on the second average value; or, determining a second maximum value of the received signal strength indication values of all resource units in the frequency domain data; and adjusting the first gain value based on the second maximum value.

[0055] In some exemplary embodiments, adjusting the first gain value according to the second average value includes at least one of the following: reducing the first gain value when the second average value is greater than a preset interval range; and increasing the first gain value when the second average value is less than the preset interval range.

[0056] In some exemplary embodiments, adjusting the first gain value according to the second maximum value includes at least one of the following: reducing the first gain value when the second maximum value is greater than a preset interval range; and increasing the first gain value when the second maximum value is less than the preset interval range.

[0057] In some exemplary embodiments, the preset interval range used when adjusting the first gain value according to the second average value is different from the preset interval range used when adjusting the first gain value according to the second maximum value.

[0058] In some exemplary embodiments, the preset interval range used when adjusting the first gain value according to the first average value, the preset interval range used when adjusting the first gain value according to the first maximum value, the preset interval range used when adjusting the first gain value according to the second average value, and the preset interval range used when adjusting the first gain value according to the second maximum value are all different.

[0059] In some exemplary embodiments, the method further includes: after completing the detection of all frequency points to be detected, sorting all valid frequency points according to the detection peak value of the valid frequency point and at least one of the time domain average power values of the symbols where the detection peak value of the valid frequency point is located in the time domain data corresponding to the valid frequency point.

[0060] In some exemplary embodiments, sorting all valid frequency points according to the detection peak value of the valid frequency point and at least one of the time domain average power values of the symbol where the detection peak value of the valid frequency point is located in the time domain data corresponding to the valid frequency point includes: sorting the valid frequency points in descending order according to the detection peak value of the valid frequency point.

[0061] In some exemplary embodiments, sorting all valid frequency points according to the detection peak value of the valid frequency point and at least one of the time domain average power values of the symbol where the detection peak value of the valid frequency point is located in the time domain data corresponding to the valid frequency point includes: converting the time domain average power value of the symbol where the detection peak value of the valid frequency point is located to the target gain level, and sorting them in descending order according to the converted time domain average power value of the symbol where the detection peak value of the valid frequency point is located.

[0062] In some exemplary embodiments, converting the time-domain average power value of the symbol where the detection peak of the effective frequency point is located to the target gain level includes: calculating the converted time-domain average power value according to the formula M2=M1-ΔM×ΔB; wherein M2 is the time-domain average power value after conversion, M1 is the time-domain average power value before conversion, ΔM is the difference between the gain value used when detecting the effective frequency point to obtain the detection peak and the target gain level, and ΔB is the change in the time-domain average power value brought about by each increase of 1 in the gain value used when detecting the effective frequency point to obtain the detection peak.

[0063] In some exemplary embodiments, sorting all valid frequency points according to the detection peak value of the valid frequency point and at least one of the time domain average power values of the symbol where the detection peak value of the valid frequency point is located in the time domain data corresponding to the valid frequency point includes: converting the time domain average power value of the symbol where the detection peak value of the valid frequency point is located to the target gain level; arranging the valid frequency points whose detection peak value is greater than the second peak threshold in all valid frequency points before the valid frequency points whose detection peak value is less than the second peak threshold; sorting the valid frequency points whose detection peak value is greater than the second peak threshold in order from large to small according to the converted time domain average power value of the symbol where the detection peak value of the valid frequency point is located in the time domain data corresponding to the valid frequency point, and sorting the valid frequency points whose detection peak value is less than the second peak threshold in order from large to small according to the detection peak value of the valid frequency point.

[0064] In some exemplary embodiments, sorting all valid frequency points according to the detection peak value of the valid frequency point and at least one of the time domain average power values of the symbol where the detection peak value of the valid frequency point is located in the time domain data corresponding to the valid frequency point includes: converting the time domain average power value of the symbol where the detection peak value of the valid frequency point is located to the target gain level; arranging the valid frequency points with a detection peak value greater than the second peak threshold in all valid frequency points before the valid frequency points with a detection peak value less than the second peak threshold; sorting the valid frequency points with a detection peak value greater than the second peak threshold in order of the detection peak value of the valid frequency points from large to small, and sorting the valid frequency points with a detection peak value less than the second peak threshold in order of the converted time domain average power value of the symbol where the detection peak value of the valid frequency point is located in the time domain data corresponding to the valid frequency point.

[0065] In some exemplary embodiments, the second peak threshold is greater than the first peak threshold.

[0066] The frequency scanning method provided in the embodiment of the present application directly performs synchronous signal detection on the frequency point to be detected, has higher accuracy, reduces the false detection rate, and reduces the impact of noise and interference signals on the detection results; and, before performing synchronous signal detection, adjusts the amplitude of the time domain data based on the gain value used for the previous frequency point to be detected or the gain value used for the previous detection, so that the amplitude of the time domain data is within a reasonable range, thereby reducing the time consumption of frequency scanning.

[0067] In order to more completely present the implementation process of the frequency sweeping method of the embodiment of the present application, an example is given below for detailed description. The example given is not used to limit the protection scope of the embodiment of the present application.

[0068] Example

[0069] This example can be applied to the frequency scanning scenarios of wireless terminals of 5G and future standards, as long as the terminal has a modem chip that supports the corresponding standard and is within the coverage range of a base station of the corresponding standard.

[0070] For example, Figure 2 The figure shows the composition of a 5G Modem chip, including a protocol stack module and a physical layer module.

[0071] The physical layer module includes: a frequency scanning submodule and a digital front-end submodule.

[0072] The RF chip receives the radio signal, converts the radio signal into a digital signal, and sends the digital signal to the digital front-end submodule.

[0073] The protocol stack module sends a frequency scanning request parameter to the frequency scanning submodule; the frequency scanning request parameter includes: a frequency band to be scanned.

[0074] The digital front-end submodule converts the digital signal into a baseband digital signal and sends the baseband digital signal to the frequency scanning submodule.

[0075] In the process of converting the digital signal into a baseband digital signal, the digital front-end submodule adjusts the amplitude of the baseband digital signal based on the gain value.

[0076] The baseband digital signal is the time domain data mentioned in the above embodiment.

[0077] The frequency scanning submodule performs synchronous signal detection on the baseband digital signal corresponding to each frequency point to be detected in each frequency band to be scanned, and sends the configured gain value to the digital front-end submodule.

[0078] like Figure 3 As shown, the frequency sweep method of this example includes:

[0079] Step 300: The protocol stack module sends a frequency scanning request parameter to the frequency scanning submodule, where the frequency scanning request parameter includes at least one frequency band to be scanned.

[0080] Step 301: The frequency scanning submodule performs a merging and overlapping process on at least one frequency band to be scanned.

[0081] In step 302, the frequency scanning submodule determines whether all the frequency bands to be scanned have been scanned. If at least one frequency band to be scanned has not been scanned, the jth frequency band to be scanned is selected and step 303 is continued. If all the frequency bands to be scanned have been scanned, step 310 is continued.

[0082] In step 303, the frequency scanning submodule determines whether all frequency points in the jth frequency band to be scanned have been detected. If all frequency points in the jth frequency band to be scanned have been detected, j is increased by 1 and step 302 is continued. If at least one frequency point in the jth frequency band to be scanned has not been detected, the i-th frequency point to be detected is selected from the jth frequency band to be scanned in ascending order of frequency points.

[0083] In step 304, the scanning submodule determines whether the i-th frequency point to be detected is the starting frequency point in the j-th frequency band to be scanned. If the i-th frequency point to be detected is the starting frequency point in the j-th frequency band to be scanned, the gain value of the digital front-end submodule is set to a preset default value; if the i-th frequency point to be detected is not the starting frequency point in the j-th frequency band to be scanned, the digital front-end submodule inherits the gain value saved after the detection of the i-1-th frequency point to be detected is completed.

[0084] In step 305, the scanning submodule determines whether the number of synchronization signal detections of the i-th frequency point to be detected is greater than or equal to the detection number threshold. If the number of synchronization signal detections of the i-th frequency point to be detected is greater than or equal to the detection number threshold, i is added by 1 and step 303 is continued. If the number of synchronization signal detections of the i-th frequency point to be detected is less than the detection number threshold, 20ms of time domain data is received. The 20ms of time domain data is the time domain data obtained after the digital front-end submodule adjusts based on the set gain value.

[0085] In step 306, the scanning submodule performs synchronization signal detection on the 20ms time-domain data to obtain the detection peak and peak position information corresponding to the i-th frequency point to be detected. The digital front-end submodule calculates the time-domain average power value of each symbol in the 20ms time-domain data, and the scanning submodule obtains the time-domain average power value of each symbol in the 20ms time-domain data from the digital front-end submodule.

[0086] In step 307, the scanning submodule determines whether the detection peak corresponding to the i-th frequency point to be detected is greater than or equal to the first peak threshold; if the detection peak corresponding to the i-th frequency point to be detected is greater than or equal to the first peak threshold, continue to execute step 308; if the detection peak corresponding to the i-th frequency point to be detected is less than the first peak threshold, continue to execute step 309.

[0087] In step 308, the scanning submodule determines the number N of symbols in the 20ms time-domain data containing the peak position information corresponding to the i-th frequency point to be detected; where N is an integer greater than or equal to 1; obtains the time-domain average power value of the N-th symbol in the 20ms time-domain data; and determines whether the time-domain average value of the N-th symbol is within a preset interval. If the time-domain average power value of the N-th symbol in the time-domain data corresponding to the i-th frequency point to be detected is within the preset interval, the i-th frequency point to be detected is determined to be a valid frequency point, the gain value currently set for the digital front-end submodule is saved, i is incremented by 1, and step 303 is continued. If the time-domain average power value of the N-th symbol in the time-domain data corresponding to the i-th frequency point to be detected is not within the preset interval, the gain value set for the digital front-end submodule is adjusted, and step 305 is continued.

[0088] Step 309, the scanning submodule calculates the average value of the time domain average power values of all symbols in the 20ms time domain data, and determines whether the average value of the time domain average power values of all symbols in the 20ms time domain data is within the preset interval. If the average value of the time domain average power values of all symbols in the 20ms time domain data is within the preset interval, the i-th frequency point to be detected is determined to be an invalid frequency point, the gain value currently set for the digital front-end submodule is saved, i is added by 1, and step 303 is continued; if the average value of the time domain average power values of all symbols in the 20ms time domain data is not within the preset interval, the gain value set for the digital front-end submodule is adjusted, and step 305 is continued.

[0089] Step 310 : The scanning submodule sorts all valid frequency points according to at least one of the detection peak values of the valid frequency points and the time domain average power value of the symbol where the detection peak value of the valid frequency point is located in the time domain data corresponding to the valid frequency points.

[0090] In step 311, the scanning submodule reports the sorted valid frequency points to the protocol stack module, and releases the software and hardware resources used in the frequency scanning process, such as shutting down the radio frequency and releasing the memory occupied by the software.

[0091] Secondly, refer to Figure 4 Another embodiment of the present application provides an electronic device, including: at least one processor 401; a memory 402, wherein at least one program is stored in the memory 402, and when the at least one program is executed by the at least one processor 401, any one of the above-mentioned frequency scanning methods is implemented.

[0092] In some exemplary embodiments, the electronic device further includes: one or more I / O interfaces 403 connected between the processor 401 and the memory 402 , and configured to implement information exchange between the processor 401 and the memory 402 .

[0093] Among them, the processor 401 is a device with data processing capabilities, including but not limited to a central processing unit (CPU); the memory 402 is a device with data storage capabilities, including but not limited to random access memory (RAM, more specifically SDRAM, DDR, etc.), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), and flash memory (FLASH); the I / O interface (read-write interface) 403 is connected between the processor 401 and the memory 402, and can realize information interaction between the processor 401 and the memory 402, including but not limited to a data bus (Bus), etc.

[0094] In some embodiments, the processor 401 , the memory 402 , and the I / O interface 403 are connected to each other via a bus 404 , and further connected to other components of the computing device.

[0095] In a third aspect, another embodiment of the present application provides a computer-readable medium having a computer program stored thereon, and when the computer program is executed by a processor, any one of the above-mentioned frequency scanning methods is implemented.

[0096] It will be appreciated by those skilled in the art that all or some of the steps, systems, and functional modules / units in the methods disclosed above may be implemented as software, firmware, hardware, and appropriate combinations thereof. In hardware implementations, the division between the functional modules / units mentioned in the above description does not necessarily correspond to the division of physical components; for example, a physical component may have multiple functions, or a function or step may be performed by several physical components in cooperation. Some or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application-specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium (or non-transitory medium) and a communication medium (or temporary medium). As is well known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable, and non-removable media implemented in any method or technology for storing information (such as computer-readable instructions, data structures, program modules, or other data). Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital versatile disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage, or any other medium that can be used to store the desired information and can be accessed by a computer. In addition, as is well known to those skilled in the art, communication media typically embodies computer-readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.

[0097] Example embodiments have been disclosed herein, and although specific terms are employed, they are used and should be interpreted only in a general illustrative sense and not for purposes of limitation. In some instances, it will be apparent to those skilled in the art that, unless otherwise expressly indicated, features, characteristics, and / or elements described in conjunction with a particular embodiment may be used alone or in combination with features, characteristics, and / or elements described in conjunction with other embodiments. Therefore, it will be understood by those skilled in the art that various changes in form and detail may be made without departing from the scope of the present application as set forth in the appended claims.

Claims

1. A frequency sweeping method, comprising: For the i-th frequency point to be detected, obtaining time domain data corresponding to the i-th frequency point to be detected after adjustment based on the first gain value; wherein i is an integer greater than or equal to 1; the first gain value is a gain value obtained by adjusting the second gain value used for the i-1-th frequency point to be detected during the detection process of the i-1-th frequency point to be detected, or a gain value obtained by adjusting the third gain value used for the i-th frequency point to be detected during the last detection process of the i-th frequency point to be detected; Performing synchronous signal detection on the time domain data corresponding to the i-th frequency point to be detected and obtained after adjustment based on the first gain value to obtain a detection peak value corresponding to the i-th frequency point to be detected; Determine whether the detection peak corresponding to the i-th frequency point to be detected is greater than or equal to a first peak threshold; if the detection peak corresponding to the i-th frequency point to be detected is greater than or equal to the first peak threshold, determine that the i-th frequency point to be detected is a valid frequency point.

2. The frequency sweeping method according to claim 1, further comprising: After all the frequency points to be detected are detected, all the valid frequency points are sorted according to the detection peak value of the valid frequency point and at least one of the time domain average power values of the symbols where the detection peak value of the valid frequency point is located in the time domain data corresponding to the valid frequency point.

3. The frequency sweeping method according to any one of claims 1 to 2, wherein after performing synchronous signal detection on the time domain data corresponding to the i-th frequency point to be detected and obtained after adjustment based on the first gain value to obtain a detection peak value corresponding to the i-th frequency point to be detected, the method further comprises: Obtaining a signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected; Determine whether the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected is within a preset range; When the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected is within the preset interval, it is determined that the i-th frequency point to be detected is an invalid frequency point.

4. The frequency sweeping method according to claim 3, further comprising: When the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected is not within the preset interval, adjusting the first gain value according to the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected; Continue to execute the step of obtaining the time domain data corresponding to the i-th frequency point to be detected based on the adjusted first gain value until the number of synchronization signal detections for the i-th frequency point to be detected is greater than or equal to the detection number threshold, or it is determined that the i-th frequency point to be detected is a valid frequency point or an invalid frequency point.

5. The frequency sweeping method according to claim 4, wherein: The signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected includes: the time domain average power value of each symbol in the time domain data corresponding to the i-th frequency point to be detected; The adjusting the first gain value according to the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected includes: Determining a first average value of time-domain average power values of all symbols in the time-domain data corresponding to the i-th frequency point to be detected; adjusting the first gain value according to the first average value; Alternatively, a first maximum value of time-domain average power values of all symbols in the time-domain data corresponding to the i-th frequency point to be detected is determined; and the first gain value is adjusted according to the first maximum value.

6. The frequency sweeping method according to claim 5, wherein: Adjusting the first gain value according to the first average value includes at least one of the following: When the first average value is greater than the preset interval, reducing the first gain value; When the first average value is smaller than the preset interval, the first gain value is increased.

7. The frequency sweeping method according to claim 5, wherein: Adjusting the first gain value according to the first maximum value includes at least one of the following: When the first maximum value is greater than the preset interval, reducing the first gain value; When the first maximum value is smaller than the preset interval, the first gain value is increased.

8. The frequency sweeping method according to claim 4, wherein: The signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected includes: after the time domain data corresponding to the i-th frequency point to be detected is converted into frequency domain data, the received signal strength indicator value of each resource unit in the frequency domain data; The adjusting the first gain value according to the signal strength parameter of the time domain data corresponding to the i-th frequency point to be detected includes: determining a second average value of received signal strength indicators of all resource units in the frequency domain data; and adjusting the first gain value according to the second average value; Alternatively, a second maximum value of the received signal strength indicator values of all resource units in the frequency domain data is determined; and the first gain value is adjusted according to the second maximum value.

9. The frequency sweeping method according to claim 8, wherein: Adjusting the first gain value according to the second average value includes at least one of the following: When the second average value is greater than the preset interval, reducing the first gain value; When the second average value is smaller than the preset interval, the first gain value is increased.

10. The frequency sweeping method according to claim 8, wherein: Adjusting the first gain value according to the second maximum value includes at least one of the following: When the second maximum value is greater than the preset interval, reducing the first gain value; When the second maximum value is smaller than the preset interval, the first gain value is increased.

11. The frequency sweeping method according to any one of claims 1 to 2, wherein when performing synchronization signal detection on the time domain data corresponding to the i-th frequency point to be detected and obtained after adjustment based on the first gain value, peak position information corresponding to the i-th frequency point to be detected is also obtained; When the detection peak value corresponding to the i-th frequency point to be detected is greater than or equal to the first peak threshold, before determining that the i-th frequency point to be detected is a valid frequency point, the method further includes: Determine the number N of symbols of the peak position information corresponding to the i-th frequency point to be detected in the time domain data corresponding to the i-th frequency point to be detected; wherein N is an integer greater than or equal to 1; Obtaining a time domain average power value of the Nth symbol in the time domain data corresponding to the i-th frequency point to be detected; Determining whether the time domain average power value of the Nth symbol is within a preset interval; When the time-domain average power value of the Nth symbol in the time-domain data corresponding to the i-th frequency point to be detected is within the preset interval, it is determined that the i-th frequency point to be detected is a valid frequency point.

12. The frequency sweeping method according to claim 11, further comprising: When the time-domain average power value of the Nth symbol in the time-domain data corresponding to the i-th frequency point to be detected is not within the preset interval, adjusting the first gain value according to the time-domain average power value of the Nth symbol in the time-domain data corresponding to the i-th frequency point to be detected; Continue to execute the step of obtaining the time domain data corresponding to the i-th frequency point to be detected based on the adjusted first gain value until the number of synchronization signal detections for the i-th frequency point to be detected is greater than or equal to the detection number threshold, or it is determined that the i-th frequency point to be detected is a valid frequency point or an invalid frequency point.

13. The frequency sweeping method according to claim 12, wherein: The adjusting the first gain value according to the time domain average power value of the Nth symbol in the time domain data corresponding to the i-th frequency point to be detected includes at least one of the following: When the time-domain average power value of the Nth symbol is greater than the preset interval range, reducing the first gain value; When the time-domain average power value of the Nth symbol is less than the preset interval range, the first gain value is increased.

14. An electronic device comprising: at least one processor; A memory, wherein at least one program is stored in the memory, and when the at least one program is executed by the at least one processor, the frequency scanning method according to any one of claims 1 to 13 is implemented.

15. A computer-readable medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the frequency sweeping method according to any one of claims 1 to 13.