CN-122001374-A - Narrow pulse acquisition algorithm based on JESD204B interface
Abstract
The specification discloses a narrow pulse acquisition algorithm based on a JESD204B interface, and relates to the technical field of signal acquisition. The method comprises the steps of firstly calculating initial noise, preset effective multiple and preset effective times, then preprocessing JESD204B interface data, then calculating the maximum amplitude value in single received data through a three-stage pipeline, finally finishing effective/ineffective judgment of collected data according to the set noise and the set ratio, and meanwhile, adaptively updating the noise value and filtering burrs (including fixed noise and burst noise) with a certain width. The algorithm utilizes the characteristic that JESD204B interface of the high-speed ADC receives data as a continuous acquisition point, calculates the maximum amplitude value in a single data packet, and compares the maximum amplitude value with a preset noise value through a ratio method to finish the valid/invalid judgment of a narrow pulse signal. The method has the advantages of low complexity, high anti-interference performance and flexible algorithm. The problems that the acquired data size is large, the data processing algorithm is complex, burrs cannot be processed and the like in the prior art are solved.
Inventors
- TAN XIAOGANG
- YANG GUOMING
- Liao Yuemin
- LIAO HAIQIAN
- HU TIANTAO
Assignees
- 贵州航天计量测试技术研究所
Dates
- Publication Date
- 20260508
- Application Date
- 20251203
Claims (7)
- 1. A narrow pulse wave acquisition algorithm based on JESD204B interface, comprising: Setting initial noise, presetting effective multiple and presetting effective times; Data preprocessing based on JESD204B interface; calculating the maximum amplitude of the JESD204B interface received data by using a pipeline comparison algorithm; Calculating the ratio m of the maximum amplitude value to the noise; and judging the effectiveness of the acquired data according to the ratio, and updating noise according to the judgment condition.
- 2. The method of claim 1, wherein the step of determining the position of the substrate comprises, Setting initial noise according to the maximum value of the actual background noise amplitude; Presetting an effective multiple k, wherein k is more than or equal to the minimum signal amplitude/maximum signal background noise; The valid times VB are preset, and VB is less than or equal to the minimum test pulse width/the number of single-group data.
- 3. The method of claim 1, wherein determining the validity of the collected data based on the ratio and updating noise based on the determination comprises: Comparing the ratio m of the maximum amplitude to the noise with a preset effective multiple k, and when m is more than or equal to k, if the effective times V of the data is less than the preset effective times VB, recording the effective times V=V+1 of the data, not updating the noise, and enabling the effective va=0 and the ineffective inva =0 of the narrow pulse; If the data valid times V is larger than or equal to the preset valid times VB, the noise is not updated, the narrow pulse is valid va=1, and the narrow pulse is invalid inva =0.
- 4. The method of claim 1, wherein the determining the validity of the collected data based on the ratio and updating the noise based on the determination further comprises: When m < k, and a > n, if the narrow pulse is valid va=1, then the narrow pulse is valid va=0, the narrow pulse is invalid inva =1, the data valid times v=0, and the noise n=a; if the narrow pulse valid va=0, then the narrow pulse valid va=0, the narrow pulse invalid inva =0, the data valid number v=0, and the noise n=a.
- 5. The method of claim 1, wherein the determining the validity of the collected data based on the ratio and updating the noise based on the determination further comprises: When m < k and a is less than or equal to n, if the narrow pulse is effective va=1, the narrow pulse is ineffective inva =0, the data effective times v=0, and noise is not updated; if the narrow pulse is valid va=0, then the narrow pulse is valid va=0, the narrow pulse is invalid inva =0, the clear data valid times v=0, and the noise is not updated.
- 6. The narrow pulse wave acquisition device based on JESD204B interface, which is applied to the method of any one of claims 1 to 5, is characterized by comprising an initialization setting module, a data preprocessing module, a maximum amplitude calculating module, a ratio calculating module and a noise updating module, wherein: the initialization setting module is used for setting initial noise, preset effective times and preset effective times; the data preprocessing module is used for preprocessing data based on a JESD204B interface; The maximum amplitude calculation module is used for calculating the maximum amplitude of the JESD204B interface received data by using a pipeline comparison algorithm; the ratio calculating module is used for calculating the ratio m of the maximum amplitude value to the noise; The noise updating module is used for judging the effectiveness of the collected data according to the ratio and updating the noise according to the judgment condition.
- 7. A computer readable storage medium storing a computer program which can be invoked by a processor to perform the steps of a narrow pulse wave acquisition algorithm based on a JESD204B interface as claimed in claim 3.
Description
Narrow pulse acquisition algorithm based on JESD204B interface Technical Field The document relates to the technical field of signal acquisition, in particular to a JESD204B interface-based narrow pulse wave acquisition algorithm. Background The acquisition of the narrow pulse signal is one of main methods for analyzing the characteristics of the narrow pulse signal, and is a research hot spot in the scientific research fields of test detection, communication, national defense and the like. The detection of the narrow pulse signal is mainly to study the propagation characteristic of the narrow pulse signal in space, the detection purpose is to obtain the power and the frequency of the narrow pulse signal transmitted to a certain position, and the detection result can reflect the transmission characteristic of the narrow pulse signal in different environments. Because continuous waves exist in the narrow pulse signals, effective judgment cannot be carried out by adopting a simple threshold value, and at present, the narrow pulse signal acquisition mainly comprises two modes of envelope acquisition and direct acquisition. The first mode is to collect the narrow pulse through detection, the detected narrow pulse has the characteristics of continuous waveform, easiness in judging continuity and the like, and burrs and the like can be effectively avoided. However, this method cannot acquire the frequency characteristics of the narrow pulse, and is only used when analyzing the power and pulse width characteristics of the narrow pulse signal. The second mode is to collect the collected waveform in real time, i.e. the collected data is not judged or stored according to the set threshold value in the collecting process, the collected data is received in real time, and the data such as the number of the narrow pulses, the power, the pulse width and the like are processed and calculated by adopting an algorithm in the upper computer software. The mode is consistent with the oscilloscope principle, and the situations that the acquired data volume is large, the data processing algorithm is complex, burrs (containing fixed noise and burst noise) cannot be processed and the like exist. Therefore, the validity judgment of the narrow pulse signal is matched with the completion of the storage and analysis of the effective pulse signal, and the narrow pulse signal acquisition is a problem which needs to be solved in an important way. Disclosure of Invention The specification provides a narrow pulse wave acquisition algorithm based on a JESD204B interface, which is used for solving the problems that the acquired data volume is large, the data processing algorithm is complex, burrs (containing fixed noise and burst noise) cannot be processed and the like in the prior art. In a first aspect, the present specification provides a narrow pulse wave acquisition algorithm based on a JESD204B interface, comprising: Setting initial noise, presetting effective multiple and presetting effective times; Data preprocessing based on JESD204B interface; calculating the maximum amplitude of the JESD204B interface received data by using a pipeline comparison algorithm; Calculating the ratio m of the maximum amplitude value to the noise; and judging the effectiveness of the acquired data according to the ratio, and updating noise according to the judgment condition. In a second aspect, the present disclosure provides a narrow pulse wave acquisition device based on a JESD204B interface, including an initialization setting module, a data preprocessing module, a maximum amplitude calculating module, a ratio calculating module, and a noise updating module, where: the initialization setting module is used for setting initial noise, preset effective times and preset effective times; the data preprocessing module is used for preprocessing data based on a JESD204B interface; The maximum amplitude calculation module is used for calculating the maximum amplitude of the JESD204B interface received data by using a pipeline comparison algorithm; the ratio calculating module is used for calculating the ratio m of the maximum amplitude value to the noise; The noise updating module is used for judging the effectiveness of the collected data according to the ratio and updating the noise according to the judgment condition. In a third aspect, the present specification also provides a computer readable storage medium storing a computer program which is capable of being invoked by a processor to perform the steps of the above method, a narrow pulse wave acquisition algorithm based on the JESD204B interface. The beneficial effects of the invention are as follows: The specification discloses a narrow pulse acquisition algorithm based on a JESD204B interface, which comprises the steps of firstly calculating initial noise, presetting effective multiples and presetting effective times, then preprocessing JESD204B interface data, then calculating the maximum amplitude va