A method for detecting spectrum of input signal of digital optical fiber repeater
Through the collaborative work of FPGA chips and CPU chips, resource saving and accuracy improvement in signal spectrum detection are achieved, solving the problems of excessive resource occupation and malfunction in traditional technology, and ensuring the effectiveness and accuracy of signal spectrum detection.
Patent Information
- Application Number
- CN202211370714.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-11-03
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2042-11-03
AI Technical Summary
During the signal spectrum detection process of traditional digital optical fiber repeaters, the FPGA chip resources are occupied too much, data transmission is inconvenient, and there is a high possibility of misjudgment, leading to malfunctions.
After detecting the spectrum component amplitude through fast Fourier transform through the FPGA chip, the CPU chip is used for data processing and calculation to determine the starting frequency and cutoff frequency, and transmit them to the remote unit through the monitoring communication channel to select and set the filter parameters.
Save FPGA chip resources, improve detection accuracy, prevent malfunctions, and achieve validity judgment and accurate transmission of signal spectrum detection.
Smart Images

Figure CN115913373B
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of wireless communication, and in particular is a method for detecting a spectrum of an input signal of a digital optical fiber repeater. Background Art
[0002] In the current wireless communication system, multiple standards, multiple channels, and multiple frequency bands coexist in similar frequency bands. As a relay and amplification device for wireless signals, digital fiber repeaters need to perform different digital algorithm processing such as filtering on different signals to reduce interference between adjacent signals and reduce distortion during wireless signal relay. Before such digital algorithm processing such as filtering, the spectrum of the input RF signal needs to be accurately detected so that a reasonable digital filter can be selected according to the spectrum and the filter parameters can be adjusted.
[0003] During the implementation process, the inventors found that in traditional technology, usually only FPGA chips are used to detect the signal spectrum by using the fast Fourier transform (FFT) algorithm to detect the amplitude of each frequency component, and the detection results are used to control other algorithm parameters and actions.
[0004] This method has at least the following problems:
[0005] 1. FPGA chip resources are occupied. After the signal is processed by FFT algorithm, a large amount of data representing the amplitude of the spectrum components will be generated. The calculation and processing of these data will occupy a lot of FPGA chip resources.
[0006] 2. The digital fiber optic repeater consists of a near-end unit and a far-end unit. The wireless signal is input from the near-end unit and output from the far-end unit. The spectrum detection result data of the near-end unit FPGA chip is inconvenient to transmit to the far-end.
[0007] 3. The input signal of the digital optical fiber repeater comes from the base station antenna interface and varies with the number of terminals, distance and terminal services. If the instantaneous detection result is used as the basis for judgment, there is a possibility of misjudgment, which may cause malfunction. Summary of the invention
[0008] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a method for detecting the spectrum of a digital optical fiber repeater input signal, comprising the following steps:
[0009] Step 1: After analog-to-digital conversion, the RF signal input to the digital optical fiber repeater is input into the FPGA chip, and the FPGA chip uses a fast Fourier transform algorithm to detect the amplitude of each frequency component and generate a data sequence of the amplitude of the spectrum component;
[0010] Step 2: After the FPGA chip completes the spectrum component amplitude detection, the FPGA chip sends a signal to notify the CPU chip that the spectrum component amplitude detection is completed. The CPU chip reads the amplitude detection data sequence through the communication interface between the FPGA chip and the FPGA chip, calculates the reference value of the spectrum start frequency and the cutoff frequency, compares the data of the spectrum component amplitude data sequence one by one, converts the start frequency and the cutoff frequency of the spectrum, and determines the start frequency and the cutoff frequency and the validity;
[0011] Step three, after the near-end unit completes the input signal spectrum detection and the judgment of the validity of the spectrum data, the starting frequency and the cutoff frequency of the signal are sent to the remote unit through the monitoring communication channel between the near-end unit and the remote unit. The remote unit selects the corresponding filter and sets the corresponding filter parameters according to the starting frequency and the cutoff frequency of one or more signals to complete the input signal spectrum detection of the repeater.
[0012] Furthermore, the RF signal input to the digital optical fiber repeater is converted into digital form, and the digital signal representing the RF signal is input into the FPGA chip. The FPGA chip uses a fast Fourier transform algorithm to detect the amplitude of each frequency component and generate a data sequence of the amplitude of the spectrum component, including:
[0013] In the nominal working frequency band of the digital fiber optic repeater, according to the spectrum detection accuracy requirements, it is evenly divided into several small frequency components at the same frequency interval; the FPGA chip uses the fast Fourier transform algorithm to detect the amplitude of each frequency component one by one from the lowest frequency to the highest frequency, and obtains the data sequence of the spectrum component amplitude; within the unit time, the frequency component amplitude within the working frequency band is scanned and detected multiple times, and the detection results of the corresponding frequencies are accumulated; after the detection is completed, the detection result data is stored in the corresponding register, and a signal is sent to notify the CPU that the detection data is ready. After the CPU reads the amplitude detection data, the next round of spectrum component amplitude detection is performed.
[0014] Furthermore, after the FPGA chip completes the spectrum component amplitude detection, the FPGA chip sends a signal to notify the CPU chip that the spectrum component amplitude detection is completed, the CPU chip reads the amplitude detection data sequence through the communication interface between the FPGA chip, calculates and determines the reference value of the spectrum start frequency and the cutoff frequency, compares the data of the spectrum component amplitude data sequence one by one, converts the start frequency and the cutoff frequency of the spectrum, and determines the start frequency and the cutoff frequency and the validity, including the following steps:
[0015] Find the maximum amplitude value from the spectral component amplitude data sequence; take 10% of the maximum amplitude value as the amplitude level reference value; compare the spectral component amplitude data sequence with the reference amplitude level in turn, those that reach the reference amplitude level are valid spectral components, and those that are lower than the reference amplitude level are invalid spectral components. In the spectral component amplitude data sequence, the starting frequency and cutoff frequency corresponding to the valid spectral component are the starting frequency and cutoff frequency of the input signal spectrum; compare them with the corresponding starting frequency and cutoff frequency detected in the previous round. If they are the same, it is judged that the signal starting frequency and cutoff frequency are valid. If they are different, it is judged that the signal starting frequency and cutoff frequency are invalid.
[0016] Furthermore, the step of determining the validity of the phase information includes:
[0017] First, the FPGA chip uses the fast Fourier transform (FFT) algorithm to detect the amplitude of each frequency component one by one from the lowest frequency component to the highest frequency component, and generates a data sequence of the spectrum component amplitude;
[0018] Then, within a unit time, the FPGA chip scans and detects the amplitude of the frequency components within the working frequency band multiple times, and accumulates the detection results of the corresponding frequency amplitudes;
[0019] Finally, the FPGA chip stores the data sequence of the spectrum component amplitude in the corresponding register and sends a signal to notify the CPU that the detection data is ready. After the CPU reads the amplitude detection data, it performs the next round of spectrum component amplitude detection.
[0020] Furthermore, the step of judging the effectiveness of the feedback amplitude information is specifically as follows:
[0021] Read the amplitude detection data sequence. The CPU core reads the data series into the CPU memory through the data communication interface with the FPGA chip;
[0022] Calculate the spectrum judgment reference; the CPU software compares the spectrum component amplitude data sequence one by one, finds the maximum value in the data sequence, and takes 10% of the maximum value as the reference value for spectrum judgment;
[0023] Calculate the starting frequency and cutoff frequency of the signal; the CPU software compares the amplitude data sequence of the spectrum components one by one, the amplitude data greater than or equal to the reference value is a valid value, and the amplitude data less than the reference value is an invalid value; the starting frequency and cutoff frequency corresponding to the valid spectrum component are the starting frequency and cutoff frequency of the input signal spectrum;
[0024] Calculate the starting frequency difference and the cut-off frequency difference; the CPU software compares the starting frequency calculated by this round of detection with the starting frequency calculated by the previous round of detection to calculate the starting frequency difference; compares the cut-off frequency calculated by this round of detection with the cut-off frequency calculated by the previous round of detection to calculate the cut-off frequency difference;
[0025] Signal spectrum validity judgment: judge whether the starting frequency difference and the ending frequency difference are greater than 2 times the frequency interval of the fast Fourier transform. If greater than or equal to, the spectrum detection result of this round is invalid; if less than, the spectrum detection result of this round is valid; the CPU saves the starting frequency and the ending frequency for calculating the starting frequency difference and the ending frequency difference in the next round of detection.
[0026] The beneficial effects of the present invention are as follows: the FPGA chip only implements the fast Fourier transform of the input signal to generate a data sequence of the spectral component amplitudes, thereby achieving the purpose of saving the logic resources of the FPGA chip; the CPU chip is used to further calculate and process the data sequence of the spectral component amplitudes with a software algorithm, calculate the corresponding starting frequency and cutoff frequency, judge the validity of the result, achieve accurate detection, and prevent false operation; the CPU chip distributes the starting frequency and cutoff frequency data of the input signal between the near-end unit and the far-end unit through the system monitoring communication link, and instructs the near-end unit and the far-end unit to coordinate actions. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 The present invention is a flow chart of a method for detecting the frequency spectrum of an input signal of a digital optical fiber repeater. DETAILED DESCRIPTION
[0028] The technical solution of the present invention is further described in detail below in conjunction with the accompanying drawings, but the protection scope of the present invention is not limited to the following.
[0029] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not used to limit the present invention, that is, the described embodiments are only part of the embodiments of the present invention, rather than all of the embodiments. Generally, the components of the embodiments of the present invention described and shown in the drawings herein can be arranged and designed in various different configurations.
[0030] Therefore, the following detailed description of the embodiments of the present invention provided in the accompanying drawings is not intended to limit the scope of the claimed invention, but merely represents selected embodiments of the present invention. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative work are within the scope of protection of the present invention. It should be noted that relational terms such as the terms "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations.
[0031] Moreover, the terms "comprises", "includes" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a list of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or apparatus. In the absence of more restrictions, an element defined by the phrase "comprises a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.
[0032] The features and performance of the present invention are further described in detail below in conjunction with the embodiments.
[0033] like Figure 1 As shown, a method for detecting the spectrum of a digital optical fiber repeater input signal comprises the following steps:
[0034] Step 1: After analog-to-digital conversion, the RF signal input to the digital optical fiber repeater is input into the FPGA chip, and the FPGA chip uses a fast Fourier transform algorithm to detect the amplitude of each frequency component and generate a data sequence of the amplitude of the spectrum component;
[0035] Step 2: After the FPGA chip completes the spectrum component amplitude detection, the FPGA chip sends a signal to notify the CPU chip that the spectrum component amplitude detection is completed. The CPU chip reads the amplitude detection data sequence through the communication interface between the FPGA chip and the FPGA chip, calculates the reference value of the spectrum start frequency and the cutoff frequency, compares the data of the spectrum component amplitude data sequence one by one, converts the start frequency and the cutoff frequency of the spectrum, and determines the start frequency and the cutoff frequency and the validity;
[0036] Step three, after the near-end unit completes the input signal spectrum detection and the judgment of the validity of the spectrum data, the starting frequency and the cutoff frequency of the signal are sent to the remote unit through the monitoring communication channel between the near-end unit and the remote unit. The remote unit selects the corresponding filter and sets the corresponding filter parameters according to the starting frequency and the cutoff frequency of one or more signals to complete the input signal spectrum detection of the repeater.
[0037] The RF signal input to the digital optical fiber repeater is converted into digital form, and the digital signal representing the RF signal is input into the FPGA chip. The FPGA chip uses a fast Fourier transform algorithm to detect the amplitude of each frequency component and generate a data sequence of the amplitude of the spectrum component, including:
[0038] In the nominal working frequency band of the digital fiber optic repeater, according to the spectrum detection accuracy requirements, it is evenly divided into several small frequency components at the same frequency interval; the FPGA chip uses the fast Fourier transform algorithm to detect the amplitude of each frequency component one by one from the lowest frequency to the highest frequency, and obtains the data sequence of the spectrum component amplitude; within the unit time, the frequency component amplitude within the working frequency band is scanned and detected multiple times, and the detection results of the corresponding frequencies are accumulated; after the detection is completed, the detection result data is stored in the corresponding register, and a signal is sent to notify the CPU that the detection data is ready. After the CPU reads the amplitude detection data, the next round of spectrum component amplitude detection is performed.
[0039] After the FPGA chip completes the spectrum component amplitude detection, the FPGA chip sends a signal to notify the CPU chip that the spectrum component amplitude detection is completed, the CPU chip reads the amplitude detection data sequence through the communication interface between the FPGA chip, calculates and determines the reference value of the spectrum start frequency and the cutoff frequency, compares the data of the spectrum component amplitude data sequence one by one, converts the start frequency and the cutoff frequency of the spectrum, and determines the start frequency and the cutoff frequency and the validity, including the following steps:
[0040] Find the maximum amplitude value from the spectral component amplitude data sequence; take 10% of the maximum amplitude value as the amplitude level reference value; compare the spectral component amplitude data sequence with the reference amplitude level in turn, those that reach the reference amplitude level are valid spectral components, and those that are lower than the reference amplitude level are invalid spectral components. In the spectral component amplitude data sequence, the starting frequency and cutoff frequency corresponding to the valid spectral component are the starting frequency and cutoff frequency of the input signal spectrum; compare them with the corresponding starting frequency and cutoff frequency detected in the previous round. If they are the same, it is judged that the signal starting frequency and cutoff frequency are valid. If they are different, it is judged that the signal starting frequency and cutoff frequency are invalid.
[0041] The step of determining the validity of the phase information includes:
[0042] First, the FPGA chip uses the fast Fourier transform (FFT) algorithm to detect the amplitude of each frequency component one by one from the lowest frequency component to the highest frequency component, and generates a data sequence of the spectrum component amplitude;
[0043] Then, within a unit time, the FPGA chip scans and detects the amplitude of the frequency components within the working frequency band multiple times, and accumulates the detection results of the corresponding frequency amplitudes;
[0044] Finally, the FPGA chip stores the data sequence of the spectrum component amplitude in the corresponding register and sends a signal to notify the CPU that the detection data is ready. After the CPU reads the amplitude detection data, it performs the next round of spectrum component amplitude detection.
[0045] The steps of judging the effectiveness of the feedback amplitude information are specifically as follows:
[0046] Read the amplitude detection data sequence. The CPU core reads the data series into the CPU memory through the data communication interface with the FPGA chip;
[0047] Calculate the spectrum judgment reference; the CPU software compares the spectrum component amplitude data sequence one by one, finds the maximum value in the data sequence, and takes 10% of the maximum value as the reference value for spectrum judgment;
[0048] Calculate the starting frequency and cutoff frequency of the signal; the CPU software compares the amplitude data sequence of the spectrum components one by one, the amplitude data greater than or equal to the reference value is a valid value, and the amplitude data less than the reference value is an invalid value; the starting frequency and cutoff frequency corresponding to the valid spectrum component are the starting frequency and cutoff frequency of the input signal spectrum;
[0049] Calculate the starting frequency difference and the cut-off frequency difference; the CPU software compares the starting frequency calculated by this round of detection with the starting frequency calculated by the previous round of detection to calculate the starting frequency difference; compares the cut-off frequency calculated by this round of detection with the cut-off frequency calculated by the previous round of detection to calculate the cut-off frequency difference;
[0050] Signal spectrum validity judgment: judge whether the starting frequency difference and the ending frequency difference are greater than 2 times the frequency interval of the fast Fourier transform. If greater than or equal to, the spectrum detection result of this round is invalid; if less than, the spectrum detection result of this round is valid; the CPU saves the starting frequency and the ending frequency for calculating the starting frequency difference and the ending frequency difference in the next round of detection.
[0051] The above is only a preferred embodiment of the present invention. It should be understood that the present invention is not limited to the form disclosed herein, and should not be regarded as excluding other embodiments, but can be used in various other combinations, modifications and environments, and can be modified within the scope of the concept described herein through the above teachings or the technology or knowledge of the relevant field. The changes and modifications made by those skilled in the art shall not deviate from the spirit and scope of the present invention, and shall be within the scope of protection of the claims attached to the present invention.
Claims
1. A method for detecting spectrum of input signal of digital optical fiber repeater, It is characterized in that The steps include: Step 1: After analog-to-digital conversion, the RF signal input to the digital optical fiber repeater is input into the FPGA chip, and the FPGA chip uses a fast Fourier transform algorithm to detect the amplitude of each frequency component and generate a data sequence of the amplitude of the spectrum component; Step 2: After the FPGA chip completes the spectrum component amplitude detection, the FPGA chip sends a signal to notify the CPU chip that the spectrum component amplitude detection is completed. The CPU chip reads the amplitude detection data sequence through the communication interface between the FPGA chip and the FPGA chip, calculates the reference value of the spectrum start frequency and the cutoff frequency, compares the data of the spectrum component amplitude data sequence one by one, converts the start frequency and the cutoff frequency of the spectrum, and determines the start frequency and the cutoff frequency and the validity; Step three, after the near-end unit completes the input signal spectrum detection and the judgment of the validity of the spectrum data, the starting frequency and the cutoff frequency of the signal are sent to the remote unit through the monitoring communication channel between the near-end unit and the remote unit. The remote unit selects the corresponding filter and sets the corresponding filter parameters according to the starting frequency and the cutoff frequency of one or more signals to complete the input signal spectrum detection of the repeater.
2. A method for detecting a spectrum of a digital optical fiber repeater input signal according to claim 1, It is characterized in that The RF signal input to the digital optical fiber repeater is converted into digital form, and the digital signal representing the RF signal is input into the FPGA chip. The FPGA chip uses a fast Fourier transform algorithm to detect the amplitude of each frequency component and generate a data sequence of the amplitude of the spectrum component, including: In the nominal working frequency band of the digital fiber optic repeater, according to the spectrum detection accuracy requirements, it is evenly divided into several small frequency components at the same frequency interval; the FPGA chip uses the fast Fourier transform algorithm to detect the amplitude of each frequency component one by one from the lowest frequency to the highest frequency, and obtains the data sequence of the spectrum component amplitude; within the unit time, the frequency component amplitude within the working frequency band is scanned and detected multiple times, and the detection results of the corresponding frequencies are accumulated; after the detection is completed, the detection result data is stored in the corresponding register, and a signal is sent to notify the CPU that the detection data is ready. After the CPU reads the amplitude detection data, the next round of spectrum component amplitude detection is performed.
3. A method for detecting spectrum of input signal of a digital optical fiber repeater according to claim 1, It is characterized in that After the FPGA chip completes the spectrum component amplitude detection, the FPGA chip sends a signal to notify the CPU chip that the spectrum component amplitude detection is completed, the CPU chip reads the amplitude detection data sequence through the communication interface between the FPGA chip, calculates and determines the reference value of the spectrum start frequency and the cutoff frequency, compares the data of the spectrum component amplitude data sequence one by one, converts the start frequency and the cutoff frequency of the spectrum, and determines the start frequency and the cutoff frequency and the validity, including the following steps: Find the maximum amplitude value from the spectral component amplitude data sequence; take 10% of the maximum amplitude value as the amplitude level reference value; compare the spectral component amplitude data sequence with the reference amplitude level in turn, those that reach the reference amplitude level are valid spectral components, and those that are lower than the reference amplitude level are invalid spectral components. In the spectral component amplitude data sequence, the starting frequency and cutoff frequency corresponding to the valid spectral component are the starting frequency and cutoff frequency of the input signal spectrum; compare them with the corresponding starting frequency and cutoff frequency detected in the previous round. If they are the same, it is judged that the signal starting frequency and cutoff frequency are valid. If they are different, it is judged that the signal starting frequency and cutoff frequency are invalid.
4. A method for detecting spectrum of input signal of a digital optical fiber repeater according to claim 3, It is characterized in that The data sequence for generating the amplitude of the spectrum component comprises: First, the FPGA chip uses the fast Fourier transform (FFT) algorithm to detect the amplitude of each frequency component one by one from the lowest frequency component to the highest frequency component, and generates a data sequence of the amplitude of the spectrum component; Then, within a unit time, the FPGA chip scans and detects the amplitude of the frequency components within the working frequency band multiple times, and accumulates the detection results of the corresponding frequency amplitudes; Finally, the FPGA chip stores the data sequence of the spectrum component amplitude in the corresponding register and sends a signal to notify the CPU that the detection data is ready. After the CPU reads the amplitude detection data, it performs the next round of spectrum component amplitude detection.
5. A method for detecting spectrum of input signal of digital optical fiber repeater according to claim 2, It is characterized in that The effectiveness judgment steps are specifically as follows: Read the amplitude detection data sequence. The CPU core reads the data series into the CPU memory through the data communication interface with the FPGA chip; Calculate the spectrum judgment reference; the CPU software compares the spectrum component amplitude data sequence one by one, finds the maximum value in the data sequence, and takes 10% of the maximum value as the reference value for spectrum judgment; Calculate the starting frequency and cutoff frequency of the signal; the CPU software compares the amplitude data sequence of the spectrum components one by one, the amplitude data greater than or equal to the reference value is a valid value, and the amplitude data less than the reference value is an invalid value; the starting frequency and cutoff frequency corresponding to the valid spectrum component are the starting frequency and cutoff frequency of the input signal spectrum; Calculate the starting frequency difference and the cut-off frequency difference; the CPU software compares the starting frequency calculated by this round of detection with the starting frequency calculated by the previous round of detection to calculate the starting frequency difference; compares the cut-off frequency calculated by this round of detection with the cut-off frequency calculated by the previous round of detection to calculate the cut-off frequency difference; Signal spectrum validity judgment: judge whether the starting frequency difference and the ending frequency difference are greater than 2 times the frequency interval of the fast Fourier transform. If greater than or equal to, the spectrum detection result of this round is invalid; if less than, the spectrum detection result of this round is valid; the CPU saves the starting frequency and the ending frequency for calculating the starting frequency difference and the ending frequency difference in the next round of detection.
