A signal acquisition method for anti-interference
By segmenting the signal acquisition data and adding random delay time, combining multiple acquisitions and point-to-point algorithm filtering, the problem of noise interference in signal acquisition is solved, and effective data acquisition and clear output are achieved.
Patent Information
- Application Number
- CN202411680710.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-22
- Publication Date
- 2025-07-22
- Estimated Expiration
- 2044-11-22
AI Technical Summary
In the prior art, when signal acquisition is collected, abnormal data during noise duration cannot be effectively avoided, resulting in signal distortion and salt and pepper noise or fringe phenomena during image acquisition.
The data to be collected is segmented and a random delay time is added. Through multiple data acquisitions and valid data judgments, combined with point-to-point algorithm filtering, ensuring that the collected data is valid and then stored and final filtering is performed.
It effectively avoids abnormal data acquisition during the noise cycle, and ensures the accuracy and clarity of the data through multiple acquisitions and filtering.
Smart Images

Figure CN119182866B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data acquisition, and particularly relates to a signal acquisition method with anti-interference. Background Art
[0002] In the current frequency acquisition of pulse output sensors, the pulse counting method is mainly used. For human-computer interaction systems or image acquisition systems, signal interference problems are often encountered. Sometimes this signal interference comes from power supply and ground interference, or non-common-ground systems not sharing the same ground, or spatial signal interference. This interference will cause signal distortion during signal acquisition, and salt-and-pepper noise or stripe phenomena will occur during image acquisition. As Figure 1 shown, a typical EFT test is the EFT test. In the figure, 11 refers to a single-pulse noise waveform with a duration of 400 ns. The single-pulse noise waveform 11 may be continuous or intermittent, and the whole duration is 15 ms. The interval between the continuous pulses of the single-pulse noise waveform 11 is 300 ms. If this pulse is added to the power supply, during the 15-ms noise duration period in signal acquisition, the collected data will be abnormal. For the actual data acquisition or the data of the image imaging system during this period, it belongs to invalid data. The entire system cannot avoid the abnormal data collected during this noise duration period by using single-shot continuous acquisition, and can only collect it as normal data, and then calculate a theoretical value through other filtering methods. Summary of the Invention
[0003] The purpose of the present invention is to provide a signal acquisition method with anti-interference, so as to solve the problem that in the prior art, during signal acquisition, the entire system cannot avoid the abnormal data collected during the noise duration period by using single-shot continuous acquisition.
[0004] To solve the above technical problems, the present invention adopts the following technical solutions:
[0005] A signal acquisition method with anti-interference, characterized in that it includes the following steps:
[0006] S1. Segment the data to be collected according to power consumption and frame rate; if there is only one piece of data to be collected, there is no need to segment and directly perform data acquisition operations. If there is more than one piece of data to be collected, it is divided into N data groups, where N is a positive integer;
[0007] S2. Perform data acquisition operations on the data group divided into N segments separately from the first segment data group to the Nth segment data group in the segment order. When performing data acquisition operations on two adjacent segment data groups respectively, there is a random delay time delayN between the two adjacent segment data groups, and the delay time delayN is random. After performing the data acquisition operation on the Nth segment data group, the acquisition work ends, that is, the acquisition of the data to be acquired is completed. The data acquisition operation includes the following steps:
[0008] S11. Perform the first data acquisition on the data group. After the first data acquisition ends, add delayN; then perform the second data acquisition on the data group;
[0009] S12. Determine whether the first group of data in the first data acquisition and the second group of data in the second data acquisition are valid data. If they are valid data, store the first group of data and the second group of data in the storage body respectively, and execute step S13; if they are not valid data, jump to step S11;
[0010] S13. Perform the third data acquisition on the data group. After the third data acquisition ends, add delayN; then perform the fourth data acquisition on the data group;
[0011] S14. Determine whether the third group of data in the third data acquisition and the fourth group of data in the fourth data acquisition are valid data. If they are valid data, store the third group of data and the fourth group of data in the storage body respectively, and execute step S15; if they are not valid data, jump to step S13;
[0012] S15. Perform the fifth data acquisition on the data group, and store the fifth group of data obtained from the fifth data acquisition in the storage body;
[0013] S16. Perform point-to-point algorithm filtering on the five groups of data, and finally output the final data of this segment.
[0014] A further technical solution is that the data group includes n×m Mnm points, both "n" and "m" are positive integers, and the value of "M" is "A" and "B". The first group of data in the first data acquisition includes n×m Anm point data DAnm, the second group of data in the second data acquisition includes n×m Bnm point data DBnm, and the step of determining whether the first group of data in the first data acquisition and the second group of data in the second data acquisition are valid data includes:
[0015] S21. Set a data threshold Diff and a data threshold Dnumdiff respectively;
[0016] S22. Use the point data DAnm of point Anm in the first set of data and the corresponding point data DBnm of point Bnm in the second set of data to calculate and compare with the combined data threshold Diff. When |DAnm - DBnm| > Diff, both the point data DAnm of point Anm in the first set of data and the corresponding point data DBnm of point Bnm in the second set of data are invalid. On the contrary, when |DAnm - DBnm| < Diff, both the point data DAnm of point Anm in the first set of data and the corresponding point data DBnm of point Bnm in the second set of data are valid;
[0017] S23. Repeat step S22. Use the point data DAnm of all Anm points in the first set of data and the corresponding point data DBnm of point Bnm in the second set of data to calculate and compare with the combined data threshold Diff for validity judgment, and then obtain the total number Dnum of valid point data DAnm and the corresponding point data DBnm, and then compare with the combined data threshold Dnumdiff. When Dnum < Dnumdiff, both the first set of data and the second set of data are invalid data. On the contrary, when Dnum > Dnumdiff, both the first set of data and the second set of data are valid data.
[0018] A further technical solution is that
[0019] The data set includes n×m Mnm points, both "n" and "m" are positive integers, and the value of "M" is "A" and "B". The third set of data in the third data collection includes the point data DAnm of n×m Anm points, and the fourth set of data in the fourth data collection includes the point data DBnm of n×m Bnm points. The steps for judging whether the third set of data in the third data collection and the fourth set of data in the fourth data collection are valid data include:
[0020] S21. Set a data threshold Diff and a data threshold Dnumdiff respectively;
[0021] S22. Use the point data DAnm of point Anm in the third set of data and the corresponding point data DBnm of point Bnm in the fourth set of data to calculate and compare with the combined data threshold Diff. When |DAnm - DBnm| > Diff, both the point data DAnm of point Anm in the third set of data and the corresponding point data DBnm of point Bnm in the fourth set of data are invalid. On the contrary, when |DAnm - DBnm| < Diff, both the point data DAnm of point Anm in the third set of data and the corresponding point data DBnm of point Bnm in the fourth set of data are valid;
[0022] S23. Repeat step S22. For all the point data DAnm of the Anm points in the third group of data, compare them with the corresponding point data DBnm of the Bnm points in the fourth group of data for calculating the combined data threshold Diff to make an effective judgment. Further, obtain the total number Dnum of the valid point data DAnm and the corresponding point data DBnm, and then compare it with the combined data threshold Dnumdiff. When Dnum < Dnumdiff, both the third group of data and the fourth group of data are invalid data. On the contrary, when Dnum > Dnumdiff, both the third group of data and the fourth group of data are valid data.
[0023] A further technical solution is that the memory includes but is not limited to MTP, EEPROM, and SRAM.
[0024] A further technical solution is that the algorithm filtering includes but is not limited to FIR, IIR, and median filtering methods.
[0025] Compared with the prior art, the beneficial effects of the present invention are as follows:
[0026] By collecting data in segments and adding a delay time, it is ensured that when encountering periodic noise with the same acquisition frequency, the periodic noise can be staggered. At the same time, by judging whether the collected data is valid data, when invalid data is judged, data collection is restarted until valid data is obtained. Subsequently, after point-to-point algorithm filtering, the noise points in the collected data disappear, and the data images collected with noise points are basically filtered out. BRIEF DESCRIPTION OF THE DRAWINGS
[0027] Figure 1 It is a typical waveform diagram of EFT test in the prior art.
[0028] Figure 2 It is a schematic diagram of segmenting the data to be collected in an anti-interference signal acquisition method of the present invention.
[0029] Figure 3 It is a data acquisition flow chart of the data to be collected in the present invention.
[0030] Figure 4 It is an operation flow chart of data acquisition in the present invention.
[0031] Figure 5 It is a schematic diagram of data groups in Embodiment 3 of the present invention.
[0032] Figure 6 It is a schematic diagram of comparison between the present invention and the original figure. DETAILED DESCRIPTION OF THE INVENTION
[0033] To make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention will be further described in detail below with reference to 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.
[0034] Embodiment 1
[0035] Referring to Figure 2 、 Figure 3 shown, an anti-interference signal acquisition method of the present invention is characterized in that:
[0036] It includes the following steps:
[0037] S1. Segment the data to be acquired according to power consumption and frame rate; if there is only one piece of data to be acquired, no segmentation is required and the data acquisition operation can be directly performed. If there is more than one piece of data to be acquired, it is divided into N data groups, where N is a positive integer;
[0038] S2. Perform data acquisition operations on the N segmented data groups respectively in the order from the first data group to the Nth data group. When performing data acquisition operations on adjacent two data groups respectively, there is a random delay time delayN between the adjacent two data groups, and the delay time delayN is random. After the data acquisition operation on the Nth data group is completed, the acquisition work ends, that is, the acquisition of the data to be acquired is completed.
[0039] In actual use of this solution, as Figure 2 shown, the data to be acquired is divided into N data groups according to power consumption and frame rate. As Figure 3 shown, after the data acquisition operation on the first data group is completed, a random delay of a time delay3 is made, and then the data acquisition operation on the second data group is performed. After the data acquisition operation on the second data group is completed, a random delay of a time delay4 is made, and then the data acquisition operation on the third data group is performed. This process is repeated to perform data acquisition operations on each data group respectively to achieve data acquisition. Until the data acquisition operation on the Nth data group is completed, the data acquisition operation ends, that is, the acquisition of the data to be acquired is completed.
[0040] Embodiment 2
[0041] On the basis of the foregoing embodiment, referring to Figure 4 shown,
[0042] The data acquisition operation includes the following steps:
[0043] S11. Perform the first data acquisition on the data group. After the first data acquisition ends, add delayN; then perform the second data acquisition on the data group;
[0044] S12. Determine whether the first set of data from the first data collection and the second set of data from the second data collection are valid data. If they are valid data, store the first set of data and the second set of data in the storage body respectively, and execute step S13; if they are not valid data, jump to step S11;
[0045] S13. Conduct the third data collection on the data set. After the third data collection is completed, add delayN; then conduct the fourth data collection on the data set;
[0046] S14. Determine whether the third set of data from the third data collection and the fourth set of data from the fourth data collection are valid data. If they are valid data, store the third set of data and the fourth set of data in the storage body respectively, and execute step S15; if they are not valid data, jump to step S13;
[0047] S15. Conduct the fifth data collection on the data set, and store the fifth set of data obtained from the fifth data collection in the storage body;
[0048] S16. Conduct point-to-point algorithm filtering on the five sets of data, and finally output the final data of this section.
[0049] When this solution is actually used, refer to Figure 4It is shown that in the process of performing data acquisition operations on a certain data group, first, the first data acquisition is performed on the data group. After the first data acquisition is completed, the first group of data is obtained. A random delay time delay1 is added, and the second group of data is obtained when the second data acquisition is performed on the data group. A random delay time delay1 is added between the first data acquisition and the second data acquisition to ensure that when encountering periodic noise with the same acquisition frequency, the periodic noise can be staggered. When the second group of data is obtained, it is judged whether the two groups of data, namely the first group of data and the second group of data, are valid data. If they are not valid data, a random delay time delay1 is respectively added again for the first data acquisition and the second data acquisition. Then, after the first group of data and the second group of data are obtained again, it is judged again whether the first group of data and the second group of data are valid data. If they are valid data, the first group of data and the second group of data are respectively stored in the storage body, and the third data acquisition is performed on the data group. After the third data acquisition is completed, the third group of data is obtained. A random delay time delay1 is added, and the fourth group of data is obtained when the fourth data acquisition is performed on the data group. When the fourth group of data is obtained, it is judged whether the two groups of data, namely the third group of data and the fourth group of data, are valid data. If they are not valid data, a random delay time delay1 is respectively added again for the third data acquisition and the fourth data acquisition. After the corresponding data is obtained, it is judged again whether it is valid data. If they are valid data, the third group of data and the fourth group of data are respectively stored in the storage body, and the fifth data acquisition is performed on the data group to obtain the fifth group of data. Then, a point-to-point algorithm filtering is performed on the five groups of data, and finally the final data of this data group is output.
[0050] Embodiment 3
[0051] On the basis of the foregoing embodiments,
[0052] The data group includes n×m Mnm points, both "n" and "m" are positive integers, and the value of "M" is "A" and "B". The first group of data of the first data acquisition includes n×m point data DAnm of Anm points, and the second group of data of the second data acquisition includes n×m point data DBnm of Bnm points. The steps of judging whether the first group of data of the first data acquisition and the second group of data of the second data acquisition are valid data include:
[0053] S21. Respectively set a data threshold Diff and a data threshold Dnumdiff;
[0054] S22. Use the point data DAnm of point Anm in the first set of data and the corresponding point data DBnm of point Bnm in the second set of data to calculate and compare with the combined data threshold Diff. When |DAnm - DBnm| > Diff, both the point data DAnm of point Anm in the first set of data and the corresponding point data DBnm of point Bnm in the second set of data are invalid. Conversely, when |DAnm - DBnm| < Diff, both the point data DAnm of point Anm in the first set of data and the corresponding point data DBnm of point Bnm in the second set of data are valid.
[0055] S23. Repeat step S22. Use the point data DAnm of all Anm points in the first set of data and the corresponding point data DBnm of point Bnm in the second set of data to calculate and compare with the combined data threshold Diff for effective judgment. Then obtain the total number Dnum of valid point data DAnm and the corresponding point data DBnm, and compare it with the combined data threshold Dnumdiff. When Dnum < Dnumdiff, both the first set of data and the second set of data are invalid data. Conversely, when Dnum > Dnumdiff, both the first set of data and the second set of data are valid data.
[0056] The data set includes n×m Mnm points. Both "n" and "m" are positive integers, and the value of "M" is "A" and "B". The third set of data in the third data collection includes the point data DAnm of n×m Anm points, and the fourth set of data in the fourth data collection includes the point data DBnm of n×m Bnm points. The steps for judging whether the third set of data in the third data collection and the fourth set of data in the fourth data collection are valid data include:
[0057] S21. Set a data threshold Diff and a data threshold Dnumdiff respectively.
[0058] S22. Use the point data DAnm of point Anm in the third set of data and the corresponding point data DBnm of point Bnm in the fourth set of data to calculate and compare with the combined data threshold Diff. When |DAnm - DBnm| > Diff, both the point data DAnm of point Anm in the third set of data and the corresponding point data DBnm of point Bnm in the fourth set of data are invalid. Conversely, when |DAnm - DBnm| < Diff, both the point data DAnm of point Anm in the third set of data and the corresponding point data DBnm of point Bnm in the fourth set of data are valid.
[0059] S23. Repeat step S22. For all the point data DAnm of points Anm in the third group of data, compare them with the corresponding point data DBnm of points Bnm in the fourth group of data to calculate the combined data threshold Diff for effective judgment. Then, obtain the total number Dnum of valid pairs of the point data DAnm and the corresponding point data DBnm, and compare it with the combined data threshold Dnumdiff. When Dnum < Dnumdiff, both the third group of data and the fourth group of data are invalid data. On the contrary, when Dnum > Dnumdiff, both the third group of data and the fourth group of data are valid data.
[0060] In the actual use process of this solution, refer to Figure 5 As shown, this data group segment is 3X4 M 34 points. That is, the first group of data obtained from the first data acquisition is the point data DAnm of 12 points from A11 to A34, and the second group of data obtained from the second data acquisition is the point data DBnm of 12 points from B11 to B34. Set a data threshold Diff and a data threshold Dnumdiff respectively. According to the point data of A11 being DA11 and the point data of B11 being DB11, when |DA11 - DB11| > Diff, both the point data DA11 of A11 and the point data DB11 of B11 are invalid. On the contrary, when |DA11 - DB11| < Diff, both the point data DA11 of A11 and the point data DB11 of B11 are valid, and the point data DA11 of A11 and the corresponding point data DB11 of B11 are a pair of valid point data. Perform effective judgment on other points in turn, and then obtain the total number Dnum of valid pairs of the point data DAnm and the corresponding point data DBnm, and compare it with the set data threshold Dnumdiff. If Dnum < Dnumdiff, both the first group of data and the second group of data are invalid data. On the contrary, it is considered that the two groups of data are valid. The judgment method for the third group of data and the fourth group of data is the same as that for the first group of data and the second group of data, and will not be elaborated here. Refer to Figure 6 As shown, the first to fifth original images are unfiltered acquisition images, which all have different degrees of noise and horizontal stripe phenomena. The last image is the output image of an actual filtering effect of this solution on the fingerprint acquisition chip. After the filtering algorithm, the noise points basically disappear, and the data image during noise acquisition is basically filtered out from the image.
[0061] The Xth data acquisition is the first data acquisition or the third data acquisition.
[0062] The storage body includes but is not limited to MTP, EEPROM, and SRAM.
[0063] The algorithm filtering includes but is not limited to FIR, IIR, and median, median value filtering methods.
[0064] Although the present invention has been described herein with reference to various illustrative embodiments of the invention, it should be understood that those skilled in the art can devise many other modifications and embodiments that will fall within the scope of the principles of this application and the spirit thereof. More specifically, within the scope of this application's disclosure, the drawings, and the claims, various variations and improvements can be made to the components and / or the layout of the subject combination layout. In addition to the variations and improvements made to the components and / or the layout, other uses will also be apparent to those skilled in the art.
Claims
1. A signal acquisition method for anti-interference, characterized in that: Including the following steps: S1. Segment the data to be collected according to power consumption and frame rate; If there is only one piece of data to be collected, there is no need to segment it and directly perform the data collection operation. If there is more than one piece of data to be collected, it is divided into N data groups, where N is a positive integer; S2. Perform data collection operations on the N segmented data groups respectively in the order from the first data group to the Nth data group. When performing data collection operations on adjacent two data groups respectively, there is a random delay time delayN between the adjacent two data groups. The delay time delayN is random. After performing the data collection operation on the Nth data group, the collection work ends, that is, the collection of the data to be collected is completed. The data collection operation includes the following steps: S11. Perform the first data collection on the data group. After the first data collection ends, add delayN; then perform the second data collection on the data group; S12. Judge whether the first group of data in the first data collection and the second group of data in the second data collection are valid data. If they are valid data, store the first group of data and the second group of data in the storage body respectively, and execute step S13; if they are not valid data, jump to step S11; S13. Perform the third data collection on the data group. After the third data collection ends, add delayN; then perform the fourth data collection on the data group; S14. Judge whether the third group of data in the third data collection and the fourth group of data in the fourth data collection are valid data. If they are valid data, store the third group of data and the fourth group of data in the storage body respectively, and execute step S15; if they are not valid data, jump to step S13; S15. Perform the fifth data collection on the data group and store the fifth group of data obtained from the fifth data collection in the storage body; S16. Perform point-to-point algorithm filtering on the five groups of data and finally output the final data of this segment.
2. The anti-interference signal acquisition method according to claim 1, wherein: The data group includes n×m Mnm points. Both "n" and "m" are positive integers. The value of "M" is "A" and "B". "A" represents the previous data collection, and "B" represents the subsequent data collection. The first group of data in the first data collection includes n×m Axy point data DAxy, where x takes an integer from 1 to n, and y takes an integer from 1 to m. The second group of data in the second data collection includes n×m Bxy point data DBxy, where x takes an integer from 1 to n, and y takes an integer from 1 to m. The step of judging whether the first group of data in the first data collection and the second group of data in the second data collection are valid data includes: S21. Set a data threshold Diff and a data threshold Dnumdiff respectively; S22. Use the point data DAxy of point Axy in the first set of data and the corresponding point data DBxy of point Bxy in the second set of data to calculate and compare with the combined data threshold Diff; when |DAxy - DBxy| > Diff, then both the point data DAxy of point Axy in the first set of data and the corresponding point data DBxy of point Bxy in the second set of data are invalid. Conversely, when |DAxy - DBxy| < Diff, then both the point data DAxy of point Axy in the first set of data and the corresponding point data DBxy of point Bxy in the second set of data are valid; S23. Repeat step S22. Use the point data DAxy of all Axy points in the first set of data and the corresponding point data DBxy of point Bxy in the second set of data to calculate and compare with the combined data threshold Diff for validity judgment. Then obtain the total number Dnum of valid point data DAxy and the corresponding point data DBxy, and compare it with the combined data threshold Dnumdiff; when Dnum < Dnumdiff, then both the first set of data and the second set of data are invalid data. Conversely, when Dnum > Dnumdiff, then both the first set of data and the second set of data are valid data.
3. The anti-interference signal acquisition method according to claim 1, characterized in that The data set includes n×m Mnm points. Both "n" and "m" are positive integers. The value of "M" is "A" and "B". "A" represents the previous data collection, and "B" represents the subsequent data collection. The third set of data in the third data collection includes the point data DAxy of n×m Axy points, where x takes an integer value from 1 to n, and y takes an integer value from 1 to m. The fourth set of data in the fourth data collection includes the point data DBxy of n×m Bxy points, where x takes an integer value from 1 to n, and y takes an integer value from 1 to m. The steps for judging whether the third set of data in the third data collection and the fourth set of data in the fourth data collection are valid data include: S21. Set a data threshold Diff and a data threshold Dnumdiff respectively; S22. Use the point data DAxy of point Axy in the third set of data and the corresponding point data DBxy of point Bxy in the fourth set of data to calculate and compare with the combined data threshold Diff; when |DAxy - DBxy| > Diff, then both the point data DAxy of point Axy in the third set of data and the corresponding point data DBxy of point Bxy in the fourth set of data are invalid. Conversely, when |DAxy - DBxy| < Diff, then both the point data DAxy of point Axy in the third set of data and the corresponding point data DBxy of point Bxy in the fourth set of data are valid; S23. Repeat step S22. For all the point data DAxy of the Axy points in the third group of data, compare them with the corresponding point data DBxy of the Bxy points in the fourth group of data respectively to calculate the combined data threshold Diff for effective judgment, and then obtain the total number Dnum of the valid point data DAxy and the corresponding point data DBxy. Then compare it with the combined data threshold Dnumdiff. When Dnum < Dnumdiff, both the third group of data and the fourth group of data are invalid data. On the contrary, when Dnum > Dnumdiff, both the third group of data and the fourth group of data are valid data.
4. A signal acquisition method for anti-interference according to claim 1, characterized in that: The memory includes but is not limited to MTP, EEPROM, and SRAM.
5. A signal acquisition method for anti-interference according to claim 1, characterized in that: The algorithm filtering includes but is not limited to FIR, IIR, median, and median value filtering methods.
Citation Information
Patent Citations
Low-velocity pulse period collecting method based on anti-interference low-pass filtering
CN103760414A
Traffic radar data optimization method
CN118427765A