Spectrum analysis method and apparatus, terminal, and storage medium
By performing initial AGC adjustments for each frequency point during spectrum analysis, determining the link attenuation value, and reusing it in subsequent rounds, the problem of low efficiency in spectrum analysis is solved, and speed and accuracy are improved.
Patent Information
- Application Number
- CN202110610833.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-01
- Publication Date
- 2026-01-30
- Estimated Expiration
- 2041-06-01
AI Technical Summary
Existing spectrum analyzers employ multi-stage local oscillators and complex automatic gain control technology, resulting in low spectrum analysis efficiency and a lack of effective optimization solutions.
By performing a first round of spectrum analysis on each frequency point, the adjustment results of automatic gain control are obtained, the link attenuation value used for the second round of spectrum analysis is determined, and the link attenuation value is reused for AGC adjustment in subsequent rounds to avoid frequent adjustments.
It improves the speed and accuracy of spectrum analysis, meets actual testing needs, reduces the number of AGC adjustments, and enhances the efficiency of spectrum analysis.
Smart Images

Figure CN115442838B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a spectrum analysis method, apparatus, terminal and storage medium. Background Technology
[0002] Spectrum analysis, a key technology in the field of radio frequency signal measurement, has been widely applied in many areas such as spectrum measurement and interference troubleshooting. Existing spectrum analyzers employ multi-stage local oscillators, and the corresponding automatic gain control technology is also quite complex, reducing spectrum analysis efficiency. Therefore, there is currently no better optimization solution to improve the efficiency of spectrum analysis. Summary of the Invention
[0003] This application provides a spectrum analysis method, apparatus, terminal, and storage medium to address the lack of better optimization solutions for improving spectrum analysis efficiency in the prior art, and to achieve simple and efficient automatic gain control, thereby improving the efficiency of spectrum analysis.
[0004] In a first aspect, embodiments of this application provide a spectrum analysis method, including:
[0005] Determine the first frequency band for which spectrum analysis needs to be performed, the first frequency band including one or more frequency points;
[0006] Perform a first round of spectrum analysis on each of the one or more frequency points;
[0007] Based on the automatic gain control (AGC) adjustment results obtained in the first round of spectrum analysis, determine the first link attenuation value for the second round of spectrum analysis;
[0008] A second round of spectrum analysis is performed on each frequency point based on the first link attenuation value, where the first link attenuation value is the value adjusted by AGC in the second round of spectrum analysis.
[0009] Optionally, according to a spectrum analysis method of one embodiment of this application, the first round of spectrum analysis for each of the one or more frequency points includes:
[0010] Perform AGC adjustment on the local oscillator corresponding to each frequency point until an AGC adjustment result that meets the set conditions is obtained;
[0011] Perform the first round of spectrum analysis on each frequency point to obtain the spectrum result corresponding to each frequency point;
[0012] The spectrum results corresponding to each frequency point are spliced together to obtain the spectrum result corresponding to the first frequency band.
[0013] Optionally, according to one embodiment of the spectrum analysis method of this application, the step of determining a first link attenuation value for a second round of spectrum analysis based on the automatic gain control (AGC) adjustment result obtained in the first round of spectrum analysis includes:
[0014] Obtain the local oscillator RSSI value corresponding to each frequency point from the AGC adjustment results;
[0015] The maximum air interface RSSI value is determined from the air interface RSSI values of the local oscillator corresponding to each frequency point;
[0016] The first link attenuation value is determined based on the maximum air interface RSSI value, and the first link attenuation value is the link attenuation value corresponding to the maximum air interface RSSI value.
[0017] Optionally, according to a spectrum analysis method of one embodiment of this application, the link attenuation value corresponding to the maximum air interface RSSI value includes the digitally controlled attenuator (DATT) value and the variable gain amplifier (VGA) value.
[0018] Optionally, the spectrum analysis method according to one embodiment of this application further includes:
[0019] The second link attenuation value for the third round of spectrum analysis is determined based on the second round of spectrum analysis.
[0020] A third round of spectrum analysis is performed on each frequency point based on the second link attenuation value, where the second link attenuation value is the value adjusted by AGC in the third round of spectrum analysis.
[0021] Optionally, according to one embodiment of the spectrum analysis method of this application, the step of determining a second link attenuation value for a third round of spectrum analysis based on the second round of spectrum analysis includes:
[0022] The ADC output power at the local oscillator corresponding to each frequency point is obtained from the second round of spectrum analysis;
[0023] The maximum ADC output power is determined from the local oscillator ADC output power corresponding to each frequency point;
[0024] The second link attenuation value is determined based on the maximum ADC output power.
[0025] Optionally, according to one embodiment of the spectrum analysis method of this application, determining the second link attenuation value based on the maximum ADC output power includes:
[0026] The second link attenuation value is calculated using a first formula; wherein the first formula includes:
[0027] RSSI0 = f(RSSI1)
[0028] Delta = RSSI0 - RSSI_GOAL
[0029] Datt = curDatt + Delta
[0030] Where RSSI1 represents the maximum ADC output power, RSSI0 represents the ADC input power corresponding to the maximum ADC output power, RSSI_GOAL represents the target input power, f represents the linear relationship between RSSI0 and RSSI1, Delta represents the difference between the ADC input power and the target input power, curDatt represents the link attenuation value corresponding to the maximum ADC output power, and Datt represents the second link attenuation value.
[0031] Optionally, according to a spectrum analysis method of one embodiment of this application, when the difference exceeds a set range, the difference is updated to a set value.
[0032] Optionally, the spectrum analysis method according to one embodiment of this application further includes:
[0033] The Nth link attenuation value is determined based on the Nth round of spectrum analysis for the (N+1)th round of spectrum analysis, and the Nth round of spectrum analysis is used to characterize any round of spectrum analysis after the second round of spectrum analysis;
[0034] The N+1th round of spectrum analysis is performed on each frequency point based on the Nth link attenuation value, where the Nth link attenuation value is the AGC adjustment value in the N+1th round of spectrum analysis.
[0035] Secondly, embodiments of this application provide a spectrum analysis device, comprising:
[0036] The first determining unit is used to determine the first frequency band that needs to be subjected to spectrum analysis, the first frequency band including one or more frequency points;
[0037] The first-round spectrum analysis unit is used to perform a first-round spectrum analysis on each of the one or more frequency points;
[0038] The second determining unit is used to determine a first link attenuation value for the second round of spectrum analysis based on the first round of spectrum analysis.
[0039] The second-round spectrum analysis unit is used to perform a second-round spectrum analysis on each frequency point based on the first link attenuation value, wherein the local oscillator corresponding to each frequency point uses the first link attenuation value as the automatic gain control (AGC) value for the second-round spectrum analysis.
[0040] Thirdly, embodiments of this application provide a terminal, including a memory, a transceiver, and a processor, wherein:
[0041] A memory for storing computer programs; a transceiver for transmitting and receiving data under the control of the processor; and a processor for reading the computer program from the memory and implementing the steps of the spectrum analysis method described in the first aspect above.
[0042] Fourthly, embodiments of this application provide a processor-readable storage medium storing a computer program for causing the processor to perform the steps of the spectrum analysis method described in the first aspect above.
[0043] The spectrum analysis method, apparatus, terminal, and storage medium provided in this application embodiment perform a first round of spectrum analysis on each frequency point; determine a first link attenuation value for a second round of spectrum analysis based on the AGC adjustment result obtained in the first round of spectrum analysis; and perform a second round of spectrum analysis on each frequency point based on the first link attenuation value, wherein the first link attenuation value is the AGC adjustment value in the second round of spectrum analysis. This achieves the following: for the first round of spectrum analysis, the traditional AGC adjustment method is used to control the AGC adjustment, ensuring the initial accuracy of the AGC adjustment; in the second round of spectrum analysis, each frequency point is no longer individually adjusted for AGC, but the link attenuation value determined in the previous round of spectrum analysis is used as the AGC adjustment value in this round of spectrum analysis. This avoids frequent AGC adjustments for each frequency point in each round of spectrum analysis, greatly improving the speed of spectrum analysis, while also meeting the accuracy requirements of actual testing. Attached Figure Description
[0044] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0045] Figure 1 This is a schematic diagram of AGC control for a radio frequency link.
[0046] Figure 2 This is one of the flowcharts illustrating a spectrum analysis method provided in this application embodiment;
[0047] Figure 3 This is a second schematic flowchart of a spectrum analysis method provided in an embodiment of this application;
[0048] Figure 4This is a schematic diagram of the system architecture of a radio frequency receiver provided in an embodiment of this application;
[0049] Figure 5 This is a schematic diagram of the spectrum analysis device provided in the embodiments of this application;
[0050] Figure 6 This is a schematic diagram of the structure of the terminal device provided in the embodiments of this application. Detailed Implementation
[0051] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0052] In order to facilitate a clear description of the technical solutions of the embodiments of this application, in the various embodiments of this application, if the words "first" and "second" are used to distinguish the same or similar items with basically the same function and effect, those skilled in the art can understand that the words "first" and "second" do not limit the quantity or execution order.
[0053] In the embodiments of this application, the term "and / or" describes the relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent three cases: A alone, A and B simultaneously, and B alone. The character " / " generally indicates that the preceding and following associated objects have an "or" relationship.
[0054] In the embodiments of this application, the term "multiple" refers to two or more, and other quantifiers are similar.
[0055] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.
[0056] Because the analysis bandwidth is relatively wide during spectrum analysis, often 100MHz or even wider, it is necessary to configure the local oscillator multiple times during each round of spectrum analysis. Under each local oscillator, a certain bandwidth (e.g., 10MHz) spectrum analysis is performed. After completing the configuration of multiple local oscillators, the spectrum analysis results of all the small segments are spliced together to form the spectrum result of the entire bandwidth.
[0057] Because air interface signals are complex and variable, automatic gain control (AGC) is required on the RF link after each local oscillator configuration to ensure the AD input signal remains within a reasonable range. Traditional spectrum analysis methods require an AGC adjustment after each local oscillator configuration, with feedback adjustment for each adjustment. Multiple rounds of adjustments are needed to determine the link gain, thereby achieving an ideal input signal value for the analog-to-digital converter (ADC). A corresponding schematic diagram of RF link AGC control is shown below. Figure 1 As shown.
[0058] Figure 1 In this context, a Field Programmable Gate Array (FPGA) or other logic device calculates the signal power output by the ADC (i.e., Figure 1 The power before AGC input (i.e., RSSI1) is used to calculate the power (i.e., the power before AGC input). Figure 1 RSSI0 in the data); compare the power (i.e. Figure 1 The difference between the input power RSSI0 and the target input power RSSI_GOAL is used to adjust the values of components such as the digital attenuator (DATT) and variable gain amplifiers (VGA) in the RF link. This adjustment method typically requires several rounds of adjustments, each round taking 5–20 ms, to achieve the desired input power before the ADC (i.e., RSSI_GOAL). Figure 1 The initial values of RSSI0 in the DATT and VGA should be consistent with the target input power RSSI_GOAL. The initial values of DATT and VGA can be determined by the higher-level control module (e.g., ...). Figure 1 Configure the digital signal processor (DSP) in the system.
[0059] in addition, Figure 1 RSSI in this context is an abbreviation for Received Signal Strengthening Indicator (RSSI). Figure 1 In this context, "Amp" refers to an amplifier. Figure 1 In this context, RSSI_RFIN represents the input power at the RF antenna, which is the power received by the receiver. Subsequent embodiments will refer to RSSI_RFIN in conjunction with... Figure 1 The meaning of RSSI_RFIN in the above context is the same, and will not be repeated in subsequent embodiments.
[0060] If the receiver has a small number of frequency points configured. Figure 1 The AGC algorithm shown can meet the speed requirements while ensuring signal adjustment performance. However, for scenarios involving large bandwidth spectrum analysis (e.g., 5G signal band bandwidth is generally over 100MHz), each round of analysis typically requires configuring more than 10 frequency points. Figure 1 The AGC algorithm shown is no longer sufficient to meet the speed requirements of actual testing. Therefore, a faster AGC adjustment method using spectrum analysis mode is needed.
[0061] This application provides a spectrum analysis method, apparatus, terminal, and storage medium that improves the efficiency of spectrum analysis while ensuring relatively accurate AGC adjustment.
[0062] The method and apparatus are based on the same concept of the application. Since the methods and apparatus solve problems in similar ways, the implementation of the apparatus and methods can refer to each other, and the repeated parts will not be described again.
[0063] The technical solutions provided in this application can be applied to various systems, especially 5G systems. For example, applicable systems include Global System for Mobile Communication (GSM), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA) General Packet Radio Service (GPRS), Long Term Evolution (LTE), LTE Frequency Division Duplex (FDD), LTE Time Division Duplex (TDD), Long Term Evolution Advanced (LTE-A), Universal Mobile Telecommunication System (UMTS), Worldwide Interoperability for Microwave Access (WiMAX), and 5G New Radio (NR). All of these systems include terminal equipment and network equipment. The systems may also include a core network component, such as Evolved Packet System (EPS) and 5G system (5GS).
[0064] The terminal devices involved in the embodiments of this application can be devices that provide voice and / or data connectivity to users, handheld devices with wireless connectivity, or other processing devices connected to a wireless modem. The names of the terminal devices may differ in different systems; for example, in a 5G system, a terminal device can be called User Equipment (UE). Wireless terminal devices can communicate with one or more core networks (CNs) via a Radio Access Network (RAN). Wireless terminal devices can be mobile terminal devices, such as mobile phones (or "cellular" phones) and computers with mobile terminal devices, for example, portable, pocket-sized, handheld, computer-embedded, or vehicle-mounted mobile devices that exchange voice and / or data with the RAN. Examples include Personal Communication Service (PCS) phones, cordless phones, Session Initiated Protocol (SIP) phones, Wireless Local Loop (WLL) stations, and Personal Digital Assistants (PDAs). Wireless terminal equipment can also be referred to as a system, subscriber unit, subscriber station, mobile station, mobile station, remote station, access point, remote terminal, access terminal, user terminal, user agent, or user device, but is not limited to these terms in the embodiments of this application.
[0065] Figure 2 This is one of the flowcharts illustrating a spectrum analysis method provided in an embodiment of this application. This spectrum analysis method can be used in terminals, such as radio frequency receivers. Figure 2 As shown, this spectrum analysis method may include the following steps:
[0066] Step 201: Determine the first frequency band for which spectrum analysis needs to be performed. The first frequency band includes one or more frequency points.
[0067] Specifically, after receiving the spectrum analysis command, the spectrum analysis device divides the first frequency band that needs to be analyzed into segments, calculates the local oscillator frequency of each segment (i.e., each frequency point), and the corresponding start frequency, end frequency, number of spectral lines, and other information.
[0068] For example, the starting frequency of the first frequency band is 2515MHz, the ending frequency is 2615MHz, and the resolution bandwidth (RBW) is 100kHz. If the spectrum of 10MHz is analyzed each time, then the number of local oscillators is 100MHz / 10MHz = 10, and the number of spectral lines in each segment is 10MHz / 100kHz = 100.
[0069] Step 202: Perform the first round of spectrum analysis for each of the one or more frequency points.
[0070] Specifically, in the first round of spectrum analysis, the local oscillator corresponding to each frequency point can be adjusted multiple times until the AGC adjustment is stable, which can ensure the initial accuracy of the AGC adjustment.
[0071] Step 203: Based on the AGC adjustment results obtained in the first round of spectrum analysis, determine the first link attenuation value for the second round of spectrum analysis.
[0072] Specifically, the first round of spectrum analysis adopted the traditional AGC adjustment method, adjusting the local oscillator corresponding to each frequency point to ensure the initial accuracy of the AGC adjustment.
[0073] In the second round of spectrum analysis, each local oscillator is no longer adjusted individually for AGC. Instead, the first link attenuation value determined in the first round of spectrum analysis (e.g., the DATT and VGA values corresponding to the strongest RSSI_RFIN) is used as the adjustment value in this round of AGC spectrum analysis. This avoids frequently adjusting the AGC of the local oscillator corresponding to each frequency point in each round of spectrum analysis, greatly improving the speed of spectrum analysis, and the accuracy can also meet the needs of actual testing.
[0074] Step 204: Perform a second round of spectrum analysis on each frequency point based on the first link attenuation value, where the first link attenuation value is the value adjusted by AGC in the second round of spectrum analysis.
[0075] As can be seen from the above embodiments, by performing a first round of spectrum analysis on each frequency point; determining a first link attenuation value for the second round of spectrum analysis based on the AGC adjustment results obtained in the first round of spectrum analysis; and performing a second round of spectrum analysis on each frequency point based on the first link attenuation value, where the first link attenuation value is the AGC adjustment value in the second round of spectrum analysis, the traditional AGC adjustment method can be used to control the AGC adjustment in the first round of spectrum analysis, ensuring the initial accuracy of the AGC adjustment. In the second round of spectrum analysis, each frequency point no longer undergoes individual AGC adjustment; instead, the link attenuation value determined in the previous round of spectrum analysis is used as the AGC adjustment value in this round of spectrum analysis. This avoids frequent AGC adjustments for each frequency point in each round of spectrum analysis, greatly improving the speed of spectrum analysis, while also meeting the accuracy requirements of actual testing.
[0076] Optionally, performing a first round of spectral analysis on each of the one or more frequency points includes:
[0077] Perform AGC adjustment on the local oscillator corresponding to each frequency point until an AGC adjustment result that meets the set conditions is obtained;
[0078] Perform the first round of spectrum analysis on each frequency point to obtain the spectrum result corresponding to each frequency point;
[0079] The spectrum results corresponding to each frequency point are spliced together to obtain the spectrum result corresponding to the first frequency band.
[0080] Specifically, for the first round of spectrum analysis, the traditional AGC adjustment method is used to control the AGC adjustment. After the AGC of each local oscillator is stabilized, baseband data is acquired, and spectrum analysis of the current segment (e.g., 10MHz bandwidth) is performed, with the spectral results cached. Additionally, the DATT and VGA values at the current local oscillator, as well as the calculated RSSI_RFIN, are recorded. After completing the first round of measurements, all spectral lines are stitched together to form a complete frequency line result; and the DATT and VGA values corresponding to the strongest RSSI_RFIN are recorded.
[0081] Specifically, the set conditions can refer to the conditions used to characterize the stability of AGC adjustment, such as: the ADC input signal reaching an ideal value. Another example is: the previous input power RSSI0 of the ADC tends to be consistent with the target input power RSSI_GOAL.
[0082] As can be seen from the above embodiments, in the first round of spectrum analysis, AGC adjustment is performed on the local oscillator corresponding to each frequency point until an AGC adjustment result that meets the set conditions is obtained, thus ensuring the initial accuracy of AGC adjustment.
[0083] Optionally, determining the first link attenuation value for the second round of spectrum analysis based on the AGC adjustment results obtained in the first round of spectrum analysis includes:
[0084] Obtain the local oscillator RSSI value corresponding to each frequency point from the AGC adjustment results;
[0085] The air interface RSSI value at the local oscillator corresponding to each frequency point (i.e. Figure 1 In RSSI_RFIN, the maximum air interface RSSI value is determined.
[0086] The first link attenuation value is determined based on the maximum air interface RSSI value, and the first link attenuation value is the link attenuation value corresponding to the maximum air interface RSSI value.
[0087] As can be seen from the above embodiments, the first link attenuation value used for the second round of spectrum analysis can be the link attenuation value corresponding to the maximum air interface RSSI value obtained from the AGC adjustment results obtained in the first round of spectrum analysis. This avoids frequent AGC adjustments for each frequency point in each round of spectrum analysis, greatly improving the speed of spectrum analysis.
[0088] Optionally, the link attenuation value corresponding to the maximum air interface RSSI value includes the DATT value and the VGA value.
[0089] Specifically, the link attenuation value corresponding to the maximum air interface RSSI value can include the DATT value and the VGA value corresponding to the maximum air interface RSSI value.
[0090] As can be seen from the above embodiments, the AGC adjustment in this application can be achieved by adjusting the digitally controlled attenuator DATT and the variable gain amplifier VGA, thereby improving the efficiency of AGC adjustment.
[0091] Optionally, the spectrum analysis method may further include the following steps:
[0092] The second link attenuation value for the third round of spectrum analysis is determined based on the second round of spectrum analysis.
[0093] A third round of spectrum analysis is performed on each frequency point based on the second link attenuation value, where the second link attenuation value is the value adjusted by AGC in the third round of spectrum analysis.
[0094] Specifically, in the third round of spectrum analysis, each local oscillator no longer undergoes individual AGC adjustment. Instead, the second link attenuation value determined in the second round of spectrum analysis is used as the AGC adjustment value for the third round. This avoids frequent AGC adjustments for each local oscillator in each round of spectrum analysis, greatly improving the speed of spectrum analysis while ensuring that the accuracy meets the requirements of actual testing.
[0095] As can be seen from the above embodiments, except for the first round of spectrum analysis, the link attenuation value determined in the previous round of spectrum analysis can be used as the value for AGC adjustment in the current round. This avoids the need to frequently adjust the AGC for the local oscillator corresponding to each frequency point in each round of spectrum analysis, which greatly improves the speed of spectrum analysis and the accuracy can meet the needs of actual testing.
[0096] Optionally, determining the second link attenuation value for the third round of spectrum analysis based on the second round of spectrum analysis includes:
[0097] The ADC output power at the local oscillator corresponding to each frequency point is obtained from the second round of spectrum analysis (i.e., Figure 1 RSSI1 in the middle);
[0098] The maximum ADC output power is determined from the ADC output power at the local oscillator corresponding to each frequency point;
[0099] The second link attenuation value is determined based on the maximum ADC output power.
[0100] As can be seen from the above embodiments, the second link attenuation value used for the third round of spectrum analysis can be determined by the maximum ADC output power in the second round of spectrum analysis, avoiding the need to frequently adjust AGC for each frequency point in each round of spectrum analysis, and greatly improving the speed of spectrum analysis.
[0101] Optionally, determining the second link attenuation value based on the maximum ADC output power includes:
[0102] The second link attenuation value is calculated using a first formula; wherein the first formula includes:
[0103] RSSI0 = f(RSSI1)
[0104] Delta = RSSI0 - RSSI_GOAL
[0105] Datt = curDatt + Delta
[0106] Where RSSI1 represents the maximum ADC output power, RSSI0 represents the ADC input power corresponding to the maximum ADC output power, RSSI_GOAL represents the target input power, f represents the linear relationship between RSSI0 and RSSI1, Delta represents the difference between the ADC input power and the target input power, curDatt represents the link attenuation value corresponding to the maximum ADC output power, and Datt represents the second link attenuation value.
[0107] As can be seen from the above embodiments, the second link attenuation value used for the third round of spectrum analysis can be calculated using the first formula, which improves the accuracy of determining the second link attenuation value.
[0108] Optionally, when the difference (i.e., Delta) in the first formula exceeds a set range, the difference is updated to the set value.
[0109] Specifically, since the signal changes are not particularly drastic during testing, such as during continuous air interface signal testing, the value of Delta can be limited to a certain range to reduce fluctuations caused by drastic changes in AGC.
[0110] For example, Delta is set to a range of -6dB to 6dB. If the difference in the first formula (i.e., Delta) is greater than or equal to 6dB, then the difference in the first formula (i.e., Delta) is updated to 6dB; if the difference in the first formula (i.e., Delta) is less than or equal to -6dB, then the difference in the first formula (i.e., Delta) is updated to -6dB.
[0111] As can be seen from the above embodiments, by limiting the value of Delta within a certain range, the drastic signal fluctuations caused by drastic changes in AGC during air interface testing can be reduced, thus ensuring the stability of the test results.
[0112] Optionally, the spectrum analysis method may further include the following steps:
[0113] The Nth link attenuation value is determined based on the Nth round of spectrum analysis for the (N+1)th round of spectrum analysis, and the Nth round of spectrum analysis is used to characterize any round of spectrum analysis after the second round of spectrum analysis;
[0114] The N+1th round of spectrum analysis is performed on each frequency point based on the Nth link attenuation value, where the Nth link attenuation value is the AGC adjustment value in the N+1th round of spectrum analysis.
[0115] Specifically, the Nth round of spectrum analysis can be the third round of spectrum analysis, the fourth round of spectrum analysis, the fifth round of spectrum analysis, ..., until a stop command is received to stop the spectrum analysis.
[0116] As can be seen from the above embodiments, except for the first round of spectrum analysis, the link attenuation value determined in the previous round of spectrum analysis can be used as the value for AGC adjustment in the current round. This avoids frequent AGC adjustments for each local oscillator in each round of spectrum analysis, greatly improving the speed of spectrum analysis, and the accuracy can also meet the needs of actual testing.
[0117] Figure 3This is a second schematic flowchart illustrating a spectrum analysis method provided in this application embodiment. This spectrum analysis method can be used in terminals, such as radio frequency receivers. Figure 3 As shown, the spectrum analysis method may include the following implementation process:
[0118] (1) Start spectrum analysis.
[0119] Specifically, a spectrum analysis command is issued to divide the frequency band to be analyzed, calculate the local oscillator frequency of each segment, and the corresponding start frequency, end frequency, number of spectral lines, and other information.
[0120] For example: the current setting is a start frequency of 2515MHz, an end frequency of 2615MHz, and a bandwidth of 100kHz. If the spectrum is analyzed for 10MHz each time, then the number of local oscillators is 100MHz / 10MHz = 10, and the number of spectral lines in each segment is 10MHz / 100kHz = 100.
[0121] (2) The first round of spectrum AGC adjustment is carried out by adjusting each local oscillator to obtain the maximum RSSI and the corresponding link attenuation value.
[0122] Specifically, in the first round, each local oscillator configuration uses the traditional AGC control method to adjust the AGC. After the AGC of each local oscillator is stabilized, baseband data is acquired, and spectrum analysis of the current segment (e.g., 10MHz bandwidth) is performed, with the spectral results cached. The DATT and VGA values at the current local oscillator, as well as the calculated RSSI_RFIN, are recorded. After completing one round of measurements, all spectral lines are stitched together to form a complete frequency line result. The DATT and VGA values corresponding to the strongest RSSI_RFIN are recorded.
[0123] Specifically, the air interface RSSI_RFIN is calculated using the second formula; the second formula includes:
[0124] RSSI_RFIN=RSSI0-(C-DATT+VGA)
[0125] Where C is the fixed gain of the link, RSSI0 can be obtained from RSSI1, and RSSI0 and RSSI1 satisfy a linear relationship, that is, RSSI0 = f(RSSI1).
[0126] (3) In the new round of spectrum AGC adjustment, the same link gain value is used for different local oscillators. This value is obtained based on the results of the previous round of AGC adjustment.
[0127] Specifically, the DATT and VGA values corresponding to the strongest RSSI_RFIN under the first round of AGC adjustment are used as the fixed values for the new round of spectrum analysis AGC, and the traditional AGC adjustment module is turned off. The ADC output power RSSI1 corresponding to each local oscillator is recorded in the current round, and the maximum RSSI1 under this round of adjustment is found.
[0128] (4) The frequency lines of each local oscillator analysis in this round are spliced together, and the next round of spectrum analysis and AGC adjustment is started.
[0129] Specifically, (4-1) the current AGC value is calculated based on the maximum RSSI1 in (3) and the corresponding DATT and VGA values. (Refer to...) Figure 1 Let RSSI0 be the ADC input power before AGC, RSSI_GOAL be the target input power, curDat be the total link attenuation represented by DATT and VAG values, and Datt be the new total link attenuation. The calculation method is as follows:
[0130] Calculate the AGC input power RSSI0, i.e., RSSI0 = f(RSSI1), where the ADC output power (i.e., RSSI1) and the ADC input power (i.e., RSSI0) follow a linear relationship f(〃);
[0131] Calculate the difference between RSSI0 and the target input power: Delta = RSSI0 - RSSI_GOAL; where Delta represents the difference between the current link gain and the target link gain (i.e., the difference between the ADC input power and the target input power). If Delta > 0, it means that the link gain is too high and the attenuation needs to be increased; otherwise, the attenuation needs to be reduced.
[0132] Therefore, the new total link attenuation is:
[0133] Datt = curDatt + Delta
[0134] Using this DATTT as the total attenuation for AGC adjustment in the next round of spectrum analysis, the combined effect of DATTT and VGA is achieved.
[0135] (4-2) Take measures to resist fluctuations in Delta.
[0136] Specifically, considering that signal changes are not particularly drastic during actual testing, such as in continuous over-the-air signal testing, to reduce fluctuations caused by drastic changes in AGC, the value of delta can be limited to a certain range. For example, limiting the range of Delta to within 6dB can reduce drastic signal fluctuations caused by drastic changes in AGC during over-the-air testing, ensuring the stability of test results.
[0137] (4-3) Calculation and reporting of the new round of spectrum analysis measurement values.
[0138] (5) Determine whether a stop command has been received. If a stop command has been received, the measurement stops. If no stop command has been received, repeat steps (4-1) to (4-3) until the measurement stops.
[0139] Figure 4 This is a schematic diagram of a system architecture for a radio frequency receiver provided in an embodiment of this application. This radio frequency receiver can be used to perform the above-described... Figure 2 or Figure 3 The spectrum analysis method shown. For example... Figure 4 As shown, the RF gain control is mainly achieved by the digitally controlled attenuator (DATT) and the variable gain amplifier (VGA), while the link control is jointly completed by the DSP and FPGA processing units.
[0140] Figure 4 The Local Maintenance Terminal (LMT) is used to configure user parameters and report display functions. User parameters include configuration functions for parameters such as start frequency, end frequency, resolution bandwidth, and Fast Fourier Transform (FFT) window type in spectrum analysis mode. The report display function is used to display and save the report results of spectrum analysis, which can be displayed in a table or graphical interface.
[0141] Figure 4 The AD9371 is used to configure and switch frequency points and convert analog signals to digital signals.
[0142] Figure 4 The baseband processing unit includes an FPGA processing unit and a DSP processing unit. The FPGA is responsible for calculating the signal power output by the AD9371 and reporting it to the DSP in real time. The DSP uses the reported power to control the AGC algorithm, calculates the DATT value to be written in the current round of frequency analysis, and sends it to the FPGA. The FPGA then controls the RF devices to complete the writing of the new control value.
[0143] Figure 4 The limiter in the signal is used to limit high-power signals; Figure 4 The low-noise amplifier in the middle is used for small signal amplification; Figure 4 The radio frequency switch in the middle is used to switch radio frequency channels; Figure 4 The first-stage filtering unit, the second-stage filtering unit, and the third-stage filtering unit are used to suppress out-of-band interference and spurious signals, respectively. Figure 4 The intermediate frequency amplifier following the first-stage filtering unit is used to adjust the signal power; Figure 4 The intermediate frequency amplifier following the second-stage filtering unit is used to adjust the signal power; Figure 4 JESD204B in this context refers to the high-speed serial receiver interface of the ADC chip AD9371. Figure 4 The Serial Peripheral Interface (SPI) configuration in this context refers to the fact that the AD9371 ADC chip needs to be configured via the SPI port to function properly.
[0144] As can be seen, during each round of spectrum analysis, the RF receiver can calculate the new AGC link gain based on the link attenuation value corresponding to the maximum air interface RSSI of the previous round of spectrum analysis. This value can then be used as the AGC value for multiple local oscillators in the current round of spectrum analysis, reducing the time spent on multiple adjustments and greatly improving the adjustment speed.
[0145] During the initial adjustment of the RF receiver, the traditional AGC adjustment method can be used, adjusting each local oscillator to ensure the initial accuracy of the AGC adjustment;
[0146] The RF receiver can limit the range of link gain adjustment during each round of adjustment, ensuring the stability of AGC adjustment during actual testing.
[0147] Figure 5 This is a schematic diagram of the spectrum analysis device provided in the embodiments of this application; the spectrum analysis device can be used to perform the above-described... Figure 2 or Figure 3 The spectrum analysis method shown. For example... Figure 5 As shown, the spectrum analysis device may include:
[0148] The first determining unit 51 is used to determine the first frequency band that needs to be subjected to spectrum analysis, the first frequency band including one or more frequency points;
[0149] The first-round spectrum analysis unit 52 is used to perform a first-round spectrum analysis on each of the one or more frequency points;
[0150] The second determining unit 53 is used to determine the first link attenuation value for the second round of spectrum analysis based on the automatic gain control (AGC) adjustment result obtained in the first round of spectrum analysis.
[0151] The second-round spectrum analysis unit 54 is used to perform a second-round spectrum analysis on each frequency point based on the first link attenuation value, wherein the first link attenuation value is the value adjusted by AGC in the second-round spectrum analysis.
[0152] Furthermore, based on the aforementioned device, the first round of spectrum analysis unit 52 includes:
[0153] The AGC adjustment subunit is used to perform AGC adjustment on the local oscillator corresponding to each frequency point until an AGC adjustment result that meets the set conditions is obtained.
[0154] The spectrum analysis subunit is used to perform the first round of spectrum analysis on each frequency point to obtain the spectrum result corresponding to each frequency point;
[0155] The splicing subunit is used to splice the spectrum results corresponding to each frequency point to obtain the spectrum result corresponding to the first frequency band.
[0156] Furthermore, based on the above-described apparatus, the second determining unit 53 includes:
[0157] The first acquisition subunit is used to acquire the air interface RSSI value of the local oscillator corresponding to each frequency point from the AGC adjustment result;
[0158] The first determining subunit is used to determine the maximum air interface RSSI value from the air interface RSSI values of the local oscillator corresponding to each frequency point;
[0159] The second determining subunit is used to determine the first link attenuation value based on the maximum air interface RSSI value, wherein the first link attenuation value is the link attenuation value corresponding to the maximum air interface RSSI value.
[0160] Furthermore, based on the aforementioned device, the link attenuation value corresponding to the maximum air interface RSSI value includes the DATT value and the VGA value.
[0161] Furthermore, based on the aforementioned device, it also includes:
[0162] The third determining unit is used to determine the second link attenuation value for the third round of spectrum analysis based on the second round of spectrum analysis.
[0163] The third-round spectrum analysis unit is used to perform a third-round spectrum analysis on each frequency point based on the second link attenuation value, wherein the second link attenuation value is the value adjusted by AGC in the third-round spectrum analysis.
[0164] Furthermore, based on the aforementioned device, the third determining unit includes:
[0165] The second acquisition subunit is used to acquire the local oscillator ADC output power corresponding to each frequency point from the second round of spectrum analysis;
[0166] The third determining subunit is used to determine the maximum ADC output power from the local oscillator ADC output power corresponding to each frequency point;
[0167] The fourth determining subunit is used to determine the second link attenuation value based on the maximum ADC output power.
[0168] Furthermore, based on the aforementioned device, the fourth determining subunit is specifically used for:
[0169] The second link attenuation value is calculated using a first formula; wherein the first formula includes:
[0170] RSSI0 = f(RSSI1)
[0171] Delta = RSSI0 - RSSI_GOAL
[0172] Datt = curDatt + Delta
[0173] Where RSSI1 represents the maximum ADC output power, RSSI0 represents the ADC input power corresponding to the maximum ADC output power, f represents the linear relationship between RSSI0 and RSSI1, RSSI_GOAL represents the target input power, Delta represents the difference between the ADC input power and the target input power, curDatt represents the link attenuation value corresponding to the maximum ADC output power, and Datt represents the second link attenuation value.
[0174] Furthermore, based on the aforementioned device, when the difference exceeds the set range, the difference is updated to the set value.
[0175] Furthermore, based on the aforementioned device, it also includes:
[0176] The Nth round determination unit is used to determine the Nth link attenuation value for the N+1th round of spectrum analysis based on the Nth round of spectrum analysis, wherein the Nth round of spectrum analysis is used to characterize any round of spectrum analysis after the second round of spectrum analysis;
[0177] The Nth round spectrum analysis unit is used to perform the N+1th round spectrum analysis on each frequency point according to the Nth link attenuation value, wherein the Nth link attenuation value is the value of AGC adjustment in the N+1th round spectrum analysis.
[0178] It should be noted that the division of units in the embodiments of this application is illustrative and only represents one logical functional division. In actual implementation, other division methods may be used. Furthermore, the functional units in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units described above can be implemented in hardware or as software functional units.
[0179] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a processor-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0180] It should be noted that the apparatus provided in this application embodiment can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Therefore, the parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.
[0181] Figure 6 This is a schematic diagram of the structure of the terminal device provided in an embodiment of this application. This terminal device can be used to perform... Figure 2 or Figure 3 The spectrum analysis method shown is, for example, the terminal device is... Figure 4 The radio frequency receiver in the middle. For example... Figure 6 As shown, transceiver 600 is used to receive and send data under the control of processor 610. Among them, in Figure 6 In this context, the bus architecture can include any number of interconnected buses and bridges, specifically linking various circuits of one or more processors represented by processor 610 and memory represented by memory 620 together. The bus architecture can also link various other circuits such as peripheral devices, voltage regulators, and power management circuits, which are well known in the art and therefore will not be described further herein. The bus interface provides an interface. The transceiver 600 can be multiple components, including transmitters and receivers, providing a unit for communicating with various other devices over a transmission medium, including wireless channels, wired channels, optical fibers, etc. For different user equipment, the user interface 630 can also be an interface capable of connecting external or internal devices, including but not limited to keypads, displays, speakers, microphones, joysticks, etc.
[0182] The processor 610 is responsible for managing the bus architecture and general processing, while the memory 620 can store the data used by the processor 610 when performing operations.
[0183] Optionally, the processor 610 can be a CPU (Central Processing Unit), ASIC (Application Specific Integrated Circuit), FPGA (Field-Programmable Gate Array), or CPLD (Complex Programmable Logic Device), and the processor can also adopt a multi-core architecture.
[0184] The processor executes any of the methods described in the embodiments of this application according to the obtained executable instructions by calling a computer program stored in memory. The processor and memory may also be physically separated.
[0185] It should be noted that the apparatus provided in this application embodiment can implement all the method steps implemented in the above method embodiment and can achieve the same technical effect. Therefore, the parts and beneficial effects that are the same as those in the method embodiment will not be described in detail here.
[0186] On the other hand, embodiments of this application also provide a processor-readable storage medium storing a computer program for causing the processor to execute the methods provided in the above embodiments, including:
[0187] Determine the first frequency band for which spectrum analysis needs to be performed, the first frequency band including one or more frequency points;
[0188] Perform a first round of spectrum analysis on each of the one or more frequency points;
[0189] Based on the automatic gain control (AGC) adjustment results obtained in the first round of spectrum analysis, determine the first link attenuation value for the second round of spectrum analysis;
[0190] A second round of spectrum analysis is performed on each frequency point based on the first link attenuation value, where the first link attenuation value is the value adjusted by AGC in the second round of spectrum analysis.
[0191] The processor-readable storage medium can be any available medium or data storage device that the processor can access, including but not limited to magnetic memory (e.g., floppy disk, hard disk, magnetic tape, magneto-optical disk (MO)), optical memory (e.g., CD, DVD, BD, HVD), and semiconductor memory (e.g., ROM, EPROM, EEPROM, non-volatile memory (NAND FLASH), solid-state drive (SSD)).
[0192] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product implemented on one or more computer-usable storage media (including, but not limited to, disk storage and optical storage) containing computer-usable program code.
[0193] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer-executable instructions. These computer-executable instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0194] These processor-executable instructions may also be stored in a processor-readable memory that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the processor-readable memory produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0195] These processors can execute instructions that can also be loaded onto a computer or other programmable data processing device, causing a series of operational steps to be performed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable device for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0196] Obviously, those skilled in the art can make various modifications and variations to this application without departing from the spirit and scope of this application. Therefore, if such modifications and variations fall within the scope of the claims of this application and their equivalents, this application also intends to include such modifications and variations.
Claims
1. A method of spectral analysis, characterized by, The method comprises: determining a first frequency band requiring spectrum analysis, the first frequency band comprising one or more frequency points; performing first round spectrum analysis on each of the one or more frequency points; determining a first link attenuation value for second round spectrum analysis according to an automatic gain control (AGC) adjustment result obtained in the first round spectrum analysis; performing second round spectrum analysis on each of the one or more frequency points according to the first link attenuation value, the first link attenuation value being a value for AGC adjustment in the second round spectrum analysis. The method further comprises: acquiring a radio frequency (RF) side link received signal strength indication (RSSI) value corresponding to each of the one or more frequency points from the AGC adjustment result; determining a maximum RF side link RSSI value from the RF side link RSSI value corresponding to each of the one or more frequency points; determining the first link attenuation value according to the maximum RF side link RSSI value, the first link attenuation value being a link attenuation value corresponding to the maximum RF side link RSSI value.
2. The method of spectral analysis according to claim 1, characterized in that, The method further comprises: performing AGC adjustment on a local oscillator corresponding to each of the one or more frequency points until an AGC adjustment result satisfying a set condition is obtained; performing the first round spectrum analysis on each of the one or more frequency points to obtain a spectrum result corresponding to each of the one or more frequency points; splicing the spectrum result corresponding to each of the one or more frequency points to obtain a spectrum result corresponding to the first frequency band.
3. The method of spectral analysis according to claim 1, wherein, The link attenuation value corresponding to the maximum RF side link RSSI value comprises a digital attenuator (DATT) value and a variable gain amplifier (VGA) value.
4. The method of spectral analysis according to any one of claims 1 to 3, characterized in that, The method further comprises: determining a second link attenuation value for third round spectrum analysis according to the second round spectrum analysis; performing third round spectrum analysis on each of the one or more frequency points according to the second link attenuation value, the second link attenuation value being a value for AGC adjustment in the third round spectrum analysis.
5. The method of spectral analysis according to claim 4, characterized in that, The method further comprises: acquiring an analog-to-digital converter (ADC) output power corresponding to each of the one or more frequency points from the second round spectrum analysis; determining a maximum ADC output power from the ADC output power corresponding to each of the one or more frequency points; determining the second link attenuation value according to the maximum ADC output power.
6. The method of spectral analysis according to claim 5, characterized in that, The method further comprises: calculating the second link attenuation value by using a first formula, wherein the first formula comprises: RSSI0 = f(RSSI1) Delta = RSSI0 - RSSI_GOAL Datt = curDatt + Delta Wherein, RSSI1 represents the maximum ADC output power, RSSI0 represents the ADC input power corresponding to the maximum ADC output power, f represents the linear relationship between RSSI0 and RSSI1, RSSI_GOAL represents the target input power, Delta represents the difference between the ADC input power and the target input power, curDatt represents the link attenuation value corresponding to the maximum ADC output power, and Datt represents the second link attenuation value.
7. The method of spectral analysis according to claim 6, characterized in that, When the difference exceeds a set range, the difference is updated to a set value.
8. The method of spectral analysis according to claim 4, wherein, Further comprising: determining an Nth link attenuation value for an N+1th spectrum analysis according to the Nth spectrum analysis, the Nth spectrum analysis being used to characterize any spectrum analysis after the second spectrum analysis; performing the N+1th spectrum analysis on each frequency point according to the Nth link attenuation value, the Nth link attenuation value being the value of AGC adjustment in the N+1th spectrum analysis.
9. A terminal, characterized by comprising: comprising a memory, a transceiver, and a processor: a memory for storing a computer program; a transceiver for transceiving data under the control of the processor; and a processor for reading the computer program in the memory and performing the following operations: determining a first frequency band requiring spectrum analysis, the first frequency band comprising one or more frequency points; performing a first spectrum analysis on each frequency point in the one or more frequency points; determining a first link attenuation value for a second spectrum analysis according to the automatic gain control (AGC) adjustment result obtained in the first spectrum analysis; performing the second spectrum analysis on each frequency point according to the first link attenuation value, the first link attenuation value being the value of AGC adjustment in the second spectrum analysis; the determination of the first link attenuation value for the second spectrum analysis according to the AGC adjustment result obtained in the first spectrum analysis comprises: obtaining a radio frequency (RF) side air interface received signal strength indicator (RSSI) value corresponding to each frequency point from the AGC adjustment result; determining a maximum air interface RSSI value from the RF side air interface RSSI value corresponding to each frequency point; determining the first link attenuation value according to the maximum air interface RSSI value, the first link attenuation value being the link attenuation value corresponding to the maximum air interface RSSI value.
10. The terminal according to claim 9, characterized by the performance of the first spectrum analysis on each frequency point in the one or more frequency points comprises: performing AGC adjustment on the RF side corresponding to each frequency point until an AGC adjustment result satisfying a set condition appears; performing the first spectrum analysis on each frequency point to obtain a spectrum result corresponding to each frequency point; splicing the spectrum result corresponding to each frequency point to obtain a spectrum result corresponding to the first frequency band.
11. The terminal according to claim 9, characterized by The link attenuation value corresponding to the maximum air interface RSSI value comprises a digital attenuator (DATT) value and a variable gain amplifier (VGA) value.
12. The terminal according to any one of claims 9 to 11, characterized by Further comprising: determining a second link attenuation value for a third spectrum analysis according to the second spectrum analysis; According to the second link attenuation value, a third round of spectrum analysis is performed on each frequency point, and the second link attenuation value is a value of AGC adjustment in the third round of spectrum analysis.
13. The terminal according to claim 12, characterized by The second link attenuation value for the third round of spectrum analysis is determined according to the second round of spectrum analysis, and the second link attenuation value is a value of AGC adjustment in the third round of spectrum analysis. An analog-to-digital converter (ADC) output power corresponding to a local oscillator of each frequency point is obtained from the second round of spectrum analysis. A maximum ADC output power is determined from the ADC output power corresponding to the local oscillator of each frequency point. The second link attenuation value is determined according to the maximum ADC output power.
14. The terminal according to claim 13, characterized by The second link attenuation value is determined according to the maximum ADC output power, and the method comprises the following steps of: The second link attenuation value is calculated by using a first formula, and the first formula comprises the following steps of: RSSI0=f(RSSI1) Delta=RSSI0-RSSI_GOAL Datt=curDatt+Delta Wherein, RSSI1 represents the maximum ADC output power, RSSI0 represents the ADC input power corresponding to the maximum ADC output power, f represents the linear relationship between RSSI0 and RSSI1, RSSI_GOAL represents the target input power, Delta represents the difference between the ADC input power and the target input power, curDatt represents the link attenuation value corresponding to the maximum ADC output power, and Datt represents the second link attenuation value.
15. The terminal according to claim 14, characterized by When the difference exceeds a set range, the difference is updated to a set value.
16. The terminal according to claim 12, wherein The method further comprises the following steps of: An Nth link attenuation value for an (N+1)th round of spectrum analysis is determined according to an Nth round of spectrum analysis, and the Nth round of spectrum analysis is any round of spectrum analysis after the second round of spectrum analysis. The (N+1)th round of spectrum analysis is performed on each frequency point according to the Nth link attenuation value, and the Nth link attenuation value is a value of AGC adjustment in the (N+1)th round of spectrum analysis.
17. A spectrum analysis device, characterized by The method comprises the following steps of: A first determination unit is configured to determine a first frequency band that needs to be subjected to spectrum analysis, and the first frequency band comprises one or more frequency points. A first round of spectrum analysis unit is configured to perform a first round of spectrum analysis on each frequency point in the one or more frequency points. A second determination unit is configured to determine a first link attenuation value for a second round of spectrum analysis according to an automatic gain control (AGC) adjustment result obtained in the first round of spectrum analysis. A second round of spectrum analysis unit is configured to perform a second round of spectrum analysis on each frequency point according to the first link attenuation value, and the first link attenuation value is a value of AGC adjustment in the second round of spectrum analysis. The first link attenuation value for the second round of spectrum analysis is determined according to the AGC adjustment result obtained in the first round of spectrum analysis, and the method comprises the following steps of: An air interface received signal strength indication (RSSI) value corresponding to a local oscillator of each frequency point is obtained from the AGC adjustment result. A maximum air interface RSSI value is determined from the air interface RSSI value corresponding to the local oscillator of each frequency point. The first link attenuation value is determined according to the maximum air interface RSSI value, and the first link attenuation value is a link attenuation value corresponding to the maximum air interface RSSI value.
18. A processor-readable storage medium, comprising: The processor readable storage medium stores a computer program, and the computer program is used for enabling the processor to execute the method in any one of claims 1 to 8.
Citation Information
Patent Citations
Frequency sweeping method and device according to frequency band
CN106332228A
Scanning method and device for achieving frequency spectrum through single chip microcomputer
CN109813963A